Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd: Fix unbind/rebind for VCN 4.0.5

Unbinding amdgpu has no problems, but binding it again leads to an
error of sysfs file already existing. This is because it wasn't
actually cleaned up on unbind. Add the missing cleanup step.

Fixes: 547aad32edac ("drm/amdgpu: add VCN4 ip block support")
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Limonciello (AMD) and committed by
Alex Deucher
d717e62e 495b1904

+2
+2
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
··· 265 265 if (amdgpu_sriov_vf(adev)) 266 266 amdgpu_virt_free_mm_table(adev); 267 267 268 + amdgpu_vcn_sysfs_reset_mask_fini(adev); 269 + 268 270 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { 269 271 r = amdgpu_vcn_suspend(adev, i); 270 272 if (r)