lkml.org 
[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/93] PCI: Allow pcie_aspm=force even when FADT indicates it is unsupported
    Date
    3.5.7.5 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Colin Ian King <colin.king@canonical.com>

    commit 9e16721498b0c3d3ebfa0b503c63d35c0a4c0642 upstream.

    Right now using pcie_aspm=force will not enable ASPM if the FADT indicates
    ASPM is unsupported. However, the semantics of force should probably allow
    for this, especially as they did before 3c076351c4 ("PCI: Rework ASPM
    disable code")

    This patch just skips the clearing of any ASPM setup that the firmware has
    carried out on this bus if pcie_aspm=force is being used.

    Reference: http://bugs.launchpad.net/bugs/962038
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
    ---
    drivers/pci/pcie/aspm.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
    index b500840..474f22f 100644
    --- a/drivers/pci/pcie/aspm.c
    +++ b/drivers/pci/pcie/aspm.c
    @@ -798,6 +798,9 @@ void pcie_clear_aspm(struct pci_bus *bus)
    {
    struct pci_dev *child;

    + if (aspm_force)
    + return;
    +
    /*
    * Clear any ASPM setup that the firmware has carried out on this bus
    */
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2013-02-06 00:01    [W:2.247 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site