From patchwork Fri Apr 12 04:11:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13626805 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A21C5C4345F for ; Fri, 12 Apr 2024 04:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=18vyNdkrUmuunVKIWKDV1NaEs0yj/UltQTLlT2h4Gto=; b=JX2bgXE0fZvOCa clTqNWpolzVVz+LvpKvNBPit541l5ISw/wG67NhEx4m0KvDh1jHX8CjZ4M3LDOUFGAAEcbeW5xRq+ 2uOcC4EPm+GpBvbhQHSlRIcJKt1u6jZ5ByMV2FbiLzh863R7CMKW4XJqXlSO6dMbaO9p0N5nPyKpo jj1RFYOlHpo1W3V2WiBZfqWwgAxHzErayp28k4FI4RX4ppDlsKKbFsS/qAJKrL23jOspxEkQWA+yv Cy1CBzEf3zY74zeyzPNWefOTBDIrvcKLlxlgatGwwBVi+LXXs+Hmg55ma8LnbLf9QwKtS0So8KF2p J1qSC1hMTkN4a5SpG+NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8KI-0000000FDUR-3Mbh; Fri, 12 Apr 2024 04:15:46 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8Gj-0000000FAXm-3EEK for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 04:12:11 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5aa400b917dso313942eaf.0 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=lists.infradead.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=LI71ne7IrR9CzM4bcXN1wpef0zCk82MoLF7cBU/HsxzeA6G+jtrrMD1SR+oyVgWBS8 jw59C8UZF4xxTDN2jVsXrta0CfV/T5YRu/nANR3h8JnPs7z4KlO+0phLqyL48X4n1UNj kW1EEkJ2Y6K+knV9xvkc1RcYfJe3AFDjA7Pk3kdt0oTSpRn2IkOHqO49/p5kvqw69sAB SO5LBVCoj6NOUln6eyBevSbdAu6tmL4uV0khDlTTURMmSwNx77w9IPpN3fXidiBqKEk1 rFvhrT2VLxIrCXJeNZHgokXB6tSRFvf6FT1Y85rilgQgGdhl6rWVQcMqgQuwiUwAKe2V HUTA== 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=fZdqXxpP37q4p6t2qHHcPTtQhV6jvux1LheqhAXwLUhwmz/gbar6TCRYWjV+dumD3/ DROR1Ubj3z18QQueHHjP2an7oebYvWnzooHXpf2gO5dFpQb12WuChNA3UoSA0HN8wJr0 U5x8N23cxJ5X1gZGSbCZzdgYNeH7x1Vw1dB+A3/sbZ7SnN+KGfqHUgoHFQXLrHawSs3n ho2s5xL0Qabe9lre1jz6lQaNjuQ9IHf3a0aEDPm4y6KKyrsvpwkn3v+JozHnilMGmblI JA3XdgXsnDC0+6dCaRDOcdUVYW9CmsbyLAU9A4W6LXFs4zjpdNALFMgoUDwWXI0dQgyN DSww== X-Forwarded-Encrypted: i=1; AJvYcCW6X1HC3gkQaRzCPhsc0jQ8VRVs8xgLyiD2JIf04ekpNGCU+mJMEi/eErqtZuXei94q5bdiI+Oj5MChxBO+RjrKs9vFLzOgjbP+h90YwUU8xHw5c5A= X-Gm-Message-State: AOJu0Yz3UfZbhsyXwimjRrsq/4z0wpLU4V2L6kIXEKGgKBoPI1NzSuoV BYtdF2tiNKXNwq0g5lIt0T6su2KI1pvH/hGLZVOpN8NMyMh12lQF8Z/KAIJgjSA= X-Google-Smtp-Source: AGHT+IHY3yirk4jX9cMXtaF98jtTfUbpKOv+CODCxv0iWIStL6fUZfoLpzSjdgQJtBdDqv3RCGYZ3Q== 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 MIME-Version: 1.0 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?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=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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_211206_248182_787604D6 X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. ").