Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4181005pxb; Mon, 21 Feb 2022 14:09:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGuTm6I05ipxgXOq79v71GxKGTXcSkTCB8yOuHc+ivJNy7Dy6zTu8REjIrikV7UNuV8TFo X-Received: by 2002:a17:902:e743:b0:14f:c274:cc2a with SMTP id p3-20020a170902e74300b0014fc274cc2amr5423848plf.70.1645481352310; Mon, 21 Feb 2022 14:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645481352; cv=none; d=google.com; s=arc-20160816; b=wmIOPtQLvazGlnrGBvDJbd1wkoZ8FnNwgxg3MepZl+IdPJLpdkpAFC1ATy/ZFKPyrJ pnPnZSYyoTzaXcU5SvHoNhr55auD2Wm3+LE1VD6A8gq5kbUICyTfwRUvlO4ME9qDmgqP ERqOYy7m3JXu4rpXp4j4JiKWLLvOImng9TYP9tjFzK2qqX8+aNu+IAHCfaxLKmjK3UTB BnupUGUX571LhqEZjVCVdh7r/D5qE6ZpyA9PekOpWz4Doz10P507t1APeHIJSduAk0qj PJzebGwqf68pQeqsWayYjvI+TVE+YZEt+YIHb5sgr0p29Yna4/LvIaAlqdbu6L+yOrVC kv+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=2ly1ojJENIJFGGjYPpJAf2gjHX+GC548TeJp+9nph/4=; b=BazBqNS6SMVN9eRiKuA0CtPU3mu1FJahSx5MPFGQ56e1FjpWKHsTSBMqBl6OKfr52/ ccLhRCn4eKuJjNlJPOYwwL+gpbWHQCtIxGyxWR5MlKSOliCPKTOiR3vNQPtBgYIWC5Pe dJVZBlykEtccz51OVi9Wz4ytYmaFF4Y1eT6PTM0cZDZtEB/sDzE13EzzAX+P6iIT1zHn tSfPLUDadnh20M7fdH1LxfwEn0CuVWx+Xglr4sYDuP5Qo3x0p4P6yN9387KMx+w3Qc/a 8ZWm226f4P5tzeQn/AS5EvCXtX/m2nHAMGNbzimWqBsu83wSHj4w69rbpHYVbuGqFsao st1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 fh2-20020a17090b034200b001b97e6dd95csi465488pjb.1.2022.02.21.14.08.56; Mon, 21 Feb 2022 14:09:12 -0800 (PST) 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; 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 S1380713AbiBUQik (ORCPT + 99 others); Mon, 21 Feb 2022 11:38:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353674AbiBUQij (ORCPT ); Mon, 21 Feb 2022 11:38:39 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35BDF21E1B; Mon, 21 Feb 2022 08:38:16 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 7566E92009C; Mon, 21 Feb 2022 17:38:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 6E34892009B; Mon, 21 Feb 2022 16:38:15 +0000 (GMT) Date: Mon, 21 Feb 2022 16:38:15 +0000 (GMT) From: "Maciej W. Rozycki" To: Jiaxun Yang cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, chenhuacai@kernel.org, Thomas Bogendoerfer Subject: Re: [RFC PATCH 0/3] MIPS: Chaos of barrier misuses In-Reply-To: <20220221145531.10479-1-jiaxun.yang@flygoat.com> Message-ID: References: <20220221145531.10479-1-jiaxun.yang@flygoat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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, 21 Feb 2022, Jiaxun Yang wrote: > This series clears the chaos of barrier misuse. > In prepration of light weight barrier series. What problem are you trying to solve here? The MIPS port currently implements the semantics documented in Documentation/memory-barriers.txt, in particular the "KERNEL I/O BARRIER EFFECTS" section, with extra I/O barriers borrowed from the PowerPC port for consistency for platform use, due to the weakly ordered architectural MMIO model (implementations are allowed to have a stronger model in place of course, and you are free to optimise for them with the respective configurations). Stating that we have a "chaos of barrier misuse" doesn't say anything really in my opinion and isn't particularly constructive either. This area is very fragile and you need to understand all the consequences when trying to make any changes here and show it with your submission, that is properly describe and justify your changes so that people are convinced your changes are correct and good to make. Maciej