commit | 1647b54ed55d4d48c7199d439f8834626576cbe9 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Mar 16 11:41:48 2022 +0300 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri Mar 25 12:40:24 2022 -0400 |
tree | 2910f8d82837fc571fd6b40f16ea0e9ab1a87812 | |
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>