drm/i915/mtl/gsc: Add a gsc_info debugfs
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 12 Jun 2023 18:15:29 +0000 (11:15 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 13 Jun 2023 22:02:44 +0000 (15:02 -0700)
commit561055b810cac89a4b903a53ebdf34f2cc6e2b3d
tree4df538c41a327c87f65dce355c5b6b823e02003b
parenta6c13a23e96b579440af3b2b87390bf12f072bc4
drm/i915/mtl/gsc: Add a gsc_info debugfs

Add a new debugfs to dump information about the GSC. This includes:

- the FW path and SW tracking status;
- the release, security and compatibility versions;
- the HECI1 status registers.

Note that those are the same registers that the mei driver dumps in
their own status sysfs on DG2 (where mei owns the GSC).

To make it simpler to loop through the status register, the code has
been update to use a PICK macro and the existing code using the regs had
been adapted to match.

v2: fix includes and copyright dates (Alan)
v3: actually fix the includes

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230612181529.2222451-5-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc.c
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc.h
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_uc_debugfs.c
drivers/gpu/drm/i915/i915_reg.h