Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Fix jpeg ring test order in vcn_v4_0_3

Fix the vcn reset sequence in vcn_v4_0_3_ring_reset() to restore
JPEG power state and unlock the JPEG powergating mutex before
running the JPEG ring post-reset helper.

Fixes: d25c67fd9d6f ("drm/amdgpu/vcn4.0.3: rework reset handling")
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jesse.Zhang and committed by
Alex Deucher
91544c45 7a3fbdfd

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
··· 1742 1742 goto unlock; 1743 1743 } 1744 1744 1745 - r = vcn_v4_0_3_reset_jpeg_post_helper(adev, ring->me); 1746 1745 if (pg_state) 1747 1746 amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_JPEG, 1748 1747 AMD_PG_STATE_GATE); 1749 1748 mutex_unlock(&adev->jpeg.jpeg_pg_lock); 1749 + r = vcn_v4_0_3_reset_jpeg_post_helper(adev, ring->me); 1750 1750 1751 1751 unlock: 1752 1752 mutex_unlock(&vinst->engine_reset_mutex);