[{"id":1770629,"web_url":"http://patchwork.ozlabs.org/comment/1770629/","msgid":"<20170919032341.GM378890@devbig577.frc2.facebook.com>","list_archive_url":null,"date":"2017-09-19T03:23:42","subject":"Re: [PATCH] libata: Add new med_power_with_dipm\n\tlink_power_management_policy setting","submitter":{"id":352,"url":"http://patchwork.ozlabs.org/api/people/352/","name":"Tejun Heo","email":"tj@kernel.org"},"content":"On Thu, Sep 14, 2017 at 12:35:36PM +0200, Hans de Goede wrote:\n> As described by Matthew Garret quite a while back:\n> https://mjg59.dreamwidth.org/34868.html\n> \n> Intel CPUs starting with the Haswell generation need SATA links to power\n> down for the \"package\" part of the CPU to reach low power-states like\n> PC7 / P8 which bring a significant power-saving with them.\n> \n> The default max_performance lpm policy does not allow for these high\n> PC states, both the medium_power and min_power policies do allow this.\n> \n> The min_power policy saves significantly more power, but there are some\n> reports of some disks / SSDs not liking min_power leading to system\n> crashes and in some cases even data corruption has been reported.\n> \n> Matthew has found a document documenting the default settings of\n> Intel's IRST Windows driver with which most laptops ship:\n> https://www-ssl.intel.com/content/dam/doc/reference-guide/sata-devices-implementation-recommendations.pdf\n> \n> Matthew wrote a patch changing med_power to match those defaults, but\n> that never got anywhere as some people where reporting issues with the\n> patch-set that patch was a part of.\n> \n> This commit is another attempt to make the default IRST driver settings\n> available under Linux, but instead of changing medium_power and\n> potentially introducing regressions, this commit adds a new\n> med_power_with_dipm setting which is identical to the existing\n> medium_power accept that it enables dipm on top, which makes it match\n> the Windows IRST driver settings, which should hopefully be safe to\n> use on most devices.\n> \n> The med_power_with_dipm setting is close to min_power, except that:\n> a) It does not use host-initiated slumber mode (ASP not set),\n>    but it does allow device-initiated slumber\n> b) It does not enable DevSlp mode\n> \n> On my T440s test laptop I get the following power savings when idle:\n> medium_power\t\t0.9W\n> med_power_with_dipm\t1.2W\n> min_power\t\t1.2W\n> \n> Suggested-by: Matthew Garrett <mjg59@srcf.ucam.org>\n> Cc: Matthew Garrett <mjg59@srcf.ucam.org>\n> Signed-off-by: Hans de Goede <hdegoede@redhat.com>\n\nApplied to libata/for-4.15.\n\nThanks.","headers":{"Return-Path":"<linux-ide-owner@vger.kernel.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ide-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"nM9pbZnu\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xx7WS2tDTz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 13:23:48 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751100AbdISDXr (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tMon, 18 Sep 2017 23:23:47 -0400","from mail-qt0-f177.google.com ([209.85.216.177]:51734 \"EHLO\n\tmail-qt0-f177.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750882AbdISDXq (ORCPT\n\t<rfc822; linux-ide@vger.kernel.org>); Mon, 18 Sep 2017 23:23:46 -0400","by mail-qt0-f177.google.com with SMTP id q4so2530536qtq.8;\n\tMon, 18 Sep 2017 20:23:45 -0700 (PDT)","from localhost (dhcp-ec-8-6b-ed-7a-cf.cpe.echoes.net.\n\t[72.28.26.219]) by smtp.gmail.com with ESMTPSA id\n\t13sm6472338qtp.74.2017.09.18.20.23.44\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Sep 2017 20:23:44 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=sender:date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=iBMlgpYxOyuFHT0UaaeAdgtor9WsPIuN/W4+69/JK2s=;\n\tb=nM9pbZnurBCttO1Oi5veL5UlBJ5YHuImeId2MBzuhyBftbW00k11TlH6AxkXluhDSp\n\td3VVFZZ+XcIgeDLouMsjl4IYKs3c/3bNH95h5YxxIbaaCfLckRe+MSu9WVCggIcIUMoE\n\tuHl7unHJUYTQ25IupJhqZNQFMOA4rxady5QOD37K7YeWX9GTebGoHWzLqUOmNv9r9le4\n\tgMqVNvfMZ5zRYfEtw5IBsdpYlpEYXZ2L00FljNa7hjkW9gRDTVvA5s8wECZqzj0cF17G\n\tq8IDM7S7G6THPIk0P50ktUpkbjYydsaJwSutbGACcERo8a1o4kUKZTynpAgS6E7jz5PM\n\t6HJA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:date:from:to:cc:subject:message-id\n\t:references:mime-version:content-disposition:in-reply-to:user-agent; \n\tbh=iBMlgpYxOyuFHT0UaaeAdgtor9WsPIuN/W4+69/JK2s=;\n\tb=a71LhEfVQEPhOmwI1vsIx5iv8+yIQ6LxD3ea2A5mk39EYmoDKrXNfvBRTZRAZ8VDEr\n\tpfcQLL3rQaIDgKiy10PJf7qKXNgwNxC+A2Ab8CYAuNujWEkluuxM5pRRWzNpd97ciCu1\n\tq8lG6cX9LihVH8kpw0/tF88jGFDAkJbPWlmUguOGCxTKCTgNtad46ACaDYhh6hCER5q9\n\t7IulojikqTktSFIY2nwAPKJ7arYLZl5DfgkcQyv0/LAdSRI4uXjjhRI8V3iswXffjo16\n\tA6kwA8c+lo61ATF9V0Yz2nL/lc9qgoPJO4hrAyX2HqDwaVe93okXGmNPy/PEOTx6ueBT\n\tFMCw==","X-Gm-Message-State":"AHPjjUiroW02kOyaHtFMsjCAcmYWC17b31Ap+o+Gyo9Uv36iGZn9nRTR\n\tAMIpDjm7hTBjtGsoT6vAgNM=","X-Google-Smtp-Source":"AOwi7QBl62U9kCjP0UDYPLAuWZx6+VzTaItuwmbWCreyJhxr7CmjQjCub1xOiBvVSrGUPpQ/hcPpbA==","X-Received":"by 10.200.51.69 with SMTP id u5mr13809qta.204.1505791425414;\n\tMon, 18 Sep 2017 20:23:45 -0700 (PDT)","Date":"Mon, 18 Sep 2017 20:23:42 -0700","From":"Tejun Heo <tj@kernel.org>","To":"Hans de Goede <hdegoede@redhat.com>","Cc":"Matthew Garrett <mjg59@srcf.ucam.org>, linux-ide@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","Subject":"Re: [PATCH] libata: Add new med_power_with_dipm\n\tlink_power_management_policy setting","Message-ID":"<20170919032341.GM378890@devbig577.frc2.facebook.com>","References":"<20170914103536.7650-1-hdegoede@redhat.com>\n\t<20170914103536.7650-2-hdegoede@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170914103536.7650-2-hdegoede@redhat.com>","User-Agent":"Mutt/1.5.21 (2010-09-15)","Sender":"linux-ide-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-ide.vger.kernel.org>","X-Mailing-List":"linux-ide@vger.kernel.org"}}]