Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63d24f88 authored by Xiangliang Yu's avatar Xiangliang Yu Committed by Alex Deucher
Browse files

drm/amdgpu/vi: fix mailbox irq mistake



For virt, freed mailbox irq should be handled in hw fini, not hw
init. Correct it.

Signed-off-by: default avatarXiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e941ea99
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1135,9 +1135,6 @@ static int vi_common_hw_init(void *handle)
	/* enable the doorbell aperture */
	vi_enable_doorbell_aperture(adev, true);

	if (amdgpu_sriov_vf(adev))
		xgpu_vi_mailbox_put_irq(adev);

	return 0;
}

@@ -1148,6 +1145,9 @@ static int vi_common_hw_fini(void *handle)
	/* enable the doorbell aperture */
	vi_enable_doorbell_aperture(adev, false);

	if (amdgpu_sriov_vf(adev))
		xgpu_vi_mailbox_put_irq(adev);

	return 0;
}