diff options
| author | Xiangliang Yu <[email protected]> | 2017-01-18 04:50:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-01-27 16:13:40 +0000 |
| commit | 63d24f8846b0095cbbd94746b6fc8a6acbda8f5e (patch) | |
| tree | b139ff2b7dc3e248042a72443814c4acbf970dca /drivers/gpu/drm/amd/amdgpu/vi.c | |
| parent | drm/amdgpu: fix reboot failure issue for virtualization (diff) | |
| download | kernel-63d24f8846b0095cbbd94746b6fc8a6acbda8f5e.tar.gz kernel-63d24f8846b0095cbbd94746b6fc8a6acbda8f5e.zip | |
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 <[email protected]>
Reviewed-by: Monk Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 16202444040b..4922fff08c3c 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c @@ -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; } |
