]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915: Add debug print about hw config table size
authorJohn Harrison <John.C.Harrison@Intel.com>
Sat, 21 Dec 2024 01:19:25 +0000 (17:19 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Wed, 15 Jan 2025 18:56:33 +0000 (10:56 -0800)
Add debug info to help investigate a very rare bug:
  https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13385

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241221011925.3944625-1-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c

index b67a15f74276246a094041fafd0f9bee4face16a..868195c33f5b34eca31bd3a52a4cb18e45431987 100644 (file)
@@ -7,6 +7,7 @@
 #include "gt/intel_hwconfig.h"
 #include "i915_drv.h"
 #include "i915_memcpy.h"
+#include "intel_guc_print.h"
 
 /*
  * GuC has a blob containing hardware configuration information (HWConfig).
@@ -42,6 +43,8 @@ static int __guc_action_get_hwconfig(struct intel_guc *guc,
        };
        int ret;
 
+       guc_dbg(guc, "Querying HW config table: size = %d, offset = 0x%08X\n",
+               ggtt_size, ggtt_offset);
        ret = intel_guc_send_mmio(guc, action, ARRAY_SIZE(action), NULL, 0);
        if (ret == -ENXIO)
                return -ENOENT;