]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/mocs: Add debugfs node to dump mocs
authorJanga Rahul Kumar <janga.rahul.kumar@intel.com>
Fri, 3 May 2024 19:39:02 +0000 (01:09 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 6 May 2024 16:24:50 +0000 (09:24 -0700)
commit9fbd0adbcbe81e207eb030d9ad59953905625dd1
tree58bf0bd2dc63d6d7b1d9eac4c7e30a3172a216dd
parent72c7163f27483c333a1f27916505459efa1a373a
drm/xe/mocs: Add debugfs node to dump mocs

This is useful to check mocs configuration. Tests/Tools can use
this debugfs entry to get mocs info.

v2: Address review comments. Change debugfs output style similar
to pat debugfs. (Lucas De Marchi)

v3: rebase.

v4: Address review comments. Use function pointer inside ops
struct. Update Test-with links. Remove usage of flags wherever
not required. (Lucas De Marchi)

v5: Address review comments. Move register defines. Modify mocs
info struct to avoid holes. (Luca De Marchi)

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240503193902.2056202-3-janga.rahul.kumar@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_mocs.c
drivers/gpu/drm/xe/xe_mocs.h