Patch "s390/pci: Mark all VFs as not implementing PCI_COMMAND_MEMORY" has been added to the 5.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    s390/pci: Mark all VFs as not implementing PCI_COMMAND_MEMORY

to the 5.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     s390-pci-mark-all-vfs-as-not-implementing-pci_comman.patch
and it can be found in the queue-5.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6c5f169ccc6e3b18c64e0e2f6d302b6e9d6bdb17
Author: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>
Date:   Thu Sep 10 10:59:56 2020 -0400

    s390/pci: Mark all VFs as not implementing PCI_COMMAND_MEMORY
    
    [ Upstream commit 08b6e22b850c28b6032da1e4d767a33116e23dfb ]
    
    For s390 we can have VFs that are passed-through without the associated
    PF. Firmware provides an emulation layer to allow these devices to
    operate independently, but is missing emulation of the Memory Space
    Enable bit.  For these as well as linked VFs, set no_command_memory
    which specifies these devices do not implement PCI_COMMAND_MEMORY.
    
    Fixes: abafbc551fdd ("vfio-pci: Invalidate mmaps and block MMIO access on disabled memory")
    Signed-off-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>
    Reviewed-by: Niklas Schnelle <schnelle@xxxxxxxxxxxxx>
    Reviewed-by: Pierre Morel <pmorel@xxxxxxxxxxxxx>
    Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/s390/pci/pci_bus.c b/arch/s390/pci/pci_bus.c
index 5967f30141563..c93486a9989bc 100644
--- a/arch/s390/pci/pci_bus.c
+++ b/arch/s390/pci/pci_bus.c
@@ -197,9 +197,10 @@ void pcibios_bus_add_device(struct pci_dev *pdev)
 	 * With pdev->no_vf_scan the common PCI probing code does not
 	 * perform PF/VF linking.
 	 */
-	if (zdev->vfn)
+	if (zdev->vfn) {
 		zpci_bus_setup_virtfn(zdev->zbus, pdev, zdev->vfn);
-
+		pdev->no_command_memory = 1;
+	}
 }
 
 static int zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux