Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp213619lqn; Thu, 11 Apr 2024 21:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjzI/v196VXuakF0Hi26H09X0XfcPni1c/SWSy8Sf9ah4BolfcIzAPvYle7+mANEPbLj3GP6ZUL5wMdkiuEeWoRA6JPKvRggVIVQCo4g== X-Google-Smtp-Source: AGHT+IF53DCpJ+356SKe8g/88Pd8cNbDlPD+v3gzJpR8wpA9dMHNZ1HHwouv1ElPXKu8GEuVF8Ae X-Received: by 2002:a05:622a:253:b0:431:5b91:c1dc with SMTP id c19-20020a05622a025300b004315b91c1dcmr1803459qtx.67.1712895350047; Thu, 11 Apr 2024 21:15:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712895350; cv=pass; d=google.com; s=arc-20160816; b=z9LFbhGkbbwrSC8mquj3Epoa5aEQKaPvJHtNd8TjAVbEbJSTh30ePtKsaa6oJJRPQv Kq2Ot3e85RfnKTXLakm5UZEx/35GN6Ws0vnwRW+QcwX9fnv93MSm9jEuv33tOv3/2w3y KsA0DG88NXhyslM5XUHes+mp+KCoY0wNKwNbvfmXJcrgxWzkLWXsTEd1L/TP1WPm0nQV J28qNiZKC/wWf7GhyPY6t6QXSCwdm+J8iATsvo7beZ0v3CML5GvkYe5cdhQmHbhnDL9+ Tk6g4uedOpwUUIjgHbRfxVGHv9xr69DM2d9r217R/G5p3hmvTThrBdZqqImdmzIHoC8Q QB/A== 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=+fcxOS1BtA72+5TzX86PKsriVuHXYRbBuYCb2VOeKqI=; b=TzbqRTpS9VvdEh1jZfmHuWoXUELaHGg7eV7Q/ORBW/kUpQGW6MRW4//FLTd3rV2t5L o445Kn6jSQiOdoN+0Vc+WmZz67lk3t6bvrG94uWCP87LY8q56ha45GIuuyCK247bYxYG OPlq2b32j5XHtmoeI36oiKT7v4uKfvstd2eWB6iAQJCSB3H1cAPKQa3Xbmt237lR3sBg Co9at/RRF3JjTq5o++L1KpJNxzIunfEq5oQ1D336waFEWZhSGqqI4cBNJM8Ms414YV4E 4SPvUkadneax5kzfsDiX+ZMIYCyhlTulnhhBwgX18H+PzCrNGTv249qsPDVVdWQ6h/nU NFcg==; 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=ZISooI+9; 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-141906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141906-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 c10-20020ac85a8a000000b004315f5a26a9si2944309qtc.661.2024.04.11.21.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141906-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=ZISooI+9; 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-141906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141906-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 C381A1C21C55 for ; Fri, 12 Apr 2024 04:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8509651C4B; Fri, 12 Apr 2024 04:12:06 +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="ZISooI+9" Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 3D3AF51012 for ; Fri, 12 Apr 2024 04:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895125; cv=none; b=sTyy73PJX4F9mJGStJqzRrGbGzYMF0gf3/DHXpOHwdKSaOlVolgF02bIaZbv+51RYgBpjV67aLsx/diBGIRE29+gO9XZkbxIslQe2LgU0pctCtyUNmGGFY0DRpNwjDpRGqnjkgsGb/sbloZ8E9v9GI0kCpLkLvNyp+zJ+/HMyu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895125; c=relaxed/simple; bh=t4tv2YhM1MolJnYPmx3+B/R7xn5gYh3VtunEyUIwVAA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jmp1Qx6QkGHgBtHEGiXZokesrX/Md0+oNNwpquE8b+dwkMdDInp63ZFivME4sEo8miuOpRAgfh02aROKVtQ+mChcXMXx1dJdBVobEKAJGK7xh/c7J0FcmDYAwy+O/RL7LUOcHhGNJ5BEzKyXBENIuOnqxK7OY5ocl1pit+DwwcA= 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=ZISooI+9; arc=none smtp.client-ip=209.85.160.43 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-oa1-f43.google.com with SMTP id 586e51a60fabf-229661f57cbso305418fac.1 for ; Thu, 11 Apr 2024 21:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712895123; x=1713499923; 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=ZISooI+9H3XrQMnSFsNGyYxCYwkyHqWLSlKk0inJw5dg4gmgFGeFLalMiuN4kFtzuW 0zpnEjBp+rXABbPI68S8b+ZMRFWP17wUKkSFBTTy4Dcdr1mW6j8kNu/jn/t7hHmsuThI Vnf2lBd+zG8iT7ad1limGzBu1TF3UJGX7miH7aB5uyoQsFxf28uYWa5t6MGMz3Mo8wOm OEfACBtjuw6H+Y4TQYpjPt+FnGye99NY460M+yowa/HbIGnHq6KKdyrJhXYwKEqzB9Sq 9X+mV+YgLPAjeKVir9foBsUskr/Oow3fzgFbosjkiCF5zWVAMUDulB5Ub7g5c4V3Yb0R nEUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712895123; x=1713499923; 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=Uxp9BCUammpRfhmRwPAuyGJCay9FDNkaHyGmmfWKVuQHqcMx8fSW5roj3CvASyLbs/ hSVqMcL6yflLfS5iAXnydc3DsWpdsax0sPDqDtKHXQ18IGC1K941fj1Jxgjbv7fUbeYn vSynF9kwU4kGRKiLLOLpSu7SUV65jHlnXBIn5b4R4711cX61bFNFg5UgjFDkX245FPGC fzsriDEXfmmxWRnEBhW4taVzREnU+43YdJgVJBg1DxsTNCbpdj6rUdm3G5Bdph4hSBnp PJtiNgYU0tHykrU5E/3Ov203qTs0WEbqfiTEc3kXMSPkGchHRunhHO3FhfkuL7MfBdhA tRAg== X-Forwarded-Encrypted: i=1; AJvYcCU25IF0sniVb89+9423NZLxrzyXt5/6Cqc5bBxCU0KgML24zdRQTJODNqqwA6YBeyTuqbC9PolgsRlP5DmzQbi/Nd6mJB+1FxEbOvTS X-Gm-Message-State: AOJu0Ywh1qElPOgER0roUrgDxzfKb+Iw82w2FuXfPEO9NaD0lij3keM2 H4qFjHzl840Ozu9VQ+bi2aGLyPHoRKyv7dFTceFLilw9XCV25tG6vNJFheT2Jgc= X-Received: by 2002:a05:6871:5314:b0:221:8a03:6de7 with SMTP id hx20-20020a056871531400b002218a036de7mr1825489oac.32.1712895123342; Thu, 11 Apr 2024 21:12:03 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id ka13-20020a056a00938d00b006e57247f4e5sm1949712pfb.8.2024.04.11.21.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:12:02 -0700 (PDT) From: Charlie Jenkins Date: Thu, 11 Apr 2024 21:11:23 -0700 Subject: [PATCH 17/19] 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: <20240411-dev-charlie-support_thead_vector_6_9-v1-17-4af9815ec746@rivosinc.com> References: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> In-Reply-To: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@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=1712895091; l=1314; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=t4tv2YhM1MolJnYPmx3+B/R7xn5gYh3VtunEyUIwVAA=; b=Z4LgpsK6Y6OJvIVl61GAR3j9FIxHWvGkBhRPZ4DETyx4FdNnrNJAGGqYj86rnsakgjClK/luR oXhBD/8IaVzDn2iAyaUVP0kpGgWHWoI+hy4jtykxh3ZbjrZ13vpa8kd 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