linux-stable/drivers/vfio
Eric Auger 6de29266dd vfio_pci: Enable memory accesses before calling pci_map_rom
[ Upstream commit 0cfd027be1 ]

pci_map_rom/pci_get_rom_size() performs memory access in the ROM.
In case the Memory Space accesses were disabled, readw() is likely
to trigger a synchronous external abort on some platforms.

In case memory accesses were disabled, re-enable them before the
call and disable them back again just after.

Fixes: 89e1f7d4c6 ("vfio: Add PCI device driver")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:19 +01:00
..
mdev vfio/mdev: Check globally for duplicate devices 2018-08-03 07:50:22 +02:00
pci vfio_pci: Enable memory accesses before calling pci_map_rom 2020-01-27 14:46:19 +01:00
platform vfio: platform: Fix reset module leak in error path 2018-08-03 07:50:22 +02:00
Kconfig
Makefile
vfio.c vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING" 2019-06-15 11:54:54 +02:00
vfio_iommu_spapr_tce.c vfio/spapr_tce: Get rid of possible infinite loop 2019-12-05 15:37:42 +01:00
vfio_iommu_type1.c vfio/type1: Limit DMA mappings per container 2019-05-02 09:40:30 +02:00
vfio_spapr_eeh.c
virqfd.c