Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbbLCQkV (ORCPT ); Thu, 3 Dec 2015 11:40:21 -0500 Received: from mail.kernel.org ([198.145.29.136]:38214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbbLCQkP (ORCPT ); Thu, 3 Dec 2015 11:40:15 -0500 Date: Thu, 3 Dec 2015 10:40:07 -0600 From: Bjorn Helgaas To: Josef Bacik Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, bhelgaas@google.com, shli@fb.com, kernel-team@fb.com Subject: Re: [PATCH] pci: completely disable aspm if it's unsupported Message-ID: <20151203164007.GA16669@localhost> References: <1447856703-2566-1-git-send-email-jbacik@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447856703-2566-1-git-send-email-jbacik@fb.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1839 Lines: 41 On Wed, Nov 18, 2015 at 09:25:03AM -0500, Josef Bacik wrote: > We have some hardware that takes about 30 seconds to setup common clocks for > ASPM, but our bios'es don't actually allow ASPM. It seems we had this thing in > place where we would disable ASPM after the pci bus probe so that we would make > sure that pre pcie 1.1 devices would be properly skipped during initialization. > This is because the mechanism to disable ASPM doesn't actually disable the > setting up of the link state stuff, it just keeps us from changing the link > state after the fact. So instead make it so that when we call pcie_no_aspm() > that we disable ASPM completley, that is we skip setting up the link state and > everything. This way we avoid the costly setup for a feature we cannot support > in the first place and we also make sure we are safe from future tampering with > the ASPM link state. Thanks, > diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c > index 317e355..5f84af2 100644 > --- a/drivers/pci/pcie/aspm.c > +++ b/drivers/pci/pcie/aspm.c > @@ -954,6 +954,7 @@ void pcie_no_aspm(void) > if (!aspm_force) { > aspm_policy = POLICY_DEFAULT; > aspm_disabled = 1; > + aspm_support_enabled = false; After this patch, I think aspm_disabled and aspm_support_enabled are equivalent. If that's the case, we should get rid of one of them. > } > } > > -- > 2.1.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/