Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp2801lqh; Fri, 3 May 2024 11:24:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUH7uJwMmKTHXvEq30L85czZK7IyFZoymmopwaqgp07sbl3QgNy6dup80PLhPQbpiI+UiszjzXia2+14RyJ7pZyyjgPzgrJX3kR10ZvHQ== X-Google-Smtp-Source: AGHT+IGZTSW1UQI3R03bPiyYyGOUwpk2XfHRTiBiwq8wl8SG7GI4lLPVyqo0k4fVhqOn+CVbV6yd X-Received: by 2002:a05:6122:308d:b0:4d4:b89:bd2a with SMTP id cd13-20020a056122308d00b004d40b89bd2amr3785576vkb.3.1714760673977; Fri, 03 May 2024 11:24:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714760673; cv=pass; d=google.com; s=arc-20160816; b=R0atDPpxSfNPVchTww0nt2cTcFegTXGcfdslZp2iB6dnMAMqDBOhMH7FEgLc5W7UuZ lY0/Aw4zCBsOoI7oMh6WjOtlFCIl7Rhu9Loku4ptGsDLOUyj4Nd2AJExw89J/6b8vb4h VLcgHvpG2jmeZ6/nTN5RO++179l9MMs1SJZbX+z26ZUidWQZ6JVkK91il6fMRjE71lBz 9erczPoP48uPd4Io7QeF8qwxH6IZnVzVWX3uK/NL1Bsm5ZuTHMecO2mEjcA+CYz6NXsG AsSSkCDbEnVngSS1barD+R7Kb/FpXrTEzYNOVrl6OWx5MFjjKoaQVRhZI32jwDS2V90O vc/g== 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=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; fh=+F8tOzhi8afwpIe9rv+Yya+UE5gQkMtbRynVMDk3FS4=; b=p+ueh9OdbcI/v9WOlQiQ9xKywDiiQ/xw3jDkDQmVq/w6lHgGPNT4ejbc92O5SliadN 9Q/HcpWkQgxDmyu3iMeEwTtwBZqJJlsa7Gn8YYIHMRgelF50uXWPqvjmK3X5fNZxM26d XzM/Ttgzy0xFi9Jav5kN5FAsLP33vNID8hqDRl8pSseXM8zXnub1vV8rjiFBLKJKfu6q 48LAi+22qelD1w72u6yRb8+5dXhnGOdCYhFiaXlB31iCoqgE+Few2qsZKq7AZ+Ez+SEe EkGn3njKIj6OYVaQbPuYI89/IB3gpiIy5Uc8jLw3eHe0J0BaRBK1580qDbdwNcDxVpC+ 3qHw==; 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=GhmKXuib; 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-168044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168044-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x15-20020a05622a000f00b0043b0d8d0239si3863371qtw.112.2024.05.03.11.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=GhmKXuib; 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-168044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168044-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 AFEB31C20819 for ; Fri, 3 May 2024 18:24:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9B8815D5AB; Fri, 3 May 2024 18:19: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="GhmKXuib" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 1FDD915B996 for ; Fri, 3 May 2024 18:19:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760357; cv=none; b=Rx0/vGJosbzrY/aUmPkiKg0hQQQyBl66RaKaHF0EgabGpl8nTuGo1NvKLHvJZoLHpF+aR7rLw7LdqhsvEzFr82Z5rZTCL63GuDNfajxnuRW3qHkpOCvNC3kaKVyzTl58Xan4x63NZlde/MwrJ+71tjrvCnVuMa8olSDO9wc9QJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714760357; c=relaxed/simple; bh=CUBdyiNhoSP4ACo+iTYp6MRGKjg8W3HE2pVBTFyz0Ws=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gsKHiTNTgc4VhHNUFznMzpTcOJ7uoB4PGpKY8+eDETyMvGl0024aTAjkV/s+vu3HkXXli6hG3oZpG8Zx3aStVl8M9TR3LwUPwohbOk/AGoC4YxxiLZY1AK4wOCax/90HmjE4zCqKyVOH6hEzp2Yw7k8TzBGSiLyNYb0Lq5beeFg= 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=GhmKXuib; arc=none smtp.client-ip=209.85.210.178 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-pf1-f178.google.com with SMTP id d2e1a72fcca58-6edc61d0ff6so1975b3a.2 for ; Fri, 03 May 2024 11:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714760354; x=1715365154; 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=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; b=GhmKXuibBlNA0yiJon04WfY72QUFZArKu/hlu9keDNOwCRAO6toz6hzkfX0+2DCPn/ cfifck2QCZjPPTv71TEFgB+rTWP4prd7eLzwxYJFLBekilmPJgBSuyDHpxuO0VL17PEu M/3FG2SvVeeRciuJnAnjVvBsz4RHYEia240PT7PZqOUQCou26VnDIGMnEqfdPOMCBG5Y p3OGKbHqbgYJKZcNb6iL/Knsx6BR4hIBG0eMNYD7YsL8KaZFDViADgq2UbRpOhd0yrEa qG2a+XnF0bnnXE750YpvNbu+hzGZoCvdolPmRYw/iT5HmLAuYzw1ct5oegQZFRkj/1us wKsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714760354; x=1715365154; 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=nZNu49cB5jIU+scPc/LTeIomrER6yojN6Bu9P2llbm0=; b=AKExZ1rxw5PM3yh7vMRDf86o6yikKQIvMh1jcDaxVOibUkgGCDMIvwY5ey3LNqvfTn CXzyUhX84d7R6UqCjYdnp2MyQ3hQgc7kOxAw+pVP5hZmjNdxPayJUil3YxCFXeCxtT3h 2nhFqqflRs/90EbrLfQRfCP62R5hdFeBOU3k4JcvjyTQoJzZ+TVtZXzRai2A4cWvKeqE ugQbEcA5VSoBdk1ektnkjXqOLMbN7ZbzWgFSKPUd5by9nqxFyV7Jbe3dZeP21yUhCj0e GJSs/D7FeA2flnFzQ0yBONJsdTYhtd6boQNL+W0pE5fNowiCl8uJqYbe8I+BCWf+GjAd kWag== X-Forwarded-Encrypted: i=1; AJvYcCUUzBxX4d4u8jFMIQzC6cBD7bdqbdP9xi4ceVZa4jSjRGg6iaOiXj90NVwwwm5+7MQOGvGcOLqi4VRTe+nQzmu+TNtZ3nJbGBaLd2Bt X-Gm-Message-State: AOJu0YyZnTextQ625nS+Z0PVT2p0F56vbELi7OXiXDz/51EsJSs6Dh1m tq+crkSu8puAobId5cMHFIBG4M8jRqdJz11Rmueu6use4SoWkNSNtCOhYJZBZvE= X-Received: by 2002:a05:6a20:320e:b0:1af:6fe9:5039 with SMTP id hl14-20020a056a20320e00b001af6fe95039mr3721586pzc.1.1714760354553; Fri, 03 May 2024 11:19:14 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id fu6-20020a056a00610600b006f3f5d3595fsm3355421pfb.80.2024.05.03.11.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:19:13 -0700 (PDT) From: Charlie Jenkins Date: Fri, 03 May 2024 11:18:30 -0700 Subject: [PATCH v6 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: <20240503-dev-charlie-support_thead_vector_6_9-v6-15-cb7624e65d82@rivosinc.com> References: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@rivosinc.com> In-Reply-To: <20240503-dev-charlie-support_thead_vector_6_9-v6-0-cb7624e65d82@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=1714760319; l=1250; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=CUBdyiNhoSP4ACo+iTYp6MRGKjg8W3HE2pVBTFyz0Ws=; b=LJgbuLGSxVyIdCFiPOjJ4kcjKkqUizdoh8dgNf3DO8NV0Ma7wpUEikvJ7F3hAU0AjgkpzXZDh YRf+T8Yp8P4A58deAYlr+lbGFAdB7N8Y0VqXB0uIqrC2OQnnArji8iw 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 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