From: "Pali Rohár" <firstname.lastname@example.org>
To: Bjorn Helgaas <email@example.com>
Cc: Stefan Roese <firstname.lastname@example.org>,
Bharat Kumar Gogada <email@example.com>,
Michal Simek <firstname.lastname@example.org>
Subject: Re: [PATCH v4 1/2] PCI/portdrv: Add option to setup IRQs for platform-specific Service Errors
Date: Wed, 1 Jun 2022 00:57:02 +0200 [thread overview]
Message-ID: <20220531225702.iy4fqsdaecb7ubct@pali> (raw)
On Tuesday 31 May 2022 16:31:58 Bjorn Helgaas wrote:
> On Mon, May 30, 2022 at 10:32:06AM +0200, Pali Rohár wrote:
> > On Monday 30 May 2022 10:18:41 Stefan Roese wrote:
> > > On 28.05.22 02:09, Bjorn Helgaas wrote:
> > > > In subject line, I assume you mean "System Errors" instead of "Service
> > > > Errors"?
> > >
> > > Background: I took over submitting this patchset from Bharat. Here his
> > > last revision:
> > > https://www.spinics.net/lists/kernel/msg2960164.html
> Here's the link to the more usable lore archive:
> > > To answer your question I personally think too, that "System Errors" is
> > > more appropriate than "Service Errors". But still this patchset replaces
> > > or better enhances the already present pcie_init_service_irqs() by a
> > > platform-specific version. I can only suspect, that this is the
> > > reasoning for this "Service" naming.
> > Hello! Based on the below text "Here the quote from Bharat's original
> > cover letter:" I think that the better naming should be: "Service
> > interrupts". Because it adds support for interrupts from PCIe services
> > like AER, PME or HP. Only AER are errors, other IRQs are just services.
> The question I'm trying to answer is whether this series concerns the
> "System Error" mechanism or the "Error Interrupt" mechanism. We
> should figure out which one this is and use the correct name.
My understanding is that neither "System Error", nor "Error Interrupt".
But patch series is about "dedicated IRQ lines for services". One of
PCIe service is AER, which is one of the mostly used PCIe service in
kernel and therefore it is the root of confusions with keyword "error".
> The sec 22.214.171.124.2 cited below clearly refers to the AER Root Error
> Command register, which controls interrupt generation via INTx, MSI,
> or MSI-X, i.e., the standard "Error Interrupt" shown on the RIGHT side
> of Figure 6-3 in sec 6.2.6.
> The "System Error" signaling on the LEFT side of Figure 6-3 would be
> controlled by the Root Control register in the PCIe capability.
> It should be easy to use setpci to set/clear these two sets of enable
> bits and figure out which path is of interest here.
> > > > On Fri, Jan 14, 2022 at 08:58:33AM +0100, Stefan Roese wrote:
> > > > > From: Bharat Kumar Gogada <email@example.com>
> > > > > As per section 126.96.36.199.2, 6.2.6 in PCIe r4.0 (and later versions),
> > > > > platform-specific System Errors like AER can be delivered via platform-
> > > > > specific interrupt lines.
> > > > ...
> > > > 188.8.131.52 ("Software Notification of Hot-Plug Events") talks about PME
> > > > and Hot-Plug Event interrupts, but these aren't errors, and I only see
> > > > signaling via INTx, MSI, or MSI-X. Is there provision for a different
> > > > method?
> > >
> > > Here the quote from Bharat's original cover letter:
> > > "Some platforms have dedicated IRQ lines for PCIe services like AER/PME
> > > etc. The root complex on these platform will use these seperate IRQ
> > > lines to report AER/PME etc., interrupts and will not generate MSI/
> > > MSI-X/INTx interrupts for these services.
> > This is the best explanation of this change.
> As far as I can tell, "dedicated IRQ lines for services like AER/PME
> etc" would violate the PCIe spec.
I think too, that this does not conform to PCIe spec.
> That's OK, we can work around that
> sort of thing, but it needs to be clearly called out as some kind of
> quirk and not mixed in with things like System Error signaling, which
> is allowed to be platform-specific.
next prev parent reply other threads:[~2022-05-31 22:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-14 7:58 [PATCH v4 0/2] Add support to register platform service IRQ Stefan Roese
2022-01-14 7:58 ` [PATCH v4 1/2] PCI/portdrv: Add option to setup IRQs for platform-specific Service Errors Stefan Roese
2022-01-14 11:46 ` Pali Rohár
2022-05-28 0:09 ` Bjorn Helgaas
2022-05-30 8:18 ` Stefan Roese
2022-05-30 8:32 ` Pali Rohár
2022-05-31 21:31 ` Bjorn Helgaas
2022-05-31 22:57 ` Pali Rohár [this message]
2022-06-01 11:47 ` Stefan Roese
2022-06-01 11:53 ` Pali Rohár
2022-06-08 18:39 ` Bjorn Helgaas
2022-01-14 7:58 ` [PATCH v4 2/2] PCI: xilinx-nwl: Add method to init_platform_service_irqs hook Stefan Roese
2022-01-14 11:48 ` Pali Rohár
2022-01-14 12:13 ` Stefan Roese
2022-01-14 12:34 ` Pali Rohár
2022-01-14 17:03 ` Stefan Roese
2022-03-24 16:52 ` [PATCH v4 0/2] Add support to register platform service IRQ Stefan Roese
2022-03-31 15:30 ` Bjorn Helgaas
2022-04-01 6:28 ` Stefan Roese
2022-04-01 12:35 ` Bjorn Helgaas
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.