linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arm64: Getting continuous PCIe "CmpltTO" AER from network card in kdump kernel
@ 2020-03-23 15:21 Prabhakar Kushwaha
  2020-03-23 16:58 ` Robin Murphy
  0 siblings, 1 reply; 8+ messages in thread
From: Prabhakar Kushwaha @ 2020-03-23 15:21 UTC (permalink / raw)
  To: linux-arm-kernel, kexec mailing list
  Cc: Bjorn Helgaas, Bhupesh Sharma, will.deacon,
	Ganapatrao Prabhakerrao Kulkarni, Will Deacon

Hi All,

I am facing issue on Marvell's ARM64 Thunder X2 with kdump kernel.
Here network card is continuously giving following AER error
[  100.839168] igb 0000:09:00.1: AER: aer_status: 0x00004000,
aer_mask: 0x00000000
[  100.846463] igb 0000:09:00.1: AER:    [14] CmpltTO                (First)
[  100.861491] igb 0000:09:00.1: AER: aer_layer=Transaction Layer,
aer_agent=Requester ID
[  100.869400] igb 0000:09:00.1: AER: aer_uncor_severity: 0x00062011

This error is not 100% reproducible. It happens 1 out of 4 try.

This error goes away in following two scenarios
A) Set iommu in bypass mode via bootargs iommu.passthrough=1
B) Wait for ~100ms in arm_smmu_device_reset of  drivers/iommu/arm-smmu-v3.c
        if (reg & CR0_SMMUEN) {
                dev_warn(smmu->dev, "SMMU currently enabled! Resetting...\n");
                WARN_ON(is_kdump_kernel() && !disable_bypass);
                mdelay(100);  <-- Added delay
                arm_smmu_update_gbpa(smmu, GBPA_ABORT, 0);
        }

From A), it is clear that it is related to IOMMU
From B), looks like during boot of kdump kernel, network card is still
active and it has sent some request over PCIe.
as GPBA_ABORT bit is set, no response/completion coming to PCIe
controller hence "CmpltTO" error.

Ideally before setting GPBA_ABORT bit, there should be some check for
active transaction. if it is not possible, a wait should be done to
assure that no more pending transaction left.

why any such delay has not been considered?

--pk

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-26 17:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 15:21 arm64: Getting continuous PCIe "CmpltTO" AER from network card in kdump kernel Prabhakar Kushwaha
2020-03-23 16:58 ` Robin Murphy
2020-03-26 13:36   ` Prabhakar Kushwaha
2020-03-26 14:19     ` Robin Murphy
2020-03-26 15:35       ` Prabhakar Kushwaha
2020-03-26 16:13         ` Marc Zyngier
2020-03-26 16:55           ` Prabhakar Kushwaha
2020-03-26 17:19             ` Marc Zyngier

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).