From patchwork Tue Apr 23 14:57:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiang W X-Patchwork-Id: 1926623 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=zW5NAtah; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=NIGNj0Et; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VP4xg2R8hz1yZP for ; Wed, 24 Apr 2024 00:58:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=Hmm0Asz/6JoZOhhcc2KJmZPG+m3HSKnccoEoBkRKQsI=; b=zW5NAtahHtBVBV gqNAFtSxIzJFfyz8en6qCZgBVfD3OQQFm2TmwYWkOn8lVC2+PxRw3onMoldiTvJMrWirgL649fMfu /XYsKGyEmGUzP2AaJWnV6t/lHxbNOEoCn5GrHepiZsg2flvN0JO7mKFYKYkF1DBhMZ5u6PQ7JaucO ijNLwgtudbORNRnzdU5SkhZ4FeAAu+SxMhnw9Hoycwv3qZ89ySKfzpFOTBgshgyfIaNrbBnr5o9/t hrxcDajighilImjAUyl7jWy5GeUkl3AbU2XVE8XT6yMFzNqC5qqY0T0sDS5EUIoAdR/JsGC6e/2zK rMWdOSyAyK4GfyzLst7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzHbE-00000000OBj-0Nhn; Tue, 23 Apr 2024 14:58:24 +0000 Received: from m16.mail.126.com ([117.135.210.8]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzHao-00000000O2n-1tWd for opensbi@lists.infradead.org; Tue, 23 Apr 2024 14:58:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=gfkKc LK6INLA/ng5lPZVuH/QtnQYT3ivVvwvLYBX8iI=; b=NIGNj0Et6e21LRdrwmxFI O0iCHS/ze7FOzopRnipsqmaJr0CNC8x8lFfd1/oUcZZl5hzN2n/xtLHbFqP24uQg eeTD5NL1Y2TGl+m6T1ysFZZOyT9E/nMpgzPLUvTLp+AhXdrquT6wshV4gzcec5mr RLAB0CwcpESvj3vFhZQKG0= Received: from T490.lan (unknown [112.83.183.156]) by gzga-smtp-mta-g0-2 (Coremail) with SMTP id _____wDXT7lpzCdmN00xAg--.23722S6; Tue, 23 Apr 2024 22:57:47 +0800 (CST) From: Xiang W To: opensbi@lists.infradead.org Cc: Xiang W , hchauhan@ventanamicro.com, anup@brainfault.org Subject: [PATCH v2 4/5] lib: sbi: fix DBTR_SHMEM_MAKE_PHYS for RV64 Date: Tue, 23 Apr 2024 22:57:40 +0800 Message-ID: <20240423145743.392718-5-wxjstz@126.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240423145743.392718-1-wxjstz@126.com> References: <20240423145743.392718-1-wxjstz@126.com> MIME-Version: 1.0 X-CM-TRANSID: _____wDXT7lpzCdmN00xAg--.23722S6 X-Coremail-Antispam: 1Uf129KBjvdXoW7XrWUAF4rZFWkCr1rZryDtrb_yoW3Xrb_G3 48Ar4v9rs8ua92gw1aqr4jqF4S9Fn09FsrZ3s3AFWDJw43tF4Yk345XFZ0gan8Jr429F12 y3W7Wr13Gr15KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRWBTYUUUUUU== X-Originating-IP: [112.83.183.156] X-CM-SenderInfo: pz0m23b26rjloofrz/xtbBdQ7JOmSdL6grRQAAsY X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_075800_256470_CF0582E9 X-CRM114-Status: UNSURE ( 7.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.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: Obtaining a 64-bit address under rv64 does not require combining 32-bit registers Signed-off-by: Xiang W --- lib/sbi/sbi_dbtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/sbi_dbtr.c b/lib/sbi/sbi_dbtr.c index 4093a82..29be9bb 100644 --- a/lib/sbi/sbi_dbtr.c +++ b/lib/sbi/sbi_dbtr.c @@ -48,7 +48,7 @@ static unsigned long hart_state_ptr_offset; _idx+ [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [wxjstz(at)126.com] 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 Obtaining a 64-bit address under rv64 does not require combining 32-bit registers Signed-off-by: Xiang W Reviewed-by: Himanshu Chauhan --- lib/sbi/sbi_dbtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/sbi_dbtr.c b/lib/sbi/sbi_dbtr.c index 4093a82..29be9bb 100644 --- a/lib/sbi/sbi_dbtr.c +++ b/lib/sbi/sbi_dbtr.c @@ -48,7 +48,7 @@ static unsigned long hart_state_ptr_offset; _idx++, _entry = ((_etype *)_base + _idx)) #if __riscv_xlen == 64 -#define DBTR_SHMEM_MAKE_PHYS(_p_hi, _p_lo) (((u64)(_p_hi) << 32) | (_p_lo)) +#define DBTR_SHMEM_MAKE_PHYS(_p_hi, _p_lo) (_p_lo) #elif __riscv_xlen == 32 #define DBTR_SHMEM_MAKE_PHYS(_p_hi, _p_lo) (((u64)(_p_hi) << 32) | (_p_lo)) #else