diff options
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) | |||
1135 | /* enable the doorbell aperture */ | 1135 | /* enable the doorbell aperture */ |
1136 | vi_enable_doorbell_aperture(adev, true); | 1136 | vi_enable_doorbell_aperture(adev, true); |
1137 | 1137 | ||
1138 | if (amdgpu_sriov_vf(adev)) | ||
1139 | xgpu_vi_mailbox_put_irq(adev); | ||
1140 | |||
1141 | return 0; | 1138 | return 0; |
1142 | } | 1139 | } |
1143 | 1140 | ||
@@ -1148,6 +1145,9 @@ static int vi_common_hw_fini(void *handle) | |||
1148 | /* enable the doorbell aperture */ | 1145 | /* enable the doorbell aperture */ |
1149 | vi_enable_doorbell_aperture(adev, false); | 1146 | vi_enable_doorbell_aperture(adev, false); |
1150 | 1147 | ||
1148 | if (amdgpu_sriov_vf(adev)) | ||
1149 | xgpu_vi_mailbox_put_irq(adev); | ||
1150 | |||
1151 | return 0; | 1151 | return 0; |
1152 | } | 1152 | } |
1153 | 1153 | ||