Re: [PATCH RFC v2 0/4] Disable ATS via iommu during PCI resets
From: Jason Gunthorpe
Date: Sun Jul 27 2025 - 12:21:00 EST
On Sun, Jul 27, 2025 at 08:48:26PM +0800, Ethan Zhao wrote:
> At least, we can do some attempt in DPC and Hot-plug driver, and then
> push the hardware specification update to provide pre-reset notification for
> DPC & hotplug. does it make sense ?
I think DPC is a different case..
If we get a DPC we should also push the iommu into blocking, disable
ATS and abandon any outstanding ATC invalidations as part of
recovering from the DPC. Once everythings is cleaned up we can set the
iommu back up again and allow the driver to recover the device.
I think the current series is a good step along that path, but we'd
also need to improve the drivers to handle abandonding/aborting the
ATC invalidations.
IMHO DPC and SW initiated reset are separate projects.
Jason