android_kernel_oneplus_msm8998/drivers/vfio/pci
Alex Williamson 7b0278ca9f vfio/pci: Virtualize Maximum Read Request Size
commit cf0d53ba4947aad6e471491d5b20a567cbe92e56 upstream.

MRRS defines the maximum read request size a device is allowed to
make.  Drivers will often increase this to allow more data transfer
with a single request.  Completions to this request are bound by the
MPS setting for the bus.  Aside from device quirks (none known), it
doesn't seem to make sense to set an MRRS value less than MPS, yet
this is a likely scenario given that user drivers do not have a
system-wide view of the PCI topology.  Virtualize MRRS such that the
user can set MRRS >= MPS, but use MPS as the floor value that we'll
write to hardware.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-24 09:32:09 +02:00
..
Kconfig vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
Makefile vfio: initialize the virqfd workqueue in VFIO generic code 2015-03-16 14:08:54 -06:00
vfio_pci.c vfio-pci: Handle error from pci_iomap 2017-08-06 19:19:46 -07:00
vfio_pci_config.c vfio/pci: Virtualize Maximum Read Request Size 2018-04-24 09:32:09 +02:00
vfio_pci_intrs.c vfio/pci: Fix integer overflows, bitmask check 2017-04-30 05:49:29 +02:00
vfio_pci_private.h vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
vfio_pci_rdwr.c vfio-pci: use 32-bit comparisons for register address for gcc-4.5 2017-08-06 19:19:44 -07:00