From patchwork Wed Jun 19 15:39:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 1949752 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=RBqW1Ygt; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=t9lgcHmS; 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=kvm-riscv-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 4W47Bp5nyfz20XQ for ; Thu, 20 Jun 2024 01:41:22 +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: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=s8a6pA5aBn1Ppr0CD17MY/iIXIovUwCjXBw+kYYwrdU=; b=RBqW1YgtYiIGIh VK4rCgG1mIEYrMi0V7xMdJLwUw1+27gTPc3RoknwLuPA7pNK4vHcenVRsEJ8i144IN0/YYTH2l5MJ VfFG//4TPod3EkwzHTYg31RcgXAgmvJcHmXL+o0DW6NerME4YmsdtgK/Vbg6a7eQ9oGOdQv4NNeBs 1s1vGRX39JxpioSc3dRWPlJwRXjVrGDAhw67QQOOGPN5eyaYWB/UxhNUibGykmbtClWnswqf7wInu Ws6v02PLgAnstzLjzjTiX/kjQ2OjwY19SYtkor/0RciLzubBdls1whxgE+pnEc1w2g6QiAkidOljd yvIa83oKGfruzsQMBxjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJxR2-00000001qa8-38nr; Wed, 19 Jun 2024 15:41:20 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJxQu-00000001qSm-43nQ for kvm-riscv@lists.infradead.org; Wed, 19 Jun 2024 15:41:15 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42111cf1ca1so4896285e9.3 for ; Wed, 19 Jun 2024 08:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718811670; x=1719416470; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sG05QgwdQ7sARDUt4CTUt6qfEG9g0T59arCJfjRkJ9s=; b=t9lgcHmSlMktd63WCmxBDs6nAbRb5K5XRlPWto7PbsBK9c4+c66tKfcUO95hd+bB3F LSmVuHJEOElbfwMEQFwaTcOw8xOyu+dShvt5RVkZQ5b4SGGsqhSGQt15zOg32BfZNIOU 6I8kAQ58siQLqOyT783L7UFyiWqcQh6l8AKXIYULJDgIFlYp294Ov3BkxWA1mH358vcU rGO5FEmBNCqwcPwTg2xGxJl0rM7OFNYnlke1rfxhzkXRirr0C5SjBIgZZEWvKr9mh4qp 0mNPgTSk6IwLY9ADrpizHWdQMwuYrs7GHJx+V+Rg2QXv5c6071TnxiaFKZKqxzigipGl Xotg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718811670; x=1719416470; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sG05QgwdQ7sARDUt4CTUt6qfEG9g0T59arCJfjRkJ9s=; b=EWrYFeelrmCgZpSyxmctqE569Xv4cXGZviK0kQJQ+L8dZwKOfcq2Nh9qvfSrH2O89D 5knJ/qwu/Pbu4o5EFool+DPsmtDtCZCfoBmLejWCUVzIA59LQ1Uu+GD0xciW3SZ01x9j Jfw84EMGikn/0JI7QbWpM5gXuX1N+AgKlcrFwmabAOP6pVN5qPvmsybBDdNVAEDCQ+Oh mc21j+EItXYnqwY5YHvILNIEMtMDMYpgIPY31TX4WLPdm4+9xq27bi+jpMGEAQVRS28w jr6WojQAqpynCE6k00gNQ/yEsrcVuWPea88hDLYwLfM3udBQtlzSz9QiX+fPIuSIUQiy 1zbA== X-Forwarded-Encrypted: i=1; AJvYcCVXy23VbxsLxOZZ3TlC5z7afebjpMkJGfnVNpU350zqQotJ89nD/6Ipg6bkU+lTLtWN9T7cITE3D+vU+lkZud8RXpUjVe1IlGR3c8LY3Q== X-Gm-Message-State: AOJu0YzNmu1YgtyF8i8O5Chl/dla+bbkiRuLs7oc+XICBgJtX8HYATst oj3PifjVExCa5w1EK4MOJ9pqpv5aUvinSDLB0OXkaT+6YAENrTI4mEYuAyiIP54= X-Google-Smtp-Source: AGHT+IHjJ/ELMaLTWKWeAU/HVEqGrqCHBr+fjB+4qaex+w80Yfl6w29FYw+Q9TIgjrzlZcWwZpq3WA== X-Received: by 2002:a5d:5f93:0:b0:35f:2929:846e with SMTP id ffacd0b85a97d-363171e28demr2732074f8f.1.1718811669978; Wed, 19 Jun 2024 08:41:09 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:819d:b9d2:9c2:3b7a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3607509c785sm17392292f8f.34.2024.06.19.08.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 08:41:09 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan , Atish Patra Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: [PATCH 0/5] riscv: add support for Zaamo and Zalrsc extensions Date: Wed, 19 Jun 2024 17:39:07 +0200 Message-ID: <20240619153913.867263-1-cleger@rivosinc.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_084113_029909_7221E61C X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) 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: Since commit e87412e621f1 ("integrate Zaamo and Zalrsc text (#1304)"), the A extension has been described as a set of instructions provided by Zaamo and Zalrsc. Add these two extensions. This series is based on the Zc one [1]. Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:332 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Since commit e87412e621f1 ("integrate Zaamo and Zalrsc text (#1304)"), the A extension has been described as a set of instructions provided by Zaamo and Zalrsc. Add these two extensions. This series is based on the Zc one [1]. Link: https://lore.kernel.org/linux-riscv/20240619113529.676940-1-cleger@rivosinc.com/ --- Clément Léger (5): dt-bindings: riscv: add Zaamo and Zalrsc ISA extension description riscv: add parsing for Zaamo and Zalrsc extensions riscv: hwprobe: export Zaamo and Zalrsc extensions RISC-V: KVM: Allow Zaamo/Zalrsc extensions for Guest/VM KVM: riscv: selftests: Add Zaamo/Zalrsc extensions to get-reg-list test Documentation/arch/riscv/hwprobe.rst | 8 ++++++++ .../devicetree/bindings/riscv/extensions.yaml | 19 +++++++++++++++++++ arch/riscv/include/asm/hwcap.h | 2 ++ arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ arch/riscv/include/uapi/asm/kvm.h | 2 ++ arch/riscv/kernel/cpufeature.c | 9 ++++++++- arch/riscv/kernel/sys_hwprobe.c | 2 ++ arch/riscv/kvm/vcpu_onereg.c | 4 ++++ .../selftests/kvm/riscv/get-reg-list.c | 8 ++++++++ 9 files changed, 55 insertions(+), 1 deletion(-)