From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E24BC46467 for ; Wed, 11 Jan 2023 23:32:17 +0000 (UTC) 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=e8P2KQfJ2NwgfbqKqdZQBkfRia/spUjb/FglsWlNbi4=; b=LD1bVszLaeeQCB Axz31te5kEo6uJ/2UQGiHrSyK6MlvISUobeUp4iO4Zswmpw0Xjr2apMW98krU3oidXn7TbVHvL5MD mVDPx9hYHwLNm98NneKXJouDWEURoPAI+Y1SyoFXpLaEDavNSVcbB0XQ4iSchEUoWqMSxcJX2tqE2 E0KhXiaiDCun5HuGVf4k5sv2IbyVO9n/1qq+af41WOM9Hr5yHgUHNhybc/vGrGzIMDtAQAKL3Fh+C 6yCz+JxtLbDVLi2idWCHD5Q49tt1ZnGOPt75X/eJyp/7zG4/7RlJK7w5SU/O3UQzUlc3yuE4Wy5/p PtMibMYVPHSem1vBeVnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFkZl-00DCbE-1T; Wed, 11 Jan 2023 23:32:09 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFkZi-00DCab-Qr; Wed, 11 Jan 2023 23:32:08 +0000 Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pFkZb-0001Ac-W2; Thu, 12 Jan 2023 00:32:00 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Jisheng Zhang Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v3 01/13] riscv: fix jal offsets in patched alternatives Date: Thu, 12 Jan 2023 00:31:59 +0100 Message-ID: <3268358.687JKscXgg@diego> In-Reply-To: <20230111171027.2392-2-jszhang@kernel.org> References: <20230111171027.2392-1-jszhang@kernel.org> <20230111171027.2392-2-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230111_153206_892975_64A0D9D5 X-CRM114-Status: GOOD ( 12.25 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Am Mittwoch, 11. Januar 2023, 18:10:15 CET schrieb Jisheng Zhang: > Alternatives live in a different section, so offsets used by jal > instruction will point to wrong locations after the patch got applied. > > Similar to arm64, adjust the location to consider that offset. > > Co-developed-by: Heiko Stuebner > Signed-off-by: Heiko Stuebner > Signed-off-by: Jisheng Zhang looks good, thanks for fixing the issues Andrew and Conor pointed out in the variant in my zbb series. I've now switched over to this one. I guess as you said, we really should separate this out into a single patch [or if Palmer is fine with that, just pick this one patch to apply until the rest is ready] Heiko _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv