Skip to content

Commit 4224e91

Browse files
committed
Merge branch 'pci/misc'
- Warn only once about invalid ACS kernel parameter format (Richard Cheng) - Suppress FW_BUG warning when writing sysfs 'numa_node' with the current value (Li RongQing) - Drop redundant 'depends on PCI' from Kconfig (Julian Braha) * pci/misc: PCI: Clean up dead code in Kconfig PCI/sysfs: Suppress FW_BUG warning when NUMA node already matches PCI: Use pr_warn_once() for ACS parameter parse failure PCI: of: Reduce severity of missing of_root error message
2 parents b274423 + 7010f13 commit 4224e91

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

drivers/pci/Kconfig

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if PCI
3131

3232
config PCI_DOMAINS
3333
bool
34-
depends on PCI
3534

3635
config PCI_DOMAINS_GENERIC
3736
bool
@@ -255,7 +254,7 @@ config PCI_DYNAMIC_OF_NODES
255254
choice
256255
prompt "PCI Express hierarchy optimization setting"
257256
default PCIE_BUS_DEFAULT
258-
depends on PCI && EXPERT
257+
depends on EXPERT
259258
help
260259
MPS (Max Payload Size) and MRRS (Max Read Request Size) are PCIe
261260
device parameters that affect performance and the ability to
@@ -272,20 +271,17 @@ choice
272271

273272
config PCIE_BUS_TUNE_OFF
274273
bool "Tune Off"
275-
depends on PCI
276274
help
277275
Use the BIOS defaults; don't touch MPS at all. This is the same
278276
as booting with 'pci=pcie_bus_tune_off'.
279277

280278
config PCIE_BUS_DEFAULT
281279
bool "Default"
282-
depends on PCI
283280
help
284281
Default choice; ensure that the MPS matches upstream bridge.
285282

286283
config PCIE_BUS_SAFE
287284
bool "Safe"
288-
depends on PCI
289285
help
290286
Use largest MPS that boot-time devices support. If you have a
291287
closed system with no possibility of adding new devices, this
@@ -294,7 +290,6 @@ config PCIE_BUS_SAFE
294290

295291
config PCIE_BUS_PERFORMANCE
296292
bool "Performance"
297-
depends on PCI
298293
help
299294
Use MPS and MRRS for best performance. Ensure that a given
300295
device's MPS is no larger than its parent MPS, which allows us to
@@ -303,7 +298,6 @@ config PCIE_BUS_PERFORMANCE
303298

304299
config PCIE_BUS_PEER2PEER
305300
bool "Peer2peer"
306-
depends on PCI
307301
help
308302
Set MPS = 128 for all devices. MPS configuration effected by the
309303
other options could cause the MPS on one root port to be
@@ -317,7 +311,7 @@ endchoice
317311
config VGA_ARB
318312
bool "VGA Arbitration" if EXPERT
319313
default y
320-
depends on (PCI && !S390)
314+
depends on !S390
321315
select SCREEN_INFO if X86
322316
help
323317
Some "legacy" VGA devices implemented on PCI typically have the same
@@ -340,4 +334,4 @@ source "drivers/pci/endpoint/Kconfig"
340334
source "drivers/pci/switch/Kconfig"
341335
source "drivers/pci/pwrctrl/Kconfig"
342336

343-
endif
337+
endif # PCI

drivers/pci/of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ void of_pci_make_host_bridge_node(struct pci_host_bridge *bridge)
775775

776776
/* Check if there is a DT root node to attach the created node */
777777
if (!of_root) {
778-
pr_err("of_root node is NULL, cannot create PCI host bridge node\n");
778+
pr_debug("of_root node is NULL, cannot create PCI host bridge node\n");
779779
return;
780780
}
781781

drivers/pci/pci-sysfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ static ssize_t numa_node_store(struct device *dev,
378378
if (node != NUMA_NO_NODE && !node_online(node))
379379
return -EINVAL;
380380

381+
if (node == dev->numa_node)
382+
return count;
383+
381384
add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);
382385
pci_alert(pdev, FW_BUG "Overriding NUMA node to %d. Contact your vendor for updates.",
383386
node);

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ static void __pci_config_acs(struct pci_dev *dev, struct pci_acs *caps,
949949

950950
ret = pci_dev_str_match(dev, p, &p);
951951
if (ret < 0) {
952-
pr_info_once("PCI: Can't parse ACS command line parameter\n");
952+
pr_warn_once("PCI: Can't parse ACS command line parameter\n");
953953
break;
954954
} else if (ret == 1) {
955955
/* Found a match */

0 commit comments

Comments
 (0)