[PATCH v5 0/2] drm/xe/mocs: Add debugfs node to dump mocs

Janga Rahul Kumar janga.rahul.kumar at intel.com
Fri May 3 19:39:00 UTC 2024


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. Create separate patch for moving function. (Lucas De Marchi)

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

Test-with: https://patchwork.freedesktop.org/patch/msgid/20240424200856.1194881-2-janga.rahul.kumar@intel.com
           https://patchwork.freedesktop.org/patch/msgid/20240424200856.1194881-3-janga.rahul.kumar@intel.com/

Tested-on: ADL, DG1, DG2, MTL, PVC, LNL

Cc: Matt Roper <matthew.d.roper at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>

Janga Rahul Kumar (2):
  drm/xe: Relocate regs_are_mcr function
  drm/xe/mocs: Add debugfs node to dump mocs

 drivers/gpu/drm/xe/regs/xe_gt_regs.h |  38 +++-
 drivers/gpu/drm/xe/xe_gt_debugfs.c   |  11 +
 drivers/gpu/drm/xe/xe_mocs.c         | 299 +++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_mocs.h         |   8 +
 4 files changed, 314 insertions(+), 42 deletions(-)

-- 
2.25.1



More information about the Intel-xe mailing list