drm/i915/guc: use probe_error log for CT enablement failure
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 3 Jun 2021 05:16:12 +0000 (22:16 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Jun 2021 21:30:57 +0000 (23:30 +0200)
commit6fb086e5e6ba82df345d3c7f9e60c5b1f4bd6fc7
tree40bb68423034ddb278e2b4dc88be15b18c07af4b
parent1fb12c5871521eab5fa428bf265841b1a3827a97
drm/i915/guc: use probe_error log for CT enablement failure

We have a couple of failure injection points in the CT enablement path,
so we need to use i915_probe_error() to select the appropriate log level.
A new macro (CT_PROBE_ERROR) has been added to the set of CT logging
macros to be used in this scenario and upcoming ones.

While adding the new macros, fix the underlying logging mechanics used
by the existing ones (DRM_DEV_* -> drm_*) and move the inlines to
before they're used inside the macros.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210603051630.2635-3-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c