From patchwork Fri Jul 27 20:47:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 10547711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D6DE14BC for ; Fri, 27 Jul 2018 20:47:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D31F28947 for ; Fri, 27 Jul 2018 20:47:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 213E32B43B; Fri, 27 Jul 2018 20:47:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C24E428947 for ; Fri, 27 Jul 2018 20:47:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389515AbeG0WKk (ORCPT ); Fri, 27 Jul 2018 18:10:40 -0400 Received: from mga05.intel.com ([192.55.52.43]:38326 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389377AbeG0WKk (ORCPT ); Fri, 27 Jul 2018 18:10:40 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jul 2018 13:47:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,411,1526367600"; d="scan'208";a="76576899" Received: from spandruv-desk.jf.intel.com ([10.54.75.31]) by orsmga001.jf.intel.com with ESMTP; 27 Jul 2018 13:47:05 -0700 From: Srinivas Pandruvada To: tj@kernel.org, hdegoede@redhat.com, rjw@rjwysocki.net Cc: alan.cox@intel.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Mario.Limonciello@dell.com, Srinivas Pandruvada Subject: [PATCH v2 0/2] ata: ahci: Enable DEVSLP by default on SLP_S0 support Date: Fri, 27 Jul 2018 13:47:01 -0700 Message-Id: <20180727204703.6505-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP One of the requirement for modern x86 system to enter lowest power mode (SLP_S0) is SATA IP block to be off. This is true even during when platform is suspended to idle and not only in opportunistic (runtime) suspend. This series is to enable DEVSLP by default. v2: As suggested by Hans, take care of the module param is same as default LPM policy -current (non-rfc) series Implemented suggestions from Hans - no override of policy set via module param - Override lpm policy per host not global policy - changed the new policy name to "min_power_with_partial" rfc-v2 - As suggested by Hans, it is possible to have ASP with DEVSLP, so add a new state. - Removed usage of mem_sleep_current, instead just rely on low power idle flag. Don't feel good to EXPORT from core suspend code. - Depending host policy to decide if we enable DEVSLP by default. Srinivas Pandruvada (2): ata: ahci: Support state with min power but Partial low power state ata: ahci: Enable DEVSLP by default on x86 with SLP_S0 drivers/ata/ahci.c | 38 +++++++++++++++++++++++++++++++++----- drivers/ata/libahci.c | 5 ++++- drivers/ata/libata-core.c | 1 + drivers/ata/libata-scsi.c | 1 + include/linux/libata.h | 3 ++- 5 files changed, 41 insertions(+), 7 deletions(-) Reviewed-by: Hans de Goede