[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZzcLe3tDPa6TYs1h@wunner.de>
Date: Fri, 15 Nov 2024 09:51:07 +0100
From: Lukas Wunner <lukas@...ner.de>
To: "Bowman, Terry" <terry.bowman@....com>
Cc: linux-cxl@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org, nifan.cxl@...il.com, ming4.li@...el.com,
dave@...olabs.net, jonathan.cameron@...wei.com,
dave.jiang@...el.com, alison.schofield@...el.com,
vishal.l.verma@...el.com, dan.j.williams@...el.com,
bhelgaas@...gle.com, mahesh@...ux.ibm.com, ira.weiny@...el.com,
oohall@...il.com, Benjamin.Cheatham@....com, rrichter@....com,
nathan.fontenot@....com, Smita.KoralahalliChannabasappa@....com
Subject: Re: [PATCH v3 05/15] PCI/AER: Add CXL PCIe port correctable error
support in AER service driver
On Thu, Nov 14, 2024 at 12:41:13PM -0600, Bowman, Terry wrote:
> On 11/14/2024 10:44 AM, Lukas Wunner wrote:
> > On Wed, Nov 13, 2024 at 03:54:19PM -0600, Terry Bowman wrote:
> > > @@ -1115,8 +1131,11 @@ static void pci_aer_handle_error(struct pci_dev *dev, struct aer_err_info *info)
> > >
> > > static void handle_error_source(struct pci_dev *dev, struct aer_err_info *info)
> > > {
> > > - cxl_handle_error(dev, info);
> > > - pci_aer_handle_error(dev, info);
> > > + if (is_internal_error(info) && handles_cxl_errors(dev))
> > > + cxl_handle_error(dev, info);
> > > + else
> > > + pci_aer_handle_error(dev, info);
> > > +
> > > pci_dev_put(dev);
> > > }
> >
> > If you just do this at the top of cxl_handle_error()...
> >
> > if (!is_internal_error(info))
> > return;
> >
> > ...you avoid the need to move is_internal_error() around and the
> > patch becomes simpler and easier to review.
>
> If is_internal_error()==0, then pci_aer_handle_error() should be called
> to process the PCIe error.
You're absolutely right, I missed that, sorry for the noise.
Thanks,
Lukas
Powered by blists - more mailing lists