aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason S. McMullan <jason.mcmullan@netronome.com>2015-09-30 15:35:05 +0900
committerMoyster <oysterized@gmail.com>2016-11-07 13:44:32 +0100
commit911e0768904088e313436f72d940c4a3f7717a55 (patch)
tree1aa5a6d467956d7d5e8f427ed70f41a3eb0185cb /tools/perf/scripts/python
parente463c3cf3c675a90b952bc8359871c023d91225f (diff)
downloadandroid_kernel_m2note-911e0768904088e313436f72d940c4a3f7717a55.tar.gz
PCI: Support PCIe devices with short cfg_size
commit c20aecf6963d1273d8f6d61c042b4845441ca592 upstream. If a device quirk modifies the pci_dev->cfg_size to be less than PCI_CFG_SPACE_EXP_SIZE (4096), but greater than PCI_CFG_SPACE_SIZE (256), the PCI sysfs interface truncates the readable size to PCI_CFG_SPACE_SIZE. Allow sysfs access to config space up to cfg_size, even if the device doesn't support the entire 4096-byte PCIe config space. Note that pci_read_config() and pci_write_config() limit access to dev->cfg_size even though pcie_config_attr contains 4096 (the maximum size). Signed-off-by: Jason S. McMullan <jason.mcmullan@netronome.com> [simon: edited changelog] Signed-off-by: Simon Horman <simon.horman@netronome.com> [bhelgaas: more changelog edits] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions