Received: by 10.223.176.46 with SMTP id f43csp3393084wra; Mon, 22 Jan 2018 13:27:40 -0800 (PST) X-Google-Smtp-Source: AH8x224QSD4jqiOQCOCHhj+WAHH+FxLkOZXp5sVN2r0ycEvImcwkBguu7MBXPbrIqh0HRcxwaeW7 X-Received: by 10.107.52.16 with SMTP id b16mr439401ioa.103.1516656460446; Mon, 22 Jan 2018 13:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516656460; cv=none; d=google.com; s=arc-20160816; b=ckOW5an2PbDJGmrYDFo3UD6PEm3PoGjFASKKeHiZsr9W6CywHh8dDnZMQqd3TuiFk0 vdnhoLGDui6A2HvN1jDCHrnRWHCI04PrQPpCOx4GhMFNIl6gzUT/Urxw7uvaMLXSU0xV 6f3RuTi1fxzca36b6xFmajtA58O6ZYp1Gpfgin0k4dEFEZG182sZPp548h5JA+BOvuSm h2hYjYFegSbqN/DlGTjSBIRjGFky+WNGmqvsN859pg6dakrdSizh6vRSmrZrOQRupo1z cNnAnjYoYQMaG9uY8Te38V//WHRTK52EoBL4WHtdHOjzp3LzTHLE3P3123wg2aY7Zkmy lA9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=a77KDMszYX9Z7J+bOecUdbgmNGl6v4GArKQoZ6zBV+E=; b=a42PnvU58vJ2AXOkTHY3/Is84PLfZEA6+79Yo+mY1jtKf7r0JW7mk9aQFD1MYNYffV jAtEnyeoYxTKPh9VrodyiVFZxCR6HAyOl2P82+Hvh8saVUSPbbhphk96hp7yXhnuyHfG JG4SDpgWjCmy/u0x6LrjxScaScWBpOL8ycbiH+/RcvVOxUaNWMUN/tnVE27xKi+0X7LC +n1sXcq0iYWKV7j2wwPDeraPck4E89Fc9jZFyItrWeQYAMzATLzzYpv5Pj8DdW/lHhak 4aWqCga//sw7Xx+IcfWiAULnTeJb6ovB1lGfSJWETIfDQcldLHqe/KjUbvJGrf6Ptqmw RSrw== 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 r11si7009379ioa.39.2018.01.22.13.27.26; Mon, 22 Jan 2018 13:27:40 -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 S1751126AbeAVV1A (ORCPT + 99 others); Mon, 22 Jan 2018 16:27:00 -0500 Received: from mga09.intel.com ([134.134.136.24]:4538 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750892AbeAVV07 (ORCPT ); Mon, 22 Jan 2018 16:26:59 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2018 13:26:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,398,1511856000"; d="scan'208";a="13264192" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by fmsmga002.fm.intel.com with ESMTP; 22 Jan 2018 13:26:58 -0800 Date: Mon, 22 Jan 2018 14:30:25 -0700 From: Keith Busch To: Paul Menzel Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Report long suspend times of NVMe devices (mostly firmware/device issues) Message-ID: <20180122213024.GR12043@localhost.localdomain> References: <9e398971-762d-bb1a-f798-bf0b18cb5b6b@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9e398971-762d-bb1a-f798-bf0b18cb5b6b@molgen.mpg.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 10:02:12PM +0100, Paul Menzel wrote: > Dear Linux folks, > > > 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.