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: 13704188 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 B60C6C27C53 for ; Wed, 19 Jun 2024 15:41:25 +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=9tiJ81fOa4y94l6gZ29Skdb9B94OGZB+isor0JLPqiI=; b=VooW+wsYIWZyuy 5JCiEUmUZlImRGoyy4vc693hFA3RRubwtq2q6ST3rKaEP5BRDKhVNB9bTb3RHLBYOYQ0NcYCCEYIe Fyg7qKRFMhMGE1KsBjWHtYlJU+7PXpNgJWBrMNdi9/qYVKIQx/0miJ4YP9cOcu78g8cguUjIR6R5l M0Re6zSb7u0xyP51GuvGjtUfRZKUW0j1ALL1VQof3ZgCkSX6G3qCWtC0VLsHkb6zVKAIqBLiO57dQ vjJ3FKSFfcsp3zXbnZjxPkjsjPPhD+gSNQdRgMPW7ScmzzrFW94hOu+f5AXjDM5vyRuRc2ZTcJool x93tgyTbGS69GrbnO9zg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJxQy-00000001qWo-2bKM; Wed, 19 Jun 2024 15:41:16 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJxQu-00000001qSn-37Ix for linux-riscv@lists.infradead.org; Wed, 19 Jun 2024 15:41:14 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42181803bf2so4909085e9.1 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=FOdpWT0jUAT0NqjwF9MKgTrr8dVc7/UfYi641xDMP+Vz9XlcAHOgkBebRAXAwv+PMx hOmITd8ugHwwrWUcf5wKlzOppn34WzDK+I3xU1Q0pKn5TyKbPJPypBS2YmW7EBOuysaT WJ24sZH+p1eCpfTfgjP3QlzhVEF7MRM80tm7n9TMOg0D+zpuCRL1l4tOqEGQ0W2fJDIb MqziD6cVmatXQxEe0pNylmn6c5ZOzQ+2B1JBn6hK3l+CTPM/UnGKUMA27DNM8JmUSZhj 0sJdK9u6ZzIgKL6VLNIfWbyaly2JcjghTldGCPyKeyWwhmYF1FLDgWeYAcku2EtIDSSp 2DYw== X-Forwarded-Encrypted: i=1; AJvYcCUAtYazYVlS+OZH9VrHJk5Sx34GIlvS4Rp+3oINMzzx/eOlfu1hXXct1RjNhX9YhgGGL74ezGeAUIHpkcK2CUsgzu5GVQ+dm3k+e7F1h2Qw X-Gm-Message-State: AOJu0YykzHcX+yRb5824ZOM1Ly4Lusjg9DwJ1gDYSZX34g2PAPDJLKR4 z4eSq/CteIPc1fCxp8HXv6bUrCKgjh+GtE5IVBDNMME5u3UUtJsS8O941aHvJ28= 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_084112_817720_26A9BCC5 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.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(-)