[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250717232758.24605-1-mattc@purestorage.com>
Date: Thu, 17 Jul 2025 17:27:58 -0600
From: Matthew W Carlis <mattc@...estorage.com>
To: lukas@...ner.de
Cc: anil.s.keshavamurthy@...el.com,
bhelgaas@...gle.com,
bp@...en8.de,
davem@...emloft.net,
helgaas@...nel.org,
ilpo.jarvinen@...ux.intel.com,
linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org,
linux-trace-kernel@...r.kernel.org,
mark.rutland@....com,
mathieu.desnoyers@...icios.com,
mattc@...estorage.com,
mhiramat@...nel.org,
naveen@...nel.org,
oleg@...hat.com,
peterz@...radead.org,
rostedt@...dmis.org,
tianruidong@...ux.alibaba.com,
tony.luck@...el.com,
xueshuai@...ux.alibaba.com
Subject: Re: [PATCH v8] PCI: hotplug: Add a generic RAS tracepoint for hotplug event
On Thu, 17 Jul 2025, Bjorn Helgaas wrote:
> - slot_name() (which I think comes from make_slot_name(); would you
> want something else?)
afaik it ends up coming from the Slot Cap Register "Physical Slot Number" bits.
I brought up the slot to just say that I was happy to see it & that it is useful
for our purposes & why.
On Thu, 17 Jul 2025, Lukas Wunner wrote:
>> and IIUC, it would be helpful for you to add:
>>
>> - DSP Vendor/Device ID (the Root Port or Switch Downstream Port,
>> which is relatively static, so seems less useful to me than the
>> USP/EP would be)
>
> Right, this is already logged in dmesg upon enumeration of the hotplug port,
> as well as available via lspci.
I also agree that the DSP Vendor/Device ID is less useful.
>> - USP/EP Vendor/Device ID
>
> There's no 1:1 relation between link or presence events on the one hand,
> and enumeration of hotplugged components on the other hand: The link
> may go up but the kernel may fail to enumerate the component, e.g. because
> it was yanked before it could be enumerated, or because the kernel has run
> out of MMIO space or bus numbers.
>
> Hence this would have to be logged through a separate tracepoint in
> pciehp_configure_device(), not by changing the tracepoints added here.
Ok I think its reasonable to use a separate tracepoint that would have more
information about the EP.
Powered by blists - more mailing lists