[Intel-xe] [PATCH v2 0/7] xe2: Add PAT programming

Lucas De Marchi lucas.demarchi at intel.com
Tue Oct 3 12:52:10 UTC 2023


Add the PAT table and allow PTEs to be encoded with the additional bit.

This also adds a new debug capability: allow to dump the PAT table via
debugfs and to dump it automatically when the driver fails to bind to
the device. A wrong PAT table may be related with GuC failing to
initialize or other failures that go away with additional debug
messages. At least dumping the table allows one to quickly check if the
values programmed are the expected ones.

v2: Fix PAT dump for xehp/xehpc/xelpg

Lucas De Marchi (6):
  drm/xe/vm: Prefer xe_assert() over XE_WARN_ON()
  drm/xe/xe2: Follow XeHPC for TLB invalidation
  fixup! drm/xe/pat: Prefer the arch/IP names
  drm/xe/xe2: Add one more bit to encode PAT to ppgtt entries
  drm/xe/pat: Add debugfs node to dump PAT
  drm/xe/gt: Dump PAT table when failing to initialize

Matt Roper (1):
  drm/xe/xe2: Program PAT tables

 drivers/gpu/drm/xe/xe_bo.h         |   1 +
 drivers/gpu/drm/xe/xe_ggtt.c       |   2 +-
 drivers/gpu/drm/xe/xe_gt.c         |  12 ++
 drivers/gpu/drm/xe/xe_gt_debugfs.c |  12 ++
 drivers/gpu/drm/xe/xe_pat.c        | 298 ++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_pat.h        |   8 +
 drivers/gpu/drm/xe/xe_vm.c         |   6 +-
 7 files changed, 334 insertions(+), 5 deletions(-)

-- 
2.40.1



More information about the Intel-xe mailing list