From patchwork Sat Mar 6 05:48:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 12119749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9272C433DB for ; Sat, 6 Mar 2021 05:49:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1087464FE4 for ; Sat, 6 Mar 2021 05:49:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1087464FE4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=391qZmTkQUp7rM8dWR9e6s6NPyLUROwP5y2IilHAXLo=; b=QuPtPTuCfzBXoY9Tn0nJFA2PLF cISckdbS82BGauaRMQ14IStiYyRRwsoxDl+kyMhH72vDDhRKcmF1TuSkxlAHTb6+SUnHkHm0r+EAQ p2IoVsicIDVLK3561U5REH4heUpCCo0ZWQE+Nu2/+EdWbiU+FMnvuiZfZna/axGJlh4GwyeN0MicN uWy98mzxmXGhDfiDmeYVtsiJs58nCJqUA8jlGo65gJUEySZD5q6kBT9InMjgMezzYxgSg7E9Ohxki ILP+7wWveOqJuAj3kFO+wxtjlzSiKorcxMwwYNN6vHFwBWTq7f9NugLjJoer+abXvttBTdXFd2Vth tcODChnQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lIPo9-001Qbc-0V; Sat, 06 Mar 2021 05:48:57 +0000 Received: from mout.gmx.net ([212.227.15.19]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lIPo3-001QYH-PB for linux-riscv@lists.infradead.org; Sat, 06 Mar 2021 05:48:54 +0000 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 X-Provags-ID: V03:K1:4Kj6MuvqVd2A/9vCK8eZOjS02y5+ixmu93ibhNy+GDch1jOILrx dj9cbp3fRtMaQhmzQ5TRm21Ej43oyGDfmeYwnh8/CtyIuNFIiYBsxBPqnJVxS69KHJeMOPb lFWO1Gp3oKF4PhRLsgLQHRMC9zgdJ/u31L0wXkIefIjlEfb7PjXYjqcBJL1lmtZexABkZPy 9/Iem+BbFLo1jXAzLrEog== 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== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210306_054852_034862_4115D838 X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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-function-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 Reviewed-by: Anup Patel Reviewed-by: Atish Patra --- arch/riscv/include/asm/sbi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.1 diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 99895d9c3bdd..d7027411dde8 100644 --- 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 = 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 {