mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
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: Xiangliang Yu <Xiangliang.Yu@amd.com> Reviewed-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e941ea997d
commit
63d24f8846
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user