drm/i915/guc: Print CTL params passed to Guc
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 18 Jun 2018 11:18:20 +0000 (11:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Jun 2018 22:34:17 +0000 (23:34 +0100)
While debugging we may want to examine params passed to GuC.

v2: drop #ifdef DEBUG_GUC - Michal

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com> #1
Cc: Michal Winiarski <michal.winiarski@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180618111821.47088-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_guc.c

index 53b43bc73c017d29cf7fe1840cd0cdd3b63d6256..e12bd259df1720f0ad684b6d25f809a029931c88 100644 (file)
@@ -351,6 +351,9 @@ void intel_guc_init_params(struct intel_guc *guc)
        params[GUC_CTL_DEBUG] = guc_ctl_debug_flags(guc);
        params[GUC_CTL_CTXINFO] = guc_ctl_ctxinfo_flags(guc);
 
+       for (i = 0; i < GUC_CTL_MAX_DWORDS; i++)
+               DRM_DEBUG_DRIVER("param[%2d] = %#x\n", i, params[i]);
+
        /*
         * All SOFT_SCRATCH registers are in FORCEWAKE_BLITTER domain and
         * they are power context saved so it's ok to release forcewake