Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2565760lqb; Tue, 28 May 2024 04:11:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk/GHvwM2kthaAOQ0ehoQJ5dpVqTgU8DKwU8rLNuzE+JzwweJzGZ/l5FCTSn2eTC/kXbJXHRVgwD2i32+rJVZgMrpXt//tzBhr31SCyg== X-Google-Smtp-Source: AGHT+IFMjBG2gH8R6TIw+pEUaJGPkoZyUTBy2SaScv5SjxQAq1O3GwPkgC/c9QwqOGNyjUu48tR5 X-Received: by 2002:a17:907:25ca:b0:a59:c833:d272 with SMTP id a640c23a62f3a-a626417a32amr949549466b.13.1716894687374; Tue, 28 May 2024 04:11:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716894687; cv=pass; d=google.com; s=arc-20160816; b=cO13RPmxD3HcHSo1PZ/Bcdto6WkOgkXMl8IpgFYTL5j/hYqb8KLrOqz0H4mL84CmPH le6gtjvzsw2IjT0wusUHQz7IowMFczJIwVMN17yilHWigUH8hHhw5EYTKj+MyyvhHM1s 2mP2flu5D2TvXw906EIzQGoZ4jO4ysxofvKr4VGzuuZeNqqvIhhFWrtLrkvnd/4y8fAP t1FAdTC2+wU9LJyKo083Qi+pXYigdDf9ylFs4MuXrAeLQE32URV7KfGqjygdd2ORMjlG QvQn4ZMGnvO2hm7fL3isV+g6EGlA9sHuFcK7XnZqRTrv6rX4XjFE53i/q904nmISNmNI JXog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CXRkO4kVhmgY1JO3EhbeROSKAUk9SgzTUeCZlONn04Q=; fh=4KfKpF/9P0MlOAJQjAhf9ZBr4bCG3DSGYiw7Ehwkf2A=; b=No6dq3eTjz8Cv/JhN67IYl1qulQYST7lAybgYEDYKmcC852Wnih80UYpuF4xsgNFX1 9jMgDFpWyeGFihq10H0ckicKAbI7n9kmcBxRgPIUeJh2yBAIldZO9+7nTW9AQHVosuk0 OGaJ7V1HeZeBK95kb4gXjGIZ0P5PWbzlrvlfXZHYy8WX7suZ1NTBI1lU1AncJoKfNLQF 1yh+8VnaGZIXNiP6QPcu9MIg6yidX/R3/bj4wPAbtPT9BVO3Ppuh6kcr7Jx7Js46/Kum mThRaXRVpCZRAmUwlOx2GFLN48t+v3QW4lI6hx6L+zhiAx1rgM5wm3cCZ+CPkQi0jzhJ s0TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SOiFBoIg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd9207asi456302666b.789.2024.05.28.04.11.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SOiFBoIg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 152571F23258 for ; Tue, 28 May 2024 11:11:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F16DB16C455; Tue, 28 May 2024 11:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SOiFBoIg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1413D13E039 for ; Tue, 28 May 2024 11:11:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894681; cv=none; b=D2nnNiZ3YRHbW21/fNYPAUFXaaGRJWiYJVnDtH7vjYqvQ3pl1aMcqyPMyYDKzsYDtLiwpJx5myRxJBwvW7Vpho9OvUE5kCvEsTy93bdZiYMwpVws+816ybs4FhyvQza5Zr1ZVc2RWOA7NLiWD0xe0mfoOm8hQ0DNINfl6QR/Ijo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894681; c=relaxed/simple; bh=cKGaioffc0Q77ot1toCJrXdGDgZ9fVMzBNzKB36rtK4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=lzvrzV2cypOq7AtWtFsGc9WkQh3IhLhIfsCaIaVkI9MbbTNnDhpPsE1rKzgpQOyu5jgPGEWg7dCRc8VxtlAXlBadEn6/jEfcrCOBvYCMnTMnwcXAI/clI00VGKQoGUbOaLLhosQ1CRSBGKB4Z1u/3yKcY9aGTlXIgWA5pOFH3iE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SOiFBoIg; arc=none smtp.client-ip=10.30.226.201 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 To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , xiao.w.wang@intel.com, Andrew Jones , pulehui@huawei.com, Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , linux-kernel@vger.kernel.org, Samuel Holland , Pu Lehui , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Conor Dooley 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 CC: pulehui@huawei.com CC: Charlie Jenkins CC: Paul Walmsley CC: Palmer Dabbelt CC: Conor Dooley CC: linux-riscv@lists.infradead.org CC: linux-kernel@vger.kernel.org CC: Samuel Holland CC: Pu Lehui CC: Björn Töpel CC: Andrew Jones CC: Paul Walmsley CC: Palmer Dabbelt 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(-) -- 2.43.0