Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp839975lql; Mon, 11 Mar 2024 21:49:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYNGSBGF/Ja4kUHRzZj43zonUFa3V7tUSXo3JalcqCuW1hDQF7MxipTwp3+218fhrDwcDQc+j7FJSGMJuYrxug/taY8v2JBlvBOyr+VA== X-Google-Smtp-Source: AGHT+IGw1saqepC/wk7ZkkjoIdMsvY2c/aWbhTaImhJgKsK0qarobjUkcwTt7H5Q+CPRnidNO6cl X-Received: by 2002:a17:90b:1d02:b0:29c:2f5d:f122 with SMTP id on2-20020a17090b1d0200b0029c2f5df122mr1448748pjb.7.1710218995606; Mon, 11 Mar 2024 21:49:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710218995; cv=pass; d=google.com; s=arc-20160816; b=P6vx2ZrklPL7LKJESOmTfNCehR66oXiHKQ0TijEkOaBkhkr7d00fMJho4wxJqWAMlb Qz6Es/BuFl7ImHxdCyMZc3EDXlQoaFW/SAVlTPQBRfvMQOrrzUSatQVkW0rruT7F8eiR yJXho0lpHZlF7HIlvWPkG1bOvtfIme5iC9r1MV+ymnSsxDSYjqvGhRakfuiC/vccuxhn aisRKmM+BFcWUlS+zizmYx7Nkc0XwWw3IvlngydfV2dlBy4PSJx55ek+dGRJ/TRMWn3t RoAbP9PFdY0Yl92ks53yOrde5V9dt2tQCVdjMgsrz93PuZxV5d+PxF+A2pG1Xil9fq1+ LSBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rIABD3xrOV6lbD0atPCna5W6iLuX8k+wmWPwoUXIcbE=; fh=i3cYmb4FjayScBwuI9z2B2DXzHKXB1kqkMKsK1RgCQA=; b=cw4wJ3LmrNkjN0Jsal1MhmUPqhUjtmFQd0Kc8J+wWJb3MNx9X6Evza3/J3JaHI/D5U WcN6banqT/yaC4ST2f13GqDMwL46FKUszMjfXFRaUVR33q/+Z7dddE9b9JbYDepFbjc1 yd3yVVwITsHpdacpnX/ksZePY8g6j+IIyVW4Tqv5XZyILDI/jcmfm8u1aBV5YqMOhum3 2vwdik91AcqBogwKCZcWwfb98kJQW1MxjGfdPCpsoMHI3vYPH12zOv9AyXIcVffkh4AS WYF9jq6uBtkc1IglJl4zbB56fBxN5+G0uVqfzdy3bw699Hl4kdnNGceIR+0hOXblW7ea X93w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=G2IrwEVm; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-99824-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99824-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v15-20020a17090ae98f00b0029b8d6ebd50si6105038pjy.129.2024.03.11.21.49.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 21:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99824-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=G2IrwEVm; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-99824-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99824-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BD0928293B for ; Tue, 12 Mar 2024 04:49:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9783033996; Tue, 12 Mar 2024 04:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="G2IrwEVm" Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B9612DF84 for ; Tue, 12 Mar 2024 04:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710218989; cv=none; b=RI1/X1BI1tSq9uYpudrglY++AerOS89pyqBHhUzGon5bznLG7M8Q+raeVas4IGhlNfqBMkN/4ofEoB0exnA/toFjnA/AAUjde+qE3FEDoocHlANjsNRBAaRIPKhga8wQr4Z2/ZlX2cWhjAyGgU9/OqPq8xJ10t+UOOyRByp22jA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710218989; c=relaxed/simple; bh=L/tekQK+y2l7dAGQbuk7JYgMq3giwH0ptqeJSLpzEqQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oSAnuq85BQ/01YHg4SJk4tcMBsE1iNXzlLjDLWZXk1977WQ2hm2Fe+UY9i+LPIPYaXZJk9tzzEHYrJX8j1K43hA1FEznp65ftHf8pXHA8adl77epd4RccI2Q+3cscXbRqOsxUgaqOoF+VM5UsUjc3FNXqBiYswKEqV4tRNEg7T4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=G2IrwEVm; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-783045e88a6so314750985a.0 for ; Mon, 11 Mar 2024 21:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1710218987; x=1710823787; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rIABD3xrOV6lbD0atPCna5W6iLuX8k+wmWPwoUXIcbE=; b=G2IrwEVm4GVbAlOmzLyZ7bmur8EuGi1ZpyfYzHWJe36ys2+oP68Tz9H8t94AlrYaxy g3nde9KS1kcOC3gUGWSEr/3HZqWGSRs8bBRw24QWYmSGKAHleXV6kv9zDU7nKiJ7soBQ OfPsBkvQEhdnKZWQVs3JtTu+5UgKlq2D0OWO9pj7XeH3nALMZ7a9C81Z4pCDGvoVBUq7 CU993GSxb/xQshkG9WNFy+ybIQRERAFpM/9hgvlyqxUZZDXT07IWStJIZQB5FIk2BaTo 3t06RAWJDirfShEHwOYK+u9cS6u8RPoG+5ihb3w4oAEFWDaABXN81xkY2mIpKEZcSm+8 PaBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710218987; x=1710823787; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rIABD3xrOV6lbD0atPCna5W6iLuX8k+wmWPwoUXIcbE=; b=MiejObRjjhecpbia9aPi0Kc6bRJw1apUBY5ixlT3wtjTXEAwXqg/zl/1BpXUhAzf00 JA8LLMJwGi+UE/lfP7wIfVFRunaJhlwvYguEWbEJhV0zgjlT4QXjuUvCdwfDfe1y2xBh Qh2519q06iwHS6PV0JJJ1fd03AYgMgd1NFs+MqjuBBCTdLM6lcLJgfz49SJQ43T0gz+O iDttd1GpbpKpXjkCRp+hF2+G0O1MNjYKf1aJpbqBHpQszGH4oh+EsmZ60RhNMCOlom3a qdVNogTIkca5pH08CcC/1jjwpD2GMLEiYMo2XRCK1c6OdhA6eqrajRBt+CBSKUe2/HkG w4hA== X-Forwarded-Encrypted: i=1; AJvYcCX3Y062oxoqTewyqASFaRlqIeZ9525l9PRuB2Ki+PkHGhUHB+0qgaSt32S1lVc6VOkQi3S8uV0no6Q1GCSm2w+oDKH2hHvJy0qLhLOZ X-Gm-Message-State: AOJu0YyClVAK28OZ5YQotGQXnnr0eRBVN1cJ5fPl8OGnZzKmz7t3op5G YV5Z8AaZIlwPDzg3PPk1Dj8G7GBia3MTyXuk9jQcrOz9hoVQ8LmWvxm2GF5KksA= X-Received: by 2002:a05:620a:3b81:b0:788:2525:d2f1 with SMTP id ye1-20020a05620a3b8100b007882525d2f1mr9200241qkn.65.1710218987012; Mon, 11 Mar 2024 21:49:47 -0700 (PDT) Received: from [100.64.0.1] ([170.85.8.176]) by smtp.gmail.com with ESMTPSA id a2-20020a05620a16c200b007887d30dbb7sm188891qkn.60.2024.03.11.21.49.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Mar 2024 21:49:46 -0700 (PDT) Message-ID: Date: Mon, 11 Mar 2024 23:49:45 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/4] riscv/barrier: tidying up barrier-related macro Content-Language: en-US To: Eric Chan , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, conor.dooley@microchip.com, parri.andrea@gmail.com, emil.renner.berthing@canonical.com References: <20240217131206.3667544-1-ericchancf@google.com> From: Samuel Holland In-Reply-To: <20240217131206.3667544-1-ericchancf@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-02-17 7:12 AM, Eric Chan wrote: > This series makes barrier-related macro more neat and clear. > This is a follow-up to [0-3], change to multiple patches, > for readability, create new message thread. > > v5 -> v6: [PATCH 1/4] let this change to pass review by checkpatch.pl > instead of overwriting again in [PATCH 4/4]. for [PATCH 4/4] change > the error message example in commit message to make it more relevant > > v4 -> v5: [PATCH 3/4] __atomic_acquire_fence and __atomic_release_fence > omit-the-fence-on-uniprocessor optimization, and fix the typo of > RISCV_RELEASE_BARRIER when spliting the patch in v3. > > v3 -> v4: fix [PATCH 1/4] commit message weird line breaks and let > [PATCH 3/4] fix the form that can pass the checking of checkpatch.pl. > > v2 -> v3: split the patch into multiple patches for one problem per patch. > Also review the changelog to make the description more precise. > > v1 -> v2: makes compilation pass with allyesconfig instead of > defconfig only, also satisfy scripts/checkpatch.pl. > - (__asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory")) > + ({ __asm__ __volatile__ (RISCV_FENCE_ASM(p, s) : : : "memory"); }) > > [0](v1/v2) https://lore.kernel.org/lkml/20240209125048.4078639-1-ericchancf@google.com/ > [1] (v3) https://lore.kernel.org/lkml/20240213142856.2416073-1-ericchancf@google.com/ > [2] (v4) https://lore.kernel.org/lkml/20240213200923.2547570-1-ericchancf@google.com/ > [4] (v5) https://lore.kernel.org/lkml/20240213223810.2595804-1-ericchancf@google.com/ > > Eric Chan (4): > riscv/barrier: Define __{mb,rmb,wmb} > riscv/barrier: Define RISCV_FULL_BARRIER > riscv/barrier: Consolidate fence definitions > riscv/barrier: Resolve checkpatch.pl error > > arch/riscv/include/asm/atomic.h | 17 ++++++++--------- > arch/riscv/include/asm/barrier.h | 21 ++++++++++----------- > arch/riscv/include/asm/cmpxchg.h | 5 ++--- > arch/riscv/include/asm/fence.h | 10 ++++++++-- > arch/riscv/include/asm/io.h | 8 ++++---- > arch/riscv/include/asm/mmio.h | 5 +++-- > arch/riscv/include/asm/mmiowb.h | 2 +- > 7 files changed, 36 insertions(+), 32 deletions(-) For the series: Reviewed-by: Samuel Holland Tested-by: Samuel Holland