diff options
| author | Richard Cheng <icheng@nvidia.com> | 2026-03-12 19:54:41 +0800 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-03-12 16:51:07 -0500 |
| commit | 0026bb20d12531ca2925b60bf081cc8be910ccf9 (patch) | |
| tree | 11247f572296d2b96315164ad0578dfffc6c6f5d | |
| parent | 0111d600f0f456d09eb0ff6ac217fa5f30ae79ab (diff) | |
| download | linux-0026bb20d12531ca2925b60bf081cc8be910ccf9.tar.gz linux-0026bb20d12531ca2925b60bf081cc8be910ccf9.zip | |
PCI: Use pr_warn_once() for ACS parameter parse failure
When the ACS command line parameter cannot be parsed, the kernel skips
applying the requested ACS override. This indicates an invalid boot
parameter and should not be logged at informational level.
Use pr_warn_once() so the message is surfaced as a warning while still
avoiding repeated log spam during device enumeration.
Signed-off-by: Richard Cheng <icheng@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Tushar Dave <tdave@nvidia.com>
Link: https://patch.msgid.link/20260312115441.8168-1-icheng@nvidia.com
| -rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8479c2e1f74f..af735748a4a4 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -949,7 +949,7 @@ static void __pci_config_acs(struct pci_dev *dev, struct pci_acs *caps, ret = pci_dev_str_match(dev, p, &p); if (ret < 0) { - pr_info_once("PCI: Can't parse ACS command line parameter\n"); + pr_warn_once("PCI: Can't parse ACS command line parameter\n"); break; } else if (ret == 1) { /* Found a match */ |
