Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1477375lqt; Sat, 20 Apr 2024 18:08:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAeusap1p/GUMUfqYY4R+8iBRw+ggwk5yb+/CD3D30mkne0xMMg1H08dWBBdjDfeR3C7cQ02pqf7/akjM0Vror/60JOCx2wIVcAjWGkQ== X-Google-Smtp-Source: AGHT+IEg/MRCFm1ltGJqPFCagCyXNATEDCaxZ+vo8Tc0/R/o9u7PDgaGaK20TLXcfhuIFlHpGLDl X-Received: by 2002:a05:6122:7cf:b0:4d3:37d1:5a70 with SMTP id l15-20020a05612207cf00b004d337d15a70mr6873976vkr.7.1713661714400; Sat, 20 Apr 2024 18:08:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713661714; cv=pass; d=google.com; s=arc-20160816; b=U9UzjGZC9x13yMG3IDduNdyGk4RFxisZntHVcegeOxJxn0PgpsFRUJmQHCErgI9CQw zh5zldp6Fw2g/y80IBV1deAVLUtbsDLgOJPW2FwvdGRmEpNsrtnWX80EfwtHlHRSENC3 Wr1c2CAERHkNMc9qlOLthxEjhv53uBtnM/BsFNGbjNvqxMVJsxlU4vURZy4Q2Im7mjqC ouwnnmPBY1ur+W7FC+Asf5c+m3RC22L95UQj+wq6sAzXMNmLrN9P1ZWHNqjO19KUdt7h Tlv39pQhkKy029Dn35vw0K0p/XZbTt2t4A1GWFfkPYrwB5Jbgi7Sxn7ImiPBQtuMiCqW nxAA== 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=C51oJZVlVAvKgqHOYlTKvkb9Lst4yR5a6EpKYVrVIWQ=; fh=Hc0uCgjN2gXDgZsu7zLTlzYt+WNNfyTAkE1FzjW4jIs=; b=uOOuo5u+K9GFJaVRWmSdQmTrWsYA6+JVnwIeUf+Z+S6+Q5pWHXo0ItIjupu4GuRCyt KrpJSuz1ewiuy6RCgEyjwbQkp9RRbEGv84xp0S0trkibwRAFNTI1zc1IWF8BaqeFeghn nHkHbiMaAkDupK9NTrmTCwFu5pmws5eII2dIAeQl7uzKFx0U5J2s4CoUA3X0x2i8+pyi vw3qDUhOjc2KggcrE5eOiMN8DhHc2ejo1zplAbmSoRaG17T+Ei/62RzRYj+RP86GxtTb C5miT1NX+97CjE4GrGpmfJOfOwHwIeDwiGXZ9YF3l40I87L7DZCM+kRS2zLesPA93KYP Xiqg==; 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=Qaoirv+1; 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-152418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152418-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t17-20020a05620a035100b007906e1c8b45si431782qkm.688.2024.04.20.18.08.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 18:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Qaoirv+1; 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-152418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152418-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 247BE1C20A3A for ; Sun, 21 Apr 2024 01:08:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D96163B182; Sun, 21 Apr 2024 01:05:19 +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="Qaoirv+1" Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (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 DC2442BCF4 for ; Sun, 21 Apr 2024 01:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713661518; cv=none; b=RZsMpSg+SsxOcmq3nntP3ba4RoVIlwAW63NP4oKe1V69J2alag+eUmJOpc9tvErBnYsUzVH9l8Zrc//3GZMnQ/72KlTUm9yC/ErC6Hbt7K5gtoWdorsb2MeUkwTZNQkNIhM9N9afoIFZD/secGia6x1eoZVa8isD5pmGxDM2auU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713661518; c=relaxed/simple; bh=SMnAf1KoXdr3XQZFYlKGicPpJwlvTYKEN0qx5DZFIIk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cn73JOcsrHNSV3h6nLGWTH96IKayIyjq+Sow0Msodi79uQjIogl988I13ml/NDVLKEerhyGmdZnRH+rTwROQwPefCCTttS5OfwhN5M3Tadk1vPo7HUgY4jB2h63phjIgPRHQLNJOBIr4uexcEvc1C9NFemqGOPtLcDCFDXvWq0c= 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=Qaoirv+1; arc=none smtp.client-ip=209.85.210.41 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-ot1-f41.google.com with SMTP id 46e09a7af769-6eb7a0b3fe7so1985796a34.2 for ; Sat, 20 Apr 2024 18:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713661516; x=1714266316; 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=C51oJZVlVAvKgqHOYlTKvkb9Lst4yR5a6EpKYVrVIWQ=; b=Qaoirv+1wECDb8LbgNRUMlkffenbr5bcw/XxpYNq3yBQRgOwpwWnrFu6YXqhZqLN3F skS+CfGWi0owMjvpkL/APN5senqzc97QZt+eRFTKgBT8WxohT9gvLnSSsEmgwKqsUkA/ 8mCRFF3mEvfn00e1yY34NxBeJ3tP6/oVfqkf/veWcrJlctOhrYYRhxKNe/Nvx+xNYmCp uPLf477Z2dxboqzizYwfOE0lS3N4Oz/tWwA86eKTMpSDebefAl6JCGdrhaq7HXF7qfA+ YnWYzfWDyIloMwya8ynd5JWLCDTL9TA17MEhDWw/Gui0nPhyaz3A7zqYAwhd03oy8Hqj ZCRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713661516; x=1714266316; 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=C51oJZVlVAvKgqHOYlTKvkb9Lst4yR5a6EpKYVrVIWQ=; b=SWfWOSxoF414eOPmUAFHhQ/lMxbVK+I0PkfNsoREAX77alv81aHoGcVQ5BvU5yFNEH +5JJi7FBgU/pN/q9nLr993O6DfX3LcDcIYiD98t5LO7xnDVziM828TelDjEboq/FAZf6 nkj8K8BcIog2WCc0+XGB3pLM8cuZe7ljMieqnSPu9B31zHUrFO/Pv5zzp8Nw5Cx3WFKn kUfNCNI0ixiGxLTtIIL/moSMPMRQJjZ4pSkurB2GIED8uRLDPFlkmwAwfKfYKbRH1WPd E+4Mbtx8PUlUrhgczW0WcRcHNBJLYwB/jPniky6atisSjEOkZqkxljaFjdpDXaROLhKG emwQ== X-Forwarded-Encrypted: i=1; AJvYcCU7gabnizTtYXiNPAaT+bW25Nw9GnM66pIut2Lz+8TGxOuP66iGeyp4QcEZLsIsca8FQmJgQCiqvKjGtmVzYalthSbhnV2kvtj3FyA/ X-Gm-Message-State: AOJu0YzWHHSFxLnPEGdnMRM7m4nNDK9AG8QBl5KDCZfdUS0QonrjaC4y SVUD9rsViHKWaoNpdSW6kvlnF5ELcWpxrxCjPLrd8LaGVG9Ccy4TRKKo0osRtqE= X-Received: by 2002:a9d:6454:0:b0:6eb:8435:6d with SMTP id m20-20020a9d6454000000b006eb8435006dmr6447023otl.16.1713661516086; Sat, 20 Apr 2024 18:05:16 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d6-20020a63d646000000b005dc8702f0a9sm5249627pgj.1.2024.04.20.18.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 18:05:15 -0700 (PDT) From: Charlie Jenkins Date: Sat, 20 Apr 2024 18:04:47 -0700 Subject: [PATCH v3 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: <20240420-dev-charlie-support_thead_vector_6_9-v3-15-67cff4271d1d@rivosinc.com> References: <20240420-dev-charlie-support_thead_vector_6_9-v3-0-67cff4271d1d@rivosinc.com> In-Reply-To: <20240420-dev-charlie-support_thead_vector_6_9-v3-0-67cff4271d1d@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=1713661481; l=1205; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=SMnAf1KoXdr3XQZFYlKGicPpJwlvTYKEN0qx5DZFIIk=; b=Sr+Ck23MK6b5fBCWQnfAjC3XDtevTk9/L5rpG6sRcM1JIsKOpPpV6wfWEpjZQrv34owaXjk+c T8zyReFWWSJDaCUDm2n9ubLbo5SiTO69cKWy2i/xPXXXBX1kkoWi79W 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. "). -- 2.44.0