[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aR1_M_i3yIygd8v-@wunner.de>
Date: Wed, 19 Nov 2025 09:26:27 +0100
From: Lukas Wunner <lukas@...ner.de>
To: dan.j.williams@...el.com
Cc: Terry Bowman <terry.bowman@....com>, dave@...olabs.net,
jonathan.cameron@...wei.com, dave.jiang@...el.com,
alison.schofield@...el.com, bhelgaas@...gle.com,
shiju.jose@...wei.com, ming.li@...omail.com,
Smita.KoralahalliChannabasappa@....com, rrichter@....com,
dan.carpenter@...aro.org, PradeepVineshReddy.Kodamati@....com,
Benjamin.Cheatham@....com,
sathyanarayanan.kuppuswamy@...ux.intel.com,
linux-cxl@...r.kernel.org, alucerop@....com, ira.weiny@...el.com,
linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [RESEND v13 08/25] CXL/AER: Move AER drivers RCH error handling
into pcie/aer_cxl_rch.c
On Tue, Nov 18, 2025 at 07:20:22PM -0800, dan.j.williams@...el.com wrote:
> > +++ b/drivers/pci/pcie/aer.c
> > @@ -1130,7 +1130,7 @@ static bool find_source_device(struct pci_dev *parent,
> > * Note: AER must be enabled and supported by the device which must be
> > * checked in advance, e.g. with pcie_aer_is_native().
> > */
> > -static void pci_aer_unmask_internal_errors(struct pci_dev *dev)
> > +void pci_aer_unmask_internal_errors(struct pci_dev *dev)
> > {
> > int aer = dev->aer_cap;
> > u32 mask;
> > @@ -1143,116 +1143,25 @@ static void pci_aer_unmask_internal_errors(struct pci_dev *dev)
> > mask &= ~PCI_ERR_COR_INTERNAL;
> > pci_write_config_dword(dev, aer + PCI_ERR_COR_MASK, mask);
> > }
> > +EXPORT_SYMBOL_GPL(pci_aer_unmask_internal_errors);
>
> I can not imagine any other driver but the CXL core consuming this
> symbol, so how about:
>
> EXPORT_SYMBOL_FOR_MODULES(pci_aer_unmask_internal_errors, "cxl_core")
The "xe" driver needs to unmask Uncorrectable Internal Errors
(the default is "masked" per PCIe r7.0 sec 7.8.4.3) and could
take advantage of this helper, so I've asked Terry to keep it
available for anyone to use:
https://lore.kernel.org/all/aK66OcdL4Meb0wFt@wunner.de/
Thanks,
Lukas
Powered by blists - more mailing lists