Skip to content

Enable FLR for IDXD halt

Fenghua Yu dmaengine lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesApplied
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- Patch 3: Call a free helper to free all saved configs (Dave Jiang).
- Patch 3: Replace defined bitmap free function with existing bitmpa_free().

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5dmaengine: idxd: Add idxd_pci_probe_alloc() helperdrivers/dma/idxd/idxd.h drivers/dma/idxd/init.c+64 -400 replies
2/5dmaengine: idxd: Binding and unbinding IDXD device and driverdrivers/dma/idxd/init.c+33 -00 replies
3/5dmaengine: idxd: Add idxd_device_config_save() and idxd_device_config_restore() helpersdrivers/dma/idxd/idxd.h drivers/dma/idxd/init.c+236 -00 replies
4/5dmaengine: idxd: Refactor halt handlerdrivers/dma/idxd/irq.c+31 -320 replies
5/5dmaengine: idxd: Enable Function Level Reset (FLR) for haltdrivers/dma/idxd/init.c drivers/dma/idxd/irq.c+148 -30 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDave Jiang
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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] Enable FLR for IDXD halt

When IDXD device hits hardware errors, it enters halt state and triggers an interrupt to IDXD driver. Currently IDXD driver just prints an error message in the interrupt handler.

A better way to handle the interrupt is to do Function Level Reset (FLR) and recover the device's hardware and software configurations to its previous working state. The device and software can continue to run after the interrupt.

This series enables this FLR handling for IDXD device whose WQs are all user type. FLR handling for IDXD device whose WQs are kernel type will be implemented in a future series.

Change log:
v2:
- Patch 3: Call a free helper to free all saved configs (Dave Jiang).
- Patch 3: Replace defined bitmap free function with existing bitmpa_free().

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

Fenghua Yu (5):
dmaengine: idxd: Add idxd_pci_probe_alloc() helper
dmaengine: idxd: Binding and unbinding IDXD device and driver
dmaengine: idxd: Add idxd_device_config_save() and
idxd_device_config_restore() helpers
dmaengine: idxd: Refactor halt handler
dmaengine: idxd: Enable Function Level Reset (FLR) for halt

 drivers/dma/idxd/idxd.h |  13 ++
 drivers/dma/idxd/init.c | 479 ++++++++++++++++++++++++++++++++++++----
 drivers/dma/idxd/irq.c  |  85 ++++---
 3 files changed, 507 insertions(+), 70 deletions(-)
Signature · 1 line
2.37.1