From patchwork Fri Apr 26 21:37:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 792473 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 DA60F3BBD2 for ; Fri, 26 Apr 2024 21:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714167450; cv=none; b=hALWguVJsyIjsJo9B5HLyJ7QgL/aLlJNcKR+mfs3GUNKnlUcm9qv76GGbnOlYUgZxusepGc1lq09JvHBcnP4Dyblkkq7SFtlxX7Xj3jFSyGbciUlkWAOP3FVMYEDL8/uS52fpwxNrxosdYXcBvZBAe05UvwgS5kaIrW+qNMFlNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714167450; c=relaxed/simple; bh=VVos6nAzmHOy7EOA1ppaqJ4Dx+U57WxCTD6XuCvS0Gs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=X6Ob/BDD8P3+bImdwdQ9QLMdGU+BDtZxc4nbDr7O2RlZLwUHMCnQrSgE9pVG/LTkQ2LjmcEkg6sos875mlJB/ULyBOlsPY8yPSgN5Ew/4GEdoShS6kvAMCZEyuHzjiY/58xlZI54kE3OjPe4gNX2tUc9TF0oEP99EOiE1RENu/s= 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=Gew71aKb; arc=none smtp.client-ip=209.85.210.181 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 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="Gew71aKb" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6ed20fb620fso2432172b3a.2 for ; Fri, 26 Apr 2024 14:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714167448; x=1714772248; 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=X3SjbYRlfVLcKXzSMNjYRrKo8hPdxAu3bA3GNGrI0mQ=; b=Gew71aKbtnX7tkzWcsPrYnexoF5+m8Mk5r7y9Az3JIz/PgKmxXoue3Lvc7VIUZLTQj w0pzexSy6Lt66pPmBD4XEx9f09a5jsWJeh9GBzSNYldiZc178JzeX6PqD2zgEX7zMmy2 meecQvguPPnNrVWJTgNnOJLvjOa7fOP9ZipR4pqsQUOzCG+9qWEn4kzkcEYOMEFwVH8y DaDjSQeu0ikvg+s9CQJMsq1+ccApDjvITOqokBOSRQ6Yc3wa41Ty65qPxY/0xP9papZJ sDEpFEMC/YWIY5Fa5m9A0sKxeOWY0UpneYdCxc1cDLgIGbI4+H3BqpMeqbkc9UOvsV0R hRvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714167448; x=1714772248; 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=X3SjbYRlfVLcKXzSMNjYRrKo8hPdxAu3bA3GNGrI0mQ=; b=gNBQ4cmNQFz3R/zwxIbwmb9ehNfm0OVoigmRDUhP1o2Kgem32wjrw8VUiISCYR4Vsv orcSDt4VJxy9dZKXLfwBAxMvq7mX2UbmbpPu1f7gS12jsdIrW02nXSnDUjuPviUETocz JwEKRLmHwtJU6QfwaXaJVx6cW3tGsuk9eNOZp/hqOnJTqnes5VMgimyGywvxgH/5Hbi+ oRPXuC7g200TqgMaH2DbGQhmGgQktsxA3gWSadrAtrptO6fNPEjy7/prIipbOCGJnkHx x61xgb+fR9j0/wG8dFr/yfo39QpTAupYOcGvnjJXia3aAmMgSDbJCdCFNMLF1Ms60ULo X4SA== X-Forwarded-Encrypted: i=1; AJvYcCXQfTa5z6T5TMp1GED0TrxY+I1Kt7Pj08+4SHDTiE7xFdbDPIc5WrEkaAQj95cHH0EYbD53GkZg0DLhVtQbHTwCLkpW51DfNi/Ih2Wyql5p X-Gm-Message-State: AOJu0Yw2n/7CKwZOZfz2Hhz0pXJrXkfZSH/lryu9N7d3+iFveseM0z5i SRTkG05QyjbsrxIK2fHQBo0hVgVaisPn05aeoO7kGEo+QinYlSfEZLYaiw/R9PQ= X-Google-Smtp-Source: AGHT+IHm5zjW+ioSlduj4IUVa22zr9qzjWQiXQZ2Y/v/laULdkXJTWt9qYlN0WXsPxl/15hsWAapOw== X-Received: by 2002:a05:6a20:b112:b0:1ad:6e6:b494 with SMTP id ed18-20020a056a20b11200b001ad06e6b494mr3747995pzb.54.1714167448210; Fri, 26 Apr 2024 14:37:28 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id k4-20020a170902760400b001e2936705b4sm15935701pll.243.2024.04.26.14.37.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 14:37:26 -0700 (PDT) From: Charlie Jenkins Date: Fri, 26 Apr 2024 14:37:09 -0700 Subject: [PATCH v4 14/16] riscv: hwprobe: Document thead vendor extensions and xtheadvector extension Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240426-dev-charlie-support_thead_vector_6_9-v4-14-5cf53b5bc492@rivosinc.com> References: <20240426-dev-charlie-support_thead_vector_6_9-v4-0-5cf53b5bc492@rivosinc.com> In-Reply-To: <20240426-dev-charlie-support_thead_vector_6_9-v4-0-5cf53b5bc492@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?b?Q2zDqW1lbnQgTMOpZ2Vy?= , 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=1714167425; l=1205; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=VVos6nAzmHOy7EOA1ppaqJ4Dx+U57WxCTD6XuCvS0Gs=; b=e/cAGXYDWmxX50AQyo8xsB3J/G31Eq8eUDUhpDifz2FCc5Ho3O6JsuFEwtpQxetc2K8CMG6gP M9udTAsKA4wAkZkxbNvpvvFbbz4MRw/af9XgaK3F9Xx1+v4uG+N2dmN 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 --- 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. ").