drm/amdgpu: Correct the irq numbers for virtual ctrc
Subsystems (2)
PATCH 1/1 drm/amdgpu: Correct the irq numbers for virtual ctrc
The irq number should be decided by num_crtc, and the num_crtc could change by parameter.
--- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -1
@@ -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; }
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[Public]
A spelling typo in subject.
s/ctrc/crtc
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Emily Deng
Sent: Tuesday, July 6, 2021 4:23 PM
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] drm/amdgpu: Correct the irq numbers for virtual ctrc
The irq number should be decided by num_crtc, and the num_crtc could change by parameter.
--- drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -2
@@ -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; } --
2.25.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cguchun.chen%40amd.com%7Ca4ebf76a046d421cf07c08d94057515e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637611566042100458%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kh2vwkTyod4ajvt03GB6%2F%2B4FYc%2BwZLCC%2FusgWuijPCU%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Thanks, corrected.
Best wishes
Emily Deng
Quoted 48 lines
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Tuesday, July 6, 2021 9:52 PM
To: Deng, Emily <[email protected]>; [email protected]
Cc: Deng, Emily <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: Correct the irq numbers for virtual ctrc[Public]
A spelling typo in subject.
s/ctrc/crtc
Regards,
Guchun-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Emily Deng
Sent: Tuesday, July 6, 2021 4:23 PM
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] drm/amdgpu: Correct the irq numbers for virtual ctrcThe irq number should be decided by
num_crtc, and thenum_crtccould change by parameter.Signed-off-by Emily Deng <[email protected]>---
drivers/gpu/drm/amd/amdgpu/dce_virtual.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1
-2@@ -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; } --2.25.1
Quoted 11 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.fre
edesktop.org%2Fmailman%2Flistinfo%2Famd- gfx&data=04%7C01%7Cguchun.chen%40amd.com%7Ca4ebf76a046d421cf 07c08d94057515e%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6 37611566042100458%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k h2vwkTyod4ajvt03GB6%2F%2B4FYc%2BwZLCC%2FusgWuijPCU%3D&reser ved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx