Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp7566lqp; Mon, 10 Jun 2024 16:01:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCReVdcH+l4VbWCzriEjQiAO4mHD8gpgY/+SCZOdrhzGjrAIFp9tMtmi6z/lBwNU7aAQlUYCEAKlt0I5CKPN8muonOe+ryMOFwXyUojw== X-Google-Smtp-Source: AGHT+IFzVtVDOPQ/DcW5RTEzaT9ZjsKDi2yk/ywkPHFvaVCEDNxkyzsVEMQTCZ5g9rXDj3OgzE2K X-Received: by 2002:a05:6a20:7486:b0:1b7:bdb3:7bb7 with SMTP id adf61e73a8af0-1b7bdb38528mr3803248637.35.1718060518518; Mon, 10 Jun 2024 16:01:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718060518; cv=pass; d=google.com; s=arc-20160816; b=kNDkbW0Jrd1IZnSqMO0XZH2FjNsr8mO53YC2Ch0Y/aKVQ7NKBq1cBl8qlhGlzUk+Xj /x1mS2/kxyFvIZNHwxY0bVvx/EP5OKdo1DVcTRhbu04MMgzz/5AG0L9qAFaN1Fm4YZYm 9xaecaZmkG/m2yeEC7NtRg+vakG4Xq5WF+qY88mdgLyY8rTInqyEmfNU0/cmp1cJ6ml4 sYWHWXUwQZayVUBgLQ8rT04GOCK+kdeD2hGSiOEdg3Avg1G/3Gh+aqVOJv/5/zmwtuC9 V8Y7KsP1VRxH+2M3a7ikuV6wrBNMP4SFYg3qA2FBQGpTmBQcEW2tL5yJ4q+rzr5xNLFD U53w== 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=r8BieCexzaDREgF6SB/4DhCje3SwtC4a6MLqQwsxjuQ=; fh=KcjdLKZrcZGbrkE54iOO3Ti+vuj1n5pfFYNJSKMbTVE=; b=WKmdpmJ088QtbWlSrvIB+jszGo/68LW7zaupaYuKwmsgUvgTG0yK9pQsMzaE02Woc+ cSX40KtobRq6jtM2Khl9DB0pTbasCiAD1c6XeRqrtjmKxEcH70IFcvmVkO0JKmc0/7Bp R08hvwtBGlmtQCFowNWv5wpJnRYeSdC+Ap9HWWpLRptJlgYVbGQanm3fVZQ++BE3Knoo hRR+Rde9iUQNOZkO4gd46uqGuFPSdMTpwIeG+MgseIHQZ2jMWWpU9ngRzlXA+dVXSueC jCItE1o8LbWagWEXVKkE9yiy2tqvw/qqZvr5FdXlffUsUEuvnJsFPwRtc7Iv9CklEjXK Hjpg==; 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=1scedvKx; 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-209032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209032-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de20831e99si8620497a12.171.2024.06.10.16.01.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 16:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=1scedvKx; 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-209032-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209032-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C5301B233F3 for ; Mon, 10 Jun 2024 22:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBB85155CB9; Mon, 10 Jun 2024 22:57:12 +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="1scedvKx" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.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 43CE3155C9D for ; Mon, 10 Jun 2024 22:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718060231; cv=none; b=UxCkQ2nLedeSs2ya5eacSWlyLwJetxF5odQZ1qsaJrmeVr273+lzXYp1FaCyaVYyoJw6QzLsoj3luNaNztZ7OaxRn7NNBe7LC9yBreBxLsqha6hO/oeWeFUlSvQXyniF4FVDkn8tPsNiNfCXA8BB6QHc/kbgtwVbSPq4NCv8UiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718060231; c=relaxed/simple; bh=FGQxjkKFg6ikcL755lFMFBnsaceTJTK90HJM8u9R8ek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ozLW+Np+IHfSnXtiqIjVFJxesLQJNIByR1WzfZZfm7vF4m2NpX+vJFrVJaFvVgTMCNDT+w++8X2+cEoBYSrkHv4pS1A5zc/kF/Lhq1FHWNfvoTfAhMZu5n0vcq4h6tRwYNlp1W1EoYy18vXgtOhw247LQwAlzd2S1i70xx9HJHk= 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=1scedvKx; arc=none smtp.client-ip=209.85.214.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-pl1-f176.google.com with SMTP id d9443c01a7336-1f480624d0fso3221755ad.1 for ; Mon, 10 Jun 2024 15:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718060229; x=1718665029; 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=r8BieCexzaDREgF6SB/4DhCje3SwtC4a6MLqQwsxjuQ=; b=1scedvKxTdHiiss+F3cNNIhMUJRLNoojiDHSorPQAVOgpkXAbDiGgMBsd57cmPAnml b9XUVjR4YxcfgmUZp2X3mMgajDl9dqSbEu8DKAmMMbZdMbzF+f3dYgOnbju4bHl6QOb6 uA3l2Al2KnWe+LLcUweppGxUSnR11YaRTAm/RrYH4MfD6HePTrhbwOdtu+PvaUDcRMVy as5pYFYxNB0ndNVuy5l9a6h5NrlwF2QS5svse0lHQhpU5lEuNS9jXUGpM0and1e+r9HN omw+7bEMZhtAv6qga8b6EZKT7K9Cf7TCfVmJPQ7kQ1ZnGfx2qou/9/CpKFw+scjxoTDe BvIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718060229; x=1718665029; 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=r8BieCexzaDREgF6SB/4DhCje3SwtC4a6MLqQwsxjuQ=; b=wO5dCS7nOfFdhIpktwQSo4vjztRtSDaIQIDfAwo6Ou3M2c9JXRefgSW8Ba2mJ3+1s3 78hhOHHRc9FwE1FVRNOzQbe0icn/EPWFmaSMKl0PHY1RNNLp0jX8Ch/5c4ejcn31+wUz zZEDjgtwv05vBaz+f3wpTmtjAVKoID4CFp3TK+lhZhDcmOrMsO0pvwifPVdnblIJFgqe P6Km43TxG3ut0EcADrUKYKDJ21w9fgHCK8IMWFR/BOlvKtHE9iPoKKI8i2fkLGBYx1CM EK0A3JgyUWVJ9A0PVMJ5koUUy9e+KpOArmBR9Y5RM4EJPKpg5uxm9Ii/yWBDh20++uK3 ijtA== X-Forwarded-Encrypted: i=1; AJvYcCXu3RXMnNvz/GnCvwLqpjssh+KfMcmUON7uu/ckREFRcyoG7Q+DBFM1BcjhTcKmpytMeerjTnfw82laot6/eD3h4DkqNhiV+PJW655o X-Gm-Message-State: AOJu0YyslvVbgUKorewNBPvvGeHiWcnI5gvYjm4GSQQI1VG539JPdrQD vejNugZJZ5iA0ulgGWDT8xVEdMN79vXSVbAz2tA+9D/F/JC/qC+Q6LSHD9XTpbs= X-Received: by 2002:a17:902:cf04:b0:1f7:26f:9185 with SMTP id d9443c01a7336-1f7026f932dmr68716645ad.10.1718060229608; Mon, 10 Jun 2024 15:57:09 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f71b597072sm18355865ad.99.2024.06.10.15.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 15:57:08 -0700 (PDT) From: Charlie Jenkins Date: Mon, 10 Jun 2024 15:56:48 -0700 Subject: [PATCH v2 11/13] 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: <20240610-xtheadvector-v2-11-97a48613ad64@rivosinc.com> References: <20240610-xtheadvector-v2-0-97a48613ad64@rivosinc.com> In-Reply-To: <20240610-xtheadvector-v2-0-97a48613ad64@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jonathan Corbet , Shuah Khan , Guo Ren , Evan Green , Andy Chiu , Jessica Clarke Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.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=1718060203; l=1250; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=FGQxjkKFg6ikcL755lFMFBnsaceTJTK90HJM8u9R8ek=; b=8Jye09us6BGw0+GT90JyFf5B/Coarcsdhyyne2ijzLW8oQNtKmUdJ3Z2etU1E80MtSToWDYJY NmJCjTuWVUcDEhoybVbz6T2CJmAUWhNf0+w/qoQHK3c6gHVe4xXvoyn 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 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 204cd4433af5..9c0ef8c57228 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -214,3 +214,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