Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734634

Re: [PATCH] libata: Add new med_power_with_dipm link_power_management_policy setting

Path csiph.com!goblin1!goblin2!goblin.stu.neva.ru!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] libata: Add new med_power_with_dipm link_power_management_policy setting
Date Tue, 19 Sep 2017 05:30:02 +0200
Message-ID <urhou-7ap-7@gated-at.bofh.it> (permalink)
References <upzIR-3Oe-5@gated-at.bofh.it> <upzIR-3Oe-3@gated-at.bofh.it>
X-Original-To Hans de Goede <hdegoede@redhat.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=iBMlgpYxOyuFHT0UaaeAdgtor9WsPIuN/W4+69/JK2s=; b=nM9pbZnurBCttO1Oi5veL5UlBJ5YHuImeId2MBzuhyBftbW00k11TlH6AxkXluhDSp d3VVFZZ+XcIgeDLouMsjl4IYKs3c/3bNH95h5YxxIbaaCfLckRe+MSu9WVCggIcIUMoE uHl7unHJUYTQ25IupJhqZNQFMOA4rxady5QOD37K7YeWX9GTebGoHWzLqUOmNv9r9le4 gMqVNvfMZ5zRYfEtw5IBsdpYlpEYXZ2L00FljNa7hjkW9gRDTVvA5s8wECZqzj0cF17G q8IDM7S7G6THPIk0P50ktUpkbjYydsaJwSutbGACcERo8a1o4kUKZTynpAgS6E7jz5PM 6HJA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=iBMlgpYxOyuFHT0UaaeAdgtor9WsPIuN/W4+69/JK2s=; b=a71LhEfVQEPhOmwI1vsIx5iv8+yIQ6LxD3ea2A5mk39EYmoDKrXNfvBRTZRAZ8VDEr pfcQLL3rQaIDgKiy10PJf7qKXNgwNxC+A2Ab8CYAuNujWEkluuxM5pRRWzNpd97ciCu1 q8lG6cX9LihVH8kpw0/tF88jGFDAkJbPWlmUguOGCxTKCTgNtad46ACaDYhh6hCER5q9 7IulojikqTktSFIY2nwAPKJ7arYLZl5DfgkcQyv0/LAdSRI4uXjjhRI8V3iswXffjo16 A6kwA8c+lo61ATF9V0Yz2nL/lc9qgoPJO4hrAyX2HqDwaVe93okXGmNPy/PEOTx6ueBT FMCw==
X-Gm-Message-State AHPjjUiroW02kOyaHtFMsjCAcmYWC17b31Ap+o+Gyo9Uv36iGZn9nRTR AMIpDjm7hTBjtGsoT6vAgNM=
X-Google-SMTP-Source AOwi7QBl62U9kCjP0UDYPLAuWZx6+VzTaItuwmbWCreyJhxr7CmjQjCub1xOiBvVSrGUPpQ/hcPpbA==
X-Received by 10.200.51.69 with SMTP id u5mr13809qta.204.1505791425414; Mon, 18 Sep 2017 20:23:45 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
X-Original-Cc Matthew Garrett <mjg59@srcf.ucam.org>, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Mon, 18 Sep 2017 20:23:42 -0700
X-Original-Message-ID <20170919032341.GM378890@devbig577.frc2.facebook.com>
X-Original-References <20170914103536.7650-1-hdegoede@redhat.com> <20170914103536.7650-2-hdegoede@redhat.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1734634

Show key headers only | View raw


On Thu, Sep 14, 2017 at 12:35:36PM +0200, Hans de Goede wrote:
> As described by Matthew Garret quite a while back:
> https://mjg59.dreamwidth.org/34868.html
> 
> Intel CPUs starting with the Haswell generation need SATA links to power
> down for the "package" part of the CPU to reach low power-states like
> PC7 / P8 which bring a significant power-saving with them.
> 
> The default max_performance lpm policy does not allow for these high
> PC states, both the medium_power and min_power policies do allow this.
> 
> The min_power policy saves significantly more power, but there are some
> reports of some disks / SSDs not liking min_power leading to system
> crashes and in some cases even data corruption has been reported.
> 
> Matthew has found a document documenting the default settings of
> Intel's IRST Windows driver with which most laptops ship:
> https://www-ssl.intel.com/content/dam/doc/reference-guide/sata-devices-implementation-recommendations.pdf
> 
> Matthew wrote a patch changing med_power to match those defaults, but
> that never got anywhere as some people where reporting issues with the
> patch-set that patch was a part of.
> 
> This commit is another attempt to make the default IRST driver settings
> available under Linux, but instead of changing medium_power and
> potentially introducing regressions, this commit adds a new
> med_power_with_dipm setting which is identical to the existing
> medium_power accept that it enables dipm on top, which makes it match
> the Windows IRST driver settings, which should hopefully be safe to
> use on most devices.
> 
> The med_power_with_dipm setting is close to min_power, except that:
> a) It does not use host-initiated slumber mode (ASP not set),
>    but it does allow device-initiated slumber
> b) It does not enable DevSlp mode
> 
> On my T440s test laptop I get the following power savings when idle:
> medium_power		0.9W
> med_power_with_dipm	1.2W
> min_power		1.2W
> 
> Suggested-by: Matthew Garrett <mjg59@srcf.ucam.org>
> Cc: Matthew Garrett <mjg59@srcf.ucam.org>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Applied to libata/for-4.15.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] libata: Add new med_power_with_dipm link_power_management_policy setting Hans de Goede <hdegoede@redhat.com> - 2017-09-14 12:40 +0200
  Re: [PATCH] libata: Add new med_power_with_dipm  link_power_management_policy setting Tejun Heo <tj@kernel.org> - 2017-09-19 05:30 +0200

csiph-web