drm/xe/debugfs: Include GFXPIPE commands in LRC dump
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 16 Oct 2023 16:34:56 +0000 (09:34 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:01 +0000 (11:43 -0500)
commit6de492ae5f5ee6edccf1e1fae472bc5f95cec8e6
treee11ac3e236d8ddc0510e87c570e89b9eca78cc89
parent0f60547f7d2c3db16b151540e6697c7d90a9f93b
drm/xe/debugfs: Include GFXPIPE commands in LRC dump

RCS and CCS engines include several non-register gfxpipe commands in
their LRC images.  Include these in the dump output so that we can see
exactly what's inside the context snapshot.

v2:
 - Include raw instruction header in output
 - Add 3DSTATE_AMFS_TEXTURE_POINTERS and 3DSTATE_MONOFILTER_SIZE.  The
   first was supposed to be removed in Xe_HPG, and the second by
   gen12, but both still show up in the RCS LRC.

v3:
 - Sanity check that we don't have numdw > remaining_dw.  (Lucas)

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20231016163449.1300701-14-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/instructions/xe_gfxpipe_commands.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_lrc.c