From patchwork Fri Apr 26 10:08:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 1928106 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=h2B7Fi17; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=oY+WjznW; 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 4VQpN120Llz1yZP for ; Fri, 26 Apr 2024 20:08:49 +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:References:In-Reply-To: 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: List-Owner; bh=qto6ycimLrmCigFJHQP4uQRrG/RPGo3WdXb8eMsxVqE=; b=h2B7Fi17Tms/td uEUw/f3RDCdNcBBsqyPp7MHFlB0hzqF2GnPvP6T4S99uezJ7dKylTq5Q8bCweBoeGSOrtbgumwN72 RmIYmYs1YpjXV4GDoKEGdmZQlMmvVUdD2JmVBa4upULYItiphupuYIqqE8U3Nu+Sr1FY8Q0lWtiME d05WMRpgZLSki4ja83cbG950uvqqTrUzdF+0aLZVGumAJ0Jud+OhlYAlSdfWvJPc3Ti9RvKWpTBsP t4jwU0odl0qMgZLgq+QkZCI7GjRP2vE2MhFQr3cRsDa01M3CbWFy3UTUbU6Y28o4aZjVFMkTvAhs2 45xdacH5d1kfoP5yNSGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0IVb-0000000C45R-2eh0; Fri, 26 Apr 2024 10:08:47 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0IVI-0000000C3n4-0o29 for kvm-riscv@lists.infradead.org; Fri, 26 Apr 2024 10:08:32 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-41b79450f8cso6852215e9.3 for ; Fri, 26 Apr 2024 03:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1714126106; x=1714730906; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H50p08qn7uGf4Z9JFkdHi+jkfC6EZzcHo7CUifdDw3E=; b=oY+WjznWIsWTme2qMkaoD1GJssTVoZR75jMH6p5Yw1KpRrocpqsBufEaUrhNzxHmgi +2X/l5znBgiGx2MuT3LtAFTz+8nyT42B1JTCTPe0Td7gNyBr/FO4Gsc53f+iqupCuV33 WUSTzbXyQYW5L1gz9C5uiv5CCgEZYbXcM3/JRqFqHmYCNyxD9Avc5/IgER2o6noTDQcd vjP2CT8a9qnMo03sfUJXsKV++C/4N7U3Kyutgm491SZs8ZJMW3ClVLR5+dSsNIfWQU4W b6DkmGdcXCWK+nV+mgW5UiHog7SGD5ZNOt9ca7YHVOf+02q+WiXiOg3Z/cSKB/ibu+0l rkGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714126106; x=1714730906; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H50p08qn7uGf4Z9JFkdHi+jkfC6EZzcHo7CUifdDw3E=; b=pbTRg2WSEfQhqHqp+w5EEgquUoAx1gLyN1Ojx6PEA0NxEJO+eT2TiMnM5KXb6+QAvS nI6SMRUa8HqQUhCXnx3CtN7eqmb6o4VOcGeSv+1Vtv86TZzoLl1Sd8E6GT374oVNnWWx JytyYggh02HhhRfgeAuOxvvMQPwvZ2z48rTJ9AghZ9Hy+jz0XM5794mux6QRPdCfMsfX XK+7Hbl33RgkvJWJetaUcRBFMQ+MP0NbOIdYckZ7fJhpVownK37+UeicnPvvxNIxPxDS aXkrI3vodSrSjCsAgePinsUyu2lg4KW+7+Zx0P4+i4hNaBniGHsiseuaIeck1NTkEhck XsXQ== X-Forwarded-Encrypted: i=1; AJvYcCW5lMbRlgiyUCTC+DT/+VKPJCXra5DZJcuzBWlPxeAgBCRUetIuRDxYrRCb8D1rK75ZrdvoTqGL9YZdYa8rFORaZsPtSate7l/5b3jdGQ== X-Gm-Message-State: AOJu0YxVDJ5FWmiUkoNOC96bYj6XXYMwFnw/S7EN/gdULxWFdWAKidzU PEESS+oh4uF+GewoZ1TukN0IUsm5PDBrOBWN1yKV1l+Ii1x21eghDXMt651Uc4U= X-Google-Smtp-Source: AGHT+IE5Q3hADYqj2MvVu2H/qxB0sDab34q1JHiQ+l/nY/53ersVI/z5oTpAPArBs5eOKGypLKYc9w== X-Received: by 2002:a05:600c:a4f:b0:417:ee98:dfac with SMTP id c15-20020a05600c0a4f00b00417ee98dfacmr1506890wmq.34.1714126106377; Fri, 26 Apr 2024 03:08:26 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id s9-20020a05600c384900b0041b0c3879c3sm8384477wmr.26.2024.04.26.03.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 03:08:26 -0700 (PDT) From: Andrew Jones To: linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org, devicetree@vger.kernel.org Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor.dooley@microchip.com, anup@brainfault.org, atishp@atishpatra.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, christoph.muellner@vrull.eu, heiko@sntech.de, charlie@rivosinc.com, David.Laight@ACULAB.COM, parri.andrea@gmail.com, luxu.kernel@bytedance.com Subject: [PATCH v3 4/6] riscv: hwprobe: export Zawrs ISA extension Date: Fri, 26 Apr 2024 12:08:24 +0200 Message-ID: <20240426100820.14762-12-ajones@ventanamicro.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240426100820.14762-8-ajones@ventanamicro.com> References: <20240426100820.14762-8-ajones@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_030828_420621_E764C56F X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: Export Zawrs ISA extension through hwprobe. Signed-off-by: Andrew Jones --- Documentation/arch/riscv/hwprobe.rst | 4 ++++ arch/riscv/include/uapi/asm/hwprobe.h | 1 + arch/riscv/kernel/sys_hwprobe.c | 1 + 3 files change [...] Content analysis details: (-0.2 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:335 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 Export Zawrs ISA extension through hwprobe. Signed-off-by: Andrew Jones Reviewed-by: Clément Léger --- Documentation/arch/riscv/hwprobe.rst | 4 ++++ arch/riscv/include/uapi/asm/hwprobe.h | 1 + arch/riscv/kernel/sys_hwprobe.c | 1 + 3 files changed, 6 insertions(+) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst index b2bcc9eed9aa..e072ce8285d8 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -188,6 +188,10 @@ The following keys are defined: manual starting from commit 95cf1f9 ("Add changes requested by Ved during signoff") + * :c:macro:`RISCV_HWPROBE_EXT_ZAWRS`: The Zawrs extension is supported as + ratified in commit 98918c844281 ("Merge pull request #1217 from + riscv/zawrs") of riscv-isa-manual. + * :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance information about the selected set of processors. diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h index 9f2a8e3ff204..a5fca3878a32 100644 --- a/arch/riscv/include/uapi/asm/hwprobe.h +++ b/arch/riscv/include/uapi/asm/hwprobe.h @@ -59,6 +59,7 @@ struct riscv_hwprobe { #define RISCV_HWPROBE_EXT_ZTSO (1ULL << 33) #define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34) #define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35) +#define RISCV_HWPROBE_EXT_ZAWRS (1ULL << 36) #define RISCV_HWPROBE_KEY_CPUPERF_0 5 #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) #define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0) diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c index 8cae41a502dd..b86e3531a45a 100644 --- a/arch/riscv/kernel/sys_hwprobe.c +++ b/arch/riscv/kernel/sys_hwprobe.c @@ -111,6 +111,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, EXT_KEY(ZTSO); EXT_KEY(ZACAS); EXT_KEY(ZICOND); + EXT_KEY(ZAWRS); if (has_vector()) { EXT_KEY(ZVBB);