drm/nv50: when debugging on, log which crtc we connect an encoder to
authorBen Skeggs <bskeggs@redhat.com>
Fri, 2 Jul 2010 03:47:38 +0000 (13:47 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Jul 2010 00:13:17 +0000 (10:13 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_dac.c
drivers/gpu/drm/nouveau/nv50_sor.c

index f5fd35a657c327e30f90dd9ce486ca0d834d0b3d..98d312623edab2d61e4660a6e28b446f38ddb236 100644 (file)
@@ -219,7 +219,8 @@ nv50_dac_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
        uint32_t mode_ctl = 0, mode_ctl2 = 0;
        int ret;
 
-       NV_DEBUG_KMS(dev, "or %d\n", nv_encoder->or);
+       NV_DEBUG_KMS(dev, "or %d type %d crtc %d\n",
+                    nv_encoder->or, nv_encoder->dcb->type, crtc->index);
 
        nv50_dac_dpms(encoder, DRM_MODE_DPMS_ON);
 
index b259d63202eb06e39e157f65476286e1fcbc793a..03cb021bf29276fa6016780e6111a30badf92238 100644 (file)
@@ -205,7 +205,8 @@ nv50_sor_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
        uint32_t mode_ctl = 0;
        int ret;
 
-       NV_DEBUG_KMS(dev, "or %d\n", nv_encoder->or);
+       NV_DEBUG_KMS(dev, "or %d type %d -> crtc %d\n",
+                    nv_encoder->or, nv_encoder->dcb->type, crtc->index);
 
        nv50_sor_dpms(encoder, DRM_MODE_DPMS_ON);