Commit 68b32717 authored by Wambui Karuga's avatar Wambui Karuga Committed by Jani Nikula

drm/i915: conversion to new logging macros in i915/intel_device_info.c

This replaces the printk and struct device based logging macros with the
new struct drm_device style based logging macros i915/intel_device_info.c.
Signed-off-by: default avatarWambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e404429ff2a5e5080867f577beccd7b578a671cd.1578560355.git.wambui.karugax@gmail.com
parent 5e04eb01
...@@ -974,10 +974,11 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) ...@@ -974,10 +974,11 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv)
sfuse_strap & SFUSE_STRAP_DISPLAY_DISABLED || sfuse_strap & SFUSE_STRAP_DISPLAY_DISABLED ||
(HAS_PCH_CPT(dev_priv) && (HAS_PCH_CPT(dev_priv) &&
!(sfuse_strap & SFUSE_STRAP_FUSE_LOCK))) { !(sfuse_strap & SFUSE_STRAP_FUSE_LOCK))) {
DRM_INFO("Display fused off, disabling\n"); drm_info(&dev_priv->drm,
"Display fused off, disabling\n");
info->pipe_mask = 0; info->pipe_mask = 0;
} else if (fuse_strap & IVB_PIPE_C_DISABLE) { } else if (fuse_strap & IVB_PIPE_C_DISABLE) {
DRM_INFO("PipeC fused off\n"); drm_info(&dev_priv->drm, "PipeC fused off\n");
info->pipe_mask &= ~BIT(PIPE_C); info->pipe_mask &= ~BIT(PIPE_C);
} }
} else if (HAS_DISPLAY(dev_priv) && INTEL_GEN(dev_priv) >= 9) { } else if (HAS_DISPLAY(dev_priv) && INTEL_GEN(dev_priv) >= 9) {
...@@ -1000,7 +1001,8 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) ...@@ -1000,7 +1001,8 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv)
* in the mask. * in the mask.
*/ */
if (enabled_mask == 0 || !is_power_of_2(enabled_mask + 1)) if (enabled_mask == 0 || !is_power_of_2(enabled_mask + 1))
DRM_ERROR("invalid pipe fuse configuration: enabled_mask=0x%x\n", drm_err(&dev_priv->drm,
"invalid pipe fuse configuration: enabled_mask=0x%x\n",
enabled_mask); enabled_mask);
else else
info->pipe_mask = enabled_mask; info->pipe_mask = enabled_mask;
...@@ -1036,7 +1038,8 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) ...@@ -1036,7 +1038,8 @@ void intel_device_info_runtime_init(struct drm_i915_private *dev_priv)
gen12_sseu_info_init(dev_priv); gen12_sseu_info_init(dev_priv);
if (IS_GEN(dev_priv, 6) && intel_vtd_active()) { if (IS_GEN(dev_priv, 6) && intel_vtd_active()) {
DRM_INFO("Disabling ppGTT for VT-d support\n"); drm_info(&dev_priv->drm,
"Disabling ppGTT for VT-d support\n");
info->ppgtt_type = INTEL_PPGTT_NONE; info->ppgtt_type = INTEL_PPGTT_NONE;
} }
...@@ -1084,7 +1087,7 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) ...@@ -1084,7 +1087,7 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv)
if (!(BIT(i) & vdbox_mask)) { if (!(BIT(i) & vdbox_mask)) {
info->engine_mask &= ~BIT(_VCS(i)); info->engine_mask &= ~BIT(_VCS(i));
DRM_DEBUG_DRIVER("vcs%u fused off\n", i); drm_dbg(&dev_priv->drm, "vcs%u fused off\n", i);
continue; continue;
} }
...@@ -1096,7 +1099,7 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) ...@@ -1096,7 +1099,7 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv)
if (INTEL_GEN(dev_priv) >= 12 || logical_vdbox++ % 2 == 0) if (INTEL_GEN(dev_priv) >= 12 || logical_vdbox++ % 2 == 0)
RUNTIME_INFO(dev_priv)->vdbox_sfc_access |= BIT(i); RUNTIME_INFO(dev_priv)->vdbox_sfc_access |= BIT(i);
} }
DRM_DEBUG_DRIVER("vdbox enable: %04x, instances: %04lx\n", drm_dbg(&dev_priv->drm, "vdbox enable: %04x, instances: %04lx\n",
vdbox_mask, VDBOX_MASK(dev_priv)); vdbox_mask, VDBOX_MASK(dev_priv));
GEM_BUG_ON(vdbox_mask != VDBOX_MASK(dev_priv)); GEM_BUG_ON(vdbox_mask != VDBOX_MASK(dev_priv));
...@@ -1108,10 +1111,10 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv) ...@@ -1108,10 +1111,10 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv)
if (!(BIT(i) & vebox_mask)) { if (!(BIT(i) & vebox_mask)) {
info->engine_mask &= ~BIT(_VECS(i)); info->engine_mask &= ~BIT(_VECS(i));
DRM_DEBUG_DRIVER("vecs%u fused off\n", i); drm_dbg(&dev_priv->drm, "vecs%u fused off\n", i);
} }
} }
DRM_DEBUG_DRIVER("vebox enable: %04x, instances: %04lx\n", drm_dbg(&dev_priv->drm, "vebox enable: %04x, instances: %04lx\n",
vebox_mask, VEBOX_MASK(dev_priv)); vebox_mask, VEBOX_MASK(dev_priv));
GEM_BUG_ON(vebox_mask != VEBOX_MASK(dev_priv)); GEM_BUG_ON(vebox_mask != VEBOX_MASK(dev_priv));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment