Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1478263ybt; Thu, 9 Jul 2020 08:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLSPksIb4Oaw5Wlr20ddALhW7evJcd1ITQSHXPuH/ceffxmSH2V+KjvWbWM6CGGBmg5Yb1 X-Received: by 2002:a50:ab53:: with SMTP id t19mr73733152edc.179.1594306900729; Thu, 09 Jul 2020 08:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594306900; cv=none; d=google.com; s=arc-20160816; b=YxdxHCbBuAqryHPwghAlkQzgftNdNklzb0iOMBPhP54/oAijuK63QjMDowWUy//428 SB6DFBLvQy5J3HKj32VvbVDI6GibXbiPUp3LnRckYISwsYk3C1Eeele8AwICS5sANFAe IfB6avrFEyGHnb3gFVgqs5H3f/8P7f98NS5iTV2IrccbqGGRszx+UhLocirD8dmCAwvL 4huIkHFD0BEeWqjxs7FoQCbtNryn8unMCG77dUhIUDWd1EmFKtpPGEtVg0y6pXIWLo3a qaiUjVtJGznQn0mFCcsqUJ2KfAkXjI5dOzsjzGb9J4yxoClKg6r26dhKbsBlcfFlQ93k on4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=d6Fy1Ff8XKWJW7cdhpnfoPEQT8m7nn2QugrKA2y4BTE=; b=XeOqIu8BhlMjIgvjO4V7j/6Z1nrSli4Vgt4q1yqdjAMVPCx3na5pUohN1NhKal1rEr H6qZX9nAtQpQ9DOE2SK2RvbfS+cRbXBzG3lnMe54ro3Qhphy89tndlfbQSnrGWknACv1 GD6VAJ8E15f4DChRPmE3LnKJ1BTdTW2e1OC4ImZ+b4gokJnIoYaaAL8+x0wzhDaGK+5P 8TTUyWAahz9kAVXIPPOiWc1PMqkSIX6kfVnKgeRSDfMUCwohr/pPiRvoD2/M9KMprz2i krwEPvNNFQh/PFum0vMOSxT+C/iJhm7et+3w+VRZWok1tXWddfWEbUEba1GPQX0ce4V4 Md7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="sXjsW/W8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si3017176ejc.505.2020.07.09.08.01.15; Thu, 09 Jul 2020 08:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="sXjsW/W8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbgGIPBH (ORCPT + 99 others); Thu, 9 Jul 2020 11:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgGIPBH (ORCPT ); Thu, 9 Jul 2020 11:01:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08C4DC08C5CE; Thu, 9 Jul 2020 08:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=d6Fy1Ff8XKWJW7cdhpnfoPEQT8m7nn2QugrKA2y4BTE=; b=sXjsW/W8stofL0fSqv1devL9iA NF8pTtSu1pmMI2cx2Ezm5BoeofYSnPN6/rZYmpD+i2SwKMs8rbtY2EPcBcEn7LmzBMlRLH+HYv4ou IIiSGFJU8JQLbSCfDquQtv8nlD8xpYOQ1F33SWeREt+m+MKW2AS9lsim693P8pOA6Vn81rDU4U0pQ 5CL7N1SiSxz2S6PRS4eEqvntN+bK6HeL9i5oI+CCBxoYMsT/JAjCwF5JHINgYNRZxp7hyfyhsJm5A TrgN6ANkFqMOJfU2KX4+HzhiTpzqnYh8wY/zml3sRidyoIzqKYX3E/qQYPkqN/E1WGtoJpXZ0IVyl KCO5FDkg==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtY2d-0004br-7k; Thu, 09 Jul 2020 15:00:51 +0000 Date: Thu, 9 Jul 2020 16:00:51 +0100 From: Christoph Hellwig To: Dan Williams Cc: linux-nvdimm@lists.01.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Doug Ledford , Jason Gunthorpe , Pavel Machek , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 11/12] PM, libnvdimm: Add 'mem-quiet' state and callback for firmware activation Message-ID: <20200709150051.GA17342@infradead.org> References: <159408711335.2385045.2567600405906448375.stgit@dwillia2-desk3.amr.corp.intel.com> <159408717289.2385045.14094866475168644020.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159408717289.2385045.14094866475168644020.stgit@dwillia2-desk3.amr.corp.intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 06:59:32PM -0700, Dan Williams wrote: > The runtime firmware activation capability of Intel NVDIMM devices > requires memory transactions to be disabled for 100s of microseconds. > This timeout is large enough to cause in-flight DMA to fail and other > application detectable timeouts. Arrange for firmware activation to be > executed while the system is "quiesced", all processes and device-DMA > frozen. > > It is already required that invoking device ->freeze() callbacks is > sufficient to cease DMA. A device that continues memory writes outside > of user-direction violates expectations of the PM core to be to > establish a coherent hibernation image. > > That said, RDMA devices are an example of a device that access memory > outside of user process direction. RDMA drivers also typically assume > the system they are operating in will never be hibernated. A solution > for RDMA collisions with firmware activation is outside the scope of > this change and may need to rely on being able to survive the platform > imposed memory controller quiesce period. Yikes. I don't think we should support such a broken runtime firmware activation.