* [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges @ 2022-10-27 3:15 LeoLiu-oc 2022-10-27 21:56 ` Bjorn Helgaas 0 siblings, 1 reply; 4+ messages in thread From: LeoLiu-oc @ 2022-10-27 3:15 UTC (permalink / raw) To: rafael, lenb, james.morse, tony.luck, bp, robert.moore, ying.huang, rdunlap, bhelgaas, linux-acpi, linux-pci, linux-kernel, devel Cc: CobeChen, TonyWWang, ErosZhang, leoliu-oc From: leoliu-oc <leoliu-oc@zhaoxin.com> Define PCI Express Advanced Error Reporting Extended Capabilities bits. Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com> --- include/uapi/linux/pci_regs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 57b8e2ffb1dd..3662106fd8dc 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -799,6 +799,11 @@ #define PCI_ERR_ROOT_AER_IRQ 0xf8000000 /* Advanced Error Interrupt Message Number */ #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ +/* PCI Express Advanced Error Reporting Extended Capabilities for Bridges */ +#define PCI_ERR_UNCOR_MASK2 0x30 /* Secondary Uncorrectable Error Mask */ +#define PCI_ERR_UNCOR_SEVER2 0x34 /* Secondary Uncorrectable Error Severit */ +#define PCI_ERR_CAP2 0x38 /* Secondary Advanced Error Capabilities */ + /* Virtual Channel */ #define PCI_VC_PORT_CAP1 0x04 #define PCI_VC_CAP1_EVCC 0x00000007 /* extended VC count */ -- 2.20.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges 2022-10-27 3:15 [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges LeoLiu-oc @ 2022-10-27 21:56 ` Bjorn Helgaas 2022-10-28 11:56 ` LeoLiuoc 0 siblings, 1 reply; 4+ messages in thread From: Bjorn Helgaas @ 2022-10-27 21:56 UTC (permalink / raw) To: LeoLiu-oc Cc: rafael, lenb, james.morse, tony.luck, bp, robert.moore, ying.huang, rdunlap, bhelgaas, linux-acpi, linux-pci, linux-kernel, devel, CobeChen, TonyWWang, ErosZhang On Thu, Oct 27, 2022 at 11:15:54AM +0800, LeoLiu-oc wrote: > From: leoliu-oc <leoliu-oc@zhaoxin.com> > > Define PCI Express Advanced Error Reporting Extended Capabilities bits. > > Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com> > --- > include/uapi/linux/pci_regs.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h > index 57b8e2ffb1dd..3662106fd8dc 100644 > --- a/include/uapi/linux/pci_regs.h > +++ b/include/uapi/linux/pci_regs.h > @@ -799,6 +799,11 @@ > #define PCI_ERR_ROOT_AER_IRQ 0xf8000000 /* Advanced Error Interrupt Message Number */ > #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ > > +/* PCI Express Advanced Error Reporting Extended Capabilities for Bridges */ > +#define PCI_ERR_UNCOR_MASK2 0x30 /* Secondary Uncorrectable Error Mask */ > +#define PCI_ERR_UNCOR_SEVER2 0x34 /* Secondary Uncorrectable Error Severit */ > +#define PCI_ERR_CAP2 0x38 /* Secondary Advanced Error Capabilities */ Can you include a spec reference for these? I'm looking at PCIe r6.0, sec 7.8.4, and I don't see anything I can match up with these. Bjorn ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges 2022-10-27 21:56 ` Bjorn Helgaas @ 2022-10-28 11:56 ` LeoLiuoc 2022-10-28 15:31 ` Bjorn Helgaas 0 siblings, 1 reply; 4+ messages in thread From: LeoLiuoc @ 2022-10-28 11:56 UTC (permalink / raw) To: Bjorn Helgaas Cc: rafael, lenb, james.morse, tony.luck, bp, robert.moore, ying.huang, rdunlap, bhelgaas, linux-acpi, linux-pci, linux-kernel, devel, CobeChen, TonyWWang, ErosZhang 在 2022/10/28 5:56, Bjorn Helgaas 写道: > On Thu, Oct 27, 2022 at 11:15:54AM +0800, LeoLiu-oc wrote: >> From: leoliu-oc <leoliu-oc@zhaoxin.com> >> >> Define PCI Express Advanced Error Reporting Extended Capabilities bits. >> >> Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com> >> --- >> include/uapi/linux/pci_regs.h | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h >> index 57b8e2ffb1dd..3662106fd8dc 100644 >> --- a/include/uapi/linux/pci_regs.h >> +++ b/include/uapi/linux/pci_regs.h >> @@ -799,6 +799,11 @@ >> #define PCI_ERR_ROOT_AER_IRQ 0xf8000000 /* Advanced Error Interrupt Message Number */ >> #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ >> >> +/* PCI Express Advanced Error Reporting Extended Capabilities for Bridges */ >> +#define PCI_ERR_UNCOR_MASK2 0x30 /* Secondary Uncorrectable Error Mask */ >> +#define PCI_ERR_UNCOR_SEVER2 0x34 /* Secondary Uncorrectable Error Severit */ >> +#define PCI_ERR_CAP2 0x38 /* Secondary Advanced Error Capabilities */ > > Can you include a spec reference for these? I'm looking at PCIe r6.0, > sec 7.8.4, and I don't see anything I can match up with these. > > Bjorn Please refer to PCI Express to PCI/PCI-X Bridge Specification, sec 5.2.3.2, 5.2.3.3 and 5.2.3.4. Thanks leoliu-oc ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges 2022-10-28 11:56 ` LeoLiuoc @ 2022-10-28 15:31 ` Bjorn Helgaas 0 siblings, 0 replies; 4+ messages in thread From: Bjorn Helgaas @ 2022-10-28 15:31 UTC (permalink / raw) To: LeoLiuoc Cc: rafael, lenb, james.morse, tony.luck, bp, robert.moore, ying.huang, rdunlap, bhelgaas, linux-acpi, linux-pci, linux-kernel, devel, CobeChen, TonyWWang, ErosZhang On Fri, Oct 28, 2022 at 07:56:43PM +0800, LeoLiuoc wrote: > 在 2022/10/28 5:56, Bjorn Helgaas 写道: > > On Thu, Oct 27, 2022 at 11:15:54AM +0800, LeoLiu-oc wrote: > > > From: leoliu-oc <leoliu-oc@zhaoxin.com> > > > > > > Define PCI Express Advanced Error Reporting Extended Capabilities bits. > > > > > > Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com> > > > --- > > > include/uapi/linux/pci_regs.h | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h > > > index 57b8e2ffb1dd..3662106fd8dc 100644 > > > --- a/include/uapi/linux/pci_regs.h > > > +++ b/include/uapi/linux/pci_regs.h > > > @@ -799,6 +799,11 @@ > > > #define PCI_ERR_ROOT_AER_IRQ 0xf8000000 /* Advanced Error Interrupt Message Number */ > > > #define PCI_ERR_ROOT_ERR_SRC 0x34 /* Error Source Identification */ > > > +/* PCI Express Advanced Error Reporting Extended Capabilities for Bridges */ > > > +#define PCI_ERR_UNCOR_MASK2 0x30 /* Secondary Uncorrectable Error Mask */ > > > +#define PCI_ERR_UNCOR_SEVER2 0x34 /* Secondary Uncorrectable Error Severit */ > > > +#define PCI_ERR_CAP2 0x38 /* Secondary Advanced Error Capabilities */ > > > > Can you include a spec reference for these? I'm looking at PCIe r6.0, > > sec 7.8.4, and I don't see anything I can match up with these. > > > Please refer to PCI Express to PCI/PCI-X Bridge Specification, sec 5.2.3.2, > 5.2.3.3 and 5.2.3.4. Thanks, I had forgotten about that spec from 2003 :) I wish they had incorporated the material, or at least a reference to it, into the PCIe base spec like they did with a lot of other similar material. Please include a short comment in the header file, e.g., /* PCIe-to-PCI/PCI-X Bridge Spec r1.0, sec 5.2.3 */ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-28 15:31 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-10-27 3:15 [PATCH 3/5] ACPI/PCI: Add AER bits #defines for PCIE/PCI-X bridges LeoLiu-oc 2022-10-27 21:56 ` Bjorn Helgaas 2022-10-28 11:56 ` LeoLiuoc 2022-10-28 15:31 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox