From patchwork Tue Mar 9 11:31:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1449671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=Jsavs7Gh; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=b7uwQWrx; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DvtMt5mPVz9sSC for ; Tue, 9 Mar 2021 22:31:54 +1100 (AEDT) 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=+FEcynL4EKiRi/Zqhc8d/1Ps8wo+PRl1biWeZEeSt2M=; b=Jsavs7GhY0ZtHDyJtHtDD8+EDG BdG+JbdRP1Uuw4gOeHXl7aWOYQeT7VSNdZusazRW126JczGojrlR3Ryys0RLRmwdA0yWRgpc30sUt 4luHk8u24Bcix1k01O+1UeqbQmnuUW8EzO8yq6UEIH1Lx7cs4ltXL/Np/hYeCOfnajlMsiRhrLXT3 ey9UqC/AMlqp3A+wJI17HKr7aZRsa0yxxFqlZB1jNIeZVkuWIkznYweZSrAUhY8BkgMf8a3S0cQlV Z5iMZ36Sw2O00aNTshOGxrfSM2tzz1GaugUpBpIc8bJgiL5ffvtHku7l8SiO2Kfo6FHEwkmc+yQ1P Vr2TeJbg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJaac-004KMR-Jh; Tue, 09 Mar 2021 11:31:50 +0000 Received: from mout.gmx.net ([212.227.15.18]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJaaW-004KKD-1D for opensbi@lists.infradead.org; Tue, 09 Mar 2021 11:31:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1615289497; bh=f521pkE8yfjev74gubYcbFWnjOBcmX9epIOAZaEHJ8w=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=b7uwQWrxoGu8vTpPu0fiRJaecjcBvUBVNmWkWSH75SnfYilLX1lI3afPehYVBo2J4 qfPBXN5ZWz9SpxiLFt2Ybv8g6UxFrll32OuxnJwu8So1J4qC82CKLAB03FUd0/cGyD 0bIv5pgC13pbX2AzoqR2LRmONmJAc9iVq2I/yjHE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from workstation4.fritz.box ([62.143.246.89]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N8ofE-1lmoxD34Ok-015sOq; Tue, 09 Mar 2021 12:31:37 +0100 From: Heinrich Schuchardt To: opensbi@lists.infradead.org Cc: Anup Patel , Atish Patra , Heinrich Schuchardt Subject: [PATCH 1/1] include: sbi: SBI function IDs for RFENCE extension Date: Tue, 9 Mar 2021 12:31:22 +0100 Message-Id: <20210309113122.63148-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:2FwBAUjKOLs3SvgACvwgd4XOcb4DoQFLkWwOwFg0tDPwpGCj9Jq 4bFefBGQqH9oqVzHKtYtOZcai9NFt0XpmgsgKb8KlNze3a1qlbpS56nDPtp8T8Q0gDf0DOQ wfBM+8fPZaOSPQzmOZudfdfAYs2DCZPtVLPL+g8I3G8gYpgcY5Gu6ljHrXWOxHq2uz8Gz7p duL6FdIliLMTSdACN60zA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9sT5thrG0yY=:BY+uqhnVp8q8hXkjHbAKOE VOa6pRZw8mqWYFyaXKNnjmQvEEHPB9dLv4zMb2V2kMgYIdYYWf2Tj/FSYoanS4zx/p5OamXgE wt8IV4NZfh4uqyJGms+4FMV0SjRkrq/As4kxYmFpCHVSL8LjXTDWkmWPmvFtUfDEvz2lO4iQO mTaLjGYtV6ssHtXMAt47ifOQgSbiNQrOGJv5eixFSOEhruR7BxF6VRmtNi3SlxRsUvirRCmBG 8CK4PYn2fqkHkdI5zf7XNLgd0x1q59AiXdrhU3uJokIHas2a2yVcnvAu4PPU+ARLYwBW7mmmk L6SmxwANiiXRHJxyOJ1dMGsvltUPrjU6Qym6lQnJWbsqL/pekiaf7/C5HWoh+it0kI0eZMsRc tezodsFluDJHGepRouKMszkIAAZz30J1TN5rtg4F2VfTb6cZsKbEq2eB+akTJL80M+pFtL7oL BRQmcQszUcgSQa7LBE+x0gnv57dsGZYGdJYWq8KLhR4MhOHwLaEK7UHrye7ify/eAWcbELjr6 EuQ52tPYbV0um/FuvpyVYVfOaw32vfsMlUw0f+iYn48JqY6dO3AA81u8NAClOY4Fg/UDd70QX LSkMYeAWUIUsH6WafaATZv5eRPExzQch7fwKEjN1Ucn6hb5JBq5kCb7g1fvhFBs2paM5f2nlt 0E4lt1M/pvtm7m4z8SMbYzx2AF/aqGHvxHBnVRJLXFfq+bksRFEA0E6i7R5tpbKqsQ7oft+FC MukwvChqtWfAJ8MfPXd9842s1aTYZlajBuczT26YPUCauHjd3lr4AA84sMrmkdjAOtmW9wUVC +/rvhxAi3gdbcUaVDftC6mGJJfnz9Y3np3Go4aNtPOxpXmIYbAdW4reJGUpgC4dCWiBs11CyX qMIBMsbbbgq3DPPzGyow== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210309_113144_260515_1D20FA38 X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The SBI function IDs for RFENCE extension must match the SBI specification. Signed-off-by: Heinrich Schuchardt --- The same bug exists in the Linux kernel: --- include/sbi/sbi_ecall_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Content analysis details: (-0.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.18 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [xypron.glpk[at]gmx.de] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The SBI function IDs for RFENCE extension must match the SBI specification. Signed-off-by: Heinrich Schuchardt Reviewed-by: Atish Patra --- The same bug exists in the Linux kernel: https://lore.kernel.org/linux-riscv/20210306054801.18263-1-xypron.glpk@gmx.de/ --- include/sbi/sbi_ecall_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.30.1 diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h index 7fcb373..559a33e 100644 --- a/include/sbi/sbi_ecall_interface.h +++ b/include/sbi/sbi_ecall_interface.h @@ -48,10 +48,10 @@ #define SBI_EXT_RFENCE_REMOTE_FENCE_I 0x0 #define SBI_EXT_RFENCE_REMOTE_SFENCE_VMA 0x1 #define SBI_EXT_RFENCE_REMOTE_SFENCE_VMA_ASID 0x2 -#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA 0x3 -#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID 0x4 -#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA 0x5 -#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID 0x6 +#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA_VMID 0x3 +#define SBI_EXT_RFENCE_REMOTE_HFENCE_GVMA 0x4 +#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID 0x5 +#define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA 0x6 /* SBI function IDs for HSM extension */ #define SBI_EXT_HSM_HART_START 0x0