Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5999990yba; Mon, 13 May 2019 23:13:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJvmBtz4V5bcImSdjJQRjeQV7Aw8gbdAxQGjrhKze9v0FRtORyC9leSU+yKk3rb4HtMKZs X-Received: by 2002:a62:128a:: with SMTP id 10mr37932191pfs.225.1557814386873; Mon, 13 May 2019 23:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557814386; cv=none; d=google.com; s=arc-20160816; b=m+xiAqIeGjY8olZgt3No4+zQUdcMPelqcMvGW9s84mGrwlBXmbPfThVYIHdda1cnkm 9nUPCE4klrBf+XqKC0lppBzddupsO3J7jZU4zmq5vfZYDhAmc6w/DLjml5ctBS1wxu4k x5wSyoFLMfz5ylrP+gSCVXBB1FkARTvtPlWigbHkcUD1e5Z0qWfOXOSjXwA0iF8nb3Jm qeIfa3MtzrLtsEjJszLBHFuov5Z/LmI4My5xloW47Z3nmJyrbGLS09Lzgee/0gJu+Qr0 6iIgYtgbmbfxjfBB3GKHStokqLgOflMdwkh9Gpv0W1SVDoc/cikdib1+nUqV1sogj9h6 gTpw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yqA8Ez/U8JdkeH+A+ablzomvV1lhnEPv3UU/jeikPbg=; b=J4+3HG1vToVtozxurwpLU+ctEuY1NBe6I46zh/sk3ceoT4MWGIKgCXzA26szv49KdV 8LbBuel9k+VTmIbbr5U73NCq0NZ7jJEgtK/zr7SE11c/oxSzKNwyTX4vfr8SjcSw4/ZP R3m/2LtyPWro0+AySGUhf9sqIDJJ3ARKAdUQxvdecRMsxXyyv25JaIhcpMWoH+ZriqO6 40jct2fpD1LRbhiS8DVYbDpH1PEiWMXpcBUw93hRXzvegOzyYjD6Cf/cG4APJicF2WMY fs2oqwZnKSbscigKXS9Mcr8bGJgPWGZ9I93pGhyDKefc4Fr9XQF3qTkEDNXodc85umif o5NQ== 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 z11si17874971pgv.265.2019.05.13.23.12.50; Mon, 13 May 2019 23:13:06 -0700 (PDT) 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 S1726089AbfENGMD (ORCPT + 99 others); Tue, 14 May 2019 02:12:03 -0400 Received: from verein.lst.de ([213.95.11.211]:43834 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfENGMD (ORCPT ); Tue, 14 May 2019 02:12:03 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 8BB1C68AFE; Tue, 14 May 2019 08:11:41 +0200 (CEST) Date: Tue, 14 May 2019 08:11:41 +0200 From: Christoph Hellwig To: Mario.Limonciello@dell.com Cc: hch@lst.de, kbusch@kernel.org, keith.busch@intel.com, sagi@grimberg.me, linux-nvme@lists.infradead.org, rafael@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, kai.heng.feng@canonical.com Subject: Re: [PATCH] nvme/pci: Use host managed power state for suspend Message-ID: <20190514061141.GA7059@lst.de> References: <20190510212937.11661-1-keith.busch@intel.com> <0080aaff18e5445dabca509d4113eca8@AUSX13MPC105.AMER.DELL.COM> <955722d8fc16425dbba0698c4806f8fd@AUSX13MPC105.AMER.DELL.COM> <20190513143754.GE15318@localhost.localdomain> <7ab8274ef1ce46fcae54a50abc76ae4a@AUSX13MPC105.AMER.DELL.COM> <20190513145708.GA25897@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 06:01:39PM +0000, Mario.Limonciello@dell.com wrote: > When using HMB the SSD will be writing to some memory mapped region. > Writing to > that region would use DMA to access host memory, no? Memory mapped region? It will use the devices DMA engine to write host memory, which we explicitly allowed it. > If the DMA controller is not functional writing to that region won't work properly as > it can't access that memory. The DMA controller is in the device. External DMA controllers are only used on very low-end periphals, usually cheap IP blocks like SPI controllers or similar.