From patchwork Tue Apr 16 04:12:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13631270 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 B71D9C04FF9 for ; Tue, 16 Apr 2024 05:15:59 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eF5B8bsMLGd6qsKn7pGA8zrEZJOAcPBTeoyPVc4wtZ0=; b=Oxqrs9LslvYKbf L2MtN0WKaS4Q+GRUfIFJTgMt4glUFmTdNTYrU862wvPcsZrNX01WxB35OE527PQWBkA0EXAjW6vTB n5bkk1Vt6Nx08W/Iwy9l1nBXQ223LGOaYo1SgGDY2dgfOiVyyLeNwRdybU49JIxqL0Vs89gogBvtU n+r6JsXrpu2rILMtqJjf4JvclyfaEV8Ze5KxRGOhQJQX2oc8hwwSWx6Wa+bsT2Kz6/6qs7fFDStkF I7D6a4Alr+IPWeRQdWVXN8xfxEmP2M+YC7LlkwJiuy6yXKkd3G3Wr4c0jpIfMWHH9QQYh9YvYm9iA SQ2TPnGzPOpZq478u2EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwbAe-0000000Auuw-2ejp; Tue, 16 Apr 2024 05:15:52 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwaBI-0000000Akcz-1epn for linux-riscv@lists.infradead.org; Tue, 16 Apr 2024 04:12:34 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3c6f6c5bc37so1761343b6e.1 for ; Mon, 15 Apr 2024 21:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713240746; x=1713845546; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sCqKMMvpjdMx8mqL5GwN/rt+g7kii5wG+xB+75rraRY=; b=2J9pim4wyf9vt1FwUdKMRL+xL+5vH6gKhT3jq2hU8K2e6Gyvfy3KW2ZbBStpF4Ts5z 6zNh1jdJQPPsrYh/95lXvqyf7n4ldoLlH4EAX+D/xmnk8JfljddtPxXsX6S1oqRUrL6D XMe2DvysezFQuv68LlY2pxHA2BE9WCxZ/MEfE9h2V4MTfYcC2qZMim0p1cf6LVWHkyNZ 0nsPNfUrFcA1brEYjXCY4MPQxN+etgBodU3LBXt9ChKDFJQYx4iXDwfyT9y8NYbPBd2w qbIbhrhzYwv6fkuE0rX+V33rUcNat8Rl0/M6QgrCtTzyehYSgg+TLj9F/xurplgCAXFT Fy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713240746; x=1713845546; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sCqKMMvpjdMx8mqL5GwN/rt+g7kii5wG+xB+75rraRY=; b=kpNTu+9ynq81oL6I80dEFHsSEH7Ol7J0VED0O/noljHtfdLjwNYY1bfZhRTdRerE3g Y1nyKEZOQo1UdF4mJVUvbla1G6bTB4RkYCFKHVSVmQ0xwQPPzOGbIVaFtNSv+YHeQxbd msnpv9OFFMFU8bBVg9a4QNSMHrSYC8q1DM8pJmst1TiRGzY4JElGNk947dr7TinGhNWp uMaqpfEmdyRaxHOuBb1obp+R28dRDPwJdWaCvF2pscbnjLPFamr1LdiypvOoCdM9DJvS XnxWBXI5nXZr0t+j7KVlbd44Bh3pvwM3vDewf7liwNSoESStvuMaBahNzycd5/SqsNn7 CYEQ== X-Gm-Message-State: AOJu0Yxn867WjR0X6Xh1no+OEv4er8fMNaSm95a84oHVLqb1w2GQAisQ yg9P1YI919yNPDZDlxulib9qsz0yU+XROFKJ0mtxuSPFo85ax5aEj1l5Wzt0L/FjVOMh52ZC75V 5 X-Google-Smtp-Source: AGHT+IEpGL0icYKX5PllIZgbV1Mq6iO6Y/RuUgEtp3MC4j1Ev8qC7MXxnxmDdDqSPdZgQAG312G2Gw== X-Received: by 2002:a54:4390:0:b0:3c7:3cc:4401 with SMTP id u16-20020a544390000000b003c703cc4401mr8064441oiv.7.1713240745725; Mon, 15 Apr 2024 21:12:25 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id z184-20020a6265c1000000b006ed4c430acesm8383149pfb.40.2024.04.15.21.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:12:25 -0700 (PDT) From: Charlie Jenkins Date: Mon, 15 Apr 2024 21:12:12 -0700 Subject: [PATCH v2 15/17] riscv: hwprobe: Document vendor extensions and xtheadvector extension MIME-Version: 1.0 Message-Id: <20240415-dev-charlie-support_thead_vector_6_9-v2-15-c7d68c603268@rivosinc.com> References: <20240415-dev-charlie-support_thead_vector_6_9-v2-0-c7d68c603268@rivosinc.com> In-Reply-To: <20240415-dev-charlie-support_thead_vector_6_9-v2-0-c7d68c603268@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Evan Green , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Jonathan Corbet , Shuah Khan Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713240719; l=1314; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=t4tv2YhM1MolJnYPmx3+B/R7xn5gYh3VtunEyUIwVAA=; b=isB07n2asLeicajFbrHS5GnX4um2GcfRqCBHqey15g9iSFo/KLBAvZbTXNNNocDL8sTcHkD1Q aTAEer5hj04ApIn92eDCW6p8HyqISrXjQ4yzyupIXZOWTr+byO/qdow X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240415_211232_038863_B229F148 X-CRM114-Status: UNSURE ( 9.63 ) 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 Document support for vendor extensions using the key RISCV_HWPROBE_KEY_VENDOR_EXT_0 and xtheadvector extension using the key RISCV_ISA_VENDOR_EXT_XTHEADVECTOR. Signed-off-by: Charlie Jenkins --- Documentation/arch/riscv/hwprobe.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst index b2bcc9eed9aa..38e1b0c7c38c 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -210,3 +210,15 @@ The following keys are defined: * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which represents the size of the Zicboz block in bytes. + +* :c:macro:`RISCV_HWPROBE_KEY_VENDOR_EXT_0`: A bitmask containing the vendor + extensions that are compatible with the + :c:macro:`RISCV_HWPROBE_BASE_BEHAVIOR_IMA`: base system behavior. A set of + CPUs is only compatible with a vendor extension if all CPUs in the set have + the same mvendorid and support the extension. + + * T-HEAD + + * :c:macro:`RISCV_ISA_VENDOR_EXT_XTHEADVECTOR`: The xtheadvector vendor + extension is supported in the T-Head ISA extensions spec starting from + commit a18c801634 ("Add T-Head VECTOR vendor extension. ").