aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-01-21 05:08:58 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-03-08 11:01:40 -0500
commitb6bae58d8b6c21357198255cdb42a3929e7f7357 (patch)
tree484696365f31e2017ab01dadac948aa542199de2 /drivers/gpu/drm/amd/amdgpu
parent777e3cbc791f131806d9bf24b3325637c7fc228d (diff)
drm/amdgpu: Switch to drm_vblank_on/off (v2)
Equivalent change to the radeon driver. Note that with radeon this caught a bug in the dri3 DDX implementation, which asked for vblank interrupts when the pipe is off. That bug needs to be fixed before we can merge this patch (if amdgpu is affected too). Michel discovered this one. v2: agd: switch dce8 as well. Acked-by: Michel Dänzer <michel.daenzer@amd.com> Cc: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v10_0.c4
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v11_0.c4
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v8_0.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
index e3ff809a0cae..b8cb411918ab 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
@@ -2700,13 +2700,13 @@ static void dce_v10_0_crtc_dpms(struct drm_crtc *crtc, int mode)
2700 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); 2700 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id);
2701 amdgpu_irq_update(adev, &adev->crtc_irq, type); 2701 amdgpu_irq_update(adev, &adev->crtc_irq, type);
2702 amdgpu_irq_update(adev, &adev->pageflip_irq, type); 2702 amdgpu_irq_update(adev, &adev->pageflip_irq, type);
2703 drm_vblank_post_modeset(dev, amdgpu_crtc->crtc_id); 2703 drm_vblank_on(dev, amdgpu_crtc->crtc_id);
2704 dce_v10_0_crtc_load_lut(crtc); 2704 dce_v10_0_crtc_load_lut(crtc);
2705 break; 2705 break;
2706 case DRM_MODE_DPMS_STANDBY: 2706 case DRM_MODE_DPMS_STANDBY:
2707 case DRM_MODE_DPMS_SUSPEND: 2707 case DRM_MODE_DPMS_SUSPEND:
2708 case DRM_MODE_DPMS_OFF: 2708 case DRM_MODE_DPMS_OFF:
2709 drm_vblank_pre_modeset(dev, amdgpu_crtc->crtc_id); 2709 drm_vblank_off(dev, amdgpu_crtc->crtc_id);
2710 if (amdgpu_crtc->enabled) { 2710 if (amdgpu_crtc->enabled) {
2711 dce_v10_0_vga_enable(crtc, true); 2711 dce_v10_0_vga_enable(crtc, true);
2712 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE); 2712 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE);
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index 6b6c9b6879ae..6e8d74da183f 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -2691,13 +2691,13 @@ static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode)
2691 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); 2691 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id);
2692 amdgpu_irq_update(adev, &adev->crtc_irq, type); 2692 amdgpu_irq_update(adev, &adev->crtc_irq, type);
2693 amdgpu_irq_update(adev, &adev->pageflip_irq, type); 2693 amdgpu_irq_update(adev, &adev->pageflip_irq, type);
2694 drm_vblank_post_modeset(dev, amdgpu_crtc->crtc_id); 2694 drm_vblank_on(dev, amdgpu_crtc->crtc_id);
2695 dce_v11_0_crtc_load_lut(crtc); 2695 dce_v11_0_crtc_load_lut(crtc);
2696 break; 2696 break;
2697 case DRM_MODE_DPMS_STANDBY: 2697 case DRM_MODE_DPMS_STANDBY:
2698 case DRM_MODE_DPMS_SUSPEND: 2698 case DRM_MODE_DPMS_SUSPEND:
2699 case DRM_MODE_DPMS_OFF: 2699 case DRM_MODE_DPMS_OFF:
2700 drm_vblank_pre_modeset(dev, amdgpu_crtc->crtc_id); 2700 drm_vblank_off(dev, amdgpu_crtc->crtc_id);
2701 if (amdgpu_crtc->enabled) { 2701 if (amdgpu_crtc->enabled) {
2702 dce_v11_0_vga_enable(crtc, true); 2702 dce_v11_0_vga_enable(crtc, true);
2703 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE); 2703 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE);
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
index 56bea36a6b18..b059853d93bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
@@ -2612,13 +2612,13 @@ static void dce_v8_0_crtc_dpms(struct drm_crtc *crtc, int mode)
2612 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); 2612 type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id);
2613 amdgpu_irq_update(adev, &adev->crtc_irq, type); 2613 amdgpu_irq_update(adev, &adev->crtc_irq, type);
2614 amdgpu_irq_update(adev, &adev->pageflip_irq, type); 2614 amdgpu_irq_update(adev, &adev->pageflip_irq, type);
2615 drm_vblank_post_modeset(dev, amdgpu_crtc->crtc_id); 2615 drm_vblank_on(dev, amdgpu_crtc->crtc_id);
2616 dce_v8_0_crtc_load_lut(crtc); 2616 dce_v8_0_crtc_load_lut(crtc);
2617 break; 2617 break;
2618 case DRM_MODE_DPMS_STANDBY: 2618 case DRM_MODE_DPMS_STANDBY:
2619 case DRM_MODE_DPMS_SUSPEND: 2619 case DRM_MODE_DPMS_SUSPEND:
2620 case DRM_MODE_DPMS_OFF: 2620 case DRM_MODE_DPMS_OFF:
2621 drm_vblank_pre_modeset(dev, amdgpu_crtc->crtc_id); 2621 drm_vblank_off(dev, amdgpu_crtc->crtc_id);
2622 if (amdgpu_crtc->enabled) { 2622 if (amdgpu_crtc->enabled) {
2623 dce_v8_0_vga_enable(crtc, true); 2623 dce_v8_0_vga_enable(crtc, true);
2624 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE); 2624 amdgpu_atombios_crtc_blank(crtc, ATOM_ENABLE);