diff options
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 24 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_crt.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 124 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp_i2c.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_fb.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_tv.c | 8 |
8 files changed, 99 insertions, 89 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 96cd256e60e6..cbd911837b08 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c | |||
@@ -159,7 +159,7 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv, | |||
159 | 159 | ||
160 | dev_priv->lfp_lvds_vbt_mode = panel_fixed_mode; | 160 | dev_priv->lfp_lvds_vbt_mode = panel_fixed_mode; |
161 | 161 | ||
162 | DRM_DEBUG("Found panel mode in BIOS VBT tables:\n"); | 162 | DRM_DEBUG_KMS("Found panel mode in BIOS VBT tables:\n"); |
163 | drm_mode_debug_printmodeline(panel_fixed_mode); | 163 | drm_mode_debug_printmodeline(panel_fixed_mode); |
164 | 164 | ||
165 | return; | 165 | return; |
@@ -250,13 +250,13 @@ parse_general_definitions(struct drm_i915_private *dev_priv, | |||
250 | u16 block_size = get_blocksize(general); | 250 | u16 block_size = get_blocksize(general); |
251 | if (block_size >= sizeof(*general)) { | 251 | if (block_size >= sizeof(*general)) { |
252 | int bus_pin = general->crt_ddc_gmbus_pin; | 252 | int bus_pin = general->crt_ddc_gmbus_pin; |
253 | DRM_DEBUG("crt_ddc_bus_pin: %d\n", bus_pin); | 253 | DRM_DEBUG_KMS("crt_ddc_bus_pin: %d\n", bus_pin); |
254 | if ((bus_pin >= 1) && (bus_pin <= 6)) { | 254 | if ((bus_pin >= 1) && (bus_pin <= 6)) { |
255 | dev_priv->crt_ddc_bus = | 255 | dev_priv->crt_ddc_bus = |
256 | crt_bus_map_table[bus_pin-1]; | 256 | crt_bus_map_table[bus_pin-1]; |
257 | } | 257 | } |
258 | } else { | 258 | } else { |
259 | DRM_DEBUG("BDB_GD too small (%d). Invalid.\n", | 259 | DRM_DEBUG_KMS("BDB_GD too small (%d). Invalid.\n", |
260 | block_size); | 260 | block_size); |
261 | } | 261 | } |
262 | } | 262 | } |
@@ -274,7 +274,7 @@ parse_sdvo_device_mapping(struct drm_i915_private *dev_priv, | |||
274 | 274 | ||
275 | p_defs = find_section(bdb, BDB_GENERAL_DEFINITIONS); | 275 | p_defs = find_section(bdb, BDB_GENERAL_DEFINITIONS); |
276 | if (!p_defs) { | 276 | if (!p_defs) { |
277 | DRM_DEBUG("No general definition block is found\n"); | 277 | DRM_DEBUG_KMS("No general definition block is found\n"); |
278 | return; | 278 | return; |
279 | } | 279 | } |
280 | /* judge whether the size of child device meets the requirements. | 280 | /* judge whether the size of child device meets the requirements. |
@@ -284,7 +284,7 @@ parse_sdvo_device_mapping(struct drm_i915_private *dev_priv, | |||
284 | */ | 284 | */ |
285 | if (p_defs->child_dev_size != sizeof(*p_child)) { | 285 | if (p_defs->child_dev_size != sizeof(*p_child)) { |
286 | /* different child dev size . Ignore it */ | 286 | /* different child dev size . Ignore it */ |
287 | DRM_DEBUG("different child size is found. Invalid.\n"); | 287 | DRM_DEBUG_KMS("different child size is found. Invalid.\n"); |
288 | return; | 288 | return; |
289 | } | 289 | } |
290 | /* get the block size of general definitions */ | 290 | /* get the block size of general definitions */ |
@@ -310,11 +310,11 @@ parse_sdvo_device_mapping(struct drm_i915_private *dev_priv, | |||
310 | if (p_child->dvo_port != DEVICE_PORT_DVOB && | 310 | if (p_child->dvo_port != DEVICE_PORT_DVOB && |
311 | p_child->dvo_port != DEVICE_PORT_DVOC) { | 311 | p_child->dvo_port != DEVICE_PORT_DVOC) { |
312 | /* skip the incorrect SDVO port */ | 312 | /* skip the incorrect SDVO port */ |
313 | DRM_DEBUG("Incorrect SDVO port. Skip it \n"); | 313 | DRM_DEBUG_KMS("Incorrect SDVO port. Skip it \n"); |
314 | continue; | 314 | continue; |
315 | } | 315 | } |
316 | DRM_DEBUG("the SDVO device with slave addr %2x is found on " | 316 | DRM_DEBUG_KMS("the SDVO device with slave addr %2x is found on" |
317 | "%s port\n", | 317 | " %s port\n", |
318 | p_child->slave_addr, | 318 | p_child->slave_addr, |
319 | (p_child->dvo_port == DEVICE_PORT_DVOB) ? | 319 | (p_child->dvo_port == DEVICE_PORT_DVOB) ? |
320 | "SDVOB" : "SDVOC"); | 320 | "SDVOB" : "SDVOC"); |
@@ -325,21 +325,21 @@ parse_sdvo_device_mapping(struct drm_i915_private *dev_priv, | |||
325 | p_mapping->dvo_wiring = p_child->dvo_wiring; | 325 | p_mapping->dvo_wiring = p_child->dvo_wiring; |
326 | p_mapping->initialized = 1; | 326 | p_mapping->initialized = 1; |
327 | } else { | 327 | } else { |
328 | DRM_DEBUG("Maybe one SDVO port is shared by " | 328 | DRM_DEBUG_KMS("Maybe one SDVO port is shared by " |
329 | "two SDVO device.\n"); | 329 | "two SDVO device.\n"); |
330 | } | 330 | } |
331 | if (p_child->slave2_addr) { | 331 | if (p_child->slave2_addr) { |
332 | /* Maybe this is a SDVO device with multiple inputs */ | 332 | /* Maybe this is a SDVO device with multiple inputs */ |
333 | /* And the mapping info is not added */ | 333 | /* And the mapping info is not added */ |
334 | DRM_DEBUG("there exists the slave2_addr. Maybe this " | 334 | DRM_DEBUG_KMS("there exists the slave2_addr. Maybe this" |
335 | "is a SDVO device with multiple inputs.\n"); | 335 | " is a SDVO device with multiple inputs.\n"); |
336 | } | 336 | } |
337 | count++; | 337 | count++; |
338 | } | 338 | } |
339 | 339 | ||
340 | if (!count) { | 340 | if (!count) { |
341 | /* No SDVO device info is found */ | 341 | /* No SDVO device info is found */ |
342 | DRM_DEBUG("No SDVO device info is found in VBT\n"); | 342 | DRM_DEBUG_KMS("No SDVO device info is found in VBT\n"); |
343 | } | 343 | } |
344 | return; | 344 | return; |
345 | } | 345 | } |
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index 212e22740fc1..9b48a4465c38 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c | |||
@@ -194,7 +194,7 @@ static bool intel_igdng_crt_detect_hotplug(struct drm_connector *connector) | |||
194 | ADPA_CRT_HOTPLUG_ENABLE | | 194 | ADPA_CRT_HOTPLUG_ENABLE | |
195 | ADPA_CRT_HOTPLUG_FORCE_TRIGGER); | 195 | ADPA_CRT_HOTPLUG_FORCE_TRIGGER); |
196 | 196 | ||
197 | DRM_DEBUG("pch crt adpa 0x%x", adpa); | 197 | DRM_DEBUG_KMS("pch crt adpa 0x%x", adpa); |
198 | I915_WRITE(PCH_ADPA, adpa); | 198 | I915_WRITE(PCH_ADPA, adpa); |
199 | 199 | ||
200 | while ((I915_READ(PCH_ADPA) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) != 0) | 200 | while ((I915_READ(PCH_ADPA) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) != 0) |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 062c1d7cdace..8df81401c149 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -994,7 +994,7 @@ static void i8xx_enable_fbc(struct drm_crtc *crtc, unsigned long interval) | |||
994 | fbc_ctl |= dev_priv->cfb_fence; | 994 | fbc_ctl |= dev_priv->cfb_fence; |
995 | I915_WRITE(FBC_CONTROL, fbc_ctl); | 995 | I915_WRITE(FBC_CONTROL, fbc_ctl); |
996 | 996 | ||
997 | DRM_DEBUG("enabled FBC, pitch %ld, yoff %d, plane %d, ", | 997 | DRM_DEBUG_KMS("enabled FBC, pitch %ld, yoff %d, plane %d, ", |
998 | dev_priv->cfb_pitch, crtc->y, dev_priv->cfb_plane); | 998 | dev_priv->cfb_pitch, crtc->y, dev_priv->cfb_plane); |
999 | } | 999 | } |
1000 | 1000 | ||
@@ -1017,7 +1017,7 @@ void i8xx_disable_fbc(struct drm_device *dev) | |||
1017 | 1017 | ||
1018 | intel_wait_for_vblank(dev); | 1018 | intel_wait_for_vblank(dev); |
1019 | 1019 | ||
1020 | DRM_DEBUG("disabled FBC\n"); | 1020 | DRM_DEBUG_KMS("disabled FBC\n"); |
1021 | } | 1021 | } |
1022 | 1022 | ||
1023 | static bool i8xx_fbc_enabled(struct drm_crtc *crtc) | 1023 | static bool i8xx_fbc_enabled(struct drm_crtc *crtc) |
@@ -1062,7 +1062,7 @@ static void g4x_enable_fbc(struct drm_crtc *crtc, unsigned long interval) | |||
1062 | /* enable it... */ | 1062 | /* enable it... */ |
1063 | I915_WRITE(DPFC_CONTROL, I915_READ(DPFC_CONTROL) | DPFC_CTL_EN); | 1063 | I915_WRITE(DPFC_CONTROL, I915_READ(DPFC_CONTROL) | DPFC_CTL_EN); |
1064 | 1064 | ||
1065 | DRM_DEBUG("enabled fbc on plane %d\n", intel_crtc->plane); | 1065 | DRM_DEBUG_KMS("enabled fbc on plane %d\n", intel_crtc->plane); |
1066 | } | 1066 | } |
1067 | 1067 | ||
1068 | void g4x_disable_fbc(struct drm_device *dev) | 1068 | void g4x_disable_fbc(struct drm_device *dev) |
@@ -1076,7 +1076,7 @@ void g4x_disable_fbc(struct drm_device *dev) | |||
1076 | I915_WRITE(DPFC_CONTROL, dpfc_ctl); | 1076 | I915_WRITE(DPFC_CONTROL, dpfc_ctl); |
1077 | intel_wait_for_vblank(dev); | 1077 | intel_wait_for_vblank(dev); |
1078 | 1078 | ||
1079 | DRM_DEBUG("disabled FBC\n"); | 1079 | DRM_DEBUG_KMS("disabled FBC\n"); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | static bool g4x_fbc_enabled(struct drm_crtc *crtc) | 1082 | static bool g4x_fbc_enabled(struct drm_crtc *crtc) |
@@ -1141,25 +1141,27 @@ static void intel_update_fbc(struct drm_crtc *crtc, | |||
1141 | * - going to an unsupported config (interlace, pixel multiply, etc.) | 1141 | * - going to an unsupported config (interlace, pixel multiply, etc.) |
1142 | */ | 1142 | */ |
1143 | if (intel_fb->obj->size > dev_priv->cfb_size) { | 1143 | if (intel_fb->obj->size > dev_priv->cfb_size) { |
1144 | DRM_DEBUG("framebuffer too large, disabling compression\n"); | 1144 | DRM_DEBUG_KMS("framebuffer too large, disabling " |
1145 | "compression\n"); | ||
1145 | goto out_disable; | 1146 | goto out_disable; |
1146 | } | 1147 | } |
1147 | if ((mode->flags & DRM_MODE_FLAG_INTERLACE) || | 1148 | if ((mode->flags & DRM_MODE_FLAG_INTERLACE) || |
1148 | (mode->flags & DRM_MODE_FLAG_DBLSCAN)) { | 1149 | (mode->flags & DRM_MODE_FLAG_DBLSCAN)) { |
1149 | DRM_DEBUG("mode incompatible with compression, disabling\n"); | 1150 | DRM_DEBUG_KMS("mode incompatible with compression, " |
1151 | "disabling\n"); | ||
1150 | goto out_disable; | 1152 | goto out_disable; |
1151 | } | 1153 | } |
1152 | if ((mode->hdisplay > 2048) || | 1154 | if ((mode->hdisplay > 2048) || |
1153 | (mode->vdisplay > 1536)) { | 1155 | (mode->vdisplay > 1536)) { |
1154 | DRM_DEBUG("mode too large for compression, disabling\n"); | 1156 | DRM_DEBUG_KMS("mode too large for compression, disabling\n"); |
1155 | goto out_disable; | 1157 | goto out_disable; |
1156 | } | 1158 | } |
1157 | if ((IS_I915GM(dev) || IS_I945GM(dev)) && plane != 0) { | 1159 | if ((IS_I915GM(dev) || IS_I945GM(dev)) && plane != 0) { |
1158 | DRM_DEBUG("plane not 0, disabling compression\n"); | 1160 | DRM_DEBUG_KMS("plane not 0, disabling compression\n"); |
1159 | goto out_disable; | 1161 | goto out_disable; |
1160 | } | 1162 | } |
1161 | if (obj_priv->tiling_mode != I915_TILING_X) { | 1163 | if (obj_priv->tiling_mode != I915_TILING_X) { |
1162 | DRM_DEBUG("framebuffer not tiled, disabling compression\n"); | 1164 | DRM_DEBUG_KMS("framebuffer not tiled, disabling compression\n"); |
1163 | goto out_disable; | 1165 | goto out_disable; |
1164 | } | 1166 | } |
1165 | 1167 | ||
@@ -1181,7 +1183,7 @@ static void intel_update_fbc(struct drm_crtc *crtc, | |||
1181 | return; | 1183 | return; |
1182 | 1184 | ||
1183 | out_disable: | 1185 | out_disable: |
1184 | DRM_DEBUG("unsupported config, disabling FBC\n"); | 1186 | DRM_DEBUG_KMS("unsupported config, disabling FBC\n"); |
1185 | /* Multiple disables should be harmless */ | 1187 | /* Multiple disables should be harmless */ |
1186 | if (dev_priv->display.fbc_enabled(crtc)) | 1188 | if (dev_priv->display.fbc_enabled(crtc)) |
1187 | dev_priv->display.disable_fbc(dev); | 1189 | dev_priv->display.disable_fbc(dev); |
@@ -1211,7 +1213,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, | |||
1211 | 1213 | ||
1212 | /* no fb bound */ | 1214 | /* no fb bound */ |
1213 | if (!crtc->fb) { | 1215 | if (!crtc->fb) { |
1214 | DRM_DEBUG("No FB bound\n"); | 1216 | DRM_DEBUG_KMS("No FB bound\n"); |
1215 | return 0; | 1217 | return 0; |
1216 | } | 1218 | } |
1217 | 1219 | ||
@@ -1311,7 +1313,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, | |||
1311 | Start = obj_priv->gtt_offset; | 1313 | Start = obj_priv->gtt_offset; |
1312 | Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); | 1314 | Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); |
1313 | 1315 | ||
1314 | DRM_DEBUG("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y); | 1316 | DRM_DEBUG_KMS("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y); |
1315 | I915_WRITE(dspstride, crtc->fb->pitch); | 1317 | I915_WRITE(dspstride, crtc->fb->pitch); |
1316 | if (IS_I965G(dev)) { | 1318 | if (IS_I965G(dev)) { |
1317 | I915_WRITE(dspbase, Offset); | 1319 | I915_WRITE(dspbase, Offset); |
@@ -1385,7 +1387,7 @@ static void igdng_disable_pll_edp (struct drm_crtc *crtc) | |||
1385 | struct drm_i915_private *dev_priv = dev->dev_private; | 1387 | struct drm_i915_private *dev_priv = dev->dev_private; |
1386 | u32 dpa_ctl; | 1388 | u32 dpa_ctl; |
1387 | 1389 | ||
1388 | DRM_DEBUG("\n"); | 1390 | DRM_DEBUG_KMS("\n"); |
1389 | dpa_ctl = I915_READ(DP_A); | 1391 | dpa_ctl = I915_READ(DP_A); |
1390 | dpa_ctl &= ~DP_PLL_ENABLE; | 1392 | dpa_ctl &= ~DP_PLL_ENABLE; |
1391 | I915_WRITE(DP_A, dpa_ctl); | 1393 | I915_WRITE(DP_A, dpa_ctl); |
@@ -1410,7 +1412,7 @@ static void igdng_set_pll_edp (struct drm_crtc *crtc, int clock) | |||
1410 | struct drm_i915_private *dev_priv = dev->dev_private; | 1412 | struct drm_i915_private *dev_priv = dev->dev_private; |
1411 | u32 dpa_ctl; | 1413 | u32 dpa_ctl; |
1412 | 1414 | ||
1413 | DRM_DEBUG("eDP PLL enable for clock %d\n", clock); | 1415 | DRM_DEBUG_KMS("eDP PLL enable for clock %d\n", clock); |
1414 | dpa_ctl = I915_READ(DP_A); | 1416 | dpa_ctl = I915_READ(DP_A); |
1415 | dpa_ctl &= ~DP_PLL_FREQ_MASK; | 1417 | dpa_ctl &= ~DP_PLL_FREQ_MASK; |
1416 | 1418 | ||
@@ -1481,7 +1483,7 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1481 | case DRM_MODE_DPMS_ON: | 1483 | case DRM_MODE_DPMS_ON: |
1482 | case DRM_MODE_DPMS_STANDBY: | 1484 | case DRM_MODE_DPMS_STANDBY: |
1483 | case DRM_MODE_DPMS_SUSPEND: | 1485 | case DRM_MODE_DPMS_SUSPEND: |
1484 | DRM_DEBUG("crtc %d dpms on\n", pipe); | 1486 | DRM_DEBUG_KMS("crtc %d dpms on\n", pipe); |
1485 | if (HAS_eDP) { | 1487 | if (HAS_eDP) { |
1486 | /* enable eDP PLL */ | 1488 | /* enable eDP PLL */ |
1487 | igdng_enable_pll_edp(crtc); | 1489 | igdng_enable_pll_edp(crtc); |
@@ -1568,12 +1570,13 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1568 | udelay(150); | 1570 | udelay(150); |
1569 | 1571 | ||
1570 | temp = I915_READ(fdi_rx_iir_reg); | 1572 | temp = I915_READ(fdi_rx_iir_reg); |
1571 | DRM_DEBUG("FDI_RX_IIR 0x%x\n", temp); | 1573 | DRM_DEBUG_KMS("FDI_RX_IIR 0x%x\n", temp); |
1572 | 1574 | ||
1573 | if ((temp & FDI_RX_BIT_LOCK) == 0) { | 1575 | if ((temp & FDI_RX_BIT_LOCK) == 0) { |
1574 | for (j = 0; j < tries; j++) { | 1576 | for (j = 0; j < tries; j++) { |
1575 | temp = I915_READ(fdi_rx_iir_reg); | 1577 | temp = I915_READ(fdi_rx_iir_reg); |
1576 | DRM_DEBUG("FDI_RX_IIR 0x%x\n", temp); | 1578 | DRM_DEBUG_KMS("FDI_RX_IIR 0x%x\n", |
1579 | temp); | ||
1577 | if (temp & FDI_RX_BIT_LOCK) | 1580 | if (temp & FDI_RX_BIT_LOCK) |
1578 | break; | 1581 | break; |
1579 | udelay(200); | 1582 | udelay(200); |
@@ -1582,11 +1585,11 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1582 | I915_WRITE(fdi_rx_iir_reg, | 1585 | I915_WRITE(fdi_rx_iir_reg, |
1583 | temp | FDI_RX_BIT_LOCK); | 1586 | temp | FDI_RX_BIT_LOCK); |
1584 | else | 1587 | else |
1585 | DRM_DEBUG("train 1 fail\n"); | 1588 | DRM_DEBUG_KMS("train 1 fail\n"); |
1586 | } else { | 1589 | } else { |
1587 | I915_WRITE(fdi_rx_iir_reg, | 1590 | I915_WRITE(fdi_rx_iir_reg, |
1588 | temp | FDI_RX_BIT_LOCK); | 1591 | temp | FDI_RX_BIT_LOCK); |
1589 | DRM_DEBUG("train 1 ok 2!\n"); | 1592 | DRM_DEBUG_KMS("train 1 ok 2!\n"); |
1590 | } | 1593 | } |
1591 | temp = I915_READ(fdi_tx_reg); | 1594 | temp = I915_READ(fdi_tx_reg); |
1592 | temp &= ~FDI_LINK_TRAIN_NONE; | 1595 | temp &= ~FDI_LINK_TRAIN_NONE; |
@@ -1601,12 +1604,13 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1601 | udelay(150); | 1604 | udelay(150); |
1602 | 1605 | ||
1603 | temp = I915_READ(fdi_rx_iir_reg); | 1606 | temp = I915_READ(fdi_rx_iir_reg); |
1604 | DRM_DEBUG("FDI_RX_IIR 0x%x\n", temp); | 1607 | DRM_DEBUG_KMS("FDI_RX_IIR 0x%x\n", temp); |
1605 | 1608 | ||
1606 | if ((temp & FDI_RX_SYMBOL_LOCK) == 0) { | 1609 | if ((temp & FDI_RX_SYMBOL_LOCK) == 0) { |
1607 | for (j = 0; j < tries; j++) { | 1610 | for (j = 0; j < tries; j++) { |
1608 | temp = I915_READ(fdi_rx_iir_reg); | 1611 | temp = I915_READ(fdi_rx_iir_reg); |
1609 | DRM_DEBUG("FDI_RX_IIR 0x%x\n", temp); | 1612 | DRM_DEBUG_KMS("FDI_RX_IIR 0x%x\n", |
1613 | temp); | ||
1610 | if (temp & FDI_RX_SYMBOL_LOCK) | 1614 | if (temp & FDI_RX_SYMBOL_LOCK) |
1611 | break; | 1615 | break; |
1612 | udelay(200); | 1616 | udelay(200); |
@@ -1614,15 +1618,15 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1614 | if (j != tries) { | 1618 | if (j != tries) { |
1615 | I915_WRITE(fdi_rx_iir_reg, | 1619 | I915_WRITE(fdi_rx_iir_reg, |
1616 | temp | FDI_RX_SYMBOL_LOCK); | 1620 | temp | FDI_RX_SYMBOL_LOCK); |
1617 | DRM_DEBUG("train 2 ok 1!\n"); | 1621 | DRM_DEBUG_KMS("train 2 ok 1!\n"); |
1618 | } else | 1622 | } else |
1619 | DRM_DEBUG("train 2 fail\n"); | 1623 | DRM_DEBUG_KMS("train 2 fail\n"); |
1620 | } else { | 1624 | } else { |
1621 | I915_WRITE(fdi_rx_iir_reg, | 1625 | I915_WRITE(fdi_rx_iir_reg, |
1622 | temp | FDI_RX_SYMBOL_LOCK); | 1626 | temp | FDI_RX_SYMBOL_LOCK); |
1623 | DRM_DEBUG("train 2 ok 2!\n"); | 1627 | DRM_DEBUG_KMS("train 2 ok 2!\n"); |
1624 | } | 1628 | } |
1625 | DRM_DEBUG("train done\n"); | 1629 | DRM_DEBUG_KMS("train done\n"); |
1626 | 1630 | ||
1627 | /* set transcoder timing */ | 1631 | /* set transcoder timing */ |
1628 | I915_WRITE(trans_htot_reg, I915_READ(cpu_htot_reg)); | 1632 | I915_WRITE(trans_htot_reg, I915_READ(cpu_htot_reg)); |
@@ -1664,7 +1668,7 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1664 | 1668 | ||
1665 | break; | 1669 | break; |
1666 | case DRM_MODE_DPMS_OFF: | 1670 | case DRM_MODE_DPMS_OFF: |
1667 | DRM_DEBUG("crtc %d dpms off\n", pipe); | 1671 | DRM_DEBUG_KMS("crtc %d dpms off\n", pipe); |
1668 | 1672 | ||
1669 | i915_disable_vga(dev); | 1673 | i915_disable_vga(dev); |
1670 | 1674 | ||
@@ -1690,12 +1694,13 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1690 | udelay(500); | 1694 | udelay(500); |
1691 | continue; | 1695 | continue; |
1692 | } else { | 1696 | } else { |
1693 | DRM_DEBUG("pipe %d off delay\n", pipe); | 1697 | DRM_DEBUG_KMS("pipe %d off delay\n", |
1698 | pipe); | ||
1694 | break; | 1699 | break; |
1695 | } | 1700 | } |
1696 | } | 1701 | } |
1697 | } else | 1702 | } else |
1698 | DRM_DEBUG("crtc %d is disabled\n", pipe); | 1703 | DRM_DEBUG_KMS("crtc %d is disabled\n", pipe); |
1699 | 1704 | ||
1700 | if (HAS_eDP) { | 1705 | if (HAS_eDP) { |
1701 | igdng_disable_pll_edp(crtc); | 1706 | igdng_disable_pll_edp(crtc); |
@@ -1738,7 +1743,8 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
1738 | udelay(500); | 1743 | udelay(500); |
1739 | continue; | 1744 | continue; |
1740 | } else { | 1745 | } else { |
1741 | DRM_DEBUG("transcoder %d off delay\n", pipe); | 1746 | DRM_DEBUG_KMS("transcoder %d off " |
1747 | "delay\n", pipe); | ||
1742 | break; | 1748 | break; |
1743 | } | 1749 | } |
1744 | } | 1750 | } |
@@ -2245,11 +2251,11 @@ static unsigned long intel_calculate_wm(unsigned long clock_in_khz, | |||
2245 | 1000; | 2251 | 1000; |
2246 | entries_required /= wm->cacheline_size; | 2252 | entries_required /= wm->cacheline_size; |
2247 | 2253 | ||
2248 | DRM_DEBUG("FIFO entries required for mode: %d\n", entries_required); | 2254 | DRM_DEBUG_KMS("FIFO entries required for mode: %d\n", entries_required); |
2249 | 2255 | ||
2250 | wm_size = wm->fifo_size - (entries_required + wm->guard_size); | 2256 | wm_size = wm->fifo_size - (entries_required + wm->guard_size); |
2251 | 2257 | ||
2252 | DRM_DEBUG("FIFO watermark level: %d\n", wm_size); | 2258 | DRM_DEBUG_KMS("FIFO watermark level: %d\n", wm_size); |
2253 | 2259 | ||
2254 | /* Don't promote wm_size to unsigned... */ | 2260 | /* Don't promote wm_size to unsigned... */ |
2255 | if (wm_size > (long)wm->max_wm) | 2261 | if (wm_size > (long)wm->max_wm) |
@@ -2311,7 +2317,7 @@ static struct cxsr_latency *intel_get_cxsr_latency(int is_desktop, int fsb, | |||
2311 | return latency; | 2317 | return latency; |
2312 | } | 2318 | } |
2313 | 2319 | ||
2314 | DRM_DEBUG("Unknown FSB/MEM found, disable CxSR\n"); | 2320 | DRM_DEBUG_KMS("Unknown FSB/MEM found, disable CxSR\n"); |
2315 | 2321 | ||
2316 | return NULL; | 2322 | return NULL; |
2317 | } | 2323 | } |
@@ -2339,7 +2345,7 @@ static void igd_enable_cxsr(struct drm_device *dev, unsigned long clock, | |||
2339 | latency = intel_get_cxsr_latency(IS_IGDG(dev), dev_priv->fsb_freq, | 2345 | latency = intel_get_cxsr_latency(IS_IGDG(dev), dev_priv->fsb_freq, |
2340 | dev_priv->mem_freq); | 2346 | dev_priv->mem_freq); |
2341 | if (!latency) { | 2347 | if (!latency) { |
2342 | DRM_DEBUG("Unknown FSB/MEM found, disable CxSR\n"); | 2348 | DRM_DEBUG_KMS("Unknown FSB/MEM found, disable CxSR\n"); |
2343 | igd_disable_cxsr(dev); | 2349 | igd_disable_cxsr(dev); |
2344 | return; | 2350 | return; |
2345 | } | 2351 | } |
@@ -2351,7 +2357,7 @@ static void igd_enable_cxsr(struct drm_device *dev, unsigned long clock, | |||
2351 | reg &= 0x7fffff; | 2357 | reg &= 0x7fffff; |
2352 | reg |= wm << 23; | 2358 | reg |= wm << 23; |
2353 | I915_WRITE(DSPFW1, reg); | 2359 | I915_WRITE(DSPFW1, reg); |
2354 | DRM_DEBUG("DSPFW1 register is %x\n", reg); | 2360 | DRM_DEBUG_KMS("DSPFW1 register is %x\n", reg); |
2355 | 2361 | ||
2356 | /* cursor SR */ | 2362 | /* cursor SR */ |
2357 | wm = intel_calculate_wm(clock, &igd_cursor_wm, pixel_size, | 2363 | wm = intel_calculate_wm(clock, &igd_cursor_wm, pixel_size, |
@@ -2376,7 +2382,7 @@ static void igd_enable_cxsr(struct drm_device *dev, unsigned long clock, | |||
2376 | reg &= ~(0x3f << 16); | 2382 | reg &= ~(0x3f << 16); |
2377 | reg |= (wm & 0x3f) << 16; | 2383 | reg |= (wm & 0x3f) << 16; |
2378 | I915_WRITE(DSPFW3, reg); | 2384 | I915_WRITE(DSPFW3, reg); |
2379 | DRM_DEBUG("DSPFW3 register is %x\n", reg); | 2385 | DRM_DEBUG_KMS("DSPFW3 register is %x\n", reg); |
2380 | 2386 | ||
2381 | /* activate cxsr */ | 2387 | /* activate cxsr */ |
2382 | reg = I915_READ(DSPFW3); | 2388 | reg = I915_READ(DSPFW3); |
@@ -2416,8 +2422,8 @@ static int i9xx_get_fifo_size(struct drm_device *dev, int plane) | |||
2416 | size = ((dsparb >> DSPARB_CSTART_SHIFT) & 0x7f) - | 2422 | size = ((dsparb >> DSPARB_CSTART_SHIFT) & 0x7f) - |
2417 | (dsparb & 0x7f); | 2423 | (dsparb & 0x7f); |
2418 | 2424 | ||
2419 | DRM_DEBUG("FIFO size - (0x%08x) %s: %d\n", dsparb, plane ? "B" : "A", | 2425 | DRM_DEBUG_KMS("FIFO size - (0x%08x) %s: %d\n", dsparb, |
2420 | size); | 2426 | plane ? "B" : "A", size); |
2421 | 2427 | ||
2422 | return size; | 2428 | return size; |
2423 | } | 2429 | } |
@@ -2435,8 +2441,8 @@ static int i85x_get_fifo_size(struct drm_device *dev, int plane) | |||
2435 | (dsparb & 0x1ff); | 2441 | (dsparb & 0x1ff); |
2436 | size >>= 1; /* Convert to cachelines */ | 2442 | size >>= 1; /* Convert to cachelines */ |
2437 | 2443 | ||
2438 | DRM_DEBUG("FIFO size - (0x%08x) %s: %d\n", dsparb, plane ? "B" : "A", | 2444 | DRM_DEBUG_KMS("FIFO size - (0x%08x) %s: %d\n", dsparb, |
2439 | size); | 2445 | plane ? "B" : "A", size); |
2440 | 2446 | ||
2441 | return size; | 2447 | return size; |
2442 | } | 2448 | } |
@@ -2450,7 +2456,8 @@ static int i845_get_fifo_size(struct drm_device *dev, int plane) | |||
2450 | size = dsparb & 0x7f; | 2456 | size = dsparb & 0x7f; |
2451 | size >>= 2; /* Convert to cachelines */ | 2457 | size >>= 2; /* Convert to cachelines */ |
2452 | 2458 | ||
2453 | DRM_DEBUG("FIFO size - (0x%08x) %s: %d\n", dsparb, plane ? "B" : "A", | 2459 | DRM_DEBUG_KMS("FIFO size - (0x%08x) %s: %d\n", dsparb, |
2460 | plane ? "B" : "A", | ||
2454 | size); | 2461 | size); |
2455 | 2462 | ||
2456 | return size; | 2463 | return size; |
@@ -2465,8 +2472,8 @@ static int i830_get_fifo_size(struct drm_device *dev, int plane) | |||
2465 | size = dsparb & 0x7f; | 2472 | size = dsparb & 0x7f; |
2466 | size >>= 1; /* Convert to cachelines */ | 2473 | size >>= 1; /* Convert to cachelines */ |
2467 | 2474 | ||
2468 | DRM_DEBUG("FIFO size - (0x%08x) %s: %d\n", dsparb, plane ? "B" : "A", | 2475 | DRM_DEBUG_KMS("FIFO size - (0x%08x) %s: %d\n", dsparb, |
2469 | size); | 2476 | plane ? "B" : "A", size); |
2470 | 2477 | ||
2471 | return size; | 2478 | return size; |
2472 | } | 2479 | } |
@@ -2546,7 +2553,7 @@ static void i965_update_wm(struct drm_device *dev, int unused, int unused2, | |||
2546 | { | 2553 | { |
2547 | struct drm_i915_private *dev_priv = dev->dev_private; | 2554 | struct drm_i915_private *dev_priv = dev->dev_private; |
2548 | 2555 | ||
2549 | DRM_DEBUG("Setting FIFO watermarks - A: 8, B: 8, C: 8, SR 8\n"); | 2556 | DRM_DEBUG_KMS("Setting FIFO watermarks - A: 8, B: 8, C: 8, SR 8\n"); |
2550 | 2557 | ||
2551 | /* 965 has limitations... */ | 2558 | /* 965 has limitations... */ |
2552 | I915_WRITE(DSPFW1, (8 << 16) | (8 << 8) | (8 << 0)); | 2559 | I915_WRITE(DSPFW1, (8 << 16) | (8 << 8) | (8 << 0)); |
@@ -2585,7 +2592,7 @@ static void i9xx_update_wm(struct drm_device *dev, int planea_clock, | |||
2585 | pixel_size, latency_ns); | 2592 | pixel_size, latency_ns); |
2586 | planeb_wm = intel_calculate_wm(planeb_clock, &planeb_params, | 2593 | planeb_wm = intel_calculate_wm(planeb_clock, &planeb_params, |
2587 | pixel_size, latency_ns); | 2594 | pixel_size, latency_ns); |
2588 | DRM_DEBUG("FIFO watermarks - A: %d, B: %d\n", planea_wm, planeb_wm); | 2595 | DRM_DEBUG_KMS("FIFO watermarks - A: %d, B: %d\n", planea_wm, planeb_wm); |
2589 | 2596 | ||
2590 | /* | 2597 | /* |
2591 | * Overlay gets an aggressive default since video jitter is bad. | 2598 | * Overlay gets an aggressive default since video jitter is bad. |
@@ -2605,14 +2612,14 @@ static void i9xx_update_wm(struct drm_device *dev, int planea_clock, | |||
2605 | sr_entries = (((sr_latency_ns / line_time_us) + 1) * | 2612 | sr_entries = (((sr_latency_ns / line_time_us) + 1) * |
2606 | pixel_size * sr_hdisplay) / 1000; | 2613 | pixel_size * sr_hdisplay) / 1000; |
2607 | sr_entries = roundup(sr_entries / cacheline_size, 1); | 2614 | sr_entries = roundup(sr_entries / cacheline_size, 1); |
2608 | DRM_DEBUG("self-refresh entries: %d\n", sr_entries); | 2615 | DRM_DEBUG_KMS("self-refresh entries: %d\n", sr_entries); |
2609 | srwm = total_size - sr_entries; | 2616 | srwm = total_size - sr_entries; |
2610 | if (srwm < 0) | 2617 | if (srwm < 0) |
2611 | srwm = 1; | 2618 | srwm = 1; |
2612 | I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN | (srwm & 0x3f)); | 2619 | I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN | (srwm & 0x3f)); |
2613 | } | 2620 | } |
2614 | 2621 | ||
2615 | DRM_DEBUG("Setting FIFO watermarks - A: %d, B: %d, C: %d, SR %d\n", | 2622 | DRM_DEBUG_KMS("Setting FIFO watermarks - A: %d, B: %d, C: %d, SR %d\n", |
2616 | planea_wm, planeb_wm, cwm, srwm); | 2623 | planea_wm, planeb_wm, cwm, srwm); |
2617 | 2624 | ||
2618 | fwater_lo = ((planeb_wm & 0x3f) << 16) | (planea_wm & 0x3f); | 2625 | fwater_lo = ((planeb_wm & 0x3f) << 16) | (planea_wm & 0x3f); |
@@ -2639,7 +2646,7 @@ static void i830_update_wm(struct drm_device *dev, int planea_clock, int unused, | |||
2639 | pixel_size, latency_ns); | 2646 | pixel_size, latency_ns); |
2640 | fwater_lo |= (3<<8) | planea_wm; | 2647 | fwater_lo |= (3<<8) | planea_wm; |
2641 | 2648 | ||
2642 | DRM_DEBUG("Setting FIFO watermarks - A: %d\n", planea_wm); | 2649 | DRM_DEBUG_KMS("Setting FIFO watermarks - A: %d\n", planea_wm); |
2643 | 2650 | ||
2644 | I915_WRITE(FW_BLC, fwater_lo); | 2651 | I915_WRITE(FW_BLC, fwater_lo); |
2645 | } | 2652 | } |
@@ -2693,11 +2700,11 @@ static void intel_update_watermarks(struct drm_device *dev) | |||
2693 | if (crtc->enabled) { | 2700 | if (crtc->enabled) { |
2694 | enabled++; | 2701 | enabled++; |
2695 | if (intel_crtc->plane == 0) { | 2702 | if (intel_crtc->plane == 0) { |
2696 | DRM_DEBUG("plane A (pipe %d) clock: %d\n", | 2703 | DRM_DEBUG_KMS("plane A (pipe %d) clock: %d\n", |
2697 | intel_crtc->pipe, crtc->mode.clock); | 2704 | intel_crtc->pipe, crtc->mode.clock); |
2698 | planea_clock = crtc->mode.clock; | 2705 | planea_clock = crtc->mode.clock; |
2699 | } else { | 2706 | } else { |
2700 | DRM_DEBUG("plane B (pipe %d) clock: %d\n", | 2707 | DRM_DEBUG_KMS("plane B (pipe %d) clock: %d\n", |
2701 | intel_crtc->pipe, crtc->mode.clock); | 2708 | intel_crtc->pipe, crtc->mode.clock); |
2702 | planeb_clock = crtc->mode.clock; | 2709 | planeb_clock = crtc->mode.clock; |
2703 | } | 2710 | } |
@@ -2811,7 +2818,8 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, | |||
2811 | 2818 | ||
2812 | if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) { | 2819 | if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) { |
2813 | refclk = dev_priv->lvds_ssc_freq * 1000; | 2820 | refclk = dev_priv->lvds_ssc_freq * 1000; |
2814 | DRM_DEBUG("using SSC reference clock of %d MHz\n", refclk / 1000); | 2821 | DRM_DEBUG_KMS("using SSC reference clock of %d MHz\n", |
2822 | refclk / 1000); | ||
2815 | } else if (IS_I9XX(dev)) { | 2823 | } else if (IS_I9XX(dev)) { |
2816 | refclk = 96000; | 2824 | refclk = 96000; |
2817 | if (IS_IGDNG(dev)) | 2825 | if (IS_IGDNG(dev)) |
@@ -3069,7 +3077,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, | |||
3069 | if (!IS_IGDNG(dev) && intel_panel_fitter_pipe(dev) == pipe) | 3077 | if (!IS_IGDNG(dev) && intel_panel_fitter_pipe(dev) == pipe) |
3070 | I915_WRITE(PFIT_CONTROL, 0); | 3078 | I915_WRITE(PFIT_CONTROL, 0); |
3071 | 3079 | ||
3072 | DRM_DEBUG("Mode for pipe %c:\n", pipe == 0 ? 'A' : 'B'); | 3080 | DRM_DEBUG_KMS("Mode for pipe %c:\n", pipe == 0 ? 'A' : 'B'); |
3073 | drm_mode_debug_printmodeline(mode); | 3081 | drm_mode_debug_printmodeline(mode); |
3074 | 3082 | ||
3075 | /* assign to IGDNG registers */ | 3083 | /* assign to IGDNG registers */ |
@@ -3147,14 +3155,14 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, | |||
3147 | I915_WRITE(fp_reg + 4, fp2); | 3155 | I915_WRITE(fp_reg + 4, fp2); |
3148 | intel_crtc->lowfreq_avail = true; | 3156 | intel_crtc->lowfreq_avail = true; |
3149 | if (HAS_PIPE_CXSR(dev)) { | 3157 | if (HAS_PIPE_CXSR(dev)) { |
3150 | DRM_DEBUG("enabling CxSR downclocking\n"); | 3158 | DRM_DEBUG_KMS("enabling CxSR downclocking\n"); |
3151 | pipeconf |= PIPECONF_CXSR_DOWNCLOCK; | 3159 | pipeconf |= PIPECONF_CXSR_DOWNCLOCK; |
3152 | } | 3160 | } |
3153 | } else { | 3161 | } else { |
3154 | I915_WRITE(fp_reg + 4, fp); | 3162 | I915_WRITE(fp_reg + 4, fp); |
3155 | intel_crtc->lowfreq_avail = false; | 3163 | intel_crtc->lowfreq_avail = false; |
3156 | if (HAS_PIPE_CXSR(dev)) { | 3164 | if (HAS_PIPE_CXSR(dev)) { |
3157 | DRM_DEBUG("disabling CxSR downclocking\n"); | 3165 | DRM_DEBUG_KMS("disabling CxSR downclocking\n"); |
3158 | pipeconf &= ~PIPECONF_CXSR_DOWNCLOCK; | 3166 | pipeconf &= ~PIPECONF_CXSR_DOWNCLOCK; |
3159 | } | 3167 | } |
3160 | } | 3168 | } |
@@ -3266,11 +3274,11 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc, | |||
3266 | size_t addr; | 3274 | size_t addr; |
3267 | int ret; | 3275 | int ret; |
3268 | 3276 | ||
3269 | DRM_DEBUG("\n"); | 3277 | DRM_DEBUG_KMS("\n"); |
3270 | 3278 | ||
3271 | /* if we want to turn off the cursor ignore width and height */ | 3279 | /* if we want to turn off the cursor ignore width and height */ |
3272 | if (!handle) { | 3280 | if (!handle) { |
3273 | DRM_DEBUG("cursor off\n"); | 3281 | DRM_DEBUG_KMS("cursor off\n"); |
3274 | if (IS_MOBILE(dev) || IS_I9XX(dev)) { | 3282 | if (IS_MOBILE(dev) || IS_I9XX(dev)) { |
3275 | temp &= ~(CURSOR_MODE | MCURSOR_GAMMA_ENABLE); | 3283 | temp &= ~(CURSOR_MODE | MCURSOR_GAMMA_ENABLE); |
3276 | temp |= CURSOR_MODE_DISABLE; | 3284 | temp |= CURSOR_MODE_DISABLE; |
@@ -3604,7 +3612,7 @@ static int intel_crtc_clock_get(struct drm_device *dev, struct drm_crtc *crtc) | |||
3604 | 7 : 14; | 3612 | 7 : 14; |
3605 | break; | 3613 | break; |
3606 | default: | 3614 | default: |
3607 | DRM_DEBUG("Unknown DPLL mode %08x in programmed " | 3615 | DRM_DEBUG_KMS("Unknown DPLL mode %08x in programmed " |
3608 | "mode\n", (int)(dpll & DPLL_MODE_MASK)); | 3616 | "mode\n", (int)(dpll & DPLL_MODE_MASK)); |
3609 | return 0; | 3617 | return 0; |
3610 | } | 3618 | } |
@@ -4042,7 +4050,7 @@ static void intel_crtc_init(struct drm_device *dev, int pipe) | |||
4042 | intel_crtc->pipe = pipe; | 4050 | intel_crtc->pipe = pipe; |
4043 | intel_crtc->plane = pipe; | 4051 | intel_crtc->plane = pipe; |
4044 | if (IS_MOBILE(dev) && (IS_I9XX(dev) && !IS_I965G(dev))) { | 4052 | if (IS_MOBILE(dev) && (IS_I9XX(dev) && !IS_I965G(dev))) { |
4045 | DRM_DEBUG("swapping pipes & planes for FBC\n"); | 4053 | DRM_DEBUG_KMS("swapping pipes & planes for FBC\n"); |
4046 | intel_crtc->plane = ((pipe == 0) ? 1 : 0); | 4054 | intel_crtc->plane = ((pipe == 0) ? 1 : 0); |
4047 | } | 4055 | } |
4048 | 4056 | ||
@@ -4471,7 +4479,7 @@ void intel_modeset_init(struct drm_device *dev) | |||
4471 | num_pipe = 2; | 4479 | num_pipe = 2; |
4472 | else | 4480 | else |
4473 | num_pipe = 1; | 4481 | num_pipe = 1; |
4474 | DRM_DEBUG("%d display pipe%s available.\n", | 4482 | DRM_DEBUG_KMS("%d display pipe%s available.\n", |
4475 | num_pipe, num_pipe > 1 ? "s" : ""); | 4483 | num_pipe, num_pipe > 1 ? "s" : ""); |
4476 | 4484 | ||
4477 | if (IS_I85X(dev)) | 4485 | if (IS_I85X(dev)) |
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index d83447557f9b..fcab9dee93da 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -282,7 +282,7 @@ intel_dp_aux_ch(struct intel_output *intel_output, | |||
282 | /* Timeouts occur when the device isn't connected, so they're | 282 | /* Timeouts occur when the device isn't connected, so they're |
283 | * "normal" -- don't fill the kernel log with these */ | 283 | * "normal" -- don't fill the kernel log with these */ |
284 | if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR) { | 284 | if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR) { |
285 | DRM_DEBUG("dp_aux_ch timeout status 0x%08x\n", status); | 285 | DRM_DEBUG_KMS("dp_aux_ch timeout status 0x%08x\n", status); |
286 | return -ETIMEDOUT; | 286 | return -ETIMEDOUT; |
287 | } | 287 | } |
288 | 288 | ||
@@ -435,7 +435,8 @@ intel_dp_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode, | |||
435 | dp_priv->link_bw = bws[clock]; | 435 | dp_priv->link_bw = bws[clock]; |
436 | dp_priv->lane_count = lane_count; | 436 | dp_priv->lane_count = lane_count; |
437 | adjusted_mode->clock = intel_dp_link_clock(dp_priv->link_bw); | 437 | adjusted_mode->clock = intel_dp_link_clock(dp_priv->link_bw); |
438 | DRM_DEBUG("Display port link bw %02x lane count %d clock %d\n", | 438 | DRM_DEBUG_KMS("Display port link bw %02x lane " |
439 | "count %d clock %d\n", | ||
439 | dp_priv->link_bw, dp_priv->lane_count, | 440 | dp_priv->link_bw, dp_priv->lane_count, |
440 | adjusted_mode->clock); | 441 | adjusted_mode->clock); |
441 | return true; | 442 | return true; |
@@ -611,7 +612,7 @@ static void igdng_edp_backlight_on (struct drm_device *dev) | |||
611 | struct drm_i915_private *dev_priv = dev->dev_private; | 612 | struct drm_i915_private *dev_priv = dev->dev_private; |
612 | u32 pp; | 613 | u32 pp; |
613 | 614 | ||
614 | DRM_DEBUG("\n"); | 615 | DRM_DEBUG_KMS("\n"); |
615 | pp = I915_READ(PCH_PP_CONTROL); | 616 | pp = I915_READ(PCH_PP_CONTROL); |
616 | pp |= EDP_BLC_ENABLE; | 617 | pp |= EDP_BLC_ENABLE; |
617 | I915_WRITE(PCH_PP_CONTROL, pp); | 618 | I915_WRITE(PCH_PP_CONTROL, pp); |
@@ -622,7 +623,7 @@ static void igdng_edp_backlight_off (struct drm_device *dev) | |||
622 | struct drm_i915_private *dev_priv = dev->dev_private; | 623 | struct drm_i915_private *dev_priv = dev->dev_private; |
623 | u32 pp; | 624 | u32 pp; |
624 | 625 | ||
625 | DRM_DEBUG("\n"); | 626 | DRM_DEBUG_KMS("\n"); |
626 | pp = I915_READ(PCH_PP_CONTROL); | 627 | pp = I915_READ(PCH_PP_CONTROL); |
627 | pp &= ~EDP_BLC_ENABLE; | 628 | pp &= ~EDP_BLC_ENABLE; |
628 | I915_WRITE(PCH_PP_CONTROL, pp); | 629 | I915_WRITE(PCH_PP_CONTROL, pp); |
@@ -1010,7 +1011,7 @@ intel_dp_link_down(struct intel_output *intel_output, uint32_t DP) | |||
1010 | struct drm_i915_private *dev_priv = dev->dev_private; | 1011 | struct drm_i915_private *dev_priv = dev->dev_private; |
1011 | struct intel_dp_priv *dp_priv = intel_output->dev_priv; | 1012 | struct intel_dp_priv *dp_priv = intel_output->dev_priv; |
1012 | 1013 | ||
1013 | DRM_DEBUG("\n"); | 1014 | DRM_DEBUG_KMS("\n"); |
1014 | 1015 | ||
1015 | if (IS_eDP(intel_output)) { | 1016 | if (IS_eDP(intel_output)) { |
1016 | DP &= ~DP_PLL_ENABLE; | 1017 | DP &= ~DP_PLL_ENABLE; |
diff --git a/drivers/gpu/drm/i915/intel_dp_i2c.c b/drivers/gpu/drm/i915/intel_dp_i2c.c index a63b6f57d2d4..a57273ade677 100644 --- a/drivers/gpu/drm/i915/intel_dp_i2c.c +++ b/drivers/gpu/drm/i915/intel_dp_i2c.c | |||
@@ -85,7 +85,7 @@ i2c_algo_dp_aux_transaction(struct i2c_adapter *adapter, int mode, | |||
85 | msg, msg_bytes, | 85 | msg, msg_bytes, |
86 | reply, reply_bytes); | 86 | reply, reply_bytes); |
87 | if (ret < 0) { | 87 | if (ret < 0) { |
88 | DRM_DEBUG("aux_ch failed %d\n", ret); | 88 | DRM_DEBUG_KMS("aux_ch failed %d\n", ret); |
89 | return ret; | 89 | return ret; |
90 | } | 90 | } |
91 | switch (reply[0] & AUX_I2C_REPLY_MASK) { | 91 | switch (reply[0] & AUX_I2C_REPLY_MASK) { |
@@ -95,10 +95,10 @@ i2c_algo_dp_aux_transaction(struct i2c_adapter *adapter, int mode, | |||
95 | } | 95 | } |
96 | return reply_bytes - 1; | 96 | return reply_bytes - 1; |
97 | case AUX_I2C_REPLY_NACK: | 97 | case AUX_I2C_REPLY_NACK: |
98 | DRM_DEBUG("aux_ch nack\n"); | 98 | DRM_DEBUG_KMS("aux_ch nack\n"); |
99 | return -EREMOTEIO; | 99 | return -EREMOTEIO; |
100 | case AUX_I2C_REPLY_DEFER: | 100 | case AUX_I2C_REPLY_DEFER: |
101 | DRM_DEBUG("aux_ch defer\n"); | 101 | DRM_DEBUG_KMS("aux_ch defer\n"); |
102 | udelay(100); | 102 | udelay(100); |
103 | break; | 103 | break; |
104 | default: | 104 | default: |
@@ -224,7 +224,7 @@ i2c_algo_dp_aux_xfer(struct i2c_adapter *adapter, | |||
224 | if (ret >= 0) | 224 | if (ret >= 0) |
225 | ret = num; | 225 | ret = num; |
226 | i2c_algo_dp_aux_stop(adapter, reading); | 226 | i2c_algo_dp_aux_stop(adapter, reading); |
227 | DRM_DEBUG("dp_aux_xfer return %d\n", ret); | 227 | DRM_DEBUG_KMS("dp_aux_xfer return %d\n", ret); |
228 | return ret; | 228 | return ret; |
229 | } | 229 | } |
230 | 230 | ||
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 2b0fe54cd92c..d4823cc87895 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c | |||
@@ -230,8 +230,9 @@ static int intelfb_create(struct drm_device *dev, uint32_t fb_width, | |||
230 | par->intel_fb = intel_fb; | 230 | par->intel_fb = intel_fb; |
231 | 231 | ||
232 | /* To allow resizeing without swapping buffers */ | 232 | /* To allow resizeing without swapping buffers */ |
233 | DRM_DEBUG("allocated %dx%d fb: 0x%08x, bo %p\n", intel_fb->base.width, | 233 | DRM_DEBUG_KMS("allocated %dx%d fb: 0x%08x, bo %p\n", |
234 | intel_fb->base.height, obj_priv->gtt_offset, fbo); | 234 | intel_fb->base.width, intel_fb->base.height, |
235 | obj_priv->gtt_offset, fbo); | ||
235 | 236 | ||
236 | mutex_unlock(&dev->struct_mutex); | 237 | mutex_unlock(&dev->struct_mutex); |
237 | return 0; | 238 | return 0; |
@@ -249,7 +250,7 @@ int intelfb_probe(struct drm_device *dev) | |||
249 | { | 250 | { |
250 | int ret; | 251 | int ret; |
251 | 252 | ||
252 | DRM_DEBUG("\n"); | 253 | DRM_DEBUG_KMS("\n"); |
253 | ret = drm_fb_helper_single_fb_probe(dev, 32, intelfb_create); | 254 | ret = drm_fb_helper_single_fb_probe(dev, 32, intelfb_create); |
254 | return ret; | 255 | return ret; |
255 | } | 256 | } |
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 05598ae10c4b..b1e3af792cf9 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -950,7 +950,7 @@ void intel_lvds_init(struct drm_device *dev) | |||
950 | if ((I915_READ(PCH_LVDS) & LVDS_DETECTED) == 0) | 950 | if ((I915_READ(PCH_LVDS) & LVDS_DETECTED) == 0) |
951 | return; | 951 | return; |
952 | if (dev_priv->edp_support) { | 952 | if (dev_priv->edp_support) { |
953 | DRM_DEBUG("disable LVDS for eDP support\n"); | 953 | DRM_DEBUG_KMS("disable LVDS for eDP support\n"); |
954 | return; | 954 | return; |
955 | } | 955 | } |
956 | gpio = PCH_GPIOC; | 956 | gpio = PCH_GPIOC; |
@@ -1082,7 +1082,7 @@ out: | |||
1082 | } | 1082 | } |
1083 | dev_priv->lid_notifier.notifier_call = intel_lid_notify; | 1083 | dev_priv->lid_notifier.notifier_call = intel_lid_notify; |
1084 | if (acpi_lid_notifier_register(&dev_priv->lid_notifier)) { | 1084 | if (acpi_lid_notifier_register(&dev_priv->lid_notifier)) { |
1085 | DRM_DEBUG("lid notifier registration failed\n"); | 1085 | DRM_DEBUG_KMS("lid notifier registration failed\n"); |
1086 | dev_priv->lid_notifier.notifier_call = NULL; | 1086 | dev_priv->lid_notifier.notifier_call = NULL; |
1087 | } | 1087 | } |
1088 | drm_sysfs_connector_add(connector); | 1088 | drm_sysfs_connector_add(connector); |
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 9ca917931afb..a0e4bc47b0f7 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c | |||
@@ -1416,16 +1416,16 @@ intel_tv_detect_type (struct drm_crtc *crtc, struct intel_output *intel_output) | |||
1416 | * 0 0 0 Component | 1416 | * 0 0 0 Component |
1417 | */ | 1417 | */ |
1418 | if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { | 1418 | if ((tv_dac & TVDAC_SENSE_MASK) == (TVDAC_B_SENSE | TVDAC_C_SENSE)) { |
1419 | DRM_DEBUG("Detected Composite TV connection\n"); | 1419 | DRM_DEBUG_KMS("Detected Composite TV connection\n"); |
1420 | type = DRM_MODE_CONNECTOR_Composite; | 1420 | type = DRM_MODE_CONNECTOR_Composite; |
1421 | } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { | 1421 | } else if ((tv_dac & (TVDAC_A_SENSE|TVDAC_B_SENSE)) == TVDAC_A_SENSE) { |
1422 | DRM_DEBUG("Detected S-Video TV connection\n"); | 1422 | DRM_DEBUG_KMS("Detected S-Video TV connection\n"); |
1423 | type = DRM_MODE_CONNECTOR_SVIDEO; | 1423 | type = DRM_MODE_CONNECTOR_SVIDEO; |
1424 | } else if ((tv_dac & TVDAC_SENSE_MASK) == 0) { | 1424 | } else if ((tv_dac & TVDAC_SENSE_MASK) == 0) { |
1425 | DRM_DEBUG("Detected Component TV connection\n"); | 1425 | DRM_DEBUG_KMS("Detected Component TV connection\n"); |
1426 | type = DRM_MODE_CONNECTOR_Component; | 1426 | type = DRM_MODE_CONNECTOR_Component; |
1427 | } else { | 1427 | } else { |
1428 | DRM_DEBUG("No TV connection detected\n"); | 1428 | DRM_DEBUG_KMS("No TV connection detected\n"); |
1429 | type = -1; | 1429 | type = -1; |
1430 | } | 1430 | } |
1431 | 1431 | ||