* question about : inv smmu atc all cmd timeout when pcie dpc occur.
[not found] <8CD08B4737CACA4ABE0228F45E441A91638018B0@dggemm521-mbs.china.huawei.com>
@ 2018-07-03 17:35 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2018-07-03 17:35 UTC (permalink / raw)
To: linux-arm-kernel
Hi Zhongmiao,
On Mon, Jul 02, 2018 at 02:24:45PM +0000, Zhongmiao wrote:
> 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 . ^_^.
Mainline doesn't do anything with ATC invalidate. Which tree are you using?
Will
^ permalink raw reply [flat|nested] 2+ messages in thread
* question about : inv smmu atc all cmd timeout when pcie dpc occur.
[not found] <8CD08B4737CACA4ABE0228F45E441A9163801C42@dggemm521-mbs.china.huawei.com>
@ 2018-07-05 11:59 ` Jean-Philippe Brucker
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Philippe Brucker @ 2018-07-05 11:59 UTC (permalink / raw)
To: linux-arm-kernel
On 04/07/18 03:12, Zhongmiao wrote:
> On Mon, Jul 02, 2018 at 02:24:45PM +0000, Zhongmiao wrote:
>> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-05 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <8CD08B4737CACA4ABE0228F45E441A91638018B0@dggemm521-mbs.china.huawei.com>
2018-07-03 17:35 ` question about : inv smmu atc all cmd timeout when pcie dpc occur Will Deacon
[not found] <8CD08B4737CACA4ABE0228F45E441A9163801C42@dggemm521-mbs.china.huawei.com>
2018-07-05 11:59 ` Jean-Philippe Brucker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).