Patch "Revert "PCI: Clear PCI_STATUS when setting up device"" has been added to the 6.0-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

    Revert "PCI: Clear PCI_STATUS when setting up device"

to the 6.0-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:
     revert-pci-clear-pci_status-when-setting-up-device.patch
and it can be found in the queue-6.0 subdirectory.

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



commit 6fe5c42f1c69abd07610fb34f280e1d8dd88de5f
Author: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
Date:   Mon Nov 7 15:31:08 2022 -0600

    Revert "PCI: Clear PCI_STATUS when setting up device"
    
    [ Upstream commit 44e985938e85503d0a69ec538e15fd33c1a4df05 ]
    
    This reverts commit 6cd514e58f12b211d638dbf6f791fa18d854f09c.
    
    Christophe Fergeau reported that 6cd514e58f12 ("PCI: Clear PCI_STATUS when
    setting up device") causes boot failures when trying to start linux guests
    with Apple's virtualization framework (for example using
    https://developer.apple.com/documentation/virtualization/running_linux_in_a_virtual_machine?language=objc)
    
    6cd514e58f12 only solved a cosmetic problem, so revert it to fix the boot
    failures.
    
    Link: https://bugzilla.redhat.com/show_bug.cgi?id=2137803
    Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index c5286b027f00..bdcad5e0f057 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1890,9 +1890,6 @@ int pci_setup_device(struct pci_dev *dev)
 
 	dev->broken_intx_masking = pci_intx_mask_broken(dev);
 
-	/* Clear errors left from system firmware */
-	pci_write_config_word(dev, PCI_STATUS, 0xffff);
-
 	switch (dev->hdr_type) {		    /* header type */
 	case PCI_HEADER_TYPE_NORMAL:		    /* standard header */
 		if (class == PCI_CLASS_BRIDGE_PCI)



[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