aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2009-07-20 01:48:04 -0400
committerDave Airlie <airlied@redhat.com>2009-08-04 00:02:31 -0400
commit8a4c47f346cc7a12d0897c05eb3cc1add26b487f (patch)
tree3beb08565466a2aa5649debd9dad411388afa53a /drivers/gpu
parent5c61259e6c7290082108e93815f7f72f27da14f4 (diff)
drm: Remove the unused prefix in DRM_DEBUG_KMS/DRIVER/MODE
We will have to add a prefix when using the macro defintion of DRM_DEBUG_KMS /DRM_DEBUG_DRIVER/MODE. It is not convenient. We should use the DRM_NAME as default prefix. So remove the prefix in the macro definition of DRM_DEBUG_KMS/DRIVER/MODE. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_modes.c8
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c35
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c10
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c35
4 files changed, 37 insertions, 51 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index fd489d76fbbc..5eca2d5c5f23 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -40,7 +40,6 @@
40#include "drm.h" 40#include "drm.h"
41#include "drm_crtc.h" 41#include "drm_crtc.h"
42 42
43#define DRM_MODESET_DEBUG "drm_mode"
44/** 43/**
45 * drm_mode_debug_printmodeline - debug print a mode 44 * drm_mode_debug_printmodeline - debug print a mode
46 * @dev: DRM device 45 * @dev: DRM device
@@ -53,8 +52,8 @@
53 */ 52 */
54void drm_mode_debug_printmodeline(struct drm_display_mode *mode) 53void drm_mode_debug_printmodeline(struct drm_display_mode *mode)
55{ 54{
56 DRM_DEBUG_MODE(DRM_MODESET_DEBUG, 55 DRM_DEBUG_MODE("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d "
57 "Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x\n", 56 "0x%x 0x%x\n",
58 mode->base.id, mode->name, mode->vrefresh, mode->clock, 57 mode->base.id, mode->name, mode->vrefresh, mode->clock,
59 mode->hdisplay, mode->hsync_start, 58 mode->hdisplay, mode->hsync_start,
60 mode->hsync_end, mode->htotal, 59 mode->hsync_end, mode->htotal,
@@ -819,8 +818,7 @@ void drm_mode_prune_invalid(struct drm_device *dev,
819 list_del(&mode->head); 818 list_del(&mode->head);
820 if (verbose) { 819 if (verbose) {
821 drm_mode_debug_printmodeline(mode); 820 drm_mode_debug_printmodeline(mode);
822 DRM_DEBUG_MODE(DRM_MODESET_DEBUG, 821 DRM_DEBUG_MODE("Not using %s mode %d\n",
823 "Not using %s mode %d\n",
824 mode->name, mode->status); 822 mode->name, mode->status);
825 } 823 }
826 drm_mode_destroy(dev, mode); 824 drm_mode_destroy(dev, mode);
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 8c4783180bf6..14625e146f18 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -33,8 +33,6 @@
33#include "i915_drm.h" 33#include "i915_drm.h"
34#include "i915_drv.h" 34#include "i915_drv.h"
35 35
36#define I915_DRV "i915_drv"
37
38/* Really want an OS-independent resettable timer. Would like to have 36/* Really want an OS-independent resettable timer. Would like to have
39 * this loop run for (eg) 3 sec, but have the timer reset every time 37 * this loop run for (eg) 3 sec, but have the timer reset every time
40 * the head pointer changes, so that EBUSY only happens if the ring 38 * the head pointer changes, so that EBUSY only happens if the ring
@@ -101,7 +99,7 @@ static int i915_init_phys_hws(struct drm_device *dev)
101 memset(dev_priv->hw_status_page, 0, PAGE_SIZE); 99 memset(dev_priv->hw_status_page, 0, PAGE_SIZE);
102 100
103 I915_WRITE(HWS_PGA, dev_priv->dma_status_page); 101 I915_WRITE(HWS_PGA, dev_priv->dma_status_page);
104 DRM_DEBUG_DRIVER(I915_DRV, "Enabled hardware status page\n"); 102 DRM_DEBUG_DRIVER("Enabled hardware status page\n");
105 return 0; 103 return 0;
106} 104}
107 105
@@ -187,8 +185,7 @@ static int i915_initialize(struct drm_device * dev, drm_i915_init_t * init)
187 master_priv->sarea_priv = (drm_i915_sarea_t *) 185 master_priv->sarea_priv = (drm_i915_sarea_t *)
188 ((u8 *)master_priv->sarea->handle + init->sarea_priv_offset); 186 ((u8 *)master_priv->sarea->handle + init->sarea_priv_offset);
189 } else { 187 } else {
190 DRM_DEBUG_DRIVER(I915_DRV, 188 DRM_DEBUG_DRIVER("sarea not found assuming DRI2 userspace\n");
191 "sarea not found assuming DRI2 userspace\n");
192 } 189 }
193 190
194 if (init->ring_size != 0) { 191 if (init->ring_size != 0) {
@@ -238,7 +235,7 @@ static int i915_dma_resume(struct drm_device * dev)
238{ 235{
239 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 236 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
240 237
241 DRM_DEBUG_DRIVER(I915_DRV, "%s\n", __func__); 238 DRM_DEBUG_DRIVER("%s\n", __func__);
242 239
243 if (dev_priv->ring.map.handle == NULL) { 240 if (dev_priv->ring.map.handle == NULL) {
244 DRM_ERROR("can not ioremap virtual address for" 241 DRM_ERROR("can not ioremap virtual address for"
@@ -251,14 +248,14 @@ static int i915_dma_resume(struct drm_device * dev)
251 DRM_ERROR("Can not find hardware status page\n"); 248 DRM_ERROR("Can not find hardware status page\n");
252 return -EINVAL; 249 return -EINVAL;
253 } 250 }
254 DRM_DEBUG_DRIVER(I915_DRV, "hw status page @ %p\n", 251 DRM_DEBUG_DRIVER("hw status page @ %p\n",
255 dev_priv->hw_status_page); 252 dev_priv->hw_status_page);
256 253
257 if (dev_priv->status_gfx_addr != 0) 254 if (dev_priv->status_gfx_addr != 0)
258 I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr); 255 I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr);
259 else 256 else
260 I915_WRITE(HWS_PGA, dev_priv->dma_status_page); 257 I915_WRITE(HWS_PGA, dev_priv->dma_status_page);
261 DRM_DEBUG_DRIVER(I915_DRV, "Enabled hardware status page\n"); 258 DRM_DEBUG_DRIVER("Enabled hardware status page\n");
262 259
263 return 0; 260 return 0;
264} 261}
@@ -552,7 +549,7 @@ static int i915_dispatch_flip(struct drm_device * dev)
552 if (!master_priv->sarea_priv) 549 if (!master_priv->sarea_priv)
553 return -EINVAL; 550 return -EINVAL;
554 551
555 DRM_DEBUG_DRIVER(I915_DRV, "%s: page=%d pfCurrentPage=%d\n", 552 DRM_DEBUG_DRIVER("%s: page=%d pfCurrentPage=%d\n",
556 __func__, 553 __func__,
557 dev_priv->current_page, 554 dev_priv->current_page,
558 master_priv->sarea_priv->pf_current_page); 555 master_priv->sarea_priv->pf_current_page);
@@ -633,8 +630,7 @@ static int i915_batchbuffer(struct drm_device *dev, void *data,
633 return -EINVAL; 630 return -EINVAL;
634 } 631 }
635 632
636 DRM_DEBUG_DRIVER(I915_DRV, 633 DRM_DEBUG_DRIVER("i915 batchbuffer, start %x used %d cliprects %d\n",
637 "i915 batchbuffer, start %x used %d cliprects %d\n",
638 batch->start, batch->used, batch->num_cliprects); 634 batch->start, batch->used, batch->num_cliprects);
639 635
640 RING_LOCK_TEST_WITH_RETURN(dev, file_priv); 636 RING_LOCK_TEST_WITH_RETURN(dev, file_priv);
@@ -681,8 +677,7 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data,
681 void *batch_data; 677 void *batch_data;
682 int ret; 678 int ret;
683 679
684 DRM_DEBUG_DRIVER(I915_DRV, 680 DRM_DEBUG_DRIVER("i915 cmdbuffer, buf %p sz %d cliprects %d\n",
685 "i915 cmdbuffer, buf %p sz %d cliprects %d\n",
686 cmdbuf->buf, cmdbuf->sz, cmdbuf->num_cliprects); 681 cmdbuf->buf, cmdbuf->sz, cmdbuf->num_cliprects);
687 682
688 RING_LOCK_TEST_WITH_RETURN(dev, file_priv); 683 RING_LOCK_TEST_WITH_RETURN(dev, file_priv);
@@ -735,7 +730,7 @@ static int i915_flip_bufs(struct drm_device *dev, void *data,
735{ 730{
736 int ret; 731 int ret;
737 732
738 DRM_DEBUG_DRIVER(I915_DRV, "%s\n", __func__); 733 DRM_DEBUG_DRIVER("%s\n", __func__);
739 734
740 RING_LOCK_TEST_WITH_RETURN(dev, file_priv); 735 RING_LOCK_TEST_WITH_RETURN(dev, file_priv);
741 736
@@ -778,7 +773,7 @@ static int i915_getparam(struct drm_device *dev, void *data,
778 value = dev_priv->num_fence_regs - dev_priv->fence_reg_start; 773 value = dev_priv->num_fence_regs - dev_priv->fence_reg_start;
779 break; 774 break;
780 default: 775 default:
781 DRM_DEBUG_DRIVER(I915_DRV, "Unknown parameter %d\n", 776 DRM_DEBUG_DRIVER("Unknown parameter %d\n",
782 param->param); 777 param->param);
783 return -EINVAL; 778 return -EINVAL;
784 } 779 }
@@ -819,7 +814,7 @@ static int i915_setparam(struct drm_device *dev, void *data,
819 dev_priv->fence_reg_start = param->value; 814 dev_priv->fence_reg_start = param->value;
820 break; 815 break;
821 default: 816 default:
822 DRM_DEBUG_DRIVER(I915_DRV, "unknown parameter %d\n", 817 DRM_DEBUG_DRIVER("unknown parameter %d\n",
823 param->param); 818 param->param);
824 return -EINVAL; 819 return -EINVAL;
825 } 820 }
@@ -846,7 +841,7 @@ static int i915_set_status_page(struct drm_device *dev, void *data,
846 return 0; 841 return 0;
847 } 842 }
848 843
849 DRM_DEBUG("set status page addr 0x%08x\n", (u32)hws->addr); 844 DRM_DEBUG_DRIVER("set status page addr 0x%08x\n", (u32)hws->addr);
850 845
851 dev_priv->status_gfx_addr = hws->addr & (0x1ffff<<12); 846 dev_priv->status_gfx_addr = hws->addr & (0x1ffff<<12);
852 847
@@ -868,9 +863,9 @@ static int i915_set_status_page(struct drm_device *dev, void *data,
868 863
869 memset(dev_priv->hw_status_page, 0, PAGE_SIZE); 864 memset(dev_priv->hw_status_page, 0, PAGE_SIZE);
870 I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr); 865 I915_WRITE(HWS_PGA, dev_priv->status_gfx_addr);
871 DRM_DEBUG_DRIVER(I915_DRV, "load hws HWS_PGA with gfx mem 0x%x\n", 866 DRM_DEBUG_DRIVER("load hws HWS_PGA with gfx mem 0x%x\n",
872 dev_priv->status_gfx_addr); 867 dev_priv->status_gfx_addr);
873 DRM_DEBUG_DRIVER(I915_DRV, "load hws at %p\n", 868 DRM_DEBUG_DRIVER("load hws at %p\n",
874 dev_priv->hw_status_page); 869 dev_priv->hw_status_page);
875 return 0; 870 return 0;
876} 871}
@@ -1310,7 +1305,7 @@ int i915_driver_open(struct drm_device *dev, struct drm_file *file_priv)
1310{ 1305{
1311 struct drm_i915_file_private *i915_file_priv; 1306 struct drm_i915_file_private *i915_file_priv;
1312 1307
1313 DRM_DEBUG_DRIVER(I915_DRV, "\n"); 1308 DRM_DEBUG_DRIVER("\n");
1314 i915_file_priv = (struct drm_i915_file_private *) 1309 i915_file_priv = (struct drm_i915_file_private *)
1315 kmalloc(sizeof(*i915_file_priv), GFP_KERNEL); 1310 kmalloc(sizeof(*i915_file_priv), GFP_KERNEL);
1316 1311
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 9ab38efffecf..b59c65d19d81 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -38,8 +38,6 @@
38#include "i915_drv.h" 38#include "i915_drv.h"
39#include <linux/acpi.h> 39#include <linux/acpi.h>
40 40
41#define I915_LVDS "i915_lvds"
42
43/* 41/*
44 * the following four scaling options are defined. 42 * the following four scaling options are defined.
45 * #define DRM_MODE_SCALE_NON_GPU 0 43 * #define DRM_MODE_SCALE_NON_GPU 0
@@ -673,8 +671,7 @@ static int intel_lvds_set_property(struct drm_connector *connector,
673 struct drm_crtc *crtc = connector->encoder->crtc; 671 struct drm_crtc *crtc = connector->encoder->crtc;
674 struct intel_lvds_priv *lvds_priv = intel_output->dev_priv; 672 struct intel_lvds_priv *lvds_priv = intel_output->dev_priv;
675 if (value == DRM_MODE_SCALE_NON_GPU) { 673 if (value == DRM_MODE_SCALE_NON_GPU) {
676 DRM_DEBUG_KMS(I915_LVDS, 674 DRM_DEBUG_KMS("non_GPU property is unsupported\n");
677 "non_GPU property is unsupported\n");
678 return 0; 675 return 0;
679 } 676 }
680 if (lvds_priv->fitting_mode == value) { 677 if (lvds_priv->fitting_mode == value) {
@@ -731,8 +728,7 @@ static const struct drm_encoder_funcs intel_lvds_enc_funcs = {
731 728
732static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id) 729static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id)
733{ 730{
734 DRM_DEBUG_KMS(I915_LVDS, 731 DRM_DEBUG_KMS("Skipping LVDS initialization for %s\n", id->ident);
735 "Skipping LVDS initialization for %s\n", id->ident);
736 return 1; 732 return 1;
737} 733}
738 734
@@ -1013,7 +1009,7 @@ out:
1013 return; 1009 return;
1014 1010
1015failed: 1011failed:
1016 DRM_DEBUG_KMS(I915_LVDS, "No LVDS modes found, disabling.\n"); 1012 DRM_DEBUG_KMS("No LVDS modes found, disabling.\n");
1017 if (intel_output->ddc_bus) 1013 if (intel_output->ddc_bus)
1018 intel_i2c_destroy(intel_output->ddc_bus); 1014 intel_i2c_destroy(intel_output->ddc_bus);
1019 drm_connector_cleanup(connector); 1015 drm_connector_cleanup(connector);
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 4f0c30948bc4..abef69c8a49a 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -36,7 +36,6 @@
36#include "intel_sdvo_regs.h" 36#include "intel_sdvo_regs.h"
37 37
38#undef SDVO_DEBUG 38#undef SDVO_DEBUG
39#define I915_SDVO "i915_sdvo"
40struct intel_sdvo_priv { 39struct intel_sdvo_priv {
41 u8 slave_addr; 40 u8 slave_addr;
42 41
@@ -178,7 +177,7 @@ static bool intel_sdvo_read_byte(struct intel_output *intel_output, u8 addr,
178 return true; 177 return true;
179 } 178 }
180 179
181 DRM_DEBUG("i2c transfer returned %d\n", ret); 180 DRM_DEBUG_KMS("i2c transfer returned %d\n", ret);
182 return false; 181 return false;
183} 182}
184 183
@@ -288,7 +287,7 @@ static void intel_sdvo_debug_write(struct intel_output *intel_output, u8 cmd,
288 struct intel_sdvo_priv *sdvo_priv = intel_output->dev_priv; 287 struct intel_sdvo_priv *sdvo_priv = intel_output->dev_priv;
289 int i; 288 int i;
290 289
291 DRM_DEBUG_KMS(I915_SDVO, "%s: W: %02X ", 290 DRM_DEBUG_KMS("%s: W: %02X ",
292 SDVO_NAME(sdvo_priv), cmd); 291 SDVO_NAME(sdvo_priv), cmd);
293 for (i = 0; i < args_len; i++) 292 for (i = 0; i < args_len; i++)
294 DRM_LOG_KMS("%02X ", ((u8 *)args)[i]); 293 DRM_LOG_KMS("%02X ", ((u8 *)args)[i]);
@@ -341,7 +340,7 @@ static void intel_sdvo_debug_response(struct intel_output *intel_output,
341 struct intel_sdvo_priv *sdvo_priv = intel_output->dev_priv; 340 struct intel_sdvo_priv *sdvo_priv = intel_output->dev_priv;
342 int i; 341 int i;
343 342
344 DRM_DEBUG_KMS(I915_SDVO, "%s: R: ", SDVO_NAME(sdvo_priv)); 343 DRM_DEBUG_KMS("%s: R: ", SDVO_NAME(sdvo_priv));
345 for (i = 0; i < response_len; i++) 344 for (i = 0; i < response_len; i++)
346 DRM_LOG_KMS("%02X ", ((u8 *)response)[i]); 345 DRM_LOG_KMS("%02X ", ((u8 *)response)[i]);
347 for (; i < 8; i++) 346 for (; i < 8; i++)
@@ -658,10 +657,10 @@ static int intel_sdvo_get_clock_rate_mult(struct intel_output *intel_output)
658 status = intel_sdvo_read_response(intel_output, &response, 1); 657 status = intel_sdvo_read_response(intel_output, &response, 1);
659 658
660 if (status != SDVO_CMD_STATUS_SUCCESS) { 659 if (status != SDVO_CMD_STATUS_SUCCESS) {
661 DRM_DEBUG("Couldn't get SDVO clock rate multiplier\n"); 660 DRM_DEBUG_KMS("Couldn't get SDVO clock rate multiplier\n");
662 return SDVO_CLOCK_RATE_MULT_1X; 661 return SDVO_CLOCK_RATE_MULT_1X;
663 } else { 662 } else {
664 DRM_DEBUG("Current clock rate multiplier: %d\n", response); 663 DRM_DEBUG_KMS("Current clock rate multiplier: %d\n", response);
665 } 664 }
666 665
667 return response; 666 return response;
@@ -942,14 +941,14 @@ static void intel_sdvo_set_tv_format(struct intel_output *output)
942 format = &sdvo_priv->tv_format; 941 format = &sdvo_priv->tv_format;
943 memset(&unset, 0, sizeof(unset)); 942 memset(&unset, 0, sizeof(unset));
944 if (memcmp(format, &unset, sizeof(*format))) { 943 if (memcmp(format, &unset, sizeof(*format))) {
945 DRM_DEBUG("%s: Choosing default TV format of NTSC-M\n", 944 DRM_DEBUG_KMS("%s: Choosing default TV format of NTSC-M\n",
946 SDVO_NAME(sdvo_priv)); 945 SDVO_NAME(sdvo_priv));
947 format->ntsc_m = 1; 946 format->ntsc_m = 1;
948 intel_sdvo_write_cmd(output, SDVO_CMD_SET_TV_FORMAT, format, 947 intel_sdvo_write_cmd(output, SDVO_CMD_SET_TV_FORMAT, format,
949 sizeof(*format)); 948 sizeof(*format));
950 status = intel_sdvo_read_response(output, NULL, 0); 949 status = intel_sdvo_read_response(output, NULL, 0);
951 if (status != SDVO_CMD_STATUS_SUCCESS) 950 if (status != SDVO_CMD_STATUS_SUCCESS)
952 DRM_DEBUG("%s: Failed to set TV format\n", 951 DRM_DEBUG_KMS("%s: Failed to set TV format\n",
953 SDVO_NAME(sdvo_priv)); 952 SDVO_NAME(sdvo_priv));
954 } 953 }
955} 954}
@@ -1220,8 +1219,8 @@ static void intel_sdvo_dpms(struct drm_encoder *encoder, int mode)
1220 * a given it the status is a success, we succeeded. 1219 * a given it the status is a success, we succeeded.
1221 */ 1220 */
1222 if (status == SDVO_CMD_STATUS_SUCCESS && !input1) { 1221 if (status == SDVO_CMD_STATUS_SUCCESS && !input1) {
1223 DRM_DEBUG("First %s output reported failure to sync\n", 1222 DRM_DEBUG_KMS("First %s output reported failure to "
1224 SDVO_NAME(sdvo_priv)); 1223 "sync\n", SDVO_NAME(sdvo_priv));
1225 } 1224 }
1226 1225
1227 if (0) 1226 if (0)
@@ -1316,8 +1315,8 @@ static void intel_sdvo_restore(struct drm_connector *connector)
1316 intel_wait_for_vblank(dev); 1315 intel_wait_for_vblank(dev);
1317 status = intel_sdvo_get_trained_inputs(intel_output, &input1, &input2); 1316 status = intel_sdvo_get_trained_inputs(intel_output, &input1, &input2);
1318 if (status == SDVO_CMD_STATUS_SUCCESS && !input1) 1317 if (status == SDVO_CMD_STATUS_SUCCESS && !input1)
1319 DRM_DEBUG("First %s output reported failure to sync\n", 1318 DRM_DEBUG_KMS("First %s output reported failure to "
1320 SDVO_NAME(sdvo_priv)); 1319 "sync\n", SDVO_NAME(sdvo_priv));
1321 } 1320 }
1322 1321
1323 intel_sdvo_set_active_outputs(intel_output, sdvo_priv->save_active_outputs); 1322 intel_sdvo_set_active_outputs(intel_output, sdvo_priv->save_active_outputs);
@@ -1395,7 +1394,7 @@ int intel_sdvo_supports_hotplug(struct drm_connector *connector)
1395 u8 response[2]; 1394 u8 response[2];
1396 u8 status; 1395 u8 status;
1397 struct intel_output *intel_output; 1396 struct intel_output *intel_output;
1398 DRM_DEBUG("\n"); 1397 DRM_DEBUG_KMS("\n");
1399 1398
1400 if (!connector) 1399 if (!connector)
1401 return 0; 1400 return 0;
@@ -1460,7 +1459,7 @@ static enum drm_connector_status intel_sdvo_detect(struct drm_connector *connect
1460 intel_sdvo_write_cmd(intel_output, SDVO_CMD_GET_ATTACHED_DISPLAYS, NULL, 0); 1459 intel_sdvo_write_cmd(intel_output, SDVO_CMD_GET_ATTACHED_DISPLAYS, NULL, 0);
1461 status = intel_sdvo_read_response(intel_output, &response, 2); 1460 status = intel_sdvo_read_response(intel_output, &response, 2);
1462 1461
1463 DRM_DEBUG("SDVO response %d %d\n", response[0], response[1]); 1462 DRM_DEBUG_KMS("SDVO response %d %d\n", response[0], response[1]);
1464 1463
1465 if (status != SDVO_CMD_STATUS_SUCCESS) 1464 if (status != SDVO_CMD_STATUS_SUCCESS)
1466 return connector_status_unknown; 1465 return connector_status_unknown;
@@ -1905,8 +1904,7 @@ bool intel_sdvo_init(struct drm_device *dev, int output_device)
1905 /* Read the regs to test if we can talk to the device */ 1904 /* Read the regs to test if we can talk to the device */
1906 for (i = 0; i < 0x40; i++) { 1905 for (i = 0; i < 0x40; i++) {
1907 if (!intel_sdvo_read_byte(intel_output, i, &ch[i])) { 1906 if (!intel_sdvo_read_byte(intel_output, i, &ch[i])) {
1908 DRM_DEBUG_KMS(I915_SDVO, 1907 DRM_DEBUG_KMS("No SDVO device found on SDVO%c\n",
1909 "No SDVO device found on SDVO%c\n",
1910 output_device == SDVOB ? 'B' : 'C'); 1908 output_device == SDVOB ? 'B' : 'C');
1911 goto err_i2c; 1909 goto err_i2c;
1912 } 1910 }
@@ -1989,8 +1987,7 @@ bool intel_sdvo_init(struct drm_device *dev, int output_device)
1989 1987
1990 sdvo_priv->controlled_output = 0; 1988 sdvo_priv->controlled_output = 0;
1991 memcpy (bytes, &sdvo_priv->caps.output_flags, 2); 1989 memcpy (bytes, &sdvo_priv->caps.output_flags, 2);
1992 DRM_DEBUG_KMS(I915_SDVO, 1990 DRM_DEBUG_KMS("%s: Unknown SDVO output type (0x%02x%02x)\n",
1993 "%s: Unknown SDVO output type (0x%02x%02x)\n",
1994 SDVO_NAME(sdvo_priv), 1991 SDVO_NAME(sdvo_priv),
1995 bytes[0], bytes[1]); 1992 bytes[0], bytes[1]);
1996 encoder_type = DRM_MODE_ENCODER_NONE; 1993 encoder_type = DRM_MODE_ENCODER_NONE;
@@ -2022,7 +2019,7 @@ bool intel_sdvo_init(struct drm_device *dev, int output_device)
2022 &sdvo_priv->pixel_clock_max); 2019 &sdvo_priv->pixel_clock_max);
2023 2020
2024 2021
2025 DRM_DEBUG_KMS(I915_SDVO, "%s device VID/DID: %02X:%02X.%02X, " 2022 DRM_DEBUG_KMS("%s device VID/DID: %02X:%02X.%02X, "
2026 "clock range %dMHz - %dMHz, " 2023 "clock range %dMHz - %dMHz, "
2027 "input 1: %c, input 2: %c, " 2024 "input 1: %c, input 2: %c, "
2028 "output 1: %c, output 2: %c\n", 2025 "output 1: %c, output 2: %c\n",