Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/8] drm/xe/guc: Add GuC based register capture for error capture
@ 2024-02-08 21:19 Zhanjun Dong
  2024-02-08 21:19 ` [PATCH v5 1/8] drm/xe/guc: Add kconfig for GuC based register capture Zhanjun Dong
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Zhanjun Dong @ 2024-02-08 21:19 UTC (permalink / raw)
  To: intel-xe; +Cc: Zhanjun Dong, Alan Previn

Port GuC based register capture for error capture from i915 to Xe.

There are 3 parts inside:
. Prepare for capture registers
    There is a bo create at guc ads init time, that is very early
    and engine map is not ready, make it hard to calculate the
    capture buffer size, new function created for worst case size
    caluation. Other than that, this part basically follows the i915
    design.
. Process capture notification message
    Basically follows i915 design
. Sysfs command process.
    Xe switched to devcoredump, adopted command line process with
    captured node list.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>

Changes from prior revs:
  v5:-  Split dss helper code code as standalone patch.
        Remove old platform registers definition.
        Split register map table to 32 and 64bit each.
  v4:-  Move register map table to xe_hw_engine.c
  v3:-  Remove condition compilation in code
  v2:-  Split into multiple chunks

Zhanjun Dong (8):
  drm/xe/guc: Add kconfig for GuC based register capture
  drm/xe/guc: Update GuC ADS size for error capture
  drm/xe/guc: Add XE_LP steered register lists
  drm/xe/guc: Add capture size check in GuC log buffer
  drm/xe/guc: Check sizing of guc_capture output
  drm/xe/guc: Extract GuC error capture lists on G2H notification
  drm/xe/guc: Pre-allocate output nodes for extraction
  drm/xe/guc: Plumb GuC-capture into dev coredump

 drivers/gpu/drm/xe/Kconfig               |   11 +
 drivers/gpu/drm/xe/Makefile              |    1 +
 drivers/gpu/drm/xe/abi/guc_actions_abi.h |    7 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h     |    5 +
 drivers/gpu/drm/xe/xe_gt_printk.h        |    3 +
 drivers/gpu/drm/xe/xe_guc.c              |    6 +
 drivers/gpu/drm/xe/xe_guc_ads.c          |  229 +++-
 drivers/gpu/drm/xe/xe_guc_ads_types.h    |    2 +
 drivers/gpu/drm/xe/xe_guc_capture.c      | 1332 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_capture.h      |   21 +
 drivers/gpu/drm/xe/xe_guc_capture_fwif.h |  221 ++++
 drivers/gpu/drm/xe/xe_guc_ct.c           |    2 +
 drivers/gpu/drm/xe/xe_guc_fwif.h         |   68 ++
 drivers/gpu/drm/xe/xe_guc_log.c          |  179 +++
 drivers/gpu/drm/xe/xe_guc_log.h          |   15 +
 drivers/gpu/drm/xe/xe_guc_log_types.h    |   26 +
 drivers/gpu/drm/xe/xe_guc_submit.c       |   21 +-
 drivers/gpu/drm/xe/xe_guc_submit.h       |    3 +
 drivers/gpu/drm/xe/xe_guc_types.h        |    2 +
 drivers/gpu/drm/xe/xe_hw_engine.c        |  257 ++++-
 drivers/gpu/drm/xe/xe_hw_engine.h        |    4 +
 drivers/gpu/drm/xe/xe_hw_engine_types.h  |   96 +-
 22 files changed, 2396 insertions(+), 115 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_guc_capture.c
 create mode 100644 drivers/gpu/drm/xe/xe_guc_capture.h
 create mode 100644 drivers/gpu/drm/xe/xe_guc_capture_fwif.h


base-commit: 26c94721565996b1990ccb2a64b05947e1f201b5
-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-09  0:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-08 21:19 [PATCH v5 0/8] drm/xe/guc: Add GuC based register capture for error capture Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 1/8] drm/xe/guc: Add kconfig for GuC based register capture Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 2/8] drm/xe/guc: Update GuC ADS size for error capture Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 3/8] drm/xe/guc: Add XE_LP steered register lists Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 4/8] drm/xe/guc: Add capture size check in GuC log buffer Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 5/8] drm/xe/guc: Check sizing of guc_capture output Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 6/8] drm/xe/guc: Extract GuC error capture lists on G2H notification Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 7/8] drm/xe/guc: Pre-allocate output nodes for extraction Zhanjun Dong
2024-02-08 21:19 ` [PATCH v5 8/8] drm/xe/guc: Plumb GuC-capture into dev coredump Zhanjun Dong
2024-02-09  0:07 ` ✓ CI.Patch_applied: success for drm/xe/guc: Add GuC based register capture for error capture (rev4) Patchwork
2024-02-09  0:07 ` ✗ CI.checkpatch: warning " Patchwork
2024-02-09  0:08 ` ✗ CI.KUnit: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox