Patch "PCI/ASPM: Disable only ASPM_STATE_L1 when driver disables L1" has been added to the 4.19-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

    PCI/ASPM: Disable only ASPM_STATE_L1 when driver disables L1

to the 4.19-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:
     pci-aspm-disable-only-aspm_state_l1-when-driver-disa.patch
and it can be found in the queue-4.19 subdirectory.

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



commit c3e6db03cceefe02c5be01bc581b545d5d5d0121
Author: Ajay Agarwal <ajayagarwal@xxxxxxxxxx>
Date:   Thu May 4 16:42:57 2023 +0530

    PCI/ASPM: Disable only ASPM_STATE_L1 when driver disables L1
    
    [ Upstream commit fb097dcd5a28c0a2325632405c76a66777a6bed9 ]
    
    Previously pci_disable_link_state(PCIE_LINK_STATE_L1) disabled L1SS as well
    as L1.  This is unnecessary since pcie_config_aspm_link() takes care that
    L1SS is not enabled if L1 is disabled.
    
    Disable only ASPM_STATE_L1 when the caller disables L1.  No functional
    changes intended.
    
    This is consistent with aspm_attr_store_common(), which disables only L1,
    not L1SS, when L1 is disabled via the sysfs "l1_aspm" file.
    
    [bhelgaas: commit log]
    Link: https://lore.kernel.org/r/20230504111301.229358-2-ajayagarwal@xxxxxxxxxx
    Signed-off-by: Ajay Agarwal <ajayagarwal@xxxxxxxxxx>
    Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
    Stable-dep-of: 3cb4f534bac0 ("Revert "PCI/ASPM: Disable only ASPM_STATE_L1 when driver, disables L1"")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 8f934c88dcd76..8db6a9084a12a 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -1110,8 +1110,7 @@ static int __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem)
 	if (state & PCIE_LINK_STATE_L0S)
 		link->aspm_disable |= ASPM_STATE_L0S;
 	if (state & PCIE_LINK_STATE_L1)
-		/* L1 PM substates require L1 */
-		link->aspm_disable |= ASPM_STATE_L1 | ASPM_STATE_L1SS;
+		link->aspm_disable |= ASPM_STATE_L1;
 	if (state & PCIE_LINK_STATE_L1_1)
 		link->aspm_disable |= ASPM_STATE_L1_1;
 	if (state & PCIE_LINK_STATE_L1_2)



[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