From patchwork Fri May 3 18:18:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13653384 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 353D2C4345F for ; Fri, 3 May 2024 19:31:54 +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=Z6dwJujD1zBXbRDQhaqikn1uDMIh9VjtUTWWGcORupI=; b=NblEUA44ilAtZI bpXkvVDrFMjcHHs/YHW00wMl1+MdhVhcosZNVvFvEfma2DBycH2bh8PoCOQqB9BnsgrFmJxewc98z jnnJmOT61E5QNg2QJq7WZITiADEA1RO1pegOXI3nRZRYlphvx1fIawqUmHzvem75Qt2iHH7TXgGlI xiP20yVayU1y9Z04CaNZdE3WRAq1uUJ60AbuSIpP2KpWdXrFlweyM2qjhymHYJj9rIpoe0SvanjYU zRd28Rvr8ui9M8BRqVufDshl0sWZu6HVsTt7GL2LyPiGyQJLxgVW/wOHjYFaCtsKhkvvZAlsVbnqG W5ImaRBq0le4kOtyp8gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2ydB-00000000Aou-0tbl; Fri, 03 May 2024 19:31:41 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2xV9-0000000HXDg-24mI for linux-arm-kernel@bombadil.infradead.org; Fri, 03 May 2024 18:19:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; b=orSmdA6xvUmzMyo5OSpjZi4zBV mDwHC7U4UxO2YtFcqS/Np51Th3annDnPs63IhyxTKk4p35PpsWu6V+EJiM/e1Pp2klSsLmdbIrFGw CG+82jQNSfJxGeAtYWq9qt29A3U5PkZuBhhjrhEOL1/RZBVWihSunPiID9HYkS4IEVJBq1hffpCRq EM+6RH1EW45lTvs/u1P2KDjBuNvoLko3kU13JUTsIJhDPHg5UpAINqo1wNdADKV0SUaT+cnsSflL3 16K+tos8+DHnPOtuaswUqNVzHN3LZ8mgSXqkV9obANUoCxCkhwkuXGgJCZhcUEDYMB1IebSFpvRAO 70gc9koA==; Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2xV6-00000000dws-0OaX for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2024 18:19:18 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6edc61d0ff6so1976b3a.2 for ; Fri, 03 May 2024 11:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714760354; x=1715365154; 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=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; b=jVy2D3kfaPnRPuIBWWZqkgT2Q1XcqZWLdmjAIH/JrDrn2hG5Tnndz5CS8ALf7csIvp xkrmvxFnpcVtZiGtLAthoyIqDxZhwTCvE2LzVveADY+v3Y3gt9b4CKpTTE33whcvF8hB PA19yp5oTyxryIOcfS7xub5h5pOd28q7HWe6iBGI+cPhXm1PMZ5IraWMLujqE2zGXWFj 9dHei7KnMCBjz1pf7cDlvLh2dxksbGKNrELsJLUL8djkgdQr3ZvvjghEBhAR9eDant0l aNowt/Isz38dnmC1Y1Hs/C3MDHjRlkHCE97a+p5STVuuaumgTlTc5LrKdtqnGQtTdOg6 I0yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714760354; x=1715365154; 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=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; b=WngH+0Erwj0i2rqqloPXaaAJVeHJnQgJBErvI0KxnBAkBDHciwOMDNi4vuvboxyqVj ELlcP4PlzRrq7egzFFkGIpejmH/EKri5JhBIk4ojfZDN8BKla8qQC6HMF4rmv+CNKWGH Mf/0rrHAghcfM4pKv9gcybAIOIC6uqZgjp5qI5mmvgWAk25Yg+4S7l9njqR02fLmTUl3 4QRyjmK7MLxwni2PoR0ZFQ70EJjay/FCqPVU3kONotFTRc70Id2S0myiYMvjBgZyHdcP OcPLlABlfK1JVCirdOnkiL4ICNV16yM57JMyr+MrMqoHZAylq4T/22iX5kA2FPn8AVgB WYKw== X-Forwarded-Encrypted: i=1; AJvYcCX+MFMl/xYkWe1oGr6N4RbNVJSEJrzHR9GkbXwJ6UgEpDchGDv1vEuCIad3VF0bbB9iXkXl2PUmMy8HFGT4KFuTxtz5mYqcKzdUNQYUekCqaJSTMMg= X-Gm-Message-State: AOJu0Yy1LbFKmwMBI0qG6C3XzXJX8H4Dw1k0t6oNw0sP4eZvlgajlo9+ +IhCRce4m8W10zlQRObnbdJEZDbX0n5JMIg+StAAxIXiloaHAc3/DgJo3Y6ceBc= X-Google-Smtp-Source: AGHT+IEDiBdqfsXvGEcow+/xXhFzmm8QJToAgACIY7pUp3n7rDHD0x7GsayE074DmQ273Ns6HlLwYg== X-Received: by 2002:a05:6a20:320e:b0:1af:6fe9:5039 with SMTP id hl14-20020a056a20320e00b001af6fe95039mr3721586pzc.1.1714760354553; Fri, 03 May 2024 11:19:14 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id fu6-20020a056a00610600b006f3f5d3595fsm3355421pfb.80.2024.05.03.11.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:19:13 -0700 (PDT) From: Charlie Jenkins Date: Fri, 03 May 2024 11:18:30 -0700 Subject: [PATCH v6 15/17] riscv: hwprobe: Document thead vendor extensions and xtheadvector extension MIME-Version: 1.0 Message-Id: <20240503-dev-charlie-support_thead_vector_6_9-v6-15-cb7624e65d82@rivosinc.com> References: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@rivosinc.com> In-Reply-To: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@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=1714760319; l=1250; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=CUBdyiNhoSP4ACo+iTYp6MRGKjg8W3HE2pVBTFyz0Ws=; b=LJgbuLGSxVyIdCFiPOjJ4kcjKkqUizdoh8dgNf3DO8NV0Ma7wpUEikvJ7F3hAU0AjgkpzXZDh YRf+T8Yp8P4A58deAYlr+lbGFAdB7N8Y0VqXB0uIqrC2OQnnArji8iw 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-20240503_191916_456737_1A37B0E9 X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Document support for thead vendor extensions using the key RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0 and xtheadvector extension using the key RISCV_HWPROBE_VENDOR_EXT_XTHEADVECTOR. Signed-off-by: Charlie Jenkins Reviewed-by: Evan Green --- Documentation/arch/riscv/hwprobe.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst index b2bcc9eed9aa..b2bb305140aa 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -210,3 +210,13 @@ 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_THEAD_0`: A bitmask containing the + thead vendor extensions that are compatible with the + :c:macro:`RISCV_HWPROBE_BASE_BEHAVIOR_IMA`: base system behavior. + + * T-HEAD + + * :c:macro:`RISCV_HWPROBE_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. ").