summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-11-29 17:14:47 +0300
committerBjorn Helgaas <bhelgaas@google.com>2016-11-29 17:14:47 +0300
commit45d004f4afefdd8d79916ee6d97a9ecd94bb1ffe (patch)
tree2d11b9eb2db44b9e229be0442764ae701ef8e06f /tools/perf/scripts/python/call-graph-from-postgresql.py
parent63880b230a4af502c56dde3d4588634c70c66006 (diff)
downloadlinux-45d004f4afefdd8d79916ee6d97a9ecd94bb1ffe.tar.xz
PCI: Update BARs using property bits appropriate for type
The BAR property bits (0-3 for memory BARs, 0-1 for I/O BARs) are supposed to be read-only, but we do save them in res->flags and include them when updating the BAR. Mask the I/O property bits with ~PCI_BASE_ADDRESS_IO_MASK (0x3) instead of PCI_REGION_FLAG_MASK (0xf) to make it obvious that we can't corrupt bits 2-3 of I/O addresses. Use PCI_ROM_ADDRESS_MASK for ROM BARs. This means we'll only check the top 21 bits (instead of the 28 bits we used to check) of a ROM BAR to see if the update was successful. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions