Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1834198lqp; Mon, 15 Apr 2024 21:15:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzCeKuGbOQ2x1utGuhgejC3Ci5Y3PphVcLWLiw+MveaBzIyBka4q1GWE+LcW9cijJwBIR1+DjJYKXHp3seusbpE1BVUSM7S5fHw83+2w== X-Google-Smtp-Source: AGHT+IFyyFvPYkk3VyhHb+sBmZRuFXnIEfqliUzvvPfd8g19D8eKoRDoT7c1yVERs17CI3LwlK0K X-Received: by 2002:a0c:e88b:0:b0:69b:1755:a545 with SMTP id b11-20020a0ce88b000000b0069b1755a545mr13088345qvo.61.1713240937345; Mon, 15 Apr 2024 21:15:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713240937; cv=pass; d=google.com; s=arc-20160816; b=LZD28ISaxZO8B5PdUnBjLRlw0ualedtGZ5FiQLguUgqb0xlaptNYnm6niGVqBziG3i ok5RbkYM2fOdjvss/kNPV+yHBXtA8wdChZhHuzURPseqLuJzlwi3zAUu/zBhKlQBIN7Z qcW2WgrrNjKJ01+Ycs+P6O0ksczu+/O2uVHSuiJ84wXAiaaXZcHkkVIFAg4djbtbWjf+ Nm88enKv+WGNzCpNFM2QAKzSx5twvj7U/v9H2iyYEb1gXvxtWagzfT1mcsuu4RzYaeRB Dj+abHP6UmJUthkq4RHb+7sLgCyBoenZ2838h/IugktvhltVTyLnWnoJInF4gjSVDTsS 2+EA== 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=sCqKMMvpjdMx8mqL5GwN/rt+g7kii5wG+xB+75rraRY=; fh=pF+x75ucaj9IgGhJh/Quv4HcZQk60cxxrzFn1Zf1ZxY=; b=h7G+OrORG7Zb08NrO+ZSdRkEKiDXfxPcJ6Km9pC0E8ni4h4vzzshUGbmqEwuUAzSV3 atD7dvpjVzD+0u8QJepofsSv7AyZht827DTLIwVzonhTGIxXyZjAWnYINFP2aDKB8IKJ 5TKt86tJUXHraYHA1ALVYmFFxltbxZ0Y39Z1wP5AstsDEcJCif4lrs6B3LxT2WRUd3t+ qLiuEpAODrlxQhtcRRNxg93igbf2B1NpdnPyzz8HoefeUx4hwEzPFoeoLf0E/MT3LOQ/ QV5rLJOiVLQdNFZ+TzmT4hSKIdzH+uFmtfvsl9pYEhIrs9wCUTk3CFAAYvtOT5Mcg4Jn SMeA==; 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=HNFSeinA; 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-146217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146217-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 b8-20020a056214002800b0069b810bc944si2728932qvr.63.2024.04.15.21.15.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146217-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=HNFSeinA; 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-146217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146217-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 18ABE1C20E05 for ; Tue, 16 Apr 2024 04:15:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07F7315AAA2; Tue, 16 Apr 2024 04:12:29 +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="HNFSeinA" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 8E15F381BD for ; Tue, 16 Apr 2024 04:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713240748; cv=none; b=D5geIrOlANv0g76jOl9VSBP7NJv+BpN4+U5cNBCUCeRiFjbv+OluGbvUS9RQlRyN8CWEqdb/vISYhN/WVG7ElPKjbbHtSz/6Qo6t6i+/bhvYxJnuIW3iKem7Gb77bJVLD31Z6hP1QghLKq9VKf0b7Mld+MlA763VI7bFpwlDnuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713240748; c=relaxed/simple; bh=t4tv2YhM1MolJnYPmx3+B/R7xn5gYh3VtunEyUIwVAA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bs5LlpUrMlvIImibzaUjGXqksptjCS7Vv0dgLrEuLJNzzENh2ueXIO/T0Fbe1slNw/7yzoFCY+OyQ+MbBiOdZjKpx2tcFwGv4U8rPSAL3OOmTlxOF5Yh8lTgitBrobRl5i8zX0xms4JBPSJ0oAogNgFrgfVdPvZzb8fbqswtJbc= 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=HNFSeinA; arc=none smtp.client-ip=209.85.167.176 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-oi1-f176.google.com with SMTP id 5614622812f47-3c6f6c5bc37so1761334b6e.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=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=sCqKMMvpjdMx8mqL5GwN/rt+g7kii5wG+xB+75rraRY=; b=HNFSeinAdvGD34PIcO82wpIXzRhEzgD86k+NLmNla08rb8Vd0XsMrgp3315LcrBvus hslmNEDiwcpktcJCXmvWgvrcYFUQK9zn6G1UpywiCGTrtn2oJr23lLFN8nLxYqz8Ha7S H0zB9pc6y5j7gDsgrsTQ0Ne2+YcD8kNetmppNqievHySoMtaDXS9JhdRJpL7xCja9EJc 5ta1gB9IutXowzmP91xuDSkXdnX/apl6hXEdepvElzXYWZ/LIoNmR5o1qnwa4G/xht2W duLn09YY+PhJHowgdhoqD8unlWq66dmd8t4vNn7Q49P4iblXEglkWUhih3asmddAWU2v J7KA== 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=ByoqHEfdYCvI915py0XeZvB0QfUGsTJf3MftrG+B7B9R6TFsUA2z/MhBWo/U1yfJwX aDiiroEaduNq0NQyk4GxZFS/jHX1Cj+CI+4naWQJuBbO8KBbbgzq8i2nC/0LtexcKq6l YKvfoYOdhu35mJiGQizAdl3ArFb73jtOc5nRsZV/Q7XDJrdtyEipxYTPSEWwFGr1hCaA KvRyKClns317PMnyL7fJavbR4uJ/0mDkdHWaNMCS5j+XPwQ8OG0XIIxXb/C+3xDO9RCe lzxR6GGYnu0SfwzZX4DbIKmWcwtJFtAQBr3T/nwU7HTu1JXi35iTP+9DOgcp1PeVnAwo sn8A== X-Forwarded-Encrypted: i=1; AJvYcCXbv4VyntOnFbvysc46RyrYU3FELGs2CYW4rYzt1+Cgclh0snCYbkUDen2sw7ZH/8g5l9I98wZOqMMqbWD7T1y3P8ryubF9J1YcN0R4 X-Gm-Message-State: AOJu0Yy8eahSm2SssMUqF6e632EaVxwxPx+U/0DhTkRvIJuTrwCKWloK LTw2ZErAhFNri6xTFW0mIacG7DN6l95kBMUtMJMylwcI7faTIZXO3ATsgijlIkc= 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 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: <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?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=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= 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. "). -- 2.44.0