Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752688AbdLGJs4 (ORCPT ); Thu, 7 Dec 2017 04:48:56 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:43528 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbdLGJsz (ORCPT ); Thu, 7 Dec 2017 04:48:55 -0500 X-Google-Smtp-Source: AGs4zMZqvIWpavHeGkbfEYOg96Yy8z3jxLCZdQd/fAhbPHXXTX7kTXNfR+N0txWH897EWUV4IfQj4g== Date: Thu, 7 Dec 2017 09:48:51 +0000 From: Lee Jones To: Hans de Goede Cc: linux-kernel@vger.kernel.org, Rui Feng Subject: Re: [PATCH] mfd: Fix RTS5227 (and others) powermanagement Message-ID: <20171207094851.7rbswmhtp3ddl774@dell> References: <20171206112135.9332-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171206112135.9332-1-hdegoede@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1378 Lines: 35 On Wed, 06 Dec 2017, Hans de Goede wrote: > Commit 8275b77a1513 ("mfd: rts5249: Add support for RTS5250S power > saving") adds powersaving support for device-ids 5249 524a and 525a. > > But as a side effect it breaks ASPM support for all the other device-ids, > causing e.g. the Haswell CPU on a Lenovo T440s to not go into a higher > c-state then PC3, while previously it would go to PC7, causing the > machine to idle at 7.4W instead of 6.6W! > > The problem here is the new option.dev_aspm_mode field, which only gets > explicitly initialized in the new code for the device-ids 5249 524a and > 525a. Leaving the dev_aspm_mode 0 for the other device-ids. > > The default dev_aspm_mode 0 is mapped to DEV_ASPM_DISABLE, but the > old behavior of calling rtsx_pci_enable_aspm() when idle and > rtsx_pci_disable_aspm() when busy happens when dev_aspm_mode == > DEV_ASPM_DYNAMIC. > > This commit changes the enum so that 0 = DEV_ASPM_DYNAMIC matching the > old default behavior, fixing the pm regression with the other device-ids. > > Cc: Rui Feng > Signed-off-by: Hans de Goede > --- > include/linux/mfd/rtsx_pci.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. -- Lee Jones Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog