Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1565323lqm; Thu, 2 May 2024 21:51:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUZPwmXjDqVO77WpvBqFLUKBwqSZH1hOosbgDgrZc7lBW/D6qJX9/mSl+lSx1+p0sSZinXsL9W5BIUJpcpvKyUyt77vD/i7qXTQk3rhg== X-Google-Smtp-Source: AGHT+IHIWeTqKEA8N8oA6x3W+DnzqW3oJ2i94wiyLEHuNINRZD2BMWWQ5mZZnaHoXzPbFeTrtd+v X-Received: by 2002:a05:622a:d:b0:43c:60ba:81ab with SMTP id x13-20020a05622a000d00b0043c60ba81abmr1744536qtw.28.1714711873371; Thu, 02 May 2024 21:51:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714711873; cv=pass; d=google.com; s=arc-20160816; b=chLkjQIAvrtUJSUZ9nBFfyhl+JMU9OwZABzDEJC09ivj+D1jctu3yk7AwJAPRE+cyA +2Q4v8Vb7p1sU8eAGbV9vehCurLa+V8fUdB+8NRJgQZJIlP5dcZxe4837iboJFQZPgyU DreXjfcRKPtcXfM3x1G+sXKzaWTArMRHHwSY5Z30Ne/1wx5z1H7cSjbSEwjaGWvkoBzm SHwqbFOMEAKU2G3FhpPMueHiBcVT9OxfrqAHyVoKgsQ1arf90GFohJtZzc+2/7vl4Um6 exNEmmv5+k0G7R5HLWVasLiVPJZm+uHFJmlI4j2zXdIGncFhMFQ8zMvu7Qzvn8TRONO+ +vww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=X3SjbYRlfVLcKXzSMNjYRrKo8hPdxAu3bA3GNGrI0mQ=; fh=px9R1DIn6E/pmKhnVa+XsRNA53DhCse04/sg0WSyMUQ=; b=c6hR/HIklgT+veYs5oc/VJpMnMjHaelhAahTZ2fM1lsNqx/s5M9tauidMVOmXKup8q HJzSEr+traehSwRZbpEYkhzWBR5MXRtKHUFBJVsmO/0R1q/NchP72kMIyl99XeInU2X4 /yjeCcagVnDX1uJt3c6M5zuNQd6q9AbofVxsrEihI1GKOQgZXLwModNcuoJyOQhuE9To N4oRssUxWs+4rzvpmv6k8bbJW8DM/nAJzIzZi/hFK1nRsUNyN1fBG8zvv9Pxu9TLRWMp pc1nNSpSVDJp8CbwRGa92n5+aR1wJBhpHmlGeFiFIBu4HC7ORgPh8bfQBq9hQGe4qtTW Rb3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=osLlR5bj; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-167246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167246-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020ac8584d000000b0043c5cc60900si2601815qth.317.2024.05.02.21.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 21:51:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=osLlR5bj; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-167246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167246-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1C6F71C21283 for ; Fri, 3 May 2024 04:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB5D813C9D3; Fri, 3 May 2024 04:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="osLlR5bj" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA9E913C9A2 for ; Fri, 3 May 2024 04:47:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714711638; cv=none; b=VZhiuyxNustbcKY5kxEOMJvE59qy3AlbDcJNL16eyVSHgR/TT5LywzU3cN+dvlbWxzlH6s7xC2xCOwmmmEKnL9hFbDzmxNOic6ywKuth1Pp8kNWVFruFn3rf3QjlhEap2OhssYRfzuKosOlA2a1kik4m0JfbjVeCTyJ/CFZB7Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714711638; c=relaxed/simple; bh=VVos6nAzmHOy7EOA1ppaqJ4Dx+U57WxCTD6XuCvS0Gs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aq0ilIxNGwNBauVC5kmf0nmaQkMKfN0rore4Hkq/9XYYZUTbdWL9b+6ffiQGsU2nPbUfKjJjjSz0Gtrr/krwsdY1O/4iyTXSf3u5ozKthOt8jS7B7vahcNFwseLnAPm/JTOKE7JGC7Y3WwG1Lgz40vvhhU4KTJFRlzehHUQiU90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=osLlR5bj; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1ecd3867556so17298575ad.0 for ; Thu, 02 May 2024 21:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714711636; x=1715316436; darn=vger.kernel.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=X3SjbYRlfVLcKXzSMNjYRrKo8hPdxAu3bA3GNGrI0mQ=; b=osLlR5bjV8se4xC41aJcjcabDbsnc1Dt8k1cKHqSrJvzXZpRYSHu7FE0Wr1Gl5Ud1K 9XJLm64ZfCWeKdsSjTT6Z/uqeEqPo214gVy/b/oSBeQQaZ1SvuG+I2Gure9TY/NDCzc4 1yrnxsnZFKzDJsuRPPyRi3/yRctkNJHmYRcOFHFcPcpro1O6WXi4X6wdFCi1nKrLpsWn +2kRHhAuUsm1wOndhj6IYbqbtwk7tOdEpmdxGf5/d4wc3tcDGYNo0DVUg5J+FZpZbZIZ TNu5BJUNFb6m2LSkv/e7Vj3NSkLJNKbLEQv9TUQPDIF81wXCEiY8d/P/vLOwnI1RMQd6 SKsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714711636; x=1715316436; 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=X3SjbYRlfVLcKXzSMNjYRrKo8hPdxAu3bA3GNGrI0mQ=; b=cO6KQ5I9UA46odhtE76GNYOfXye4JPowIuejzqhVUSLSEnEsmMrPygX4HsLZAJoldE 9XqA3SMofuZcVTwNq/XQbV9IuvSsALfs+LUy+e2EvihEsW8Ghn8H2Ulyqs+Hs4beBcW4 qyIV9rGykyt1zceMdswIfZhfiQwe9FOKM83BqFp2vm7joNIkeSB8jVX+dyzdJNfW+Ma/ YqqkEUfxFhdILyciasEBlioaJGE6Bdnadxbhp5XqGiEne7D2LyJCiWTpOO0nMC/fZrBa syRYYApzqDCNKQgeTFeeYmayUQ+kOMpHMuXcYKf5aMD5/PH7Ze49kXWl3VHqVX/Tmm8T 835g== X-Forwarded-Encrypted: i=1; AJvYcCW0bjFaJxgGZ4Z0KZCBlM43XM/KJHyonrLj3bDmY3nEZIDAKY23h9OvLkIWTS0BT9xZ9GxCoc/uvtAQESkjk0kJ/qO4FuQ5j56zVwsT X-Gm-Message-State: AOJu0YyOg0Q2tAOMFpaJ/ZW9Lgb8wrsNwrucqzNnNJks3pjdmTME2MVJ wXLM9oRaEnirtOnvErvpHaogGpt8LuTtjaaRxTUTyqbTI7jcACQdeyADLyTGEl0= X-Received: by 2002:a17:902:d484:b0:1e7:d482:9e09 with SMTP id c4-20020a170902d48400b001e7d4829e09mr2156048plg.7.1714711636126; Thu, 02 May 2024 21:47:16 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id e8-20020a17090301c800b001e2bb03893dsm2240411plh.198.2024.05.02.21.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 21:47:15 -0700 (PDT) From: Charlie Jenkins Date: Thu, 02 May 2024 21:46:50 -0700 Subject: [PATCH v5 15/17] riscv: hwprobe: Document thead vendor extensions and xtheadvector extension Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240502-dev-charlie-support_thead_vector_6_9-v5-15-d1b5c013a966@rivosinc.com> References: <20240502-dev-charlie-support_thead_vector_6_9-v5-0-d1b5c013a966@rivosinc.com> In-Reply-To: <20240502-dev-charlie-support_thead_vector_6_9-v5-0-d1b5c013a966@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?q?Cl=C3=A9ment_L=C3=A9ger?= , 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=1714711602; l=1205; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=VVos6nAzmHOy7EOA1ppaqJ4Dx+U57WxCTD6XuCvS0Gs=; b=6na65VRDMTnnCy/+6CqiPA9pKtnlM1Q98D2vcAEWM2LB61+5gCXnut4ekMn7J31diUbqo7FHE zcnD9r7WgrtBVI5ezwnTpIeMoEFwFXIDsE30Dn+rGlOO0XYaU2+kgye X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= 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 --- 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. "). -- 2.44.0