Thread (15 messages) flat view 15 messages, 5 authors, 2024-09-24

Re: [PATCH net 2/2] page_pool: fix IOMMU crash when driver has already unbound

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2024-09-23 17:52:28
Also in: bpf, imx, intel-wired-lan, linux-arm-kernel, linux-iommu, linux-mediatek, linux-mm, linux-rdma, linux-wireless, lkml

On Fri, Sep 20, 2024 at 02:14:02PM +0800, Yunsheng Lin wrote:
I am not sure what dose the API that allows netdev to "give" struct device
to page_pool look like or how to implement the API yet, but the obvious way
to stall the calling of device_del() is to wait for the inflight
page to
It is not device_del() you need to stall, but the remove() function of
the device driver.

Once all drivers have been unbound the DMA API can be reconfigured and
all existing DMA mappings must be concluded before this happens,
otherwise there will be problems.

So, stalling something like unregister_netdevice() would be a better
target - though stalling forever on driver unbind would not be
acceptable.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help