Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp144610lqp; Sun, 9 Jun 2024 21:48:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEEcISEOZmSuB7CV3srYaQDIxqXnoAM1ZMgWO14hb+V8GpBF6JdS97BKvguYSTN0XnEBY5DaIP+zNNPnIbI1zHiuFav8GCiSJZCHdW8A== X-Google-Smtp-Source: AGHT+IEWn4sSsSb1aeS59jeCz9gj90dJ2vTmOVlDIEeDk08Em30VCU+oHzyWchHa/Qq6nD9BE4w3 X-Received: by 2002:a17:906:2a12:b0:a6f:1efa:dd75 with SMTP id a640c23a62f3a-a6f1efadeaamr90995366b.43.1717994884603; Sun, 09 Jun 2024 21:48:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717994884; cv=pass; d=google.com; s=arc-20160816; b=oD11tUdAMX4CWfGhLwOR3bmGhdmoF+lRZj8zcywuAepzUUVYnCWF7fKiiUjVnM7/qz QsINZJBxSrI++/ncq7qrqQncf8EF+6sMxAHjdvKYVx2dUSDtcxCxtgo/aS5NR+jtQU6/ +ITxMheosFvy1NZgxFMWEG0J9KfG75y21L6lTjXyRYR8tBjlIrPZJ7rUEjnUquWTEXh6 WNgnH/VMmgVlsbtz/Mu50IPd0Svob1mLFfl8jrkXgt2WXkTLgG7t6zDhLYcBOGXuC/Ff PzWKW3jiwriztN+U68N7SUutKqK1EGMTy0L7lPYC8lABRHkutZLo4sJUb98Vi97dH6JG mxHA== 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=MD9HOwIfAO4Zj0Mfd9uRMEviqRztLod/HcFSb/zp3EM=; b=XeZ+OZsRNpJj2YwUQDILIFyS7EJmB+Kg2/A4mqlcLeLxbWW/V0mC2TOTaNGdsQphKV 2Uxe+OgWGDH2RGVY+BZP9Zg7BEKKmMMkS6qRFb2iJtsLqIkxQVaLSkyPBqK3ZIvUYkrE mzALPNbkfU7QUEI7EPg4TupzOyJ94CqFobF3qiEezZBtJsR5LYw0W/YT0puFxkank5K8 wzQ/Q94Pp4qLCjx/EAXAdRBPOVctMtJi58Xby+g3AYnPuzoYxs8FhCdwPG1I2SYjHUFG kfe1Tc2+qIbZdCHZiYup/IQYXfNLS7IueK6M+BTY8HfZRVDtUcJvgI9z3PIf2NVcjYcU s5zw==; 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=YRpstOBK; 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-207636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207636-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6ef542ba93si283928866b.756.2024.06.09.21.48.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 21:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YRpstOBK; 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-207636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207636-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3FB521F21B4D for ; Mon, 10 Jun 2024 04:48:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE1957C8E; Mon, 10 Jun 2024 04:46:02 +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="YRpstOBK" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 E74AE125DE for ; Mon, 10 Jun 2024 04:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717994761; cv=none; b=Gf+lVRz3MMR4hFsEdR437eb0J20DTld+L4TBONqO/lIKmqtVyp+DcaNLo9+QCpnOMeFtjU/gx9uq7xq2uuvM/DUKRrc7HrU3aOMSs6vGWnq7ydT+Al9qdFLo/zOwmt1qpdaQN1t/R5c8vTDiMhdjucn4MDXzLI/ATyO7sMeIt0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717994761; c=relaxed/simple; bh=FGQxjkKFg6ikcL755lFMFBnsaceTJTK90HJM8u9R8ek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XXnnqPLvqOia7c/Yg73oS9yv5vLs6BH0YiWObRNrtIOiJtBpLqkFhvEP/dpL9VnjWBKzf1+TbWlKMhf1vkxu/z+fKzUjl1PLgb5Nr0bATKVPM9HkgAJvXnAIoW/YgCas5lbB/o+PHMeUKOr6p0JHmfcyQm8RyRXw5yy11/Cm0Wg= 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=YRpstOBK; arc=none smtp.client-ip=209.85.214.170 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-f170.google.com with SMTP id d9443c01a7336-1f6fabe9da3so9320775ad.0 for ; Sun, 09 Jun 2024 21:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717994758; x=1718599558; 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=YRpstOBKXymk5/TeGfpOOWM8pL1omzzI4J2gDfxCtEYUeuNNgFkwX3bk5MG5gdEzml friEdq3YXMe1z26wAwjfQnjFR8yF/nfI525zUl7a2VqOTULbPtHVd/zQ6lqzIhQ8oSJb uTRhtWZmz1QlMqkojw8aw2WifSmN/y9qa+gIc0LEcUHx73nG5h+yyqSpZiQ7rVyR29uv Cr2ZZFAgX/BMb6TZvmp1Cy2j+1cbJblFwG/1OAdHc9ucURBz/rVvM2JFlIA4biL4xoJ1 f1Rl9/lVqyDOcKu6uKsTb6m7qnGkhph6EPKqMXdH4dgCti5BMNL8QVMmuB/ql/moN+9y Vw7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717994758; x=1718599558; 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=vbfgo5DO7PYBt0u9QxkqVBT0sxo5nrKjyIxWGl8Ez4eQR6H8Qt6gdNFAZWv9q10XK2 L/Th6uirwRowIKtzig4hauxN9sVmcG67nkGyWFXxyorUxbQvYJF6aaERfneE5qIEGFfH taiAKYmi2W67kTjcxeJ/jkD9WYrNgLejp0w0xz+fsuRqTgZGef7eisOJfxvfdP0fEVKf ubIDGDInVvcl2pUMIrHuMbge+crsB7G3BC3PMGUxgaEeCLliMVV05nI201jD5okI8hw1 dGX0lclBo8kpuTaoLjA+KZAQZG6HgKE+dQXzgKzoW75z8RSC1cvao5hwvPLDpPndE3YG r8oA== X-Forwarded-Encrypted: i=1; AJvYcCXcKZD+eieCI47Sgzgh6LgMa21SwKXGHMuL2SxGaFKiVRwlU68KMQs8pn5qYB/HDoPsrsuii3ZLMwGwfLSMkjm1+o7xHCDDZdSheOGq X-Gm-Message-State: AOJu0YxalXbO0MD2EO91Y3Rbo55oIyFfWrO5ow5vL6kJoFMMQsbK74lu 4p4BotVUWyXdqcH2Y3gxRy9f++y8zmCHIx74CRFupw8dk1mz6tJ835Sg3tEBJjA= X-Received: by 2002:a17:902:e842:b0:1f7:1d78:db3f with SMTP id d9443c01a7336-1f71d78e31emr1364105ad.33.1717994758342; Sun, 09 Jun 2024 21:45:58 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd76ce8asm73124095ad.77.2024.06.09.21.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 21:45:57 -0700 (PDT) From: Charlie Jenkins Date: Sun, 09 Jun 2024 21:45:16 -0700 Subject: [PATCH 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: <20240609-xtheadvector-v1-11-3fe591d7f109@rivosinc.com> References: <20240609-xtheadvector-v1-0-3fe591d7f109@rivosinc.com> In-Reply-To: <20240609-xtheadvector-v1-0-3fe591d7f109@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 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=1717994732; l=1250; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=FGQxjkKFg6ikcL755lFMFBnsaceTJTK90HJM8u9R8ek=; b=hOHF9McI+o1cU1DAmF1IXm7ZMdeqVzGBgk601RJJNOjyOk+/Oadw40msR5BmovQCOoTuHmcBF zkRQyUhxJRGCbqJNpLJekD/85gONlVrdLOUv5QHabXYSTiHWZC2HUUA 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