Skip to content

plx_dma fixes

Logan Gunthorpe dmaengine lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 4 repliesIn review
  2. v26 patches 2 repliesSuperseded
  3. v16 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* Add Fixes tags to the patches that lacked one (per Sashiko)
* Reuse plx_dma_free_desc() in the plx_dma_alloc_desc() error path instead of open coding the same cleanup (per Sashiko)
* Rebased on v7.4-rc3

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dmaengine: plx_dma: don't call pci_irq_vector() under rcu_read_lock()drivers/dma/plx_dma.c+8 -80 replies
2/6dmaengine: plx_dma: fix descriptor ring leak in alloc_chan_resources()drivers/dma/plx_dma.c+15 -90 replies
3/6dmaengine: plx_dma: use writel() for the 32-bit PLX_REG_CTRL registerdrivers/dma/plx_dma.c+1 -10 replies
4/6dmaengine: plx_dma: add dma_rmb() after observing write-back statusdrivers/dma/plx_dma.c+7 -01 reply
5/6dmaengine: plx_dma: use spin_lock_bh() in plx_dma_process_desc()drivers/dma/plx_dma.c+2 -20 replies
6/6dmaengine: plx_dma: don't invoke client callbacks with ring_lock helddrivers/dma/plx_dma.c+38 -73 replies

Reviews trailers per patch

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

PatchFrank Li
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/6] plx_dma fixes

This is v3 from my series last week. It uses the new plx_dma_free_desc() helper in one more place and adds fixes tags through out.

Also, this series is not a high priority to me, I'm just trying to fix Sashiko warnings. If there's spare review bandwidth I'd prefer the time spent on my other series[1].

This series is based off of v7.4-rc3.

Thanks,

Logan

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

--

Changes since v2:
* Add Fixes tags to the patches that lacked one (per Sashiko)
* Reuse plx_dma_free_desc() in the plx_dma_alloc_desc() error path instead of open coding the same cleanup (per Sashiko)
* Rebased on v7.4-rc3

Changes since v1:
* Serialize descriptor completion with a new complete_lock so callbacks stay in order and can't still be running after plx_dma_free_chan_resources() returns (per Sashiko)
* Expand the commit message and comment for the dma_rmb() patch to explain why the barrier is needed (per Frank)
* Collect Frank's Reviewed-by tags
* Rebased onto v7.4-rc2 (no conflicts)

Logan Gunthorpe (6):
dmaengine: plx_dma: don't call pci_irq_vector() under rcu_read_lock()
dmaengine: plx_dma: fix descriptor ring leak in alloc_chan_resources()
dmaengine: plx_dma: use writel() for the 32-bit PLX_REG_CTRL register
dmaengine: plx_dma: add dma_rmb() after observing write-back status
dmaengine: plx_dma: use spin_lock_bh() in plx_dma_process_desc()
dmaengine: plx_dma: don't invoke client callbacks with ring_lock held

 drivers/dma/plx_dma.c | 98 +++++++++++++++++++++++++++++++------------
 1 file changed, 71 insertions(+), 27 deletions(-)

base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3

Signature · 1 line
2.47.3