Skip to content

Support hot-unbind in IOAT

Logan Gunthorpe dmaengine lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dmaengine: Store module owner in dma_device structdrivers/dma/dmaengine.c include/linux/dmaengine.h+5 -10 replies
2/5dmaengine: Call module_put() after device_free_chan_resources()drivers/dma/dmaengine.c+2 -11 reply
3/5dmaengine: Move dma_channel_rebalance() infrastructure up in codedrivers/dma/dmaengine.c+144 -1440 replies
4/5dmaengine: Add reference counting to dma_device structdrivers/dma/dmaengine.c include/linux/dmaengine.h+56 -90 replies
5/5dmaengine: ioat: Support in-use unbinddrivers/dma/ioat/init.c+26 -121 reply

Reviews trailers per patch

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

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

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/5] Support hot-unbind in IOAT

Hey,

This patchset creates some common infrastructure which I will use in the next version of the PLX driver. It adds a reference count to the dma_device struct which is taken and released every time a channel is allocated or freed. A call back is used to allow the driver to free the underlying memory and do any final cleanup.

For a use-case, I've adjusted the ioat driver to properly support hot-unbind. The driver was already pretty close as it already had a shutdown state; so it mostly only required freeing the memory correctly and calling ioat_shutdown at the correct time.

This patchset is based on v5.5-rc2 and a git branch is available here:

https://github.com/sbates130272/linux-p2pmem/ ioat-hot-unbind

Thanks,

Logan

--

Logan Gunthorpe (5):
dmaengine: Store module owner in dma_device struct
dmaengine: Call module_put() after device_free_chan_resources()
dmaengine: Move dma_channel_rebalance() infrastructure up in code
dmaengine: Add reference counting to dma_device struct
dmaengine: ioat: Support in-use unbind

 drivers/dma/dmaengine.c   | 352 +++++++++++++++++++++-----------------
 drivers/dma/ioat/init.c   |  38 ++--
 include/linux/dmaengine.h |  10 +-
 3 files changed, 233 insertions(+), 167 deletions(-)

--
2.20.1