]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: Use pr_warn_once() for ACS parameter parse failure
authorRichard Cheng <icheng@nvidia.com>
Thu, 12 Mar 2026 11:54:41 +0000 (19:54 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Mar 2026 21:51:07 +0000 (16:51 -0500)
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
drivers/pci/pci.c

index 8479c2e1f74f1044416281aba11bf071ea89488a..af735748a4a419d3897726708d4207a402cbd848 100644 (file)
@@ -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 */