]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/jpeg: fix jpeg_v5_0_1_is_idle detection
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 24 Jun 2026 13:50:01 +0000 (09:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 17:00:58 +0000 (13:00 -0400)
commitefcedeececcf995fcf717b21e39aa7c446fa3bf7
tree76cc39610427448582a2c902feb74c381b227d2e
parentd4dbcb11eaaa85611ee28f92438361a0e1245adb
drm/amdgpu/jpeg: fix jpeg_v5_0_1_is_idle detection

jpeg_v5_0_1_is_idle() initializes ret to false and then accumulates ring
idle status using &=. Since false & condition always remains false, the
function can never report the JPEG block as idle.

Initialize ret to true so the function returns true only when all JPEG
rings report RB_JOB_DONE.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 680adf5faeeabb4585f7aeb53681719e2d6c2f41)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c