]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix JPEG v5.0.0 queue reset failure in DPG mode
authorJesse Zhang <Jesse.Zhang@amd.com>
Wed, 29 Jul 2026 08:57:08 +0000 (16:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2026 18:31:13 +0000 (14:31 -0400)
commitc87801f545dac9fcbb84c96f280706572be00a85
tree18107d5b8ac6c3c06f0209f7c1278016c3c557ec
parent075b74841bd0065a3bda3440873c747938e69b68
drm/amdgpu: fix JPEG v5.0.0 queue reset failure in DPG mode

In DPG mode jpeg_v5_0_0_ring_reset() takes the DPG stop path, which only
clears the JPEG_PG_MODE bit and never resets the JRBC. A hung ring is not
recovered: the post-reset ring test times out and the driver falls back to
a full MODE1 reset.

Temporarily force the static power-gating path during the reset so the
stop/start sequence power-cycles the JPEG block (JMI soft reset + power
off/on), matching the jpeg_v4_0 reset which has no DPG path.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 79b3612827d1adcd2008cd585961fa35a6ff20f2)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c