Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2137044lqz; Tue, 2 Apr 2024 08:14:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxhjMg2EK4WlcAyoyfmw6DB+vc7GnnUIZE5gfPRgunpINxnVhBBvBDFN/J9lDrXEKd4Byq4KMjIfsl3NWvtkfRAv+xEpsUX1IrhybICA== X-Google-Smtp-Source: AGHT+IF0BfpJySaRzLXjOx1ISr98IsB6lziRB5X+AnLphOxn4MafjhveFwIEiu5KkKCz+RzIEMKK X-Received: by 2002:a17:903:98c:b0:1e2:7ea0:c1f2 with SMTP id mb12-20020a170903098c00b001e27ea0c1f2mr1548377plb.58.1712070874006; Tue, 02 Apr 2024 08:14:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712070873; cv=pass; d=google.com; s=arc-20160816; b=pBmkJCgw5KQBpRmPIVMf5VgvaiWHKnOuGodY2PLcZFOD3h29oCP6gWdR+tfcv6kxJl Ds+ll+4EdoOVvhu8/Py8U9SVgFBkPtKjtnyZ8me+WMjnT43ASxFikscnR2mHq15k1EP7 At/el+U2NzNWSwEjMyONI3Og8CNmKgdfe426Zg1W7ew7+bR0QlGK3Xl9OtFWPFD6HRpJ Pm67BY4ss9Foo2F1+Mviudzc18tQQm8YCc6qhnKjJgcnM+O4RX/cA4X9GER+7MSWGMRq Aubc78VoPjmy8bUWEXyf+W0pRNH0AetSF2PF0AG43eC7cUZ7XeSgLZZGnBHVUo3AAM/C mQxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VTZDTry4iLRYYk7znZMyIwOmtb4mpRhpVQzIYKZgUBM=; fh=48LRgOefEp+FAKZ9FhcvqDgyXkpKCClGIMMVlNhg3EU=; b=RiNu+Uh+uWZwMqdHRdY6JSPUf5YvS5blmh4yiHUUQli49rcjMMTaDhQaCq86f163DP YXW6SGehT89pcPemVGtvS4n2E9y6AhcnPDn8QjlRbCxLAMXoFOzOXD/J+J7iwzXCij0v ZYDwyyUPMYtugOdHadlmvWsXGnxRa1GXuVMRysVtwMTzHC8WRvkd8HqtzhO6Nakt6eDw QB3iv1osUb/7Jo3w7lkGYbSm7ZlvU+2T/K64z8553ta+hEBx3FJslylhQuvYeifzEhnV Ytyg2UUjyd7z4ENlXTxBW7+sM1JhSSZUD1RUO7nByTQjzCiC/6Ut3HZLNpb+gdhwRyJk MLgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=Kj2In7m7; arc=pass (i=1 spf=pass spfdomain=tuxedocomputers.com dkim=pass dkdomain=tuxedocomputers.com dmarc=pass fromdomain=tuxedocomputers.com); spf=pass (google.com: domain of linux-kernel+bounces-128227-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lw14-20020a1709032ace00b001e073e4005fsi1502498plb.147.2024.04.02.08.14.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128227-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=Kj2In7m7; arc=pass (i=1 spf=pass spfdomain=tuxedocomputers.com dkim=pass dkdomain=tuxedocomputers.com dmarc=pass fromdomain=tuxedocomputers.com); spf=pass (google.com: domain of linux-kernel+bounces-128227-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128227-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 77461283F2C for ; Tue, 2 Apr 2024 15:14:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D11112C544; Tue, 2 Apr 2024 15:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="Kj2In7m7" Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F6C912BF23 for ; Tue, 2 Apr 2024 15:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=157.90.84.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712070836; cv=none; b=RdUgOimylfGzbOhGQ1jLfj3bYa59hxwhm8XTbKe8npVUeajzx16y2g1gCc6ElfC4k1BcpbWawSbCAkQbl09+A/a+e0/AufK1v8GSMchsUzWfC73vVaRMTNWvIrIFfdW/PhP16D3HM5twPCyWUuLi+PBsI31mra3vSeWUrqeG0vE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712070836; c=relaxed/simple; bh=Sg8GnwOt4sP/I59dWNL7SnjRb5adsH8IbzdV5LUB0kk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VbDgJtVGrOMpb2bv8beBfgGdGSojeaEzUdtJdAF9J7cH5RrJxv4/rJqxkbJtnGLlu2Ae7n5azEjy8fv0wl5cIXQCLi1ywCX+QtclDrJPG47njiB3eWbLSMSyDacTcpGb2Tbd5VjQBMKdUvDtiuS7JWTEA3FC/3r5Y6Hvx9MZK/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com; spf=pass smtp.mailfrom=tuxedocomputers.com; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b=Kj2In7m7; arc=none smtp.client-ip=157.90.84.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Received: from [192.168.175.29] (host-88-217-226-44.customer.m-online.net [88.217.226.44]) (Authenticated sender: g.gottleuber@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPSA id 55A6F2FC0052; Tue, 2 Apr 2024 17:13:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1712070829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VTZDTry4iLRYYk7znZMyIwOmtb4mpRhpVQzIYKZgUBM=; b=Kj2In7m7Cv9V3hoWpJUxThUI0AEr+NmsjEaGwl/dI+e3fkN6KMCa4TLYXPD9IawmNsWrnO QoM72gDZkYsEyfcDvgeOHzeHEzH+6sGgQx6oIjGFzDU6QXljCkyZ4Ge5r3Ff07lVNrMz3Y N5e8YBUAmUZhvvuw+ax5yK4HORBLh18= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=g.gottleuber@tuxedocomputers.com smtp.mailfrom=g.gottleuber@tuxedocomputers.com Message-ID: <230e3f41-9f6b-42fd-a411-567abbaebbbe@tuxedocomputers.com> Date: Tue, 2 Apr 2024 17:13:48 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] nvme-pci: Add sleep quirk for Samsung 990 Evo To: Christoph Hellwig , Werner Sembach Cc: Keith Busch , Jens Axboe , Sagi Grimberg , Georg Gottleuber , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240328130923.61752-1-wse@tuxedocomputers.com> <20240402131658.GA31963@lst.de> Content-Language: en-US From: Georg Gottleuber In-Reply-To: <20240402131658.GA31963@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 02.04.24 um 15:16 schrieb Christoph Hellwig: > On Thu, Mar 28, 2024 at 02:09:22PM +0100, Werner Sembach wrote: >> From: Georg Gottleuber >> >> On some TUXEDO platforms, a Samsung 990 Evo NVMe leads to a high >> power consumption in s2idle sleep (2-3 watts). >> >> This patch applies 'Force No Simple Suspend' quirk to achieve a >> sleep with a lower power consumption, typically around 0.5 watts. > > Does this only apply to a specific SSD or all SSDs on this platform? > How do these platforms even get into the conditional? Probably > through acpi_storage_d3 setting, which probably is set incorrectly > for the platform? Any chance to just fix that? Yes, this only apply to a specific SSD. I tested these SSDs (on PH4PRX1_PH6PRX1): * Kingston NV1, SNVS250G * Samsung 980, MZ-V8V500 * Samsung 970 Evo, S46DNX0K900454D * Samsung 980 Pro, S69ENX0T709932L S2idle consumes around 0.4 watts with these SSDs. But with a Samsung 990 Evo s2idle on this platform consumes 3.7 to 4.4 watts (6.8 vs 6.5 kernel). With my quirk s2idle sleep consumption is at the same level of all other SSDs tested. Other boards have different values (a bit less drastic: factor 3 to 8). All measurements were taken with the battery disconnected and a modified adapter plug. Because of the isolated problems with this SSD I have not debugged acpi_storage_d3. Do you think that would make sense? Kind regards, Georg Gottleuber