drm/i915/uc: Prefer dev_info for reporting options
While modparams are global for the i915 module, we are reporting status of the params applied against specific device instance. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190807170034.8440-2-michal.wajdeczko@intel.com
This commit is contained in:

committed by
Chris Wilson

parent
a37f08a882
commit
12be4a4c75
@@ -59,7 +59,10 @@ static int __intel_uc_reset_hw(struct intel_uc *uc)
|
|||||||
|
|
||||||
static void __confirm_options(struct intel_uc *uc)
|
static void __confirm_options(struct intel_uc *uc)
|
||||||
{
|
{
|
||||||
DRM_DEBUG_DRIVER("enable_guc=%d (guc:%s submission:%s huc:%s)\n",
|
struct drm_i915_private *i915 = uc_to_gt(uc)->i915;
|
||||||
|
|
||||||
|
DRM_DEV_DEBUG_DRIVER(i915->drm.dev,
|
||||||
|
"enable_guc=%d (guc:%s submission:%s huc:%s)\n",
|
||||||
i915_modparams.enable_guc,
|
i915_modparams.enable_guc,
|
||||||
yesno(intel_uc_supports_guc(uc)),
|
yesno(intel_uc_supports_guc(uc)),
|
||||||
yesno(intel_uc_supports_guc_submission(uc)),
|
yesno(intel_uc_supports_guc_submission(uc)),
|
||||||
@@ -76,22 +79,26 @@ static void __confirm_options(struct intel_uc *uc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!intel_uc_supports_guc(uc))
|
if (!intel_uc_supports_guc(uc))
|
||||||
DRM_INFO("Incompatible option enable_guc=%d - %s\n",
|
dev_info(i915->drm.dev,
|
||||||
|
"Incompatible option enable_guc=%d - %s\n",
|
||||||
i915_modparams.enable_guc, "GuC is not supported!");
|
i915_modparams.enable_guc, "GuC is not supported!");
|
||||||
|
|
||||||
if (i915_modparams.enable_guc & ENABLE_GUC_LOAD_HUC &&
|
if (i915_modparams.enable_guc & ENABLE_GUC_LOAD_HUC &&
|
||||||
!intel_uc_supports_huc(uc))
|
!intel_uc_supports_huc(uc))
|
||||||
DRM_INFO("Incompatible option enable_guc=%d - %s\n",
|
dev_info(i915->drm.dev,
|
||||||
|
"Incompatible option enable_guc=%d - %s\n",
|
||||||
i915_modparams.enable_guc, "HuC is not supported!");
|
i915_modparams.enable_guc, "HuC is not supported!");
|
||||||
|
|
||||||
if (i915_modparams.enable_guc & ENABLE_GUC_SUBMISSION &&
|
if (i915_modparams.enable_guc & ENABLE_GUC_SUBMISSION &&
|
||||||
!intel_uc_supports_guc_submission(uc))
|
!intel_uc_supports_guc_submission(uc))
|
||||||
DRM_INFO("Incompatible option enable_guc=%d - %s\n",
|
dev_info(i915->drm.dev,
|
||||||
|
"Incompatible option enable_guc=%d - %s\n",
|
||||||
i915_modparams.enable_guc, "GuC submission is N/A");
|
i915_modparams.enable_guc, "GuC submission is N/A");
|
||||||
|
|
||||||
if (i915_modparams.enable_guc & ~(ENABLE_GUC_SUBMISSION |
|
if (i915_modparams.enable_guc & ~(ENABLE_GUC_SUBMISSION |
|
||||||
ENABLE_GUC_LOAD_HUC))
|
ENABLE_GUC_LOAD_HUC))
|
||||||
DRM_INFO("Incompatible option enable_guc=%d - %s\n",
|
dev_info(i915->drm.dev,
|
||||||
|
"Incompatible option enable_guc=%d - %s\n",
|
||||||
i915_modparams.enable_guc, "undocumented flag");
|
i915_modparams.enable_guc, "undocumented flag");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user