diff options
author | Guo Chao <[email protected]> | 2014-07-03 18:30:29 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2014-07-03 18:30:29 -0600 |
commit | c33377082dd9ede1e998f7ce416077e4b1c2276c (patch) | |
tree | c35e9737d43a3087fd8afa4253049045fe7c8745 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
PCI: Keep original resource if we fail to expand it
If we have space assigned to a resource, we try to expand the resource
(e.g., to accommodate SR-IOV resources), and the expansion attempt fails,
we should keep the original assignment.
After bd064f0a231a ("PCI: Mark resources as IORESOURCE_UNSET if we can't
assign them"), we left the resource marked IORESOURCE_UNSET when the
expansion failed, even if it had originally been set. That caused errors
like this:
pci 0003:00:00.0: can't enable device: BAR 15 [mem size 0x0c000000 64bit pref] not assigned
pci 0003:00:00.0: Error enabling bridge (-22), continuing
Fix this by restoring the original flags when reassignment fails.
[bhelgaas: reworked to simplify, changelog]
Fixes: bd064f0a231a ("PCI: Mark resources as IORESOURCE_UNSET if we can't assign them")
Signed-off-by: Guo Chao <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
CC: [email protected] # v3.15+
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions