2021-12-09 09:39:57

by Chris Chiu

[permalink] [raw]
Subject: Discrete Thunderbold Controller 8086:1137 throws DMAR and thunderbolt fails to work

Hi,
We created a ticket
https://bugzilla.kernel.org/show_bug.cgi?id=215265 that is pretty
similar to https://bugzilla.kernel.org/show_bug.cgi?id=214259. So I
tried the patch on https://lkml.org/lkml/2020/6/17/751 but it doesn't
fix the issue. I also tried to boot with the kernel parameter
`pci=nocrs` but it changed nothing either. I attached the kernel log
with thunderbolt dynamic debug on and lspci output on the ticket. Also
tried to disable the intel_iommu, the DMAR failure seems to go away
but thunderbolt still fails to work. Can anyone suggest what kind of
information is required to help identify the cause of the problem?
Thanks

Chris


2021-12-09 10:08:56

by Mika Westerberg

[permalink] [raw]
Subject: Re: Discrete Thunderbold Controller 8086:1137 throws DMAR and thunderbolt fails to work

[+Baolu]

Hi,

On Thu, Dec 09, 2021 at 05:39:41PM +0800, Chris Chiu wrote:
> Hi,
> We created a ticket
> https://bugzilla.kernel.org/show_bug.cgi?id=215265 that is pretty
> similar to https://bugzilla.kernel.org/show_bug.cgi?id=214259. So I
> tried the patch on https://lkml.org/lkml/2020/6/17/751 but it doesn't
> fix the issue. I also tried to boot with the kernel parameter
> `pci=nocrs` but it changed nothing either. I attached the kernel log
> with thunderbolt dynamic debug on and lspci output on the ticket. Also
> tried to disable the intel_iommu, the DMAR failure seems to go away
> but thunderbolt still fails to work. Can anyone suggest what kind of
> information is required to help identify the cause of the problem?
> Thanks

At least the RTX370 log seem to have lots of issues, not just
Thunderbolt. The PCIe root port has AER enabled and it seems to be
getting errors from the Maple Ridge card. Typically using AER with
hotpluggable PCIe devices is not a good idea.

Can you get rid of the patch that adds these:

arch_remove_reservations remove e820 region

and boot with "intel_iommu=off", and provide full dmesg? Did not find
one from the bugzilla bug.

Also does the USB 3.x work? I mean if you have IOMMU enabled and you
plug in USB 3.x device does that work, or you get similar DMAR faults?

Alos is this a production system and do you have installed the latest
firmware upgrades?

2021-12-13 05:37:29

by Chris Chiu

[permalink] [raw]
Subject: Re: Discrete Thunderbold Controller 8086:1137 throws DMAR and thunderbolt fails to work

On Thu, Dec 9, 2021 at 5:39 PM Chris Chiu <[email protected]> wrote:
>
> Hi,
> We created a ticket
> https://bugzilla.kernel.org/show_bug.cgi?id=215265 that is pretty
> similar to https://bugzilla.kernel.org/show_bug.cgi?id=214259. So I
> tried the patch on https://lkml.org/lkml/2020/6/17/751 but it doesn't
> fix the issue. I also tried to boot with the kernel parameter
> `pci=nocrs` but it changed nothing either. I attached the kernel log
> with thunderbolt dynamic debug on and lspci output on the ticket. Also
> tried to disable the intel_iommu, the DMAR failure seems to go away
> but thunderbolt still fails to work. Can anyone suggest what kind of
> information is required to help identify the cause of the problem?
> Thanks
>
> Chris

Gentle ping. Mika, could you give some advice on this? Thanks

2021-12-13 06:11:30

by Mika Westerberg

[permalink] [raw]
Subject: Re: Discrete Thunderbold Controller 8086:1137 throws DMAR and thunderbolt fails to work

On Mon, Dec 13, 2021 at 01:37:10PM +0800, Chris Chiu wrote:
> On Thu, Dec 9, 2021 at 5:39 PM Chris Chiu <[email protected]> wrote:
> >
> > Hi,
> > We created a ticket
> > https://bugzilla.kernel.org/show_bug.cgi?id=215265 that is pretty
> > similar to https://bugzilla.kernel.org/show_bug.cgi?id=214259. So I
> > tried the patch on https://lkml.org/lkml/2020/6/17/751 but it doesn't
> > fix the issue. I also tried to boot with the kernel parameter
> > `pci=nocrs` but it changed nothing either. I attached the kernel log
> > with thunderbolt dynamic debug on and lspci output on the ticket. Also
> > tried to disable the intel_iommu, the DMAR failure seems to go away
> > but thunderbolt still fails to work. Can anyone suggest what kind of
> > information is required to help identify the cause of the problem?
> > Thanks
> >
> > Chris
>
> Gentle ping. Mika, could you give some advice on this? Thanks

Hm, didn't I already answered?

https://lore.kernel.org/linux-usb/YbHVryQ+QTnyMmTB@lahna/