From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 B36E7482C8 for ; Tue, 11 Jun 2024 19:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718135240; cv=none; b=VcFOjZrY02tSUNpzZAlEuWY1S+BP5juPLwUe0xdai3CRNloFzdLr1isfnCwEiUoozdbjfNHQExaeUtWFcCQ6Mgg/6iincOdkWA/kOSy/ubKU96/p1Qr93XUgQPAGUHMlcaR+WeS8GIYczYvKGHnhxbg7PXXYdKMd1iGOn5ZTpzA= 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.181 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="DRo8Ef67" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1f6b0a40721so43930545ad.2 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=AxcGqUpI1RIyWR5UbsZwrCxM6C93yiIH+ZltpJyIHY3WttQQliMEzmRRGEhB1HU79p 7RZG6qN3HKLl9iS6IxNOSzLCPeUJrcncDNrw8hevsdVd3mcx0kmoqLZzPwwz/kHISQpi SiItvzZ6vO8oWk+9kHZvf4gmVaoaw2Hkt5DDkK7RkQCZTFh+L3iCch+bbea7bAF1negb tCkcBsB2K2SHZ/9Qn4kR0+c+3MyhZtdj5MjkXBTCSm/cZqotpBHtJGRc0viFLSCG+X1J FqcjY5+FYv7wBeJ6UaFAvUAzk3gr9vWu8YXE+TJOYMT+dKv8dTwQy6F/w6HRBPm4SvqZ wFsg== X-Forwarded-Encrypted: i=1; AJvYcCUZN9tgTMpqenj32+99D8lTI6WKHv9t5Ii0TtVt8oZ0IUtSDEPyaPFTvDsJcAF8tpsz6CvuoBbMNpTDzjF/KnChw6TbJHwxPyEkAw== X-Gm-Message-State: AOJu0YxupSIlvgO/yE0jMOuU9MUkf/WIL6QDCKGk+VdIc7N8L4nVV59M QQuup+ed40y3h0mOg0wY1oyYVHyujwHhZdHuG73Zkh+kbZg2FUAfbWNFwT9jlQU= 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: devicetree@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