Skip to content

accel/amdxdna: Add AIE4 async events and TDR

David Zhang dri-devel lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Add patch 3 to check mailbox message overflow.
- Rebase on drm-misc-next.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5accel/amdxdna: Add AIE4 async event buffersdrivers/accel/amdxdna/Makefile drivers/accel/amdxdna/aie4_error.c drivers/accel/amdxdna/aie4_message.c +3 more+564 -791 reply
2/5accel/amdxdna: Add AIE4 context recoverydrivers/accel/amdxdna/aie4_ctx.c drivers/accel/amdxdna/aie4_error.c drivers/accel/amdxdna/aie4_pci.c +3 more+375 -561 reply
3/5accel/amdxdna: Check mailbox message overflowdrivers/accel/amdxdna/amdxdna_mailbox.c+2 -21 reply
4/5accel/amdxdna: Handle AIE4 firmware notificationsdrivers/accel/amdxdna/aie4_error.c drivers/accel/amdxdna/aie4_msg_priv.h drivers/accel/amdxdna/aie4_pci.c +3 more+173 -01 reply
5/5accel/amdxdna: Recover hung AIE4 contextsdrivers/accel/amdxdna/aie4_ctx.c drivers/accel/amdxdna/aie4_error.c drivers/accel/amdxdna/aie4_pci.c +1 more+74 -71 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchLizhi Hou
1/5R-b
2/5R-b
3/5
4/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [PATCH V2 0/5] accel/amdxdna: Add AIE4 async events and TDR

This series adds AIE4 async event handling and timeout detection and recovery (TDR) for AIE4 hardware contexts.

- Register AIE4 async event buffers with firmware.
- Check mailbox message overflow.
- Reset an AIE4 context on a context error reported by firmware, and keep the last one for the last async error query.
- Handle AIE4 firmware notifications, which report the context errors that have no async event buffer, including all errors on a VF.
- Recover hung AIE4 contexts, detected the way AIE2 detects TDR; raise the job timeout to 10s.

Changes in V2:
- Add patch 3 to check mailbox message overflow.
- Rebase on drm-misc-next.

This series applies on top of drm-misc-next.

David Zhang (4):
accel/amdxdna: Add AIE4 async event buffers
accel/amdxdna: Add AIE4 context recovery
accel/amdxdna: Check mailbox message overflow
accel/amdxdna: Recover hung AIE4 contexts

Nishad Saraf (1):
accel/amdxdna: Handle AIE4 firmware notifications

 drivers/accel/amdxdna/Makefile          |   1 +
 drivers/accel/amdxdna/aie4_ctx.c        | 310 ++++++++++---
 drivers/accel/amdxdna/aie4_error.c      | 560 ++++++++++++++++++++++++
 drivers/accel/amdxdna/aie4_message.c    |  59 ++-
 drivers/accel/amdxdna/aie4_msg_priv.h   | 111 +++++
 drivers/accel/amdxdna/aie4_pci.c        | 162 ++++---
 drivers/accel/amdxdna/aie4_pci.h        |  69 ++-
 drivers/accel/amdxdna/amdxdna_ctx.h     |   1 +
 drivers/accel/amdxdna/amdxdna_error.h   |  10 +
 drivers/accel/amdxdna/amdxdna_mailbox.c |  22 +-
 drivers/accel/amdxdna/amdxdna_mailbox.h |  17 +
 11 files changed, 1183 insertions(+), 139 deletions(-)
 create mode 100644 drivers/accel/amdxdna/aie4_error.c

base-commit: 89e6c97edc99949b51aad91072caf61b07bfde66

Signature · 1 line
2.34.1