Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by "Ruinskiy, Dima"
Mon, 09 Nov 2026 11:43
Re: [PATCH net] igc: Disable PCIe L1.2 substate on I225-LMvP and I226-LMvP devices
Author: "Ruinskiy, Dima"
Date: Mon, 09 Nov 2026 11:43
Date: Mon, 09 Nov 2026 11:43
54 lines
19444 bytes
19444 bytes
On 29/09/2026 14:41, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 3 potential > issue(s) to consider. > > Critical: 0 · High: 1 (1) · Medium: 1 · Low: 1 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] The widened condition in `__igc_resume()` (igc_main.c:7562-7563) > makes I225-LMvP and I226-LMvP call the non-locked… > - [Medium] Adding `IGC_DEV_ID_I226_LMVP` to `igc_is_device_id_i226()` > (drivers/net/ethernet/intel/igc/igc_base.c:450) changes more than the… > - [Low] In `igc_probe()`, `__igc_resume()` and `igc_io_slot_reset()`, the > return value of… > > Pre-existing issues: > - [High] This problem wasn't introduced by this patch, but the patch now > exposes I226-LMvP to it. > > -- > > igc: Disable PCIe L1.2 substate on I225-LMvP and I226-LMvP devices > > This commit adds IGC_DEV_ID_I226_LMVP to igc_is_device_id_i226(). It also > extends the ASPM L1.2 disable in probe, resume and PCI error recovery to > IGC_DEV_ID_I225_LMVP. The motivation is BadDLLP errors, link timeouts and > shutdown hangs seen when I225-LMvP negotiates L1.2 behind Thunderbolt/USB4 > docks. > > Link: https://lore.kernel.org/lkml/eb5a9805-3e53-ec22-696e-21c6b8cf0bfc@molgen.mpg.de/T/ I think this patch might better be split into several patches. 1. Adding the missing IGC_DEV_ID_I226_LMVP to igc_is_device_id_i226(). This was probably an accidental omission. 2. Addressing the locked vs. non-locked call to pci_disable_link_state (the possible deadlock noted by Sashiko) - this should be looked into a bit more, I don't know off the top of my head what race is / isn't possible. 3. The actual problem with L1.2 substate this patch aims to solve. I checked with the HW team and there are two conclusions - (a) it is strange that L1.2 is enabled somehow for I225_LMVP - this is not expected. (b) generally it is probably best and simplest to remove any device ID checks and simply disable L1.2 across the board in this driver. Unless there are downsides to calling the API when it is already disabled (I don't expect there are). --Dima
Re: [PATCH net] igc: Disable PCIe L1.2 substate on I225-LMvP and I226-LMvP devices
Author: Daniel Viaño
Date: Tue, 10 Nov 2026 10:04
Date: Tue, 10 Nov 2026 10:04
56 lines
14356 bytes
14356 bytes
On 09/11/2026 12:45, Ruinskiy, Dima wrote:
> I think this patch might better be split into several patches.
>
> 1. Adding the missing IGC_DEV_ID_I226_LMVP to igc_is_device_id_i226().
> This was probably an accidental omission.
Agreed, I'll send this as a separate patch. Note that it also changes
the TSN code paths in igc_tsn.c for I226-LMvP (they will now get the
i226 behaviour), so it would be good if you could confirm that this
is correct for 0x5503.
> 2. Addressing the locked vs. non-locked call to pci_disable_link_state
> (the possible deadlock noted by Sashiko) - this should be looked into a
> bit more, I don't know off the top of my head what race is / isn't
> possible.
I believe the deadlock is real and already present for I226.
pcie_do_recovery() runtime-resumes the affected devices through
pci_walk_bridge(bridge, pci_pm_runtime_get_sync, NULL), i.e. with
pci_bus_sem held for read. If igc is runtime-suspended at that point,
igc_runtime_resume() -> __igc_resume() -> pci_disable_link_state()
takes pci_bus_sem for read a second time, which can deadlock if a
writer queues in between.
The L1.2 disable done in probe is sticky (link->aspm_disable) and the
PCI core honours it when restoring state on resume, so I plan to drop
the call from __igc_resume().
> 3. The actual problem with L1.2 substate this patch aims to solve. I
> checked with the HW team and there are two conclusions - (a) it is
> strange that L1.2 is enabled somehow for I225_LMVP - this is not
> expected.
You are right, and I was wrong about the mechanism. On my setup (HP
Thunderbolt Dock G4, I225-LMvP rev 03 behind a Goshen Ridge
downstream port) the NIC only advertises L1.1:
L1SubCap: PCI-PM_L1.2- PCI-PM_L1.1+
ASPM_L1.2- ASPM_L1.1+ L1_PM_Substates+
and the upstream port has no L1 PM Substates capability at all, so
L1.2 can never be enabled on this link. I will drop the I225-LMvP
part and investigate the dock errors separately with AER enabled.
> (b) generally it is probably best and simplest to remove any
> device ID checks and simply disable L1.2 across the board in this
> driver.
I can add a third patch doing that if you prefer. Otherwise I'd leave
it to you, since I have no I226 hardware to test it on.
Thanks,
Daniel
pw-bot: cr
Re: [PATCH net] igc: Disable PCIe L1.2 substate on I225-LMvP and I226-LMvP devices
Author: "Ruinskiy, Dima"
Date: Wed, 11 Nov 2026 09:02
Date: Wed, 11 Nov 2026 09:02
63 lines
20105 bytes
20105 bytes
On 10/11/2026 12:04, Daniel Viaño wrote: > On 09/11/2026 12:45, Ruinskiy, Dima wrote: >> I think this patch might better be split into several patches. >> >> 1. Adding the missing IGC_DEV_ID_I226_LMVP to igc_is_device_id_i226(). >> This was probably an accidental omission. > > Agreed, I'll send this as a separate patch. Note that it also changes > the TSN code paths in igc_tsn.c for I226-LMvP (they will now get the > i226 behaviour), so it would be good if you could confirm that this > is correct for 0x5503. I confirmed that the new I226-only TSN functionality (enabled in upstream commit b8897dc54e3b) applies to the I226_LMVP (0x5503) as well, so I see no risk adding it to the device ID list. This will make the L1.2 disable code function as intended. > >> 2. Addressing the locked vs. non-locked call to pci_disable_link_state >> (the possible deadlock noted by Sashiko) - this should be looked into a >> bit more, I don't know off the top of my head what race is / isn't >> possible. > > I believe the deadlock is real and already present for I226. > pcie_do_recovery() runtime-resumes the affected devices through > pci_walk_bridge(bridge, pci_pm_runtime_get_sync, NULL), i.e. with > pci_bus_sem held for read. If igc is runtime-suspended at that point, > igc_runtime_resume() -> __igc_resume() -> pci_disable_link_state() > takes pci_bus_sem for read a second time, which can deadlock if a > writer queues in between. > > The L1.2 disable done in probe is sticky (link->aspm_disable) and the > PCI core honours it when restoring state on resume, so I plan to drop > the call from __igc_resume(). Great, so yes, this is good to have as a separate patch. > >> 3. The actual problem with L1.2 substate this patch aims to solve. I >> checked with the HW team and there are two conclusions - (a) it is >> strange that L1.2 is enabled somehow for I225_LMVP - this is not >> expected. > > You are right, and I was wrong about the mechanism. On my setup (HP > Thunderbolt Dock G4, I225-LMvP rev 03 behind a Goshen Ridge > downstream port) the NIC only advertises L1.1: > > L1SubCap: PCI-PM_L1.2- PCI-PM_L1.1+ > ASPM_L1.2- ASPM_L1.1+ L1_PM_Substates+ > > and the upstream port has no L1 PM Substates capability at all, so > L1.2 can never be enabled on this link. I will drop the I225-LMvP > part and investigate the dock errors separately with AER enabled. > >> (b) generally it is probably best and simplest to remove any >> device ID checks and simply disable L1.2 across the board in this >> driver. > > I can add a third patch doing that if you prefer. Otherwise I'd leave > it to you, since I have no I226 hardware to test it on. Thank you for checking. Since you confirm the I225 issue you experience does not actually stem from L1.2, we can skip this for now. --Dima
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads