aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJani Nikula <[email protected]>2025-09-05 10:41:49 +0000
committerTvrtko Ursulin <[email protected]>2025-09-09 08:08:37 +0000
commitcfa7b7659757f8d0fc4914429efa90d0d2577dd7 (patch)
treeb038dca1b85243391e9d687f8ba1d62ccccbeeea /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentLinux 6.17-rc5 (diff)
downloadkernel-cfa7b7659757f8d0fc4914429efa90d0d2577dd7.tar.gz
kernel-cfa7b7659757f8d0fc4914429efa90d0d2577dd7.zip
drm/i915/power: fix size for for_each_set_bit() in abox iteration
for_each_set_bit() expects size to be in bits, not bytes. The abox mask iteration uses bytes, but it works by coincidence, because the local variable holding the mask is unsigned long, and the mask only ever has bit 2 as the highest bit. Using a smaller type could lead to subtle and very hard to track bugs. Fixes: 62afef2811e4 ("drm/i915/rkl: RKL uses ABOX0 for pixel transfers") Cc: Ville Syrjälä <[email protected]> Cc: Matt Roper <[email protected]> Cc: [email protected] # v5.9+ Reviewed-by: Matt Roper <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jani Nikula <[email protected]> (cherry picked from commit 7ea3baa6efe4bb93d11e1c0e6528b1468d7debf6) Signed-off-by: Tvrtko Ursulin <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions