]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: fix JPEG v5.3.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:34 +0000 (14:31 -0400)
commitd2dc81ed5191e7e06a8aa3e153f665d36bae8eb6
treeff190377f2193fb16458acb65f07a000abcb2865
parent4301e60e406c613aea06fdc0c36bf0675b0b8a2e
drm/amdgpu: fix JPEG v5.3.0 queue reset failure in DPG mode

Like jpeg_v5_0_0, in DPG mode the ring reset path only clears the
JPEG_PG_MODE bit and never resets a hung JRBC, so 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.

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 e93659cab11c48255dcac58af60203c99815586b)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c