Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4520174rwb; Wed, 17 Aug 2022 01:05:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5gy8eSJhCE1rNVQV9ibFof10sukM/QeYg636k8Mb9xcjR/VD8THMT7NpbVM3QX1gd7IcEJ X-Received: by 2002:a17:907:3f2a:b0:730:ec00:1b19 with SMTP id hq42-20020a1709073f2a00b00730ec001b19mr16416174ejc.722.1660723513693; Wed, 17 Aug 2022 01:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660723513; cv=none; d=google.com; s=arc-20160816; b=EnbHqXzeH/V/fyn1VAeUvo+psR4J6K3iNe3PUOQuKm/wCx0PWKIgJpnPMTEvfvxF3F OzwNynkWWgPs1MUGA0nzNMuWdIpDpH2Ox6k0iDaeRZkWK/R+ZK9nFg82q83a56oRqddf XzZv5q0WU4JdjAe0aIbHo3Ods07kE9/7PwNlrZfiTZ2m8yMY95lX4iUtv6uIS3QYvGtW SNRcwPNzbZHX+ROyMhhRmOXJewxafGzRChEacR01ARshCVdbov2wwsTJwmbi+6pydW4P FjSbAUm9PtzZ6hYYMKOHoN2CoyG2kd8wUVuMwqcvuctR7bwE/IYgTX4u1P/tAqr/karC zp3g== 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=OgQrLdq5kcs/hzWnLFRYsQLf3bF4BAzScASZVzKdEss=; b=FcYiwp9kvNbSgQS6Hi4c27oljoBD6vM3Iefh/wsxklxE336XvbZMw7HdK1TkBaRfRd 4ce/N6fBowEmJZOOUlGnO9vB6hd5PJOKxJecdlZVpUxATADJxzhtDEjBZEziCFYWmlVU 2/zCsc/APxu5wvyodSURZwexf4g+WLJuDIXOjoqgqChAmp2g3bcjb6TYXlXPmJqX/SWi lmO54NRSX4weJEV2BHUJf9EY1vo10XGJrG/+Yt3C/t1uyYFzsjdaK5e3WPgZJVKzzw+B i87DukYPhHs+XYWeq6SX+VNcarrsNboq8LjaIHkR81VXdyrK8TL7NKGNmx4Hrpfce33D PHOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=O9A1Gzrn; 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 ga14-20020a1709070c0e00b007317e0f2b71si13626776ejc.256.2022.08.17.01.04.47; Wed, 17 Aug 2022 01:05:13 -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=casper.20170209 header.b=O9A1Gzrn; 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 S233663AbiHQHuh (ORCPT + 99 others); Wed, 17 Aug 2022 03:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233042AbiHQHu0 (ORCPT ); Wed, 17 Aug 2022 03:50:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7E8B7B1D3; Wed, 17 Aug 2022 00:50:25 -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=OgQrLdq5kcs/hzWnLFRYsQLf3bF4BAzScASZVzKdEss=; b=O9A1GzrnC2Jws3P2XgaDN6BtBj aaMYi9KLwTTkyZsMQjZJBpryXirCyRo/np1yqNcbd78R/eq2ws5AA9fBx+y0a/wBVOAqULQ1EItjX xnddFmcIyEwyOffdnThWr/LaMK/zld5VSiFVwKsZnc7EAI2+qYPnR5zD2g1CtAI4+ZOS69m0BfVAG d418iYhdw9dUduJnKPoKCfI8KeugvDPEN0CEEA+5CM9VGkYtD+CQiX9AfP9HgwdG4gXL2M/WlZ0gb 9smy8ah3BrobvDISkukaEuLA4mwPPe9bXSEiQNEYsPcqBoZG31Gn5pkG3qT1F87KxDRI2nUeSdhwx sYIIUFEQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oODo5-007tsG-GR; Wed, 17 Aug 2022 07:49:41 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2FB9798007A; Wed, 17 Aug 2022 09:49:40 +0200 (CEST) Date: Wed, 17 Aug 2022 09:49:40 +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: <4bedc81d-62fa-7091-029e-a2e56b4f8f7a@intel.com> <20220803183729.00002183@huawei.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 10:42:03AM -0700, Dan Williams wrote: > I also think this cache_flush_region() API wants a prominent comment > clarifying the limited applicability of this API. I.e. that it is not > for general purpose usage, not for VMs, and only for select bare metal > scenarios that instantaneously invalidate wide swaths of memory. > Otherwise, I can now see how this looks like a potentially scary > expansion of the usage of wbinvd. This; because adding a generic API like this makes it ripe for usage. And this is absolutely the very last thing we want used.