]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vcn4.0.3: rework reset handling
authorJesse.Zhang <Jesse.Zhang@amd.com>
Tue, 20 Jan 2026 02:23:35 +0000 (10:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jan 2026 19:17:48 +0000 (14:17 -0500)
commitd25c67fd9d6fe0921024791bca3ab8a83ca32df7
treec6126b1cbbf29e5301af4f082b1a3f35e7cb7dc7
parentde93bc353361f5939f5257e6dcd9cb533dd7cce3
drm/amdgpu/vcn4.0.3: 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 1 and 2 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_v4_0_3.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c