drm/xe: Add debugfs to dump GuC's hwconfig
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 15 Aug 2024 17:26:03 +0000 (10:26 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 16 Aug 2024 18:07:11 +0000 (11:07 -0700)
commit8a0f58ec4728ec04c654645bf8ed4070821ebbf3
tree86eb49db9146f858dc40a5c996b2fb54fc4abfae
parented7171ff9fabc49ae6ed42fbd082a576473836fc
drm/xe: Add debugfs to dump GuC's hwconfig

Although the query uapi is the official way to get at the GuC's hwconfig
table contents, it's still useful to have a quick debugfs interface to
dump the table in a human-readable format while debugging the driver.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240815172602.2729146-3-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_guc_hwconfig.c
drivers/gpu/drm/xe/xe_guc_hwconfig.h