From mboxrd@z Thu Jan 1 00:00:00 1970 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 AE7261CF90 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=1718135239; cv=none; b=UB+0lrY0/YuroY6IOB9F1Bz7MVOca7y35OM0nns0Eo4g3nj45NsLgIa58ObBmLIlzRVlPH+3N88R8RejkynIacYGfAKnq73PaUbdjFuA12iemn8Yh0Qt/4o2AteT3dNFNRdlZo0Of3Yr7X5VdtOp6dTANA/P+AGUBIg8I9wRFc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135239; c=relaxed/simple; bh=uCNDyWcELfp1Oid3wEh3hhNBU0sDdHXgnTWH4GJUymE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rEGXTEKv5vp4h6gzVoJZAhIOBp2VtFapAvd3OEw9XcPNVIszj+fFpPROhIH2UM7elXScXg5RnZJI4HD7SkifYoOeBvhYa25sEkX4rbw7wQ9uziRyClx02PDwjmDJflo0HfdftRXkRqsD1MdlNsa6sEwo9tqaOPuYLFnHi0LanPw= 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=civfjDww; 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 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="civfjDww" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1f692d6e990so57178585ad.3 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=lists.linux.dev; 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=civfjDww0gLCYSkvF77SV1xJBOFgAHc4SA4Jd54mIHCcuBhWnCb7UcvVVjn8zhrflm OVsjJOwfGQ/iz3pShUH0DNyTUThKEC7O+a4+7FL8QYOsdEXxELVga0BGQG+CPka+XEKY d/Kammp47S6KY0Vtrdwjyifv+8W6XXLElJr/uD0aYq076Ft/458lWQ8+L7OPCcv4LHqP 3RhQT4FpvNc6bJpxcqypDx3/Lrt8A6O6FSMerymSJNgIvIYatH2J68GI0MBFco2Wyi7q 7P/pp3hrpNxHr1j9mFb2WWmXOQwLPUG+lYX5d3XZPLdrlnXYdnVQmBbQeCNHHWoV0n7P JWtw== 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=MESOepmnZCrk3zDqwtzBsb0mMnvO22Ppzk9zTx4nvjAdvQkQRzUxzD28hyV8RTPfID PrJqb34Dp/+dtlAuymLnVUAnFtMHWZ6NWaDl1QVDn9imdSyBrizA3uvZYFnw4w6/kHjL F0FmzvaoguB5++mM0di5FTPgawPc6OTZ0YgkZ8TLqr8JXgDJa94qqP1JXn3rb+EANkxC 6bSMF+aHYu/aU+0Etl95xY/ygXdd97f4gg8Fo4KuFa4Q4eCvOnpITbCr58l1Z4zbQbmt kShRBUew4HzSchLxIWn/3/9/dW8lasX0yKK9N/UvH5zQVeOTvaSSugWLKdmAVDSfNa2v pOjw== X-Forwarded-Encrypted: i=1; AJvYcCWlpcCzEfRynZ65Av08dv9uGdyRXGTzUQFLGlNikmlHp2GYHdHNclvX9rV3VwTzDk7pn0Shz9aua8u1jJtTtXNaScuSVZaMJWIzCsU= X-Gm-Message-State: AOJu0Yz92eUhES5E/M8wQQW4y6TyCC13oMGPEcZFGvRJltyfK7k5jBda wUAHddJ1vUflCaPEBITAadVp8Gy0I5ne0LAC2TixNk56B1KP83EzOEklUT4agQk= X-Google-Smtp-Source: AGHT+IF72CTY1GSL+psPQ685hIrEeRutg+9+b9kEwCoHappRKyYOV15sm3Zs49FEAcTiubbmLDM4gQ== 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-sunxi@lists.linux.dev 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