[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1675876510.1317449.1750518311479.JavaMail.zimbra@raptorengineeringinc.com>
Date: Sat, 21 Jun 2025 10:05:11 -0500 (CDT)
From: Timothy Pearson <tpearson@...torengineering.com>
To: Krishna Kumar <krishnak@...ux.ibm.com>
Cc: linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
Shawn Anastasio <sanastasio@...torengineering.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-pci <linux-pci@...r.kernel.org>,
Madhavan Srinivasan <maddy@...ux.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>,
christophe leroy <christophe.leroy@...roup.eu>,
Naveen N Rao <naveen@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention
indicator
----- Original Message -----
> From: "Krishna Kumar" <krishnak@...ux.ibm.com>
> To: "linuxppc-dev" <linuxppc-dev@...ts.ozlabs.org>, "Timothy Pearson" <tpearson@...torengineering.com>, "Shawn
> Anastasio" <sanastasio@...torengineering.com>
> Cc: "linuxppc-dev" <linuxppc-dev@...ts.ozlabs.org>, "linux-kernel" <linux-kernel@...r.kernel.org>, "linux-pci"
> <linux-pci@...r.kernel.org>, "Madhavan Srinivasan" <maddy@...ux.ibm.com>, "Michael Ellerman" <mpe@...erman.id.au>,
> "christophe leroy" <christophe.leroy@...roup.eu>, "Naveen N Rao" <naveen@...nel.org>, "Bjorn Helgaas"
> <bhelgaas@...gle.com>, "Shawn Anastasio" <sanastasio@...torengineering.com>
> Sent: Friday, June 20, 2025 4:26:51 AM
> Subject: Re: [PATCH v2 6/6] pci/hotplug/pnv_php: Enable third attention indicator
> Shawn, Timothy:
>
> Thanks for posting the series of patch. Few things I wanted to do better
> understand Raptor problem -
>
>
> 1. Last time my two patches solved all the hotunplug operation and Kernel crash
> issue except nvme case. It did not work with
>
> NVME since dpc support was not there. I was not able to do that due to being
> occupied in some other work.
With the current series all hotplug is working correctly, including not only NVMe on root port and bridge ports, but also suprise plug of the entire PCIe switch at the root port. The lack of DPC support *might* be related to the PE freeze, but in any case we prefer the hotplug driver to be able to recover from a PE freeze (e.g. if a bridge card is faulty and needs to be replaced) without also requiring a reboot, so I would consider DPC implementation orthogonal to this patch set.
> 2. I want to understand the delta from last yr problem to this problem. Is the
> PHB freeze or hotunplug failure happens
>
> only for particular Microsemi switch or it happens with all the switches. When
> did this problem started coming ? Till last yr
Hotplug has never worked reliably for us, if it worked at all it was always rolling the dice on whether the kernel would oops and take down the host. Even if the kernel didn't oops, suprise plug and auto-add / auto-remove never worked beyond one remove operation.
> it was not there. Is it specific to particular Hardware ? Can I get your setup
> to test this problem and your patch ?
Because you will need to be able to physically plug and unplug cards and drives this may be a bit tricky. Do you have access to a POWER9 host system with a x16 PCIe slot? If so, all you need is a Supermicro SLC-AO3G-8E2P card and some random U.2 NVMe drives -- these cards are readily available and provide relatively standardized OCuLink access to a Switchtec bridge.
If you don't have access to a POWER9 host, we can set you up with remote access, but it won't show all of the crashing and problems that occur with surprise plug unless we set up a live debug session (video call or similar).
> 3. To me, hot unplug opertaion --> AER triggering --> DPC support, this flow
> should mask the error to reach root port/cpu and it
>
> should solve the PHB freeze/ hot unplug failure operation. If there are AER/EEH
> related synchronization issue we need to solve them.
>
> Can you pls list the issue, I will pass it to EEH/AER team. But yeah, to me if
> AER implementation is correct and we add DPC support,
>
> all the error will be contained by switch itself. The PHB/root port/cpu will not
> be impacted by this and there should not be any freeze.
While this is a good goal to work toward, it only solves one possible fault mode. The patch series posted here will handle the general case of a PE freeze without requiring a host reboot, which is great for high-reliability systems where there might be a desire to replace the entire switch card (this has been tested with the patch series and works perfectly).
> 4. Ofcourse we can pick some of the fixes from pciehp driver if its missing in
> pnv_php.c. Also at the same time you have done
>
> some cleanup in hot unplug path and fixed the attenuation button related code.
> If these works fine, we can pick it. But I want to test it.
>
> Pls provide me setup.
>
> 5. If point 3 and 4 does not solve the problem, then only we should move to
> pciehp.c. But AFAIK, PPC/Powernv is DT based while pciehp.c
>
> may be only supporting acpi (I have to check it on this). We need to provide
> PHB related information via DTB and maintain the related
>
> topology information via dtb and then it can be doable. Also , we need to do
> thorough planning/testing if we think to choose pciehp.c.
>
> But yeah, lets not jump here and lets try to fix the current issues via point 3
> & 4. Point 5 will be our last option.
If possible I would like to see this series merged vs. being blocked on DPC. Again, from where I sit DPC is orthogonal; many events can cause a PE freeze and implementing DPC only solves one. We do *not* want to require a host reboot in any situation whatsoever short of a complete failure of a critical element (e.g. the PHB itself or a CPU package); our use case as deployed is five nines critical infrastructure, and the broken hotplug has already been the sole reason we have not maintained 100% uptime on a key system.
Thanks!
Powered by blists - more mailing lists