diff options
author | Logan Gunthorpe <[email protected]> | 2018-10-05 09:49:40 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2018-10-11 11:28:53 -0500 |
commit | 742bbe1ee35b5699c092541f97c7cec326556bb1 (patch) | |
tree | bea9a040e348fa1beddc68474bbccf3ad4578cf6 /tools/perf/util/trace-event-scripting.c | |
parent | 01d5d7fa8376c6b5acda86e16fcad22de6bba486 (diff) |
PCI: Fix Switchtec DMA aliasing quirk dmesg noise
Currently the Switchtec quirk runs on all endpoints in the switch,
including all the upstream and downstream ports. These other functions do
not contain BARs, so the quirk fails when trying to map the BAR and prints
the error "Cannot iomap Switchtec device". The user will see a few of
these useless and scary errors, one for each port in the switch.
At most, the quirk should only run on either a management endpoint
(PCI_CLASS_MEMORY_OTHER) or an NTB endpoint (PCI_CLASS_BRIDGE_OTHER).
However, the quirk is useless except in NTB applications, so we will
only run it when the class is PCI_CLASS_BRIDGE_OTHER.
Switch to using DECLARE_PCI_FIXUP_CLASS_FINAL and only match
PCI_CLASS_BRIDGE_OTHER.
Reported-by: Stephen Bates <[email protected]>
Fixes: ad281ecf1c7d ("PCI: Add DMA alias quirk for Microsemi Switchtec NTB")
Signed-off-by: Logan Gunthorpe <[email protected]>
[bhelgaas: split SWITCHTEC_QUIRK() introduction to separate patch]
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: Doug Meyer <[email protected]>
Cc: Kurt Schwemmer <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions