diff options
| author | Vidya Sagar <[email protected]> | 2020-12-03 18:51:10 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2020-12-04 18:17:04 +0000 |
| commit | 2053230af11dc651ee3024682df12668496adad2 (patch) | |
| tree | 18d930b9f83c6ce0b56e26ba4ce54cf5aca9e33a /fs/proc/array.c | |
| parent | PCI/MSI: Move MSI/MSI-X flags updaters to msi.c (diff) | |
| download | kernel-2053230af11dc651ee3024682df12668496adad2.tar.gz kernel-2053230af11dc651ee3024682df12668496adad2.zip | |
PCI/MSI: Set device flag indicating only 32-bit MSI support
The MSI-X Capability requires devices to support 64-bit Message Addresses,
but the MSI Capability can support either 32- or 64-bit addresses.
Previously, we set dev->no_64bit_msi for a few broken devices that
advertise 64-bit MSI support but don't correctly support it.
In addition, check the MSI "64-bit Address Capable" bit for all devices and
set dev->no_64bit_msi for devices that don't advertise 64-bit support.
This allows msi_verify_entries() to catch arch code defects that assign
64-bit addresses when they're not supported.
The warning is helpful to find defects like the one fixed by
https://lore.kernel.org/r/[email protected]
[bhelgaas: set no_64bit_msi in pci_msi_init(), commit log]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vidya Sagar <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
