summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorJim Quinlan <jim2101024@gmail.com>2022-07-25 18:12:52 +0300
committerBjorn Helgaas <bhelgaas@google.com>2022-07-27 19:52:54 +0300
commit5fb8f2628edf26c679d0079fae19b99aef82af03 (patch)
tree99bc1b7bfdd076d219433d6d3c93830947575af0 /scripts/gdb/linux/proc.py
parent0ac2ff426e3d48e6c642b14b53858e2174607231 (diff)
downloadlinux-5fb8f2628edf26c679d0079fae19b99aef82af03.tar.xz
PCI: brcmstb: Prevent config space access when link is down
When the link is down, config accesses to downstream devices cause CPU aborts. Allow config accesses only when the link is up. As the following scenario shows, this check is racy and cannot completely avoid CPU aborts, but it makes them less likely: pci_generic_config_read addr = brcm_pcie_map_conf # bus->ops->map_bus() brcm_pcie_link_up # returns "true"; link is up <link goes down> *val = readb(addr) # link is now down <CPU abort> Note that config space accesses to the Root Port are not affected by link status. [bhelgaas: commit log, use PCIE_ECAM_REG() instead of magic 0xfff masks; note that pci_generic_config_read32() masks low two bits already] Link: https://lore.kernel.org/r/20220725151258.42574-4-jim2101024@gmail.com Signed-off-by: Jim Quinlan <jim2101024@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions