[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANCKTBt7C+EhcpbgYdreK=xvQuOzEaDm+us-6P+PtoEfCny2Vg@mail.gmail.com>
Date: Wed, 6 Jan 2021 14:57:19 -0500
From: Jim Quinlan <jim2101024@...il.com>
To: Jim Quinlan <james.quinlan@...adcom.com>,
Bjorn Helgaas <bhelgaas@...gle.com>
Cc: linux-pci <linux-pci@...r.kernel.org>,
Nicolas Saenz Julienne <nsaenzjulienne@...e.de>,
Mark Brown <broonie@...nel.org>,
bcm-kernel-feedback-list <bcm-kernel-feedback-list@...adcom.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Rob Herring <robh@...nel.org>,
Florian Fainelli <f.fainelli@...il.com>,
"moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE"
<linux-rpi-kernel@...ts.infradead.org>,
"moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 5/6] PCI: brcmstb: Add panic/die handler to RC driver
On Wed, Jan 6, 2021 at 2:42 PM Jim Quinlan <james.quinlan@...adcom.com> wrote:
>
> ---------- Forwarded message ---------
> From: Bjorn Helgaas <helgaas@...nel.org>
> Date: Wed, Jan 6, 2021 at 2:19 PM
> Subject: Re: [PATCH v2 5/6] PCI: brcmstb: Add panic/die handler to RC driver
> To: Jim Quinlan <james.quinlan@...adcom.com>
> Cc: <linux-pci@...r.kernel.org>, Nicolas Saenz Julienne
> <nsaenzjulienne@...e.de>, <broonie@...nel.org>,
> <bcm-kernel-feedback-list@...adcom.com>, Lorenzo Pieralisi
> <lorenzo.pieralisi@....com>, Rob Herring <robh@...nel.org>, Bjorn
> Helgaas <bhelgaas@...gle.com>, Florian Fainelli
> <f.fainelli@...il.com>, moderated list:BROADCOM BCM2711/BCM2835 ARM
> ARCHITECTURE <linux-rpi-kernel@...ts.infradead.org>, moderated
> list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
> <linux-arm-kernel@...ts.infradead.org>, open list
> <linux-kernel@...r.kernel.org>
>
>
> On Mon, Nov 30, 2020 at 04:11:42PM -0500, Jim Quinlan wrote:
> > Whereas most PCIe HW returns 0xffffffff on illegal accesses and the like,
> > by default Broadcom's STB PCIe controller effects an abort. This simple
> > handler determines if the PCIe controller was the cause of the abort and if
> > so, prints out diagnostic info.
> >
> > Example output:
> > brcm-pcie 8b20000.pcie: Error: Mem Acc: 32bit, Read, @0x38000000
> > brcm-pcie 8b20000.pcie: Type: TO=0 Abt=0 UnspReq=1 AccDsble=0 BadAddr=0
>
> What does this mean for all the other PCI core code that expects
> 0xffffffff data returns? Does it work? Does it break differently on
> STB than on other platforms?
Hi Bjorn,
Our PCIe HW causes a CPU abort when this happens. Occasionally a
customer will have a fault handler try to fix up the abort and
continue on, but we recommend solving the root problem. This commit
just gives us a chance to glean info about the problem. Our newer
SOCs have a mode that doesn't abort and instead returns 0xffffffff.
BTW, can you point me to example files where "PCI core code that
expects 0xffffffff data returns" [on bad accesses]?
Regards,
Jim Quinlan
Broadcom STB
>
> > +/*
> > + * Dump out pcie errors on die or panic.
>
> s/pcie/PCIe/
> This could be a single-line comment.
>
> > + */
>
Powered by blists - more mailing lists