Skip to content

Commit 93a0162

Browse files
superm1alexdeucher
authored andcommitted
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: 547aad3 ("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> (cherry picked from commit d717e62) Cc: stable@vger.kernel.org
1 parent 2e1da46 commit 93a0162

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ static int vcn_v4_0_5_sw_fini(struct amdgpu_ip_block *ip_block)
265265
if (amdgpu_sriov_vf(adev))
266266
amdgpu_virt_free_mm_table(adev);
267267

268+
amdgpu_vcn_sysfs_reset_mask_fini(adev);
269+
268270
for (i = 0; i < adev->vcn.num_vcn_inst; i++) {
269271
r = amdgpu_vcn_suspend(adev, i);
270272
if (r)

0 commit comments

Comments
 (0)