Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3441587rwb; Tue, 16 Aug 2022 03:10:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR78/GMwoRAEsK8XxSFkabcvBAUg1CeuzbKZnwnnJ8r1ayoKiwuDKlZpAD58DNtySVJbOq4O X-Received: by 2002:a17:90b:1389:b0:1f3:a782:ab28 with SMTP id hr9-20020a17090b138900b001f3a782ab28mr22172571pjb.181.1660644605213; Tue, 16 Aug 2022 03:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660644605; cv=none; d=google.com; s=arc-20160816; b=J2glUS0C17p+IzbUKGkt0s/RcfHdNgCRiisbNPThMUmAI8Uuirq2S7TQ1xgpfmG8Q5 oX7uW0K0ZJUKwpPLoLZ3ScmoMthIPkNYkGxe9I+KKzN5SOcJwSw1z9PL6rmqnxuJFrMe wtbGxR24iPLymJsMGZCiSqAT9zmKMYwDRHc7kpaAzF0IQGnw3rlmjQF5nieYQ+qQzj/W Q36FcJTrRDc7xUD2YU+0qx65sYI13hQUK1VB1dPuH+O6k+OoGG1lV0WbdB56doPaDVGf DAF+Xb1gyeE5kBeumN898bIOVYv+EaDp1FQ4Ttlthtp48OKHdEX84rTx/4DVNzWV4L6F bcQg== 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=rFcsh5EaXMjyQvBz6Px9JuV8hMB5E551U26Ntc3NwIA=; b=OsZid7YvR+bw+PC+amOqzmdD1wilOLAhLAYCpSIUk7Jkg5Cj2ph7wxtCmGJgwp+P7N bBP/VBpkfoLC1YAT4vxbKgurBQ6oT2bxmPGHaym4rz8MYctSl7L1KIyQmFhfUYxnR0s8 iFVmEEe32s+YwL3BrzdKaWlcxO3Oy1h+YHJL4vd5dPZ2pvgRk2s2WWECjFpr7xEFCiJM lQNvTcWf7SxBN5umZk5cX7v1AL4H9TnRWSF59nEVCBTTbylj6THfquO5vFvftcJPJiZZ fcdZCb+Dc0uXTfYKDwouz0bgQfNVJkhE/4aiMAPhxAlVQzP5nOIxF0Ffdk6JJt/W1N3z Muww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=GJchraaC; 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 k18-20020a056a00135200b0052f07a90cf8si14495707pfu.156.2022.08.16.03.09.54; Tue, 16 Aug 2022 03:10:05 -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=GJchraaC; 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 S234039AbiHPKBH (ORCPT + 99 others); Tue, 16 Aug 2022 06:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234037AbiHPKAI (ORCPT ); Tue, 16 Aug 2022 06:00:08 -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 C574C45053; Tue, 16 Aug 2022 02:01:54 -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=rFcsh5EaXMjyQvBz6Px9JuV8hMB5E551U26Ntc3NwIA=; b=GJchraaCp4Klmfi3ZVHxYa9oRu b4agUH2uWZUTGNSV7SBi9fApi/iBoiVncfCPPHT8N/smFMxxCHdxc2qJL0NAbVmP78DMRliIAybve 8oFbik7+x32aIcWla7kp5/4bFOB86cScaS8UEumAsr9W+yElrNSfNFCf5pwnIHawItattmLVPtF9Q nfyPrB4EWP+fCEnqnTrsY0Kxaw8X+ypYlJQyIHjy3clqn11hb/eScLGNIiJg3D3XNKZAnZcpbMVi5 Sl+UKBGD4B3ss+b8KxyJ1OrSsUMsYYCNDfajqcuNNHcv/f0zui+onWZGz0gCItg5Kw8bJdifIBHG8 +E+BKhcw==; 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 1oNsRn-002ufq-7J; Tue, 16 Aug 2022 09:01:15 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6E714980083; Tue, 16 Aug 2022 11:01:14 +0200 (CEST) Date: Tue, 16 Aug 2022 11:01:14 +0200 From: Peter Zijlstra To: Davidlohr Bueso Cc: Dan Williams , 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: <165791918718.2491387.4203738301057301285.stgit@djiang5-desk3.ch.intel.com> <165791937063.2491387.15277418618265930924.stgit@djiang5-desk3.ch.intel.com> <20220718053039.5whjdcxynukildlo@offworld> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815160706.tqd42dv24tgb7x7y@offworld> 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 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 Mon, Aug 15, 2022 at 09:07:06AM -0700, Davidlohr Bueso wrote: > diff --git a/arch/x86/include/asm/cacheflush.h b/arch/x86/include/asm/cacheflush.h > index b192d917a6d0..ce2ec9556093 100644 > --- a/arch/x86/include/asm/cacheflush.h > +++ b/arch/x86/include/asm/cacheflush.h > @@ -10,4 +10,7 @@ > > void clflush_cache_range(void *addr, unsigned int size); > > +#define flush_all_caches() \ > + do { wbinvd_on_all_cpus(); } while(0) > + This is horrific... we've done our utmost best to remove all WBINVD usage and here you're adding it back in the most horrible form possible ?!? Please don't do this, do *NOT* use WBINVD.