Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294787
b: refs/heads/master
c: 6748dcc
h: refs/heads/master
i:
  294785: a2430f9
  294783: 696bf24
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Mar 1, 2012
1 parent d418db7 commit 78576f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6330c3178112a7b7f18e7f51f1cbb89fa1174c7
refs/heads/master: 6748dcc269e52925993e0d68447858b41b88b4be
1 change: 1 addition & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
off: Turn realloc off
on: Turn realloc on
realloc same as realloc=on
noari do not use PCIe ARI.

pcie_aspm= [PCIE] Forcibly enable or disable PCIe Active State Power
Management.
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ u8 pci_cache_line_size;
*/
unsigned int pcibios_max_latency = 255;

/* If set, the PCIe ARI capability will not be used. */
static bool pcie_ari_disabled;

/**
* pci_bus_max_busnr - returns maximum PCI bus number of given bus' children
* @bus: pointer to PCI bus structure to search
Expand Down Expand Up @@ -1955,7 +1958,7 @@ void pci_enable_ari(struct pci_dev *dev)
u16 flags, ctrl;
struct pci_dev *bridge;

if (!pci_is_pcie(dev) || dev->devfn)
if (pcie_ari_disabled || !pci_is_pcie(dev) || dev->devfn)
return;

pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI);
Expand Down Expand Up @@ -3840,6 +3843,8 @@ static int __init pci_setup(char *str)
pci_realloc_get_opt("on");
} else if (!strcmp(str, "nodomains")) {
pci_no_domains();
} else if (!strncmp(str, "noari", 5)) {
pcie_ari_disabled = true;
} else if (!strncmp(str, "cbiosize=", 9)) {
pci_cardbus_io_size = memparse(str + 9, &str);
} else if (!strncmp(str, "cbmemsize=", 10)) {
Expand Down

0 comments on commit 78576f8

Please sign in to comment.