projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6baa07
)
drm/amdgpu: Need to disable msix when unloading driver
author
Emily Deng
<Emily.Deng@amd.com>
Thu, 7 Nov 2019 02:26:43 +0000
(10:26 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 7 Nov 2019 23:08:07 +0000
(18:08 -0500)
For driver reload test, it will report "can't enable
MSI (MSI-X already enabled)".
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
index
6f3b03f
..
30d540d
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
@@
-311,7
+311,7
@@
void amdgpu_irq_fini(struct amdgpu_device *adev)
drm_irq_uninstall(adev->ddev);
adev->irq.installed = false;
if (adev->irq.msi_enabled)
- pci_
disable_msi
(adev->pdev);
+ pci_
free_irq_vectors
(adev->pdev);
if (!amdgpu_device_has_dc_support(adev))
flush_work(&adev->hotplug_work);
}