Message ID | 1528762867-16823-2-git-send-email-ray.jui@broadcom.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On 2018-06-12 05:51, Ray Jui wrote: > Activate PAXC bridge quirk for more PAXC based PCIe root complex with > the following PCIe device ID: > 0xd750, 0xd802, 0xd804 > > Signed-off-by: Ray Jui <ray.jui@broadcom.com> > --- > drivers/pci/quirks.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 2990ad1..47dfea0 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev > *pdev) > } > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, > quirk_paxc_bridge); > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, > quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, > quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, > quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, > quirk_paxc_bridge); > #endif > > /* Originally in EDAC sources for i82875P: Reviewed-by: Oza Pawandeep <poza@codeaurora.org>
Hi Bjorn, Could you please help to review/ack this patch, based on the following comments from Lorenzo? > apart from patch 1, that requires Bjorn's ACK, I would take the > series (I will rewrite the logs) Thanks, Ray On 6/12/2018 1:30 AM, poza@codeaurora.org wrote: > On 2018-06-12 05:51, Ray Jui wrote: >> Activate PAXC bridge quirk for more PAXC based PCIe root complex with >> the following PCIe device ID: >> 0xd750, 0xd802, 0xd804 >> >> Signed-off-by: Ray Jui <ray.jui@broadcom.com> >> --- >> drivers/pci/quirks.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c >> index 2990ad1..47dfea0 100644 >> --- a/drivers/pci/quirks.c >> +++ b/drivers/pci/quirks.c >> @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) >> } >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, >> quirk_paxc_bridge); >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, >> quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, >> quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, >> quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, >> quirk_paxc_bridge); >> #endif >> >> /* Originally in EDAC sources for i82875P: > > Reviewed-by: Oza Pawandeep <poza@codeaurora.org>
On Mon, Jun 11, 2018 at 05:21:03PM -0700, Ray Jui wrote: > Activate PAXC bridge quirk for more PAXC based PCIe root complex with > the following PCIe device ID: > 0xd750, 0xd802, 0xd804 > > Signed-off-by: Ray Jui <ray.jui@broadcom.com> Because this quirk_paxc_bridge() mechanism is already established, Acked-by: Bjorn Helgaas <bhelgaas@google.com> BUT, I would push back on quirk_paxc_bridge() if it were new code. I think it would be much better to implement this in the driver's config accessors so lspci would show the correct things and the generic code that deals with pcie_mpss would work unmodified. > --- > drivers/pci/quirks.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 2990ad1..47dfea0 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) > } > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, quirk_paxc_bridge); > DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, quirk_paxc_bridge); > +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, quirk_paxc_bridge); > #endif > > /* Originally in EDAC sources for i82875P: > -- > 2.1.4 >
Hi Bjorn, On 7/11/2018 6:11 AM, Bjorn Helgaas wrote: > On Mon, Jun 11, 2018 at 05:21:03PM -0700, Ray Jui wrote: >> Activate PAXC bridge quirk for more PAXC based PCIe root complex with >> the following PCIe device ID: >> 0xd750, 0xd802, 0xd804 >> >> Signed-off-by: Ray Jui <ray.jui@broadcom.com> > > Because this quirk_paxc_bridge() mechanism is already established, > > Acked-by: Bjorn Helgaas <bhelgaas@google.com> > Thanks! > BUT, I would push back on quirk_paxc_bridge() if it were new code. > > I think it would be much better to implement this in the driver's > config accessors so lspci would show the correct things and the > generic code that deals with pcie_mpss would work unmodified. > Noted. I agree with you. I'll find time to improve this by moving them into the driver's config accessors in the future, after v4.19. >> --- >> drivers/pci/quirks.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c >> index 2990ad1..47dfea0 100644 >> --- a/drivers/pci/quirks.c >> +++ b/drivers/pci/quirks.c >> @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) >> } >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, quirk_paxc_bridge); >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, quirk_paxc_bridge); >> #endif >> >> /* Originally in EDAC sources for i82875P: >> -- >> 2.1.4 >>
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 2990ad1..47dfea0 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, quirk_paxc_bridge); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, quirk_paxc_bridge); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, quirk_paxc_bridge); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, quirk_paxc_bridge); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, quirk_paxc_bridge); #endif /* Originally in EDAC sources for i82875P:
Activate PAXC bridge quirk for more PAXC based PCIe root complex with the following PCIe device ID: 0xd750, 0xd802, 0xd804 Signed-off-by: Ray Jui <ray.jui@broadcom.com> --- drivers/pci/quirks.c | 3 +++ 1 file changed, 3 insertions(+)