Received: by 10.223.176.46 with SMTP id f43csp1317396wra; Wed, 24 Jan 2018 14:30:20 -0800 (PST) X-Google-Smtp-Source: AH8x2267H5vcMlQsjWyR1zpaGxQp9lPxco4fDM6N5xTBokpJ0xs5emecUOTZkZJoJSlaMQfrZ8XY X-Received: by 10.99.113.20 with SMTP id m20mr11096185pgc.400.1516833020463; Wed, 24 Jan 2018 14:30:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516833020; cv=none; d=google.com; s=arc-20160816; b=rBMU+Eksu0471VAxGZCPeZiFUVUWUeCNp6m8uOn6Ip39iaSU7mXIhkhWCtFmHY7mTM //aaIYcrHtbTQ2+yNAVbqaxu1bhZPkqqlwTCT3wSFppv4Z4KgLiNNAYYwgCa4NEo3Z6C 5JptNmI31uv/xhGX118++FCDpb+m4Wn97S947wlgXjlXPJ9768UPDKm2BnTdSmxmZ+R6 +NNei7zhxxYPMChuGA4QPirxToBlFK+QMGOKINpwLTr6fWLIcU7Y8P8hqDgRpwVcA2li OcjLrQh1wVh7WDu03CCrvw36cOgOzUm1ifWkDJozX3kB7x8LtBSYtwmXxlzEBGOmgaQB WMmw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Odtq+I8yLqnBuNnXd61cnfrxHmUwgwwbouoevmEeumU=; b=hyUflrhKfe1qqpgLsTEmwaWHPt4Zg3pU+9EQ2F+14v74XNHecImdnXONVMJWV+3zG5 ifPD9lFt2VR+gL8sAVP0P7V89TtUa4a07CA+l0y1YpOoNKGgtCyhPaqJYGWf6eP3EnuC eSkn8NyADoR4+sOciIihcy8QWH2mJtNeGpxbRirOrNOfE81SMzThTpmyjbPqABEYq9MA UEngNw7/K71KHPRXsYxDxVV6946vtgSc3Hu8wGbQg2XOlvwISL/ceA424ieOav6ntlA3 OEQHhjVs+mS+6vOyT4afcP4Y1/JlB9z6gOxvVJBo473ZP9i2Ot3StfztgAsnNtK/2vrI 8HtQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si830497plz.801.2018.01.24.14.29.52; Wed, 24 Jan 2018 14:30:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932864AbeAXW3R (ORCPT + 99 others); Wed, 24 Jan 2018 17:29:17 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:45995 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932072AbeAXW3Q (ORCPT ); Wed, 24 Jan 2018 17:29:16 -0500 Received: from [192.168.0.119] (adsl-dyn169.78-98-241.t-com.sk [78.98.241.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 4241F2012BA04D; Wed, 24 Jan 2018 23:29:13 +0100 (CET) Subject: Re: Report long suspend times of NVMe devices (mostly firmware/device issues) To: Keith Busch Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <9e398971-762d-bb1a-f798-bf0b18cb5b6b@molgen.mpg.de> <20180122213024.GR12043@localhost.localdomain> From: Paul Menzel Message-ID: Date: Wed, 24 Jan 2018 23:29:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180122213024.GR12043@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Keith, Thank you for your reply. Am 22.01.2018 um 22:30 schrieb Keith Busch: > On Mon, Jan 22, 2018 at 10:02:12PM +0100, Paul Menzel wrote: >> Benchmarking the ACPI S3 suspend and resume times with `sleepgraph.py >> -config config/suspend-callgraph.cfg` [1], shows that the NVMe disk SAMSUNG >> MZVKW512HMJP-00000 in the TUXEDO Book BU1406 takes between 0.3 and 1.4 >> seconds, holding up the suspend cycle. >> >> The time is spent in `nvme_shutdown_ctrl()`. >> >> ### Linux 4.14.1-041401-generic >> >>> nvme @ 0000:04:00.0 {nvme} async_device (Total Suspend: 1439.299 ms Total Resume: 19.865 ms) >> >> ### Linux 4.15-rc9 >> >>> nvme @ 0000:04:00.0 {nvme} async_device (Total Suspend: 362.239 ms Total Resume: 19.897 m >> It’d be useful, if the Linux kernel logged such issues visibly to the user, >> so that the hardware manufacturer can be contacted to fix the device >> (probably the firmware). >> >> In my opinion anything longer than 200 ms should be reported similar to [2], >> and maybe worded like below. >> >>> NVMe took more than 200 ms to do suspend routine >> >> What do you think? > > The nvme spec guides toward longer times than that. I don't see the > point of warning users about things operating within spec. I quickly glanced over NVM Express revision 1.3 specification [1] but searching for *second *, I could not find something about this. Could you please point me to the section? In my opinion, it’s a good thing to point users to devices holding up suspend. Kind regards, Paul [1] https://nvmexpress.org/wp-content/uploads/NVM_Express_Revision_1.3.pdf