Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2326126rdb; Mon, 12 Feb 2024 00:25:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFB+PXyDDddw7ecjHQdvAf9BhrNntUDUAY+S6dgeHeqKpFHN7JZuABX2kSnETGGW9KFN1wnUHNPZh5DcxGeWnwp/8qs8ydMRhLU1oH9g== X-Google-Smtp-Source: AGHT+IFiTHZeMAjJnKeN6xzjX7OS/ui66GP9oCZmGjKLgY2CqB2wjBqOxA0ZPwQQqffg4vF0gZkv X-Received: by 2002:a05:6870:d88d:b0:219:36ad:bcd4 with SMTP id oe13-20020a056870d88d00b0021936adbcd4mr6409291oac.38.1707726305904; Mon, 12 Feb 2024 00:25:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707726305; cv=pass; d=google.com; s=arc-20160816; b=WTyl+30XHyg64ZQbIeZ3aqI2EklaT+ajAfgMHoro5l9wZfH/YN6iIKj2Rx0B610KTa gsj/yw4Zcb0rz45UhyVtZ3PkLgyCD7qeE467QI5oSYseLBwdVZp5nQQKtjwifN8RaiRT FkBcnHbSRSR555j8bjzhihMJZk7M/fWWuTogrBq2TgFchRQjm5B6J76JpIqk5zBBspyq rS1HpcUGzjbh3Wz8sbKmcKKOdSvcjc8vkGa4WZMLqxwwVRPhZM3vBHUqAM7A1dC/+VHD G6s2gF5U6gvAtOPU1vWCSnpwYX5X1KXJ0Pi6xRQ5bHZNQ4O/m+893nw18Rj0JV36hT0V BlvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FAM38lwY80UommpGFNgcSxiYtAJjIUzEHyg8xALj4IU=; fh=LRVAZNLg5Zq/yskcqrH0sBgUBMRXvNm7eeGnChDBljg=; b=yi805llzp62vlpjGvaTdpIvcDBxzneGEcyRwIqGNeHlW+J7CuiFknOLUYi0mOYvLjM SVz0kbVQNPCA5Khyjn1JrJlJ+RpxhAq7bOkyB7F+NK+fntGU5UGKwSBeCVtHww9X/jLR sYEVd9gPqMU8dAJ7IWrVACWMHpIqz2/gwQzSZyBu9qYTPfIhwsDSuG7Mb8deBCpT4rsu Rigf7G4CZKIE25OvQGLBVwSH1QwOMvAbGmH/fgbwA/tV03DPY01zQ2qsSuvLXayflbJA xU11Z4VCC7wLRAxcNIByNHwbEnY2voc9/ticNsSx7AKqCiSWB3mVNk/fxTQHALdgDGa3 r+Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=TB15u+Cc; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-61186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61186-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com X-Forwarded-Encrypted: i=2; AJvYcCVvy2UV3IJkPZjg9SmC/ib7qqgsH+eiUeNEg79qfZgCM2Nht7qKsv8LqQgD5uFx5jgRPbc4gcgSLfQOEbKcGu71QbyHGHGZlRvt6MjIZA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id dh4-20020a056a020b8400b005dbde399b23si6083177pgb.901.2024.02.12.00.25.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 00:25:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=TB15u+Cc; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-61186-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61186-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D059DB26B53 for ; Mon, 12 Feb 2024 08:05:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85C198C11; Mon, 12 Feb 2024 08:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="TB15u+Cc" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B3FC79CB for ; Mon, 12 Feb 2024 08:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707725109; cv=none; b=iyQSsbwEvrYJ19EbtoMceE/aq4QYPSDlghK500WZIqTx3LQ2GosodegrYICF4TW9e19cnK+Cvdh1wNdqVmmOMKNldwbewzZndxhlCDAlx4lWL2+eHqhuPm2kJzOR1Fs74+F11yq1o1ZuXEMScdB4I+ZgkRF1OGfLR8sbdrumCB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707725109; c=relaxed/simple; bh=FAM38lwY80UommpGFNgcSxiYtAJjIUzEHyg8xALj4IU=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kTlFJeQdbcymyKhMJL3ytz+D55QLxXVzl3Q9ghsri5/7j1R2j8jXZpGpp2U2513F5GZ1mxQeR1sztXXjYVm9h1LiANFyTNWiyEnsx85GzInn+gkKPpyjg1iL6x7a8XGwDifxeG0loTXdKmXLHXDKZ0Wh3irEKFyVFXgR+h9MyXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=TB15u+Cc; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707725107; x=1739261107; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FAM38lwY80UommpGFNgcSxiYtAJjIUzEHyg8xALj4IU=; b=TB15u+CcSzi9ONZR3QxZoiXDXSNBBBRhA//kPr1hKJg4owPLJXEu8yCc 4ur1Nifa8J33j+/HI9ffo1JGN7AjZBPC+rWCvyJ8HgPT5bzBTGN/M/M5/ z9fNcZ7MUxwEfmO2izDD8AcBRGId2zlzUs2pWvOBcl0PAczJdZaaxJEml LeoDeZurx4asLU2RU2e9Tj7sIR93tU3zWRfi+Ohf5jE5q5beqY8vpnWaC BQy2OwpeeiP6YzK8VPgp7bdAVAzkdeHHtKvfe2iV0cQtOp6CXa40A/aEM 9boxzRHQ2S4CDXj4DEOVrCpOdg80c+aKZpGxjQ2UQe25ztM7mOEu5dYmp g==; X-CSE-ConnectionGUID: MFXfYCtzSm6hwR9MEXE18w== X-CSE-MsgGUID: qduaQVHLTM6iRCPKeAs7Nw== X-IronPort-AV: E=Sophos;i="6.05,262,1701154800"; d="asc'?scan'208";a="16103485" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 12 Feb 2024 01:05:05 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 12 Feb 2024 01:04:25 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 12 Feb 2024 01:04:24 -0700 Date: Mon, 12 Feb 2024 08:03:44 +0000 From: Conor Dooley To: Eric Chan CC: , , , , Subject: Re: [PATCH] riscv/fence: Consolidate fence definitions and define __{mb,rmb,wmb} Message-ID: <20240212-projector-dangle-7815fa2f7415@wendy> References: <20240209125048.4078639-1-ericchancf@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ebJOijojLM2Tum/8" Content-Disposition: inline In-Reply-To: <20240209125048.4078639-1-ericchancf@google.com> --ebJOijojLM2Tum/8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 09, 2024 at 12:50:48PM +0000, Eric Chan wrote: > Disparate fence implementations are consolidated into fence.h. >=20 > Introduce __{mb,rmb,wmb}, and rely on the generic definitions > for {mb,rmb,wmb}. A first consequence is that __{mb,rmb,wmb} > map to a compiler barrier on !SMP (while their definition remains > unchanged on SMP). >=20 > Introduce RISCV_FULL_BARRIER and use in arch_atomic* function. > like RISCV_ACQUIRE_BARRIER and RISCV_RELEASE_BARRIER, The fence > instruction can be eliminated When SMP is not in use. >=20 > Also clean up the warning with scripts/checkpatch.pl. >=20 > Signed-off-by: Eric Chan In all configs: =2E./arch/riscv/include/asm/fence.h:7:10: error: expected expression before= '__asm__' https://patchwork.kernel.org/project/linux-riscv/patch/20240209125048.40786= 39-1-ericchancf@google.com/ Cheers, Conor. --ebJOijojLM2Tum/8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcnQ4AAKCRB4tDGHoIJi 0sdrAP43QWVvr0zKgeBa6w6Y/sgMo/4Pcvh3acMhUeUKhio0qAD9H+0DWZR1hpVa voHkI4IVSQqkjJRiydpEv2XrMfDviA0= =ib6c -----END PGP SIGNATURE----- --ebJOijojLM2Tum/8--