From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55F97C11D07 for ; Thu, 20 Feb 2020 11:21:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 374F32465D for ; Thu, 20 Feb 2020 11:21:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727233AbgBTLV0 convert rfc822-to-8bit (ORCPT ); Thu, 20 Feb 2020 06:21:26 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:40431 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgBTLVZ (ORCPT ); Thu, 20 Feb 2020 06:21:25 -0500 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j4jtT-0006Wv-0T for linux-ide@vger.kernel.org; Thu, 20 Feb 2020 11:21:23 +0000 Received: by mail-pg1-f198.google.com with SMTP id o2so2031574pgj.11 for ; Thu, 20 Feb 2020 03:21:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WSsVKe5m/fI49zLSWZeeXgxmZuAkrbCjOSeJyTky1JM=; b=T4a7kpP2E0g8UHw5lGiv+rbSFGKjdONF6/+5+Vf1Cwt3UHiUJt8YAR1+rSFm3lZp7S OHHUyo43zZZz54EyEdj8vt2UWYVgLyCP6rtyU4XI9HjlaivT6bPGa0/4+axAwkXeOSl9 qGgN9XoDIsnxySh5Xo+IR6eW9wQoK+ARX6n/h1QGaCNeK3UF5OCiO49t3pnkRRZLqfxt DP/jKi3LdUru4oB3rbVNi79ZypQiDhJ0+3n72OmWPcx75xjBpY334IY2HDwsUHgwStzw nhevFSPS808Spi4mzoGJRRGZGOCWgS8gI945xDBnoYksgPRCIyZSQesJZlK954cvSilC Lb8w== X-Gm-Message-State: APjAAAX3bzOor9Xmhw1rvzWg72L1iDfu6eLtJoeBy9IM9/yezTqdGvuF CzPGVWb7/UDI3EW2v6Ol6x6SnBYs+3dcynfQFItw1X91XSIlqEfTwtHQ2c8ADwNhWeOEFVC+iSQ MtJLAq39s5zGvxoODaHZptWsYLiF/+F2odI4Org== X-Received: by 2002:a17:902:503:: with SMTP id 3mr31362167plf.78.1582197681512; Thu, 20 Feb 2020 03:21:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxyOojlmbrBEfU+UtdeK3OKApDHQEphuC9Anq0405U24Th2wQQ/B3DkQ1V9+saRUPwRC1RdxA== X-Received: by 2002:a17:902:503:: with SMTP id 3mr31362145plf.78.1582197681120; Thu, 20 Feb 2020 03:21:21 -0800 (PST) Received: from 2001-b011-380f-3214-b828-48d4-ee3d-9937.dynamic-ip6.hinet.net (2001-b011-380f-3214-b828-48d4-ee3d-9937.dynamic-ip6.hinet.net. [2001:b011:380f:3214:b828:48d4:ee3d:9937]) by smtp.gmail.com with ESMTPSA id 84sm3445110pgg.90.2020.02.20.03.21.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Feb 2020 03:21:20 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Hard Disk consumes lots of power in s2idle From: Kai-Heng Feng In-Reply-To: Date: Thu, 20 Feb 2020 19:21:18 +0800 Cc: Srinivas Pandruvada , Linux PM , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , open list , Kent Lin , Tejun Heo Content-Transfer-Encoding: 8BIT Message-Id: <73F7D94E-65B1-4069-AA97-5A34617308B9@canonical.com> References: <0955D72C-D24D-402E-884F-C706578BF477@canonical.com> <235CF4F8-19BF-4B00-8C92-E59CB2D476A7@canonical.com> To: "Rafael J. Wysocki" X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org > On Feb 20, 2020, at 18:34, Rafael J. Wysocki wrote: > > On Thu, Feb 20, 2020 at 11:25 AM Kai-Heng Feng > wrote: >> >> >> >>> On Feb 20, 2020, at 18:12, Rafael J. Wysocki wrote: >>> >>> On Thu, Feb 20, 2020 at 9:08 AM Kai-Heng Feng >>> wrote: >>>> >>>> Hi Srinivas, >>>> >>>>> On Feb 20, 2020, at 02:36, Srinivas Pandruvada wrote: >>>>> >>>>> Hi Kai, >>>>> >>>>> On Wed, 2020-02-19 at 22:22 +0800, Kai-Heng Feng wrote: >>>>>> Hi Srinivas, >>>>>> >>>>>> Your previous work to support DEVSLP works well on SATA SSDs, so I am >>>>>> asking you the issue I am facing: >>>>>> Once a laptop has a HDD installed, the power consumption during >>>>>> S2Idle increases ~0.4W, which is quite a lot. >>>>>> However, HDDs don't seem to support DEVSLP, so I wonder if you know >>>>>> to do proper power management for HDDs? >>>>> What is the default here >>>>> cat /sys/power/mem_sleep >>>>> s2idle or deep? >>>> >>>> It defaults to s2idle. >>>> >>>>> >>>>> Please follow debug steps here: >>>>> https://01.org/blogs/qwang59/2018/how-achieve-s0ix-states-linux >>>>> >>>>> We need to check whether you get any PC10 residency or not. >>>> >>>> Yes it reaches PC10. It doesn't reach SLP_S0 though. >>>> The real number on S2Idle power consumption: >>>> No HDD: ~1.4W >>>> One HDD: ~1.8W >>>> >>>> If the SoC doesn't hit PC10 the number should be significantly higher. >>>> That's why I think the issue is the power management on HDD itself. >>> >>> I'm assuming that you mean a non-SSD device here. >> >> Yes, it's spinning rust here. >> >>> >>> That would be handled via ata_port_suspend() I gather and whatever >>> that does should do the right thing. >>> >>> Do you think that the disk doesn't spin down or it spins down, but the >>> logic stays on? >> >> The spin sound is audible, so I am certain the HDD spins down during S2Idle. > > OK > >> How do I know if the logic is on or off? > > Well, if it were off, it would not draw power. :-) > > So IMO it is reasonable to assume that the logic on the drive stays > on. I'm not aware of anything that can be done to turn it off, > however. Okay, thanks for the info. I'll ask vendors the possibility to handle it at system firmware level. Kai-Heng