Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp13086lqp; Tue, 11 Jun 2024 12:47:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAr2iWh3QL4BcL8USfdSuFxM4+JGpZU9fIRdNZ5NJyOC5bG52CtJQXsH0GntKoHFjUxI/Z32oB5+rEsUiUOCkxGshzYGgpxvryi5UJ2Q== X-Google-Smtp-Source: AGHT+IF2GOut9yYOlEvjCgR/hDoBjwsE2WJZEuP8oQ10jdi4Q9faFeRPvx2B4PSn3KS4HDt54eqM X-Received: by 2002:a05:6214:568d:b0:6b0:7f36:8aed with SMTP id 6a1803df08f44-6b07f368e5emr62895466d6.46.1718135247164; Tue, 11 Jun 2024 12:47:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718135247; cv=pass; d=google.com; s=arc-20160816; b=JEKUWWrrfc5xZmHkxPvLRifiL+pg57jgb+wgHWxOKAr19BNn53uXKiWgha83seIqXm wbFJBmW8YmLJmZKIrBKHErPoV6Tj6l8Db96PSL33zpvlJ1Qg9T8JqC76B8G72+WTWnR0 7p2RH1zMF40PqNKR1MC4nrW2aBUS5nvKf5kiW6U6J5b0E55h3kBW8gDkSgh6Nv3ALl4X 2/zZk+xSeE2y06T+eAaZbEMjiq8+N+BHde2g+s0RVeQjlebqE9VMFCc2WhvtFEeYGCt5 9OKhZ73uyqVQasB0dsb1qJtDCzUYBsWCgs+BuJyCvuZV5dAxMQRh/PyKjwdJW2Az6e3y N+uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qCkTNdoWHedtO2Rublq66t6G2AvnXm+h/79qji0mlS4=; fh=R9YKCqZz3ZjfRshzd10u/w16waT/T1xaUjP3PlMG+Pc=; b=C3b6HAqYVxpT+3cOBL2AODtUo5wIL1r/zEllaIPYaj2I2QMlFoidFmcdRM7QRuxNxC 9sSoD64OaD52hweGUBUHayDW0xpVJtcFMlPIcPZdL7VVS4fvJC4HtQjIqkXrCEYwq18y tKYmvjPqNscnRILa/UZe03wJGRr+FF/g7oxBX5PjapgHi1tpss2HEC8Bd09NXaEKVVuM hh8oon2S/R/9z4n6Ts2jESqvi2VVf0FCH958mMRo+SPu1+Jy78nHqua/VOgvyzQ+z9Us N1pt8KAz+DEFoYX4U0OCfDtAcmuNCxRjdFugsh0XiZWTdRXS3uwL+pTC7XldoKA3DUPX /LWQ==; 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=DRo8Ef67; 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-210525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210525-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 d75a77b69052e-44038b17159si137840371cf.332.2024.06.11.12.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 12:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210525-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=DRo8Ef67; 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-210525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210525-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 CD2511C23236 for ; Tue, 11 Jun 2024 19:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D376142620; Tue, 11 Jun 2024 19:47:21 +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="DRo8Ef67" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 AE6E71CD06 for ; Tue, 11 Jun 2024 19:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135240; cv=none; b=OJS1rmbEuHEdCicx1WuY0tW6hyot0kyvhaKBXt8OrPiGQXbgH/U4Q3qlVgmZLFy8FYmKHlkMI27rNqHdNRrF/tetWpDMbz//+qHBnns23FQg3dH0RQvD6vqO491eyatlfMv84V/vzaRHaJgPhMJGsBR9IBwTT7ZVxSOEvDw//10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135240; c=relaxed/simple; bh=uCNDyWcELfp1Oid3wEh3hhNBU0sDdHXgnTWH4GJUymE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QJVurss2mwLmPABVBZYbZaOPlHUk06nuZD6rV55pQI1Fyx/oPrjUtjKKDkM69WgYmJVY2tqihMGYLpd0elc7rGhFPNX5qaFN1AS3gF57vb0z2pQXzY3g3zguGmJUwX/7cEn9Q+ohRWqYqV2y1XD20icrexvS7mgT+4Gk+TOt4F0= 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=DRo8Ef67; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1f6c7cdec83so49178505ad.0 for ; Tue, 11 Jun 2024 12:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718135237; x=1718740037; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=qCkTNdoWHedtO2Rublq66t6G2AvnXm+h/79qji0mlS4=; b=DRo8Ef67svKZEGKbnvuzDIRbVD4BlGvPJXJXPS5BwZWv+Zty14v9Xjejn4YfIsQksI 5a2/OwUtOCkQFfz2RT9Uw8Q3u2iQ9to1OSG4ORCRBqut8/wwUu/Ws2tQg60kjt8N06f/ kiIMdiAiwvDSLmd09Jmz8v4kGtqONNdWP7E20gFBmjXis8qWc4CdqWYM9YxgtUc+Yl3o 4vDTNIzK/dDww9qKsCV//9o/vIS9N5tat53P80VAIIXYkMSoGv2GcdyOKPQpC4yzEBo3 Wbd6llY8qscNJQbz9OwkjXYRchMWutAk6UN4wQ1UnvFCZ63a4zZsrzuq3UnnfV42kwSo tb3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718135237; x=1718740037; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qCkTNdoWHedtO2Rublq66t6G2AvnXm+h/79qji0mlS4=; b=AbvAdsDaClNZSoyju2z5n82CV885o7R/8nxcPtvvK8+1I04BNCbzuLLmx+Fewy/2HR TCEhs2dWrV4zMnafTzYWcfgW3l4aLNnoU//VZNVlOHn5ZeuqKTrBWNJQUAXJxIBboGwZ 3FqqtTnKPo0yACfTHw44PBaPZNdnxoGMqzjE++C/Nz2EcqkjuLLlEdTc82PpLPdg0GB9 L4dNW5BMYRUgdb1UOk4n9moefA2+KJJMmJWXXJkNtcH2e5OZnveKVStdmB1nJDpsdUn7 Bv5X7yqRiQ/C8RDJxv3yoyW1/AA6EFE0Op3rhI7R9ZkEyn2C85di3wf0bxu0dwwfFC8s aqeg== X-Forwarded-Encrypted: i=1; AJvYcCUA3w6yHjaOAqo7ukWshTcACO6lSvVlOHyuV/sB0wo5zRamIU7QCYJHoBiG/KMj5QcFscZiZeDxi6OJ1OQyi2M9P/cQmIJUPwcdTsGI X-Gm-Message-State: AOJu0Yy8Rn1+5nK2r2xuBTrfT5ZDSW+Takj/c/YAXNlE0jVaTKejli3A yLRJLEKDOgM+XniGuo9B5FoawZBvUn7M1NuRZeqBm1IDl24raluvQgyyD3WNsHQ= X-Received: by 2002:a17:903:244d:b0:1f7:eb9:947e with SMTP id d9443c01a7336-1f70eb99809mr71450745ad.63.1718135236937; Tue, 11 Jun 2024 12:47:16 -0700 (PDT) Received: from ghost ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6ff937456sm57302045ad.243.2024.06.11.12.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 12:47:16 -0700 (PDT) Date: Tue, 11 Jun 2024 12:47:13 -0700 From: Charlie Jenkins To: Evan Green Cc: 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 , Andy Chiu , Jessica Clarke , 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, Andrew Jones Subject: Re: [PATCH v2 11/13] riscv: hwprobe: Document thead vendor extensions and xtheadvector extension Message-ID: References: <20240610-xtheadvector-v2-0-97a48613ad64@rivosinc.com> <20240610-xtheadvector-v2-11-97a48613ad64@rivosinc.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Jun 11, 2024 at 08:58:37AM -0700, Evan Green wrote: > On Mon, Jun 10, 2024 at 3:57 PM Charlie Jenkins wrote: > > > > 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 > > Our recent snafoo with CPUPERF_0 popped into my memory > when reading this. Does this work properly with the WHICH_CPUS flag? > Specifically, we need hwprobe_key_is_bitmask() to return true for this > key since it's a bitmask. Hmm yes I need to add that. Thank you. - Charlie