diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index aaca8d663f2c..08387dfd98a7 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |||
@@ -3237,19 +3237,25 @@ static int dce_v8_0_crtc_irq(struct amdgpu_device *adev, | |||
3237 | 3237 | ||
3238 | switch (entry->src_data) { | 3238 | switch (entry->src_data) { |
3239 | case 0: /* vblank */ | 3239 | case 0: /* vblank */ |
3240 | if (disp_int & interrupt_status_offsets[crtc].vblank) { | 3240 | if (disp_int & interrupt_status_offsets[crtc].vblank) |
3241 | WREG32(mmLB_VBLANK_STATUS + crtc_offsets[crtc], LB_VBLANK_STATUS__VBLANK_ACK_MASK); | 3241 | WREG32(mmLB_VBLANK_STATUS + crtc_offsets[crtc], LB_VBLANK_STATUS__VBLANK_ACK_MASK); |
3242 | if (amdgpu_irq_enabled(adev, source, irq_type)) { | 3242 | else |
3243 | drm_handle_vblank(adev->ddev, crtc); | 3243 | DRM_DEBUG("IH: IH event w/o asserted irq bit?\n"); |
3244 | } | 3244 | |
3245 | DRM_DEBUG("IH: D%d vblank\n", crtc + 1); | 3245 | if (amdgpu_irq_enabled(adev, source, irq_type)) { |
3246 | drm_handle_vblank(adev->ddev, crtc); | ||
3246 | } | 3247 | } |
3248 | DRM_DEBUG("IH: D%d vblank\n", crtc + 1); | ||
3249 | |||
3247 | break; | 3250 | break; |
3248 | case 1: /* vline */ | 3251 | case 1: /* vline */ |
3249 | if (disp_int & interrupt_status_offsets[crtc].vline) { | 3252 | if (disp_int & interrupt_status_offsets[crtc].vline) |
3250 | WREG32(mmLB_VLINE_STATUS + crtc_offsets[crtc], LB_VLINE_STATUS__VLINE_ACK_MASK); | 3253 | WREG32(mmLB_VLINE_STATUS + crtc_offsets[crtc], LB_VLINE_STATUS__VLINE_ACK_MASK); |
3251 | DRM_DEBUG("IH: D%d vline\n", crtc + 1); | 3254 | else |
3252 | } | 3255 | DRM_DEBUG("IH: IH event w/o asserted irq bit?\n"); |
3256 | |||
3257 | DRM_DEBUG("IH: D%d vline\n", crtc + 1); | ||
3258 | |||
3253 | break; | 3259 | break; |
3254 | default: | 3260 | default: |
3255 | DRM_DEBUG("Unhandled interrupt: %d %d\n", entry->src_id, entry->src_data); | 3261 | DRM_DEBUG("Unhandled interrupt: %d %d\n", entry->src_id, entry->src_data); |