On 7/23/26 08:44, [email protected] wrote:
From: Leo Li <[email protected]>

This line was lost when cping from amd-staging-drm-next to drm-fixes.
So add it back.

Cc: [email protected]
Fixes: 8382cd234981 ("drm/amd/display: consolidate DCN vblank/flip handling onto 
vupdate_no_lock")
Reported-by: Lu Yao <[email protected]>
Signed-off-by: Leo Li <[email protected]>
Reviewed-by: Mario Limonciello (AMD) <[email protected]>
---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 9c564cd5edeea..eaf19ec843e87 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3324,7 +3324,8 @@ static void dm_gpureset_toggle_interrupts(struct 
amdgpu_device *adev,
                acrtc = get_crtc_by_otg_inst(
                                adev, state->stream_status[i].primary_otg_inst);
- if (acrtc && state->stream_status[i].plane_count != 0) {
+               if (acrtc && state->stream_status[i].plane_count != 0 &&
+                   amdgpu_ip_version(adev, DCE_HWIP, 0) == 0) {
                        irq_source = IRQ_TYPE_PFLIP + acrtc->otg_inst;
                        rc = dc_interrupt_set(adev->dm.dc, irq_source, enable) 
? 0 : -EBUSY;
                        if (rc)

Reply via email to