]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd: Add per-ring reset for vcn v4.0.5 use
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 6 May 2025 20:49:46 +0000 (15:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:48:11 +0000 (17:48 -0400)
commitd1a46cdd00539a573b7b7b67f7e5668344ac5231
treeb0933dd2f737c9f26b3bc54db8444dd8ae4fd9bf
parent5c937b4a6050316af37ef214825b6340b5e9e391
drm/amd: Add per-ring reset for vcn v4.0.5 use

There is a problem occurring on VCN 4.0.5 where in some situations a job
is timing out.  This triggers a job timeout which then causes a GPU
reset for recovery.  That has exposed a number of issues with GPU reset
that have since been fixed. But also a GPU reset isn't actually needed
for this circumstance. Just restarting the ring is enough.

Add a reset callback for the ring which will stop and start VCN if the
issue happens.

Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12528
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3909
Link: https://lore.kernel.org/r/20250506204948.12048-2-mario.limonciello@amd.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c