Message ID | 20240528-applaud-violin-facef8d9d846@spud (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org> 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 A4BF6C41513 for <linux-riscv@archiver.kernel.org>; Tue, 28 May 2024 11:11:32 +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: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=8KvWhueFt9rgVwM8OnkfcWFiibu73+w//+AXlDlDezg=; b=wKyRFKbzDyEZF9 SwkNDp0lh6AbjAU3kVY/UDPrfaK1QhLpgs6QJXFbTL6aptDjG7Uul85mPCvsDW9YpLsZ1UeKYVm9O cUb3NLAhVOYQkXKL6Bx4sdw0KZcW5p2hPLO4wazyhOQ6XcSOK5zYpyF5YuajhGNq/Sn7dWbNFeKSN jV2yQwMnrLk/ITIvWXkcJ6MtTQbIfGsaKWqffOZoo+IsZVZZMWQc6m1Pu+iedKvBhNrAsqa5aNDp4 dnzUmK5yzfJvZ4B8Q6VD1rXrRM6wzLaV19J5DqAExOQshRBPpKauVYbYiYswnl2bukvd4noa2d914 9kq6kHcuHnwC708hdg/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBujk-00000000Jjp-1a3d; Tue, 28 May 2024 11:11:24 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBujh-00000000JjN-1e7T for linux-riscv@lists.infradead.org; Tue, 28 May 2024 11:11:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D866E61DA6; Tue, 28 May 2024 11:11:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A539C3277B; Tue, 28 May 2024 11:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716894680; bh=cKGaioffc0Q77ot1toCJrXdGDgZ9fVMzBNzKB36rtK4=; h=From:To:Cc:Subject:Date:From; b=SOiFBoIgSeVBUoAwAmQjlszsZycBgxh+XfHcXW1x2KnRZrsLpV/TGYJLzk9nS3JML jUrg2oGmln3rXw9060MyTP8vBMtC2LKbh2A81ssqdBnU84aL4Hxx3r7HZtfITDH4VB PLRwitCesYWHTaR5Wh3MCs11J7dB2au+nqCe6npmnGqAWjX9+CucMXklyQK/BvFMnD s5tBGPa9p45ncJBB3ozsYvH6FpwRne3qWJKaK5KG9CM4ALQP3Qwdh5fSwNb+5+ABZn DFYIvBlVnDJxhStA0KrlfvrxPLtaOKowBmwQm/S5azcASUWgLIQzlKfvCYJ0IeR5qJ dbg+S8941O5cQ== From: Conor Dooley <conor@kernel.org> To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley <conor.dooley@microchip.com>, xiao.w.wang@intel.com, Andrew Jones <ajones@ventanamicro.com>, pulehui@huawei.com, Charlie Jenkins <charlie@rivosinc.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, linux-kernel@vger.kernel.org, Samuel Holland <samuel.holland@sifive.com>, Pu Lehui <pulehui@huaweicloud.com>, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org> Subject: [PATCH v3 0/2] RISC-V: clarify what some RISCV_ISA* config options do & redo Zbb toolchain dependency Date: Tue, 28 May 2024 12:11:10 +0100 Message-ID: <20240528-applaud-violin-facef8d9d846@spud> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2106; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=1kEWWyZ2wsVqGe6WsVsrxjZSumjIl+7jmavXm2F+fzk=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDGmhuy+I3IpxFD2g9DyeecmdO8uPVJ7ad3qm9ybpq8V7z 37NN7aJ7ShlYRDjYJAVU2RJvN3XIrX+j8sO5563MHNYmUCGMHBxCsBEel8xMvR+dJa/pXxWOeLh I3uzTOtX6h4n7iqvdakLzZYsnnR6Xw0jww3d9ENuz2Tn1SaWNYkt1ClwqAz32tB1ilVEXbrjXzo 7GwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_041121_554107_875B3B5A X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org |
Series |
RISC-V: clarify what some RISCV_ISA* config options do & redo Zbb toolchain dependency
|
expand
|
From: Conor Dooley <conor.dooley@microchip.com> Since one depends on the other, albeit trivially, here's a v2 of the Zbb toolchain dep removal alongside the rewording of Kconfig options I'd sent out before the merge window. I think I like this implementation better than v1, but I couldn't think of a good name for a "public" version of __ALTERNATIVE(), so I used it here directly. Unfortunately "ALTERNATIVE_2_CFG" already exists and I couldn't think of a good way to name an alternative macro that allows for several config options that didn't make the distinction sufficiently clear.. Yell if you have better suggestions than I did. I am a wee bit "worried" that this makes the Kconfig option confusing as it isn't immediately obvious if someone is or is not going to get the toolchain based optimisations. Cheers, Conor. CC: xiao.w.wang@intel.com CC: Andrew Jones <ajones@ventanamicro.com> CC: pulehui@huawei.com CC: Charlie Jenkins <charlie@rivosinc.com> CC: Paul Walmsley <paul.walmsley@sifive.com> CC: Palmer Dabbelt <palmer@dabbelt.com> CC: Conor Dooley <conor.dooley@microchip.com> CC: linux-riscv@lists.infradead.org CC: linux-kernel@vger.kernel.org CC: Samuel Holland <samuel.holland@sifive.com> CC: Pu Lehui <pulehui@huaweicloud.com> CC: Björn Töpel <bjorn@kernel.org> CC: Andrew Jones <ajones@ventanamicro.com> CC: Paul Walmsley <paul.walmsley@sifive.com> CC: Palmer Dabbelt <palmer@dabbelt.com> CC: linux-riscv@lists.infradead.org Conor Dooley (2): RISC-V: clarify what some RISCV_ISA* config options do RISC-V: separate Zbb optimisations requiring and not requiring toolchain support arch/riscv/Kconfig | 38 ++++++++++++++------------- arch/riscv/include/asm/arch_hweight.h | 6 ++--- arch/riscv/include/asm/bitops.h | 4 +-- arch/riscv/include/asm/checksum.h | 3 +-- arch/riscv/lib/csum.c | 21 +++------------ arch/riscv/lib/strcmp.S | 5 ++-- arch/riscv/lib/strlen.S | 5 ++-- arch/riscv/lib/strncmp.S | 5 ++-- 8 files changed, 38 insertions(+), 49 deletions(-)