Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4995885rwi; Mon, 17 Oct 2022 13:57:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM589AsefWWJ1WkO17mHUl/bRQuBusL8M6mPQpBXrMHOINhHygG+TJvrGuWSzWK5bd4UFLJ4 X-Received: by 2002:a05:6a00:8cb:b0:52c:6962:2782 with SMTP id s11-20020a056a0008cb00b0052c69622782mr14447294pfu.81.1666040261242; Mon, 17 Oct 2022 13:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666040261; cv=none; d=google.com; s=arc-20160816; b=Y2mYhQVm8ENCywF9i/zSVxByFQlBX6IFJZjp3VaYN/j9ZcvJT9kKIjWq2hnoo8hzP0 lqm4R/fEptv2wh/93Uw8e7V2SfCfel9phwEcbKMMpNLsgBnyirGNfMNW/S2kmdqejdhW FHHjS2XQjObCYR8jfRy+C4Lef0r5cn3iLZHNJ3cUwFi/I/fBfAKE4hFVcl8jNlFOV64Y xEPXeD8gxXnYBT+g3ROHY3j0FFdd10Ng4mba+SsuyYqAyWpq0TW6V+SpE8dF4GoA3oM+ l9G8BHR7urJEurt7dcKikUlYATmMfRIUhd2vulp1a/JfnQCm+qahAgyK1kIQFbnIRAPS bmAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=+qBFyhMlkSabrrW/8a05Q/4iICjjOB6IvZsreneX9MQ=; b=bqgysZgNruaOMlQDYPidUtm+eMXwgvCM84kiLIlzU6UREoPdPkB0LgaCu2cSA5YhWB e52tK+tws4l5jC+qvVnk/p9Tc3xEC/1IfepZQNkiyF7xYczNvqNlP1brT6kGW42DiVru N6/KKNo1okbKjjXWBi+40zk2n9XGcUXPdGS7T25vElHEdmTTm9qyaLP6hkqQ0Yl556HW YzX0RK2JVZTCiZRw7KmIi6PhSpf7IFbXUo7TYB1v7xxPXXzZ3cBAVUTWV8Ne0iXugjf+ OZddRzc58bAK9iy+C49okp+XioPBkCKEXWKPGUb4ckayqvWrpACyIq4Yisubzesxs4KX G4ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=bNvOlCVp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U6QVu6Zb; 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 195-20020a6302cc000000b0045aca9758cfsi12220725pgc.759.2022.10.17.13.57.29; Mon, 17 Oct 2022 13:57:41 -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=@arndb.de header.s=fm2 header.b=bNvOlCVp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=U6QVu6Zb; 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 S230281AbiJQUz3 (ORCPT + 99 others); Mon, 17 Oct 2022 16:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbiJQUzZ (ORCPT ); Mon, 17 Oct 2022 16:55:25 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FEC876776; Mon, 17 Oct 2022 13:55:23 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8813B5C01E6; Mon, 17 Oct 2022 16:55:22 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Mon, 17 Oct 2022 16:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1666040122; x=1666126522; bh=+qBFyhMlkS abrrW/8a05Q/4iICjjOB6IvZsreneX9MQ=; b=bNvOlCVpzRp/2uZGEkvUxBx7iZ eU50zC56oAzMKdyPfOBkLM1ONdt0j2ao2ctXZBwDgrG5kS+YZnGDz+Nm+6FCONnO l8lXigm+EqRajvY0YYIRZVofgboZUr6aSdo1zhf7DT1M3Vo7mRQqjgfgi8vSN3Pi Wiy1fIcG5tnzQcKgsocVEB86f7jVVgIslrGkwh8hGZ+WYypHKNdNPjPtLpG/V89g oGBI+uuOzdgfhFPFGJhDWnxFNZQjLRCePyhvzw/QhaLpNpOeKgAzpTnnkB5eDWa0 57JhIWRQINgPxXglDvx2i9RHMWLWBZfxl0oX1iIVu3LlnBKbFWPsu5Ah6yIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666040122; x=1666126522; bh=+qBFyhMlkSabrrW/8a05Q/4iICjj OB6IvZsreneX9MQ=; b=U6QVu6Zbk9rUuWnTFnnUiT/EfY+n7O+4l3ylSeogS9Lr fZ83IbXktouJ41DegoPQ4HU2G8gJt0NgywqKX2hqaGqSHdzSvQUbJbvT1mt6rsfR jMGDzxfVpt0KvsZ+3PAktkbuuYHmz/D3UCBaU2cRxSYbLMOpJGAKwljhilLusUGv f8B53D9i8+z73IJZjMayu6pB3jsWNcJJxG7JhYriAoWXOIAatCjTw73vbuzTxtA8 jjCoFn9plBxcYTnQHPQbQa/loEy6+0DJSBo1YDl07rEYNKZCrSKW0o8DDajIO0L8 UU2OeDtOyahFz8emUhXFLUuKZBdn0C3ZH5tvhbzmSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekledgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffegffdutddvhefffeeltefhjeejgedvleffjeeigeeuteelvdettddulefg udfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2B047B60086; Mon, 17 Oct 2022 16:55:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1047-g9e4af4ada4-fm-20221005.001-g9e4af4ad Mime-Version: 1.0 Message-Id: In-Reply-To: <20221010101331.29942-1-parav@nvidia.com> References: <20221010101331.29942-1-parav@nvidia.com> Date: Mon, 17 Oct 2022 22:55:00 +0200 From: "Arnd Bergmann" To: "Parav Pandit" , bagasdotme@gmail.com, "Alan Stern" , parri.andrea@gmail.com, "Will Deacon" , "Peter Zijlstra" , boqun.feng@gmail.com, "Nicholas Piggin" , dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, "Paul E. McKenney" , "Akira Yokosawa" , dlustig@nvidia.com, "Joel Fernandes" , "Jonathan Corbet" , linux-kernel@vger.kernel.org, Linux-Arch , linux-doc@vger.kernel.org Subject: Re: [PATCH v4] locking/memory-barriers.txt: Improve documentation for writel() example Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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, Oct 10, 2022, at 12:13 PM, Parav Pandit wrote: > The cited commit describes that when using writel(), explcit wmb() > is not needed. wmb() is an expensive barrier. writel() uses the needed > platform specific barrier instead of expensive wmb(). > > Hence update the example to be more accurate that matches the current > implementation. > > commit 5846581e3563 ("locking/memory-barriers.txt: Fix broken DMA vs. > MMIO ordering example") > > Signed-off-by: Parav Pandit I have no objections, though I still don't see a real need to change the wording here. Acked-by: Arnd Bergmann