Skip to content

drm/panthor: add devcoredump support

Chia-I Wu dri-devel lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/panthor: add devcoredump supportdrivers/gpu/drm/panthor/Makefile drivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h +3 more+375 -02 replies
2/9drm/panthor: capture GPU state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h drivers/gpu/drm/panthor/panthor_regs.h +1 more+113 -00 replies
3/9drm/panthor: capture GLB state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h+46 -00 replies
4/9drm/panthor: capture CSG state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h drivers/gpu/drm/panthor/panthor_sched.c+94 -00 replies
5/9drm/panthor: capture CS state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h drivers/gpu/drm/panthor/panthor_sched.c +1 more+129 -00 replies
6/9drm/panthor: capture AS state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h drivers/gpu/drm/panthor/panthor_sched.c +1 more+51 -00 replies
7/9drm/panthor: capture VMA state for devcoredumpdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_coredump.h drivers/gpu/drm/panthor/panthor_mmu.c +1 more+135 -50 replies
8/9drm/panthor: check bo offset alignment in vm binddrivers/gpu/drm/panthor/panthor_mmu.c+2 -21 reply
9/9drm/panthor: add DRM_PANTHOR_VM_BIND_OP_MAP_DUMPABLEdrivers/gpu/drm/panthor/panthor_coredump.c drivers/gpu/drm/panthor/panthor_drv.c drivers/gpu/drm/panthor/panthor_mmu.c +1 more+49 -41 reply

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchBoris Brezillon
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] drm/panthor: add devcoredump support

This series adds devcoredump support to panthor.

This is written from scratch and is not based on the prior work[1]. The main differences are

- coredump triggers on all faulty/fatal/timeout events
- state capture and state process are two separated steps, with GFP_NOWAIT being used for state capture
- state capture captures both sw states and hw regs that are potentially interesting
- coredump data is in text format, similar to what msm and xe do

A sample devcoredump can be found at
https://gitlab.freedesktop.org/panfrost/linux/-/issues/44

[1] https://lore.kernel.org/lkml/[email protected]/

Chia-I Wu (9):
drm/panthor: add devcoredump support drm/panthor: capture GPU state for devcoredump drm/panthor: capture GLB state for devcoredump drm/panthor: capture CSG state for devcoredump drm/panthor: capture CS state for devcoredump drm/panthor: capture AS state for devcoredump drm/panthor: capture VMA state for devcoredump drm/panthor: check bo offset alignment in vm bind drm/panthor: add DRM_PANTHOR_VM_BIND_OP_MAP_DUMPABLE

 drivers/gpu/drm/panthor/Makefile           |   2 +
 drivers/gpu/drm/panthor/panthor_coredump.c | 617 +++++++++++++++++++++
 drivers/gpu/drm/panthor/panthor_coredump.h | 178 ++++++
 drivers/gpu/drm/panthor/panthor_device.h   |   6 +
 drivers/gpu/drm/panthor/panthor_drv.c      |   3 +-
 drivers/gpu/drm/panthor/panthor_mmu.c      |  54 +-
 drivers/gpu/drm/panthor/panthor_mmu.h      |   4 +
 drivers/gpu/drm/panthor/panthor_regs.h     |   6 +
 drivers/gpu/drm/panthor/panthor_sched.c    | 104 ++++
 drivers/gpu/drm/panthor/panthor_sched.h    |  14 +
 include/uapi/drm/panthor_drm.h             |   7 +
 11 files changed, 989 insertions(+), 6 deletions(-)
 create mode 100644 drivers/gpu/drm/panthor/panthor_coredump.c
 create mode 100644 drivers/gpu/drm/panthor/panthor_coredump.h
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog