Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754343AbbDMRxH (ORCPT ); Mon, 13 Apr 2015 13:53:07 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:35029 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbbDMRxB (ORCPT ); Mon, 13 Apr 2015 13:53:01 -0400 MIME-Version: 1.0 In-Reply-To: <20150413143225.GB2596@htj.duckdns.org> References: <1428696929-2988-1-git-send-email-mjg59@coreos.com> <20150413143225.GB2596@htj.duckdns.org> Date: Mon, 13 Apr 2015 10:52:59 -0700 Message-ID: Subject: Re: [PATCH] libata: Add an additional LPM policy to match Intel recommendations From: Matthew Garrett To: Tejun Heo Cc: Matthew Garrett , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1808 Lines: 29 On Mon, Apr 13, 2015 at 7:32 AM, Tejun Heo wrote: > On Fri, Apr 10, 2015 at 01:15:29PM -0700, Matthew Garrett wrote: >> Intel publish a document on designing energy efficient SATA devices at >> http://www.intel.com/content/dam/doc/reference-guide/sata-devices-implementation-recommendations.pdf >> which recommends that ALPE be set, ASPE be cleared and that DIPM be enabled >> on the device. Right now we have no policy that matches that - medium_power >> does not enable DIPM and min_power sets ASPE. Add a new low_power policy to >> implement these recommendations. I've left devslp disabled because I'm not >> yet sure what Intel do in that case. With luck this will provide reasonable >> power savings without causing the device breakages we occasionally see with >> the min_power policy. > > I suspect the aggressive methods actually don't buy us much, except > for the obsessive mode switchings, in terms of power saving compared > to something more reasonable provided via DIPM and I'm not sure it's a > good idea to introduce yet another mode. I'd be all in for converting > min_power mode to DIPM for cases where we know this actually works > rather than introducing yet another mode. Or if there's a clear power > consumption disadvantage to DIPM, let's conver medium_power to that. Ok - my only real concern there was that we might end up changing the semantics of medium_power enough that it would break somebody. I'll post a patch to do that instead and I guess we can see what happens - worst case we revert it and add a new one. -- 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/