From: sashiko-bot@kernel.org
To: "Yury Murashka" <yurypm@arista.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 1/2] PCI: Add pci=noaer_recovery kernel boot option
Date: Thu, 09 Jul 2026 19:06:16 +0000 [thread overview]
Message-ID: <20260709190616.DF0CF1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260709185429.627968-2-yurypm@arista.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The `pci=noaer_recovery` boot option fails to disable error recovery for CXL RCH internal errors.
--
--- Patch [1]: [PATCH v2 1/2] PCI: Add pci=noaer_recovery kernel boot option ---
commit 055898e8a2a1640801c835036f570a27cacd734b
Author: Yury Murashka <yurypm@arista.com>
PCI: Add pci=noaer_recovery kernel boot option
This patch adds a pci=noaer_recovery kernel boot option to disable AER error
recovery when an uncorrectable error is reported. This allows userspace to
inspect the unmodified error state without the kernel taking recovery actions.
> diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
> index c4fd9c0b2a548..fb79990ce8fff 100644
> --- a/drivers/pci/pcie/aer.c
> +++ b/drivers/pci/pcie/aer.c
[ ... ]
> @@ -1187,10 +1193,12 @@ static void pci_aer_handle_error(struct pci_dev *dev, struct aer_err_info *info)
> pdrv->err_handler->cor_error_detected(dev);
> pcie_clear_device_status(dev);
> }
> - } else if (info->severity == AER_NONFATAL)
> - pcie_do_recovery(dev, pci_channel_io_normal, aer_root_reset);
> - else if (info->severity == AER_FATAL)
> - pcie_do_recovery(dev, pci_channel_io_frozen, aer_root_reset);
> + } else if (!pcie_aer_recovery_disable) {
> + if (info->severity == AER_NONFATAL)
> + pcie_do_recovery(dev, pci_channel_io_normal, aer_root_reset);
> + else if (info->severity == AER_FATAL)
> + pcie_do_recovery(dev, pci_channel_io_frozen, aer_root_reset);
> + }
> }
>
> static void handle_error_source(struct pci_dev *dev, struct aer_err_info *info)
[Severity: High]
Does this fail to disable error recovery for CXL RCH internal errors?
If a CXL RCH device reports an internal uncorrectable error,
handle_error_source() calls cxl_rch_handle_error() before calling
pci_aer_handle_error():
drivers/pci/pcie/aer.c:handle_error_source() {
cxl_rch_handle_error(dev, info);
pci_aer_handle_error(dev, info);
pci_dev_put(dev);
}
The CXL error handler unconditionally walks the RCEC and invokes the device
driver's error_detected callback, completely bypassing the
pcie_aer_recovery_disable check:
drivers/pci/pcie/aer_cxl_rch.c:cxl_rch_handle_error_iter() {
...
if (info->severity == AER_NONFATAL)
err_handler->error_detected(dev, pci_channel_io_normal);
else if (info->severity == AER_FATAL)
err_handler->error_detected(dev, pci_channel_io_frozen);
...
}
Should the recovery disable check also apply to cxl_rch_handle_error() so
that unexpected recovery actions aren't executed for CXL devices when
pci=noaer_recovery is used?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260709185429.627968-1-yurypm@arista.com?part=1
next prev parent reply other threads:[~2026-07-09 19:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 18:54 [PATCH v2 0/2] PCI: Add boot options to disable DPC and AER recovery Yury Murashka
2026-07-09 18:54 ` [PATCH v2 1/2] PCI: Add pci=noaer_recovery kernel boot option Yury Murashka
2026-07-09 19:06 ` sashiko-bot [this message]
2026-07-09 18:54 ` [PATCH v2 2/2] PCI: Add pci=nodpc " Yury Murashka
2026-07-09 19:07 ` sashiko-bot
2026-07-09 22:42 ` [PATCH v2 0/2] PCI: Add boot options to disable DPC and AER recovery 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=20260709190616.DF0CF1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yurypm@arista.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