From patchwork Mon Jun 10 04:45:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13691483 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 C5708C27C5E for ; Mon, 10 Jun 2024 04:46:19 +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=myF+9jRF9rKKa5GviqunaO7TJgnPFgH3/6JAF0n/BiY=; b=f8SC6vJs7EC7AL svnc9AE4IJzSk65A5IFiUh794lGgg7VOu+fMBmQkmxJLILvhAxDHOMyjr+2oSIsKJa0mAiSZHVEJp Sm/J+MtXY50wr8c9Qq9SH/dFsPKNvko7stxe66lTf6N0WifmifHAR6DNcgF4pDGx5kFZimKoeojhR Vkm8uXBq1TNN7Dvq7vqqYECf4vryLO8Upl+qgk20jtVWU0+vzpstljKEh3V4NK+XAInRs1m9aRut6 XhyPiBVv2Sbg10dzj9X+VrUpNWxlvdTmyvfBP4hza5KCIzFURwHxuKInOinZUDO3RNcCkCs0kw0kw P2VUpf3AMPC9HvoQ4PRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGWv9-00000003mpX-1IBx; Mon, 10 Jun 2024 04:46:15 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGWus-00000003mck-43bg for linux-riscv@lists.infradead.org; Mon, 10 Jun 2024 04:46:01 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1f70c457823so3120445ad.3 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=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=r8BieCexzaDREgF6SB/4DhCje3SwtC4a6MLqQwsxjuQ=; b=jl61JxTMPIfHMzEYbZXECHO8vBnBxT17W0geJzesztq8Zur+D2ZSVaGVGVfPB0LdVX rwywDaBKVUIn5YemgKD0mL0NvxIKg0RN8pGRvIBeMs0o9iYdcNiCs6oLeEOqG6P86hwo H7XSBbo9L80R43RtFdgbGLJibeJ6C48wmFPt1EQZS4C+SwTHBz1Uq5sLPRWvl53iM10Y zGpoHvL9pb0ndBanBnAclTWDp+f8fDQHBpHrxBPQooqrjhFkmp2y/zd6a2bzgi2w3fe0 Yl+ebsnVBL9YLKUkA9oHzUbKRIpP2OAaG6j/T6r80EVIW30s9beDUIIVt8oNYfsKCUtG 4ATQ== 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=n5lQ0Bnhc3VyG5lymWAxyHICOUS5A/yf99C1qJGi/tHZWPl/vNHoQNqyUn74dYJ1Mh HORJ73KZiBQ79EdBzxJADJYpZRHf4yT0+OyMIovNKmRVgKfNTNsla6w0sDoHIC2xIiI7 t4kn0QQUBPlknbqClbw5+psz+0ERg8R2CJQYb0TrxuHwp+bp5EgWpPpwgvX1bmaGXu3L o5j+uBd05KNx7bQT6d6sW/+ULG3/2L8+JX7aFsAkcgC3AgtDIo9KrSkzQ7fer1RCyoxi vJcPl6lmOzq5tkTTqXDQJ2JFhr5lOJzFYhzXk4ddQD+XAD4pHXYYazPZCqCO2vT374Vp Mbgw== X-Gm-Message-State: AOJu0Yw7Wmau1g3tXvx42xS5uY3uaRfooe3oBwinump1UrHtEbWg3g8l v5cP4olGlSIy4oroez7Xmg9/j36df9/H/gevQG9groyvTynEPWR3pEf7HjfsI5k= X-Google-Smtp-Source: AGHT+IGT317oosIG3JNia7Pc2PgndKpOONadquoO+w7t4F+iRdDjWNQNIYmD2UUADman72ew5imj1g== 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 MIME-Version: 1.0 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240609_214559_308255_18AAA96C X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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. ").