OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834b824
)
drm/amdgpu: Correct the irq numbers for virtual crtc
author
Emily Deng
<Emily.Deng@amd.com>
Tue, 12 May 2020 10:27:21 +0000
(18:27 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 13 Jul 2021 15:48:12 +0000
(11:48 -0400)
The irq number should be decided by num_crtc, and the num_crtc could change
by parameter.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
index
3332442
..
7e0d8c0
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
+++ b/
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
@@
-766,7
+766,7
@@
static const struct amdgpu_irq_src_funcs dce_virtual_crtc_irq_funcs = {
static void dce_virtual_set_irq_funcs(struct amdgpu_device *adev)
{
- adev->crtc_irq.num_types =
AMDGPU_CRTC_IRQ_VBLANK6 + 1
;
+ adev->crtc_irq.num_types =
adev->mode_info.num_crtc
;
adev->crtc_irq.funcs = &dce_virtual_crtc_irq_funcs;
}