Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4519624rwb; Wed, 17 Aug 2022 01:04:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR46HvNQrSUrhI8fB8vGkkvjLbvcXYEvCC2icAYUuQ4ulYALBCFuICNF/Hy4A0FJdndUgpZT X-Received: by 2002:a05:6402:191:b0:445:cf66:25c5 with SMTP id r17-20020a056402019100b00445cf6625c5mr2616830edv.58.1660723477225; Wed, 17 Aug 2022 01:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660723477; cv=none; d=google.com; s=arc-20160816; b=FK5Go1ooWemvhqdJdA35PBCiC8Eeu0nT14YCaeU6CtmWXaC0StKY/nxJFQ8ry5VepT YdJl6RxbpQhQ6SlER6hwdB2pdjTs6Au1PGhsdZEz1H+qVQqFpaQAX2ChBcYTJzhXt97b k5X0M0EPebkTPq9nHToAUhnK2Wn1WnLQQxea6vl2llvmTvoSU0HrxPfc/52ZiIHsGrmX b6jc2euuwkvRVs/n8WUTAvYZkDwGmS2vU3kLGfzhlFPr1FwSXcXoOK/pU3iSf9UTGnxa vHfAYCRyq/9FGvLZLPqfPP3QViYUyCTMFyspTwWBvpyldtm3ona8rRb4/gAq1ygQ1+uz ECUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YZL2udXtnu7kSf5BoGRC8CmiIz9CMCVJ89aCm+TG/5Y=; b=MwiB6gpcMhnEUO4YT2t5ln5luVWXvJ5tdwxvtqg6xO1hIclRuuZGvKqTNAkptdr0ih K9jnhL78oS6LQh5I0YtrXxqTLRxkaapiY/6Cp8QSfN59T2/9C/9hyt1oY754faMaTWcC 74oN69oEguUGon23tm0yWX3Df5wGuQimE3Bl2i441anLS1rKS6mZSWlzJnQVCMqNT0p/ SBT1k0UjfSZuNKcNiSIrS6pHg88TTx7uwFjsVhqN1uie56rx3/KN1Q6DrvDp9gtwlwJp XuLmYchPu6djkJZukb/mexHww6lxocW7tWRjSD20QLvSHZ1d1OgF5CmTGFUnNpwUmUwd 4EEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=L3LmfID7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn23-20020a1709070d1700b007315c6e038esi12149794ejc.994.2022.08.17.01.04.12; Wed, 17 Aug 2022 01:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=L3LmfID7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233332AbiHQHyk (ORCPT + 99 others); Wed, 17 Aug 2022 03:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbiHQHyh (ORCPT ); Wed, 17 Aug 2022 03:54:37 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB076FA13; Wed, 17 Aug 2022 00:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=YZL2udXtnu7kSf5BoGRC8CmiIz9CMCVJ89aCm+TG/5Y=; b=L3LmfID7hue/edze1z7PIN388E E7FKX7AcKxTUNphdOSos96NgmPrzoTocC9DSen7qeNo1CJZTfCj36gttmcbnUovkcju9Ld1zJf2ZD cVSaJJ1/64ko20P7ujwBYOCblqjQVvVMNTREmZJwJKR+bRpJBn4AL4YUnOdDodVL4V3EIU1jy1tnA jRE6w+Vd23i3b7l+epsFD/PAXC57YdS6JcBLc3rZkjgzy35RYGlWl6zXhHxOr4JoIPYnhjbdltWsp TG2diUWec2TK111lBwGZrwiDmh08U7R/G9VQyKbrj6gKfeMFdL9fTAneh5oORPrjJgTJ7z5UXCTFE j3R5H5YA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oODs9-003Cne-Al; Wed, 17 Aug 2022 07:53:53 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 5CCD298007A; Wed, 17 Aug 2022 09:53:52 +0200 (CEST) Date: Wed, 17 Aug 2022 09:53:52 +0200 From: Peter Zijlstra To: Dan Williams Cc: Davidlohr Bueso , Mark Rutland , Dave Jiang , Jonathan Cameron , linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, bwidawsk@kernel.org, ira.weiny@intel.com, vishal.l.verma@intel.com, alison.schofield@intel.com, a.manzanares@samsung.com, linux-arch@vger.kernel.org, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, bp@alien8.de, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch/cacheflush: Introduce flush_all_caches() Message-ID: References: <9f3705e1-de21-0f3c-12af-fd011b6d613d@intel.com> <62f40fba338af_3ce6829466@dwillia2-xfh.jf.intel.com.notmuch> <20220815160706.tqd42dv24tgb7x7y@offworld> <62fbcae511ec1_dfbc129453@dwillia2-xfh.jf.intel.com.notmuch> <20220816165301.4m4w6zsse62z4hxz@offworld> <20220816175259.o5h5wv23rs2bvcu6@offworld> <62fbe6d7b75ae_f2f5129482@dwillia2-xfh.jf.intel.com.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62fbe6d7b75ae_f2f5129482@dwillia2-xfh.jf.intel.com.notmuch> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 16, 2022 at 11:49:59AM -0700, Dan Williams wrote: > What would have helped is if the secure-erase and unlock definition in > the specification mandated that the device emit cache invalidations for > everything it has mapped when it is erased. However, that has some > holes, and it also makes me think there is a gap in the current region > provisioning code. If I have device-A mapped at physical-address-X and then > tear that down and instantiate device-B at that same physical address > there needs to be CPU cache invalidation between those 2 events. Can we pretty please get those holes fixed ASAP such that future generations can avoid the WBINVD nonsense?