Skip to content

Cleanup OA stream on PCI unbind/remove

Umesh Nerlige Ramappa intel-xe 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest7 patches 2 repliesIn review
  2. v97 patches 2 repliesSuperseded
  3. v88 patches 14 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v77 patches0 repliesSuperseded
v67 patches1 replySuperseded
v57 patches3 repliesSuperseded
v47 patches1 replySuperseded
v3 posting 2/25 patches0 repliesSuperseded
v3 posting 1/23 patches0 repliesSuperseded
v23 patches1 replySuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/xe/oa: Ignore a HW tail pointer outside the OA bufferdrivers/gpu/drm/xe/xe_oa.c+9 -00 replies
2/7drm/xe/oa: Use the drm device address_space for the OA stream fddrivers/gpu/drm/xe/xe_oa.c+40 -10 replies
3/7drm/xe: Reject vm_ops->access on BO mappings of an unplugged devicedrivers/gpu/drm/xe/xe_bo.c+13 -20 replies
4/7drm/xe/oa: Wait for in-flight OA batches before stream HW teardowndrivers/gpu/drm/xe/xe_oa.c+38 -80 replies
5/7drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedgingdrivers/gpu/drm/xe/xe_oa.c drivers/gpu/drm/xe/xe_observation.c+81 -191 reply
6/7drm/xe/oa: Free the OA buffer and the stream after the stream destroydrivers/gpu/drm/xe/xe_oa.c+6 -50 replies
7/7drm/xe/oa: Quiesce OA streams on driver unbind and PCI resetdrivers/gpu/drm/xe/xe_oa.c drivers/gpu/drm/xe/xe_oa_types.h+128 -111 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchShekhar ChauhanMatthew Brost
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v10 thread

Cover letter [PATCH v10 0/7] Cleanup OA stream on PCI unbind/remove

When an OA stream FD is open, removing the PCI device due to PCIe errors or doing an unbind causes a NPD and system reboots. While OA registers a fini handler with devm, the handler does not take into account active OA connections.

Add code to quiesce OA connection on PCI remove/unbind.

v2 - v8: Sashiko Comments and other refactor v9, v10: Incorporate comments from Sashiko and Shekhar

Umesh Nerlige Ramappa (7):
drm/xe/oa: Ignore a HW tail pointer outside the OA buffer drm/xe/oa: Use the drm device address_space for the OA stream fd drm/xe: Reject vm_ops->access on BO mappings of an unplugged device drm/xe/oa: Wait for in-flight OA batches before stream HW teardown drm/xe/oa: Fence OA ioctls and mmap against device unplug and wedging drm/xe/oa: Free the OA buffer and the stream after the stream destroy drm/xe/oa: Quiesce OA streams on driver unbind and PCI reset

 drivers/gpu/drm/xe/xe_bo.c          |  15 +-
 drivers/gpu/drm/xe/xe_oa.c          | 309 ++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_oa_types.h    |   3 +
 drivers/gpu/drm/xe/xe_observation.c |  20 +-
 4 files changed, 308 insertions(+), 39 deletions(-)
Signature · 1 line
2.55.0