Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110744209
D38397.id119499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
723 B
Referenced Files
None
Subscribers
None
D38397.id119499.diff
View Options
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -420,6 +420,11 @@
&pci_clear_aer_on_attach, 0,
"Clear port and device AER state on driver attach");
+static bool pci_enable_mps_tune = true;
+SYSCTL_BOOL(_hw_pci, OID_AUTO, enable_mps_tune, CTLFLAG_RWTUN,
+ &pci_enable_mps_tune, 1,
+ "Enable tuning of MPS(maximum payload size)." );
+
static int
pci_has_quirk(uint32_t devid, int quirk)
{
@@ -4452,7 +4457,8 @@
pci_cfg_restore(dev, dinfo);
pci_print_verbose(dinfo);
pci_add_resources(bus, dev, 0, 0);
- pcie_setup_mps(dev);
+ if (pci_enable_mps_tune)
+ pcie_setup_mps(dev);
pci_child_added(dinfo->cfg.dev);
if (pci_clear_aer_on_attach)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 1:58 PM (8 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16798459
Default Alt Text
D38397.id119499.diff (723 B)
Attached To
Mode
D38397: pci: add tunable hw.pci.enable_mps_tune
Attached
Detach File
Event Timeline
Log In to Comment