From: Jonathan Derrick <jonathan.derrick@linux.dev>
To: Stefan Roese <sr@denx.de>, linux-pci@vger.kernel.org
Cc: "Bjorn Helgaas" <helgaas@kernel.org>,
"Pali Rohár" <pali@kernel.org>,
"Bharat Kumar Gogada" <bharat.kumar.gogada@xilinx.com>,
"Michal Simek" <michal.simek@xilinx.com>,
"Yao Hongbo" <yaohongbo@linux.alibaba.com>,
"Naveen Naidu" <naveennaidu479@gmail.com>
Subject: Re: [PATCH v4 3/3] PCI/AER: Enable AER on all PCIe devices supporting it
Date: Wed, 6 Apr 2022 08:49:27 -0600 [thread overview]
Message-ID: <51ee3a55-dd07-7d13-f4c0-a772706d9630@linux.dev> (raw)
In-Reply-To: <7f17661f-7c7a-3012-a230-8e081e475bcf@denx.de>
On 4/5/2022 11:16 PM, Stefan Roese wrote:
> On 4/4/22 22:22, Jonathan Derrick wrote:
>>
>>
>> On 1/25/2022 12:18 AM, Stefan Roese wrote:
>>> With this change, AER is now enabled on all PCIe devices, also when the
>>> PCIe device is hot-plugged.
>>>
>>> Please note that this change is quite invasive, as with this patch
>>> applied, AER now will be enabled in the Device Control registers of all
>>> available PCIe Endpoints, which currently is not the case.
>>>
>>> When "pci=noaer" is selected, AER stays disabled of course.
>>>
>>> Signed-off-by: Stefan Roese <sr@denx.de>
>>> Cc: Bjorn Helgaas <helgaas@kernel.org>
>>> Cc: Pali Rohár <pali@kernel.org>
>>> Cc: Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com>
>>> Cc: Michal Simek <michal.simek@xilinx.com>
>>> Cc: Yao Hongbo <yaohongbo@linux.alibaba.com>
>>> Cc: Naveen Naidu <naveennaidu479@gmail.com>
>>> ---
>>> v4:
>>> - No change
>>>
>>> v3:
>>> - New patch, replacing the "old" 2/2 patch
>>> Now enabling of AER for each PCIe device is done in pci_aer_init(),
>>> which also makes sure that AER is enabled in each PCIe device even
>>> when
>>> it's hot-plugged.
>>>
>>> drivers/pci/pcie/aer.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
>>> index 5585fefc4d0e..10b2f7db8adb 100644
>>> --- a/drivers/pci/pcie/aer.c
>>> +++ b/drivers/pci/pcie/aer.c
>>> @@ -388,6 +388,10 @@ void pci_aer_init(struct pci_dev *dev)
>>> pci_aer_clear_status(dev);
>>> + /* Enable AER if requested */
>>> + if (pci_aer_available())
>>> + pci_enable_pcie_error_reporting(dev);
>> There are a lot of devices that do this explicitly [1]
>> May suggest a cleanup patch to follow-up?
>
> Yes, good idea. I can try to work on this once this patchset is merged.
>
>> [1]
>> https://elixir.bootlin.com/linux/v5.18-rc1/A/ident/pci_enable_pcie_error_reporting
>>
>>
>> ... Also a quirk list in the future for broken devices
>
> IMHO this should only be done, when such devices are detected.
Yep; I'm just anticipating
>
> Thanks,
> Stefan
next prev parent reply other threads:[~2022-04-06 17:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-25 7:18 [PATCH v4 0/3] Fully enable AER Stefan Roese
2022-01-25 7:18 ` [PATCH v4 1/3] PCI/AER: Call pcie_set_ecrc_checking() for each PCIe device Stefan Roese
2022-01-25 14:52 ` Pali Rohár
2022-01-25 7:18 ` [PATCH v4 2/3] PCI/portdrv: Don't disable AER reporting in get_port_device_capability() Stefan Roese
2022-01-25 7:18 ` [PATCH v4 3/3] PCI/AER: Enable AER on all PCIe devices supporting it Stefan Roese
2022-01-25 14:53 ` Pali Rohár
2022-04-04 20:22 ` Jonathan Derrick
2022-04-06 5:16 ` Stefan Roese
2022-04-06 14:49 ` Jonathan Derrick [this message]
2022-03-24 16:55 ` [PATCH v4 0/3] Fully enable AER Stefan Roese
2022-04-04 10:36 ` Stefan Roese
2022-07-11 19:53 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51ee3a55-dd07-7d13-f4c0-a772706d9630@linux.dev \
--to=jonathan.derrick@linux.dev \
--cc=bharat.kumar.gogada@xilinx.com \
--cc=helgaas@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=naveennaidu479@gmail.com \
--cc=pali@kernel.org \
--cc=sr@denx.de \
--cc=yaohongbo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).