Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1679895imu; Tue, 6 Nov 2018 02:33:58 -0800 (PST) X-Google-Smtp-Source: AJdET5c9JqQVtpAy5tKhZxFf2snGsbZTnjTtM4f7eys5vXZlX2WrkW7YK8gczM6xPpMqhmsRvA/b X-Received: by 2002:a17:902:5a43:: with SMTP id f3-v6mr16951861plm.57.1541500438689; Tue, 06 Nov 2018 02:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541500438; cv=none; d=google.com; s=arc-20160816; b=ZvXyy+2xbjbIPwTs9oQz/1pGUIBBiwIpORmST8E2/DgmhmJaNRag7JiiiZ9kmpOpjO hIxvewk4c8nWspDXhFOpJ4mbnKGfGRQXWmvrU+UHnPy4RUAu/x52DCXJvo4nGiDrdj9D XRVQyxVTGlrtE2F40koQWp9yGApk9fEem30LzfUeVgC1ZXVwRGf+DlwnvUd05GiYiKh4 +djvLnVRJf468TQOSQ2pkDuwR5QxjIoFexS1tOyph/cJm5N68KpWfRY9ehEqxHUTTXix RHZv61QroPWVjGLwMPQ5+9gjAjPoI0y+XhsgfPcExzLJ3zn6jndDO5SuZiUTmVauCEKp fBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=/6lXgnWRA98GahwBe4SGQkyB16G+sL1TyWNy0BY28ZU=; b=po3bUXkXrK48ccTx3BgFua2HY1WAdR0tp2Tz1qfbHbDapFHMdBdYrKcRJ2DGUPUn9e VJRoxfCshU0S6tNYBnoRxUJbNue0dbzPYtwxldu7KQG/sZYHJyuIZWHqZG72lXXklu2I sFISEO0xGlQgFVrNrEKaR1HznT53C4KE8oX5EYGpfQgSQ1ZmywodHZKxZSfK6ZpxHjkA JbbdUmiCA6mega+yutxwW6O7zMl54YXtIMqzitdznZgu3U3sUYylGtlkisRrLITZxjqW VxSNNjI917k0ersmvWP2SeNgbgDZE2lFFPpJRkOZKO2ZVSxQdJwpG1fHQXPBeERpWt2D Wu8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si45297724plk.295.2018.11.06.02.33.43; Tue, 06 Nov 2018 02:33:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387813AbeKFTgP convert rfc822-to-8bit (ORCPT + 99 others); Tue, 6 Nov 2018 14:36:15 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:33753 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387480AbeKFTgP (ORCPT ); Tue, 6 Nov 2018 14:36:15 -0500 Received: from mail-wm1-f71.google.com ([209.85.128.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gJyKm-0004l5-0p for linux-kernel@vger.kernel.org; Tue, 06 Nov 2018 10:11:44 +0000 Received: by mail-wm1-f71.google.com with SMTP id h67-v6so10383021wmh.0 for ; Tue, 06 Nov 2018 02:11:44 -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:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PUui6sP1fLcHKzDuyJuwFHTOJ60QrXWUrQhVips0rJM=; b=t//S2TNFp4kctxo9XAyli7DKWjeP0wjUBrdxzspf5D20VBa04m983NaW55L5JRqZhE 0cnE6WOs2owxGwpW0wX80aaYjcMFEuk/t6PEe8S/gv6cTShrBd1tThgzMbhaeLL6Bnl5 +6PQycMF+bMIuSB+q97mYhnytHJTlH9FPgoslzzVXZphMqw1mRMBQiNZy3vfcph0b2Th Tne+ibuEpN74Yf4x4r1lsb1TK447XdapRwQjbASqRcrdGtFAhp66PUYPyq/hSrQkrZ2f dsdsxpxcAsw1PINntj4x8SbuN75sIpapso0im+AA2kOreO+cv4MqjXYq3XLP+3BUWoud 5zmg== X-Gm-Message-State: AGRZ1gL5D0rQftsyV4gPNYD937g3KA8vwiswgy3iCs773VU+n5dvRVgc Nh2UBsVLlioMnqwWXfINGf9uoBqrr6T54EoaImRtvU776w+Z3B+Jnfzciqkyt/+j2vW4wbtdzHW wuKxjcHRcSE5cu4kQmKjzTYADXRl9hTwoR3hBGzehJ3NzgqE9xR5gM2kooQ== X-Received: by 2002:a1c:af07:: with SMTP id y7-v6mr1490612wme.12.1541499103632; Tue, 06 Nov 2018 02:11:43 -0800 (PST) X-Received: by 2002:a1c:af07:: with SMTP id y7-v6mr1490589wme.12.1541499103239; Tue, 06 Nov 2018 02:11:43 -0800 (PST) MIME-Version: 1.0 References: <20181106020402.21120-1-acelan.kao@canonical.com> <20181106071011.GA23935@infradead.org> In-Reply-To: <20181106071011.GA23935@infradead.org> From: AceLan Kao Date: Tue, 6 Nov 2018 18:11:31 +0800 Message-ID: Subject: Re: [PATCH 1/2] pci: prevent sk hynix nvme from entering D3 To: Christoph Hellwig Cc: keith.busch@intel.com, axboe@fb.com, hch@lst.de, sagi@grimberg.me, Bjorn Helgaas , linux-nvme@lists.infradead.org, "Linux-Kernel@Vger. Kernel. Org" , linux-pci@vger.kernel.org, victor.chang@sk.com, james.chen@sk.com, Chih-Hsyuan Ho Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig 於 2018年11月6日 週二 下午3:10寫道: > > On Tue, Nov 06, 2018 at 10:04:01AM +0800, AceLan Kao wrote: > > It leads to the power consumption raises to 2.2W during s2idle, while > > it consumes less than 1W during long idle if put SK hynix nvme to D3 > > and then enter s2idle. > > >From SK hynix FE, MS Windows doesn't put nvme to D3, and uses its own > > APST feature to do the power management. > > To leverage its APST feature during s2idle, we can't disable nvme > > device while suspending, too. > > > > BTW, prevent it from entering D3 will increase the power consumtion around > > 0.13W ~ 0.15W during short/long idle, and the power consumption during > > s2idle becomes 0.77W. > > Please get this fixed in firmware. And yes, depending on which Windows > driver you use Windows might be doing very agressive runtime D3, which > is parted of Windows modern standby, so it'll trip up there eventually > as well. Agree, this is not a good fix for Sk hynix nvme, so Dell is still pushing Sk hynix to fix it from firmware. But before the firmware is ready, this is still a issue that need to be fixed in kernel side, and the new firmware may not be applied on the old nvme modules. This list won't keep growing, and we'll keep an eye on the new firmware and co-work with engineers from Sky hynix to make sure this issue won't happen again.