Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp447454lqp; Tue, 11 Jun 2024 08:59:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIRUlgVrpmbmRaHtzR70FWJFT4pYYlk5wSKuA4pA4Sr8NHyWpdcNbk5JheyMA8NrAOH9tlC/7gZAywAT81n9iNa5EAZDGS0HZdmaCLfw== X-Google-Smtp-Source: AGHT+IGI3IgIeT1SyOLdE1Db1oHd7cAK66WbkhYgF2CxsCjG7th0vTsdW14ya8RIGjWtrl1NYrJ3 X-Received: by 2002:a05:6808:2118:b0:3d2:2afb:fbc with SMTP id 5614622812f47-3d22afb184dmr5764249b6e.57.1718121577357; Tue, 11 Jun 2024 08:59:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718121577; cv=pass; d=google.com; s=arc-20160816; b=i+Zg01YYssFFRL/DyLxvOZa2wpCXgYrCxbUEUPMKZTsap4vPQSNbk4YsMo0bAj1tGq QakjADSHFTp/MLwDhCCISqsuv7T5D6lWSuhb7lZ0hUrpVj7vA0omLot5e4aM4gSqtvoM lTh0G5tgGbWpWzK830vhYcOGR75/Vl3UfB9Eho8B4aExUt7NFTJANiJaqmLvoE8yfB9s 0zYrbh/+Bm0QhwoD3WDW2U7Yb6LrPy1sMCpsv7WuhNrTCkPg5a6PfkbGgUkw3WG8r1yN 9QuojNbYgkZlhGYbxAi+uioPqfcgvt8Urde21yzHWwIVJoSkSj+phliAQ1vOP7TC007Z pF+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7KeeLnew4Dr2lt2iWiQJB+NWU2kaX728eR1Y/pdt+oA=; fh=oUvtUmlkegFEAIRmbDVQJEWvy0klNI7asVN3FNdbe5U=; b=MliH3bO0fWQ2IzM0d7UfZLMyi5pIsRI9DHhE/Sa/0iA4fKrTaTFchQ+oKEGJn7Aque xCKVZpPwX2EDoljtwU4HvEsSNYArEubiUeXeJtlZiv+yFv3izdL41PPJvvQ/+DN4gFp/ pwJJzBD9+zhtJS1etszoORYJhggKTwDV4n9U6XJTV/yGKzsBGJIk8m+MosLMxtsYF/WX ZZl7hNwBxJvL8q7f2LFddff5YGOQMpd+GNZaH2LwrA14tLyTX/DuAzxQfQmi34lFv9MU 8Qf7QfZWEZieDbwnYCuk97cazaJiRjItG02o/wD6pX22oCNg7IqHeeMUkesDWS83dzJF /yJQ==; 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="s/ry5662"; 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-210194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210194-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-44038b77744si103587031cf.697.2024.06.11.08.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:59:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210194-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="s/ry5662"; 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-210194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210194-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 1151F1C21811 for ; Tue, 11 Jun 2024 15:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD47D3BB25; Tue, 11 Jun 2024 15:59:18 +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="s/ry5662" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 65B8038F82 for ; Tue, 11 Jun 2024 15:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121558; cv=none; b=KQK3+thZ2FrVzX4jK35Aql0dFBpOjA6e0Wy26XKDo094mlDuTnQarmFJvFbvPLMg6yBsaS2VuFO+Wm40/Ig4KwK5XsVaYFaCUTqhUwiETuZCdF2fBhktswzLJmJkLeUvs3iWHLvdxZ4gqh9I6Nz6UQFzXAD67ieRUhHjesDlSfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121558; c=relaxed/simple; bh=HsSfwE4c9FKwzt2D18mve0ctqok3simx/c6Sk4d9mD8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Bbkgalp3h3vMPozlUxRlkeegYnQtDsh9NoCcWEypTRq2Bn37m8tPtCCKIobCecG40W4d6C/zhtaVI+liufGI+vrHLBYMNmg5jmDtl613FgUiOZiuNs9+oTdLqrwdIPD1wGIuyDGN9WZFAlfwbgnjMLrkcGDk5nY/+sa+A1RlloM= 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=s/ry5662; arc=none smtp.client-ip=209.85.218.43 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-ej1-f43.google.com with SMTP id a640c23a62f3a-a6f0c3d0792so155281966b.3 for ; Tue, 11 Jun 2024 08:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718121554; x=1718726354; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7KeeLnew4Dr2lt2iWiQJB+NWU2kaX728eR1Y/pdt+oA=; b=s/ry5662Ge+hWbpEAGorm7hqKMZpZcv4wxPprCcclHLcbNXybxPYxyzYt6SpTbK8lk xzj/neGZvGQCCVqomCcHuBX2n2t5Sw/wma4lwmXtiUrCxkHh9ijuHpJwxy/nnyM08uvu nhKM77yPVFu9B91OourqJO+UmrDMiajArZkBNTRan+yrSGUAAc4P2UoYeXT+3cn7uLzM KrmG64DemnXC017Qhj749vZw5+c3BcaQlR9Lfxct3b1kgWEig7quSDiYXDVBcBPqxK6J u94g/GyF0iKyegEROSXhGtbmOi72nRF2tfisVYDw9nFdq7FhW5gS/5i8SlGd0zf3euvD WiHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718121554; x=1718726354; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7KeeLnew4Dr2lt2iWiQJB+NWU2kaX728eR1Y/pdt+oA=; b=PBuiHC/kyoQwobvrniCP9M3MA/XT6dIw5HGHVN8gtlL26wVd0lxFSEi7DX4iWAg6f4 AJMhAv8yn2xqTJM5ncJ8bQumJs4zYL/WIEvZROe7UT7URN3C2UuOgGV3zIk7fvjd24D7 9IcFlYUmJPKmta+MtxkVJoUtea8BMG6Xee5OcaI6h++RdI+MOAsw4F7SWV0OHtQZF73E 6Q6rKTiXBhmjmJnhu6jl4Ml9kCTNAX+yXNednR/BML4aZpjTb6zJ26WPspcqd5vWHiFS SgCHCvF+sphQBLVeeBjQj0x6Ib4sWXt8mBlXlMpKnB1pqJR5zQeZI4WlJQS/Vzlxf7Nm wj6g== X-Forwarded-Encrypted: i=1; AJvYcCXqvIv9kXmqCfiJy6KgRG4ffcXgPvtf7Mz3RigXGRCRJirPPbc7qt1a9ktW39h7HwDmeLkxQJUC30eInc3yExcUe/yhf3JSQbKapUZ3 X-Gm-Message-State: AOJu0YyiNo1TkMo4Say1C2v626oE3OhXWW6yqDzmvdqB5LQn4RuLZjRH nE2i2T+FVuYsaXrhYUc/LWrwp48aVrk9OtLbg/MnafhjpqjNsR9ZtO6qZGDJUQ4x6/ejARPyA32 ypEFygn4kMMwbyQlpJiyM+9azjIm4VjI9YyGzLQ== X-Received: by 2002:a17:906:2811:b0:a6e:f7bc:dcab with SMTP id a640c23a62f3a-a6ef7bcdd76mr607353666b.65.1718121553604; Tue, 11 Jun 2024 08:59:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610-xtheadvector-v2-0-97a48613ad64@rivosinc.com> <20240610-xtheadvector-v2-11-97a48613ad64@rivosinc.com> In-Reply-To: <20240610-xtheadvector-v2-11-97a48613ad64@rivosinc.com> From: Evan Green Date: Tue, 11 Jun 2024 08:58:37 -0700 Message-ID: Subject: Re: [PATCH v2 11/13] riscv: hwprobe: Document thead vendor extensions and xtheadvector extension To: Charlie Jenkins 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 3:57=E2=80=AFPM 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/ri= scv/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.