Message ID | 20230212021534.59121-1-samuel@sholland.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1743471wrn; Sat, 11 Feb 2023 18:43:15 -0800 (PST) X-Google-Smtp-Source: AK7set8Bj93bGpFoWZ3aMgLDr9KolGalZ2I+2XNxxItCjDA6/TrPSO25siL22KzyQZZv/grRUH5A X-Received: by 2002:a17:90b:1e0e:b0:233:d9ba:e5a2 with SMTP id pg14-20020a17090b1e0e00b00233d9bae5a2mr1859468pjb.49.1676169795378; Sat, 11 Feb 2023 18:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676169795; cv=none; d=google.com; s=arc-20160816; b=bpxTCtHGg5f8dtIUh+neQO4QORRprNhvO2VgQENjZbjZY3PMEGEOOZVPyjOSaJctgo bPHOGTjcFqBtnqOmA++cLg6Ei/nDGGyRDxmL/2JCJxJSjlRmayHOie1oBN0zMMkHnAUW 2kkCOiHYqWgygKyZI7j4hrnVXAFS6XFdGGuMe4IRE8UsY6xQ1sOp103MIbvKZ+nsOsRY BinCBIpcvGph0iORBFdeLoR62zZ9PCRzgeU0c6IZ1xvJ3Hxqy9BelIgx+PSg42PYm/JH Cf6dPbtCSsZLWyMa5Kqgu+mvq2ZUHmy++Xww7zJrc45Xy/v3GNQz4OwtHeYwNZbFoDgv LUbw== 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:feedback-id:dkim-signature :dkim-signature; bh=8u+zNk0AjPoNWDX5vvoNZoLkcvhYyKyvuQLWFPq8Xw4=; b=Bf8mC6xBRLqJtza7UrKxans+Wu41Fgg4vQ7c+qd3TIpbUAYhx4vQPsejvyZ974m3r0 XXuSjgmNucQ4i14JKUd7apzTFxHrnlvSOGI0VG5OLLHPrCzHDHu5/8kduyZy/Z+Vn3UM kelmKojWiLmZb2ytgfgua+uXYA96y+aZwVy7drOFRjtK0gT+QVEsMCNSVZg8+bm5cj+M 4akPPsc443e/rPElB0AKrmKG2hwTwhI0yPQGNkLYiKil7GKJfjvojfbN7uvZ9mCRScq0 oEaZQDtspGCfQcFt/lKGPTYNYaa3Fi7fR9OZiCSNGIK85ECQYPiKbEFNafsfpH3N3iAs gaig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="P3VcwyR/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=XjK4iBkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg6-20020a17090b0d8600b00233cc2c7da6si1905458pjb.79.2023.02.11.18.43.02; Sat, 11 Feb 2023 18:43:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="P3VcwyR/"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=XjK4iBkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjBLCPk (ORCPT <rfc822;b1411651799@gmail.com> + 99 others); Sat, 11 Feb 2023 21:15:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjBLCPh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Feb 2023 21:15:37 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19676166F4 for <linux-kernel@vger.kernel.org>; Sat, 11 Feb 2023 18:15:34 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 65F925C00AF; Sat, 11 Feb 2023 21:15:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 11 Feb 2023 21:15:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1676168131; x=1676254531; bh=8u+zNk0AjPoNWDX5vvoNZoLkc vhYyKyvuQLWFPq8Xw4=; b=P3VcwyR/XPyQzZsLPQf3+70PgeCLSVPNbRlAS5Ui5 8LAhd9a26Ebs5Bz50oX28oG76XqKnHqRVyhPH/59ewT/FS6+WavRRqxgG2v6L1H2 x7nQh87PAiONAsZzG6tJSMWKOWcqCEiwBIMIRUMcv3jn3zkrwSoE2r+XIaQ/9S71 vhw9z0c33lI5U58wcq1aI92VCcKmTAF11O5U+Tzl0a2+1leUh8YMz4i3DAVkqwnk yjDfL+V/CpMOffghO3NNGH4CET3o/NNqjMucZ/S1OKGQZWDX1sWbQdZQvl2YRuMu FL8yRM+u2PyjteMTHO08aNETeZAOulbvo0bJttzwMWQzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676168131; x=1676254531; bh=8u+zNk0AjPoNWDX5vvoNZoLkcvhYyKyvuQL WFPq8Xw4=; b=XjK4iBkh7EXNhYDVHsnD8BQby4izoyDlSQWZDWXHMLeXkEzNHXN YHV+H8Rw9+NaMpMJbq3+85R1xHpzoVxyjKTv0JOLWzyrH488dfD73HPBbWB+myfW aTXp8cRncZ5iWi3dC7SYD8BXkEJecnWquk2LV+0eiQbfeEZY86tTr52PPMvTjb8u BLH/VgHOKKKPehCVz+E7/dr6OMCbi9bhC1BDTTqhrBMZv4DgjiVeZgcTUehTwxyn Fmxi037Gpjoe3wCChDSZAEW0iP8BZkWkKFij8Kzl9xaFX/p3U9Cn9l1MMQgUJIZQ Am3A1oisCG6gKc8DBz/I7gKR93SM0UCEbLw== X-ME-Sender: <xms:wkvoYzjTecigdPNONtT-oLT0WKFPT1HDCGkiW1j-BQD4GifJPZAtUA> <xme:wkvoYwBbOV8qx1U-6Ib0UwMm6UcUxnx0rSk_qNVESgb_j-gpacWLqjjdfUxKpfC_J uOnhSraf8IjCjVGEg> X-ME-Received: <xmr:wkvoYzEXju6zIYH3PUaMfUL6VMc_K2Tmpl8SZxYdlVh0xOXysdZGQMyp3bIVbz0beo330QqNe5exQMZPtnC0-USOk0fvX9ruptY5eRRlkXsB1yWgvflVlCGzbdaLnkzs2WHdZQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehkedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: <xmx:wkvoYwRSZV9GlhaL0K5uzuEPcMb2AkNE9BENfFodP404t66tNCoEWQ> <xmx:wkvoYwxIx_XioTZXMCCKav8hSt5qwIuXrm7gXPza6LyAvdmy6ojfyA> <xmx:wkvoY24RiwSXEKsvqQedv6-f0_YWw29PKXHW-zPSw7YFeGBRqt3s_A> <xmx:w0voY1r1_6sfHR0pQGYEUzw8a9Ox6MZuXUmKw8EIdduUMHStmihJWw> Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Feb 2023 21:15:29 -0500 (EST) From: Samuel Holland <samuel@sholland.org> To: Heiko Stuebner <heiko@sntech.de>, Jisheng Zhang <jszhang@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, linux-riscv@lists.infradead.org Cc: Samuel Holland <samuel@sholland.org>, Andrew Jones <ajones@ventanamicro.com>, Christoph Muellner <christoph.muellner@vrull.eu>, Conor Dooley <conor.dooley@microchip.com>, Guo Ren <guoren@kernel.org>, Heiko Stuebner <heiko.stuebner@vrull.eu>, Nathan Chancellor <nathan@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] riscv: Fix alternatives issues on for-next Date: Sat, 11 Feb 2023 20:15:31 -0600 Message-Id: <20230212021534.59121-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757591419474810641?= X-GMAIL-MSGID: =?utf-8?q?1757591419474810641?= |
Series |
riscv: Fix alternatives issues on for-next
|
|
Message
Samuel Holland
Feb. 12, 2023, 2:15 a.m. UTC
Several people have reported that D1 fails to boot on linux-next. Patch 1 fixes a bug where early alternative patching used the wrong address. Patch 2 fixes a separate issue where the Zbb alternatives are incorrectly applied based on the 'C' extension instead of Zbb. Samuel Holland (2): riscv: Fix early alternative patching riscv: Fix Zbb alternative IDs arch/riscv/errata/thead/errata.c | 4 +--- arch/riscv/include/asm/errata_list.h | 5 ----- arch/riscv/lib/strcmp.S | 2 +- arch/riscv/lib/strlen.S | 2 +- arch/riscv/lib/strncmp.S | 2 +- 5 files changed, 4 insertions(+), 11 deletions(-)
Comments
Hey Samuel, On Sat, Feb 11, 2023 at 08:15:31PM -0600, Samuel Holland wrote: > Several people have reported that D1 fails to boot on linux-next. > Patch 1 fixes a bug where early alternative patching used the wrong > address. Patch 2 fixes a separate issue where the Zbb alternatives > are incorrectly applied based on the 'C' extension instead of Zbb. On Icicle, Nezha & VisionFive 2: Tested-by: Conor Dooley <conor.dooley@microchip.com> I was really curious why my CI didn't catch this, but I think boot on Icicle wasn't broken as the toolchains pre-date Zbb and therefore it isn't even compiled in. And the VisionFive 2 doesn't care as it has Zbb. Thanks for the fixes :) Conor.
On Sun, Feb 12, 2023 at 10:15 AM Samuel Holland <samuel@sholland.org> wrote: > > Several people have reported that D1 fails to boot on linux-next. > Patch 1 fixes a bug where early alternative patching used the wrong > address. Patch 2 fixes a separate issue where the Zbb alternatives > are incorrectly applied based on the 'C' extension instead of Zbb. Great Job! Thx for fixup. > > > Samuel Holland (2): > riscv: Fix early alternative patching > riscv: Fix Zbb alternative IDs > > arch/riscv/errata/thead/errata.c | 4 +--- > arch/riscv/include/asm/errata_list.h | 5 ----- > arch/riscv/lib/strcmp.S | 2 +- > arch/riscv/lib/strlen.S | 2 +- > arch/riscv/lib/strncmp.S | 2 +- > 5 files changed, 4 insertions(+), 11 deletions(-) > > -- > 2.37.4 >
On Sat, 11 Feb 2023 20:15:31 -0600, Samuel Holland wrote: > Several people have reported that D1 fails to boot on linux-next. > Patch 1 fixes a bug where early alternative patching used the wrong > address. Patch 2 fixes a separate issue where the Zbb alternatives > are incorrectly applied based on the 'C' extension instead of Zbb. > > > Samuel Holland (2): > riscv: Fix early alternative patching > riscv: Fix Zbb alternative IDs > > [...] Applied, thanks! [1/2] riscv: Fix early alternative patching https://git.kernel.org/palmer/c/bfd6fc5d8014 [2/2] riscv: Fix Zbb alternative IDs https://git.kernel.org/palmer/c/d5a7fab7859d Best regards,
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Sat, 11 Feb 2023 20:15:31 -0600 you wrote: > Several people have reported that D1 fails to boot on linux-next. > Patch 1 fixes a bug where early alternative patching used the wrong > address. Patch 2 fixes a separate issue where the Zbb alternatives > are incorrectly applied based on the 'C' extension instead of Zbb. > > > Samuel Holland (2): > riscv: Fix early alternative patching > riscv: Fix Zbb alternative IDs > > [...] Here is the summary with links: - [1/2] riscv: Fix early alternative patching https://git.kernel.org/riscv/c/bfd6fc5d8014 - [2/2] riscv: Fix Zbb alternative IDs https://git.kernel.org/riscv/c/d5a7fab7859d You are awesome, thank you!