Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp253675pxb; Fri, 5 Mar 2021 21:59:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmncaz8g6tyKm67SRtuZ8zvdNzp4VtzijzrUAUuUqhw10wa/oexHT0J9ahfgP84A9cofDU X-Received: by 2002:a05:6402:84b:: with SMTP id b11mr12322629edz.56.1615010360915; Fri, 05 Mar 2021 21:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615010360; cv=none; d=google.com; s=arc-20160816; b=dYAe0jc6DAaz84yKBZ9choUldRVDmrFPJM+ZPbHm9DhYniY2Q97coV/MCBe8xHzAtr RrlaqSDZ7P1wBnKW/xEFmazMkap0Ee1J0AQ2Q2ujDoLm/b+2xSaVKtupsYWNRthzYyAl Og7X83OqNZCaCjl7SnQe1ILaDBDY4Ot6JTz3HNdff+YVRZhT2+AZ0DxJkq+YzrYJLzD9 +2xAKk9RU2SVsjp8Uclfi0wPWJj1663j+dViPCTeIXVR6JCeDDt+ESB2qG7JJqhUx7Zu Zcicim7zS8f4uU0EJe0XjhhlSzx5FDD17QQM/FM35YDx6qCMKIQ6tKAlLw4h9cRDjWo2 wKSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CFMktXwbuULKruLuovtrhg5sXqQkRr/xL+B0uuDDeCg=; b=MxIQAchfdzQ+KoYczhu34/ESPD2tLMOoSwQTDHBezTVVjp3cfQszIfL0Wc4u/uCHBw BT6g9+MUUmSpxTctO2PyFdyr94TF6jug0z6xtqTBkI0EdVdXu5Dk0UkI6VJyaIgwPUA2 yZWk6hdGgwCFWzcfEz7XyPt5Rxy9SdxuiN5GVBiV79GGst7RGk6k/JqbUKsykE4Dxjgl sGth5t0ZmaIVqFbwcTAAO9DzsNRDbzsyVAoDkaGhmgKqOxgO3D3muFZSKqI4C4UHGiAD C8SNy64vM9xtnWiPO24EBiXIYamOOSU94xhK/5uB3JPsCl/LncWuR9F95Ha+HeEDuRN8 DWYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hnpANIK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si2720964ejr.191.2021.03.05.21.58.44; Fri, 05 Mar 2021 21:59:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hnpANIK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbhCFFtU (ORCPT + 99 others); Sat, 6 Mar 2021 00:49:20 -0500 Received: from mout.gmx.net ([212.227.15.19]:57469 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbhCFFs4 (ORCPT ); Sat, 6 Mar 2021 00:48:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1615009705; bh=XkgRczxN8Lu2cKgohs/4mQt4fS01rpwtWg9QmMNmGjk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=hnpANIK+dTYGXem+v9bNWcUyjlZ6H753azMe+jWYPXSIx9lZgD1Lx5vpetsc+KPie JE3N9sgge0HD0OJSQPfP6JzZgqLoTV9KBl+IBL1OxK7kVp4LDYnL3NQ2wvwaQvL/18 RsnLjykFyaGlAAY3A95piN+rhjQZ0iaQAcA1w10Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([62.143.246.89]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M2O6e-1lLAQB2jpG-003rp6; Sat, 06 Mar 2021 06:48:25 +0100 From: Heinrich Schuchardt To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Atish Patra , Anup Patel , Kefeng Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt , Sean Anderson Subject: [PATCH 1/1] RISC-V: correct enum sbi_ext_rfence_fid Date: Sat, 6 Mar 2021 06:48:01 +0100 Message-Id: <20210306054801.18263-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:4Kj6MuvqVd2A/9vCK8eZOjS02y5+ixmu93ibhNy+GDch1jOILrx dj9cbp3fRtMaQhmzQ5TRm21Ej43oyGDfmeYwnh8/CtyIuNFIiYBsxBPqnJVxS69KHJeMOPb lFWO1Gp3oKF4PhRLsgLQHRMC9zgdJ/u31L0wXkIefIjlEfb7PjXYjqcBJL1lmtZexABkZPy 9/Iem+BbFLo1jXAzLrEog== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:KENFoSQWyZ4=:3mdzYqadC6+C1mK/js6NBT rhedwlBz5g9tXYe6J25wO77W9PYqZ35frCz5yjHja1bn5nwEuqMGJMckz3ent5Bd5TxaNJ0Ew iahNN0EmULj7+2dp8IhsUCWRqtGOQ2iHc4RWA02bSlZFKZL00yUrYY9sYtxChyHg2uUt0rpOt 47QhtBPK69cPIQ4KnTo+sN0Cp4Kxi5eb7HL7gXDpE0H5bJXQxrjeNAxyThhrjlIPnRn/tr5Hw oAo2j0QLbTLbK0Y05RmY0PruaYaFic4OCtYQK8f6uY5JRAOqcDwlfFarKvHMAhze021TeN79j 23u0n3w0o7k4tQ9Gr1dP63zYI2fhre8jvsFndXmZK08fwkszVtaQg3utCVimFKBSuvKkrsxUc x1jswNJglHLmP5beDO+eQBGloAhkhIMJNyd7/CEGpl/P8Rqu5BiZCglROyaDWuWOsg1T0QQom wb5pGzsgaSwW1rvWlZo3aPySHY85HZXGCgzv/4iv90UFq6cQV4w9uU+jEmoV5nAIzC2RJ7j9l 5+H0awd6aBolSucbj99oUjw5XcSzpwt2CeT51go+t+Zfh7GNSBegtMt+2RYoXqiYC85/XlwWf NnCsyVUlm/HBqjnzRJylAMJdPokExIOB3RBHlCsgwrTbmMaRS/feMgfoFkpmaZCQhFfwBrf2A X6MVT6sGSIuFbcjPVCfcmmqWG+htsaPwJYnXBQdknC4ppB0zwQ26dlKBD4Qi7/fG9Tq+Farvy w+KXXhKlo+Ia8swe4r3uNgBIUpXZ1ngsimT02tKuF6dMb/Abbh0LHjKBq1squ+jSAm+U3yr5K LlKAdHRh79IC8jhDl5DWWg8sjdmp9mmxFZhb1/v8bEa+NBNS+NKlsqsV/jarFymFmCcPhMs59 x5tknQEAOzJ8siHkhr5Q== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The constants in enum sbi_ext_rfence_fid should match the SBI specification. See https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc#78-funct= ion-listing | Function Name | FID | EID | sbi_remote_fence_i | 0 | 0x52464E43 | sbi_remote_sfence_vma | 1 | 0x52464E43 | sbi_remote_sfence_vma_asid | 2 | 0x52464E43 | sbi_remote_hfence_gvma_vmid | 3 | 0x52464E43 | sbi_remote_hfence_gvma | 4 | 0x52464E43 | sbi_remote_hfence_vvma_asid | 5 | 0x52464E43 | sbi_remote_hfence_vvma | 6 | 0x52464E43 Fixes: ecbacc2a3efd ("RISC-V: Add SBI v0.2 extension definitions") Reported-by: Sean Anderson Signed-off-by: Heinrich Schuchardt =2D-- arch/riscv/include/asm/sbi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 99895d9c3bdd..d7027411dde8 100644 =2D-- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -51,10 +51,10 @@ enum sbi_ext_rfence_fid { SBI_EXT_RFENCE_REMOTE_FENCE_I =3D 0, SBI_EXT_RFENCE_REMOTE_SFENCE_VMA, SBI_EXT_RFENCE_REMOTE_SFENCE_VMA_ASID, - SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA, SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID, - SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA, + SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA, SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID, + SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA, }; enum sbi_ext_hsm_fid { =2D- 2.30.1