[Freedreno] [PATCH] drm/msm/adreno: fix cast in adreno_get_param()
Stephen Boyd
swboyd at chromium.org
Tue Mar 8 20:25:16 UTC 2022
Quoting Dan Carpenter (2022-03-07 05:31:05)
> These casts need to happen before the shift. The only time it would
> matter would be if "rev.core" is >= 128. In that case the sign bit
> would be extended and we do not want that.
>
> Fixes: afab9d91d872 ("drm/msm/adreno: Expose speedbin to userspace")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> ---
Reviewed-by: Stephen Boyd <swboyd at chromium.org>
More information about the Freedreno
mailing list