Return-Path: Received: from smtp.codeaurora.org ([198.145.29.96]:54724 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753516AbeFIXt2 (ORCPT ); Sat, 9 Jun 2018 19:49:28 -0400 Subject: Re: [PATCH v2] pci/aspm: Remove CONFIG_PCIEASPM_DEBUG To: Rajat Jain , Bjorn Helgaas , "Busch, Keith" , Vidya Sagar , Philippe Ombredanne , Kees Cook , "Gustavo A. R. Silva" , Ard Biesheuvel , Frederick Lawler , linux-pci , Linux Kernel Mailing List , "Patel, Mayurkumar" Cc: Rajat Jain References: <20180508230148.121852-1-rajatja@google.com> <20180510233912.96454-1-rajatja@google.com> From: Sinan Kaya Message-ID: Date: Sat, 9 Jun 2018 19:49:23 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-pci-owner@vger.kernel.org List-ID: > On Thu, May 10, 2018 at 4:39 PM Rajat Jain wrote: >> >> Currently, the linux kernel disables ASPM when a device is >> removed from the kernel. But it is not enabled again when >> a new device is added on that slot even if it was originally >> enabled (by the BIOS) when the system booted up (assuming >> POLICY_DEFAULT). >> >> This was earlier discussed here: >> https://www.spinics.net/lists/linux-pci/msg60212.html >> >> And some suggestions from Bjorn here: >> https://www.spinics.net/lists/linux-pci/msg60541.html >> >> This patch picks up one of the suggestion, to remove the >> CONFIG_PCIEASPM_DEBUG and thus make the code always >> avilable. This provides control to userspace to control >> ASPM on a per slot / device basis using sysfs interface. >> >> Signed-off-by: Rajat Jain >> --- >> v2: provide function definitions for !CONFIG_PCIEASPM case Reviewed-by: Sinan Kaya -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.