提交 02124a03 编写于 作者: A Alex Deucher

drm/amdgpu/dce6: fix off by one in interrupt setup

Reviewed-by: NTom St Denis <tom.stdenis@amd.com>
Reported-by: NChristian Inci <chris.pcguy.inci@gmail.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 af1f85dd
...@@ -185,7 +185,7 @@ static void dce_v6_0_pageflip_interrupt_init(struct amdgpu_device *adev) ...@@ -185,7 +185,7 @@ static void dce_v6_0_pageflip_interrupt_init(struct amdgpu_device *adev)
unsigned i; unsigned i;
/* Enable pflip interrupts */ /* Enable pflip interrupts */
for (i = 0; i <= adev->mode_info.num_crtc; i++) for (i = 0; i < adev->mode_info.num_crtc; i++)
amdgpu_irq_get(adev, &adev->pageflip_irq, i); amdgpu_irq_get(adev, &adev->pageflip_irq, i);
} }
...@@ -194,7 +194,7 @@ static void dce_v6_0_pageflip_interrupt_fini(struct amdgpu_device *adev) ...@@ -194,7 +194,7 @@ static void dce_v6_0_pageflip_interrupt_fini(struct amdgpu_device *adev)
unsigned i; unsigned i;
/* Disable pflip interrupts */ /* Disable pflip interrupts */
for (i = 0; i <= adev->mode_info.num_crtc; i++) for (i = 0; i < adev->mode_info.num_crtc; i++)
amdgpu_irq_put(adev, &adev->pageflip_irq, i); amdgpu_irq_put(adev, &adev->pageflip_irq, i);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册