mirror of https://gitee.com/openkylin/linux.git
drm/i915: convert to new logging macros in i915/intel_gvt.c
This converts the use of printk based logging macros in i915/intel_gvt.c with the new struct drm_device based logging macros. Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/44f3839820a32ed03d73dc56a6ef3581994802c9.1578560355.git.wambui.karugax@gmail.com
This commit is contained in:
parent
68b3271729
commit
fd6735fc63
|
@ -67,12 +67,13 @@ void intel_gvt_sanitize_options(struct drm_i915_private *dev_priv)
|
|||
return;
|
||||
|
||||
if (intel_vgpu_active(dev_priv)) {
|
||||
DRM_INFO("GVT-g is disabled for guest\n");
|
||||
drm_info(&dev_priv->drm, "GVT-g is disabled for guest\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
if (!is_supported_device(dev_priv)) {
|
||||
DRM_INFO("Unsupported device. GVT-g is disabled\n");
|
||||
drm_info(&dev_priv->drm,
|
||||
"Unsupported device. GVT-g is disabled\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
@ -99,18 +100,20 @@ int intel_gvt_init(struct drm_i915_private *dev_priv)
|
|||
return -ENODEV;
|
||||
|
||||
if (!i915_modparams.enable_gvt) {
|
||||
DRM_DEBUG_DRIVER("GVT-g is disabled by kernel params\n");
|
||||
drm_dbg(&dev_priv->drm,
|
||||
"GVT-g is disabled by kernel params\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (USES_GUC_SUBMISSION(dev_priv)) {
|
||||
DRM_ERROR("i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission\n");
|
||||
drm_err(&dev_priv->drm,
|
||||
"i915 GVT-g loading failed due to Graphics virtualization is not yet supported with GuC submission\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
ret = intel_gvt_init_device(dev_priv);
|
||||
if (ret) {
|
||||
DRM_DEBUG_DRIVER("Fail to init GVT device\n");
|
||||
drm_dbg(&dev_priv->drm, "Fail to init GVT device\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue