Thread (1 message) 1 message, 1 author, 2018-07-05

question about : inv smmu atc all cmd timeout when pcie dpc occur.

From: Jean-Philippe Brucker <hidden>
Date: 2018-07-05 11:59:48

On 04/07/18 03:12, Zhongmiao wrote:
On Mon, Jul 02, 2018 at 02:24:45PM +0000, Zhongmiao wrote:
quoted
      I?m testing  pcie  ats feature .     when some  error occur pcie dpc
 then  link down .  iommu will   remove device from iommu group and send  atc
inv all  cmd to  device .

 

But , pcie already  link down , so  atc inv all  will   time out .  I what to
know kernel  driver  how to think aout it  ?  thanks .  ^_^.
Thanks for the report, the interaction between ATS and DPC is an
interesting one, and I hadn't been able to trigger an ATC timeout so far.

An ATC inv timeout shouldn't be fatal, and after seeing this error you
should still be able to use the SMMU. It's not clear from your kernel
log, does the SMMU driver recover cleanly? Can you continue using it for
other endpoints?

As to the messages you're seeing, if it's just a couple of extra
warnings in a situation as exceptional as DPC error, it might fine as
is. But if it bothers you, maybe we could call pci_dev_is_disconnected
before sending an ATC-inv-all, I think the core sets this bit before
removing the device.

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