]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vcn5.0.1: rework reset handling
authorJesse.Zhang <Jesse.Zhang@amd.com>
Wed, 14 Jan 2026 02:51:52 +0000 (10:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jan 2026 19:18:09 +0000 (14:18 -0500)
commitfab47d2db5ca10c726459753224dd296506e0f97
tree08e03a167f813e8cf8b865f2e866c86ecb5ff674
parentd25c67fd9d6fe0921024791bca3ab8a83ca32df7
drm/amdgpu/vcn5.0.1: rework reset handling

Resetting VCN resets the entire tile, including jpeg.
When resetting the VCN, we need to ensure that JPEG data blocks are accessible and we also need to handle the JPEG queue.
Add a helper function to restore the JPEG queue during the VCN reset.

v2: split the jpeg helper in two, in the top helper we can stop the sched workqueues and attempt to wait for any outstanding fences.
    Then in the bottom helper, we can force completion, re-init the rings, and restart the sched workqueues (Alex)

v3: merge patches 4 and 5 into one patch (Alex)

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c