projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e941ea9
)
drm/amdgpu/vi: fix mailbox irq mistake
author
Xiangliang Yu
<
[email protected]
>
Wed, 18 Jan 2017 04:50:14 +0000
(12:50 +0800)
committer
Alex Deucher
<
[email protected]
>
Fri, 27 Jan 2017 16:13:40 +0000
(11:13 -0500)
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]
>
drivers/gpu/drm/amd/amdgpu/vi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/vi.c
b/drivers/gpu/drm/amd/amdgpu/vi.c
index 16202444040b873bfd22c54321afb9e27976a5a2..4922fff08c3c7fab001c7b237dcdcc28d8b23ae9 100644
(file)
--- 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;
}