diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-03-16 11:41:48 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-03-25 12:40:24 -0400 |
commit | 1647b54ed55d4d48c7199d439f8834626576cbe9 (patch) | |
tree | 2910f8d82837fc571fd6b40f16ea0e9ab1a87812 /drivers/gpu/drm/amd/pm/amdgpu_dpm.c | |
parent | 60d61f4ed6ead43ad2de31ebb8d1d27c57290529 (diff) |
drm/amdgpu: fix off by one in amdgpu_gfx_kiq_acquire()
This post-op should be a pre-op so that we do not pass -1 as the bit
number to test_bit(). The current code will loop downwards from 63 to
-1. After changing to a pre-op, it loops from 63 to 0.
Fixes: 71c37505e7ea ("drm/amdgpu/gfx: move more common KIQ code to amdgpu_gfx.c")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_dpm.c')
0 files changed, 0 insertions, 0 deletions