Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp55349lqm; Mon, 10 Jun 2024 12:29:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4yzoPc3lJ3JV+sKuZ561wF61Ms8sHJexUn/R2Z5mmqHUlo7Ov+JtPcM94IU1NyuA1Xv02gInQBEWzq32n1FocOFhB9WPCDfqewNPFGQ== X-Google-Smtp-Source: AGHT+IFoXgT/noTyZCyLczYmiJesCsjm9nCXpo1Qm1LmGmav95ayZD46IX2c9ZdGpqJxxgBwi+M3 X-Received: by 2002:a05:6a20:12c2:b0:1b5:4430:456f with SMTP id adf61e73a8af0-1b54430465bmr7687851637.56.1718047749668; Mon, 10 Jun 2024 12:29:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718047749; cv=pass; d=google.com; s=arc-20160816; b=IUsvZiUN4ZGY5V55Cd8WjXA5m0RO1UyW52P4aD8QS1cdbXbP+Uf0xsMGj5+aVMkXdG syFNybMc8h815atoeVbE4PUJ3fG6smj94f3OhjgADMSZXRyFnO81ygUOrQP3jD7BGTF/ Rs4Vo5w74vlHeAiaxLU6FegvRVX/6XrVSjF9Nol0k9LbNk9hu/faFMXFYH+T7ZWCrJ9e O0RvcDsbYF8U+uUyith56OMKvLqsZMC81+80uX9fwDt1rhXiBdQWp8ChFsloPfgUtjxZ KFMmMbUJzblRtdGmsyJtGNtvF2OvftrpTM8PlXZ5rEgMUgKNaNBvb0zX+yAY0rh+GS3m vNsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bZOc4IMes6MadZn/E3RWkMkOyNwjSNn3JH737GrUiZI=; fh=RZlvrWmE59MJQvnxq8fzjQy/CElDkb1Wpbz2Lh+r23c=; b=X9633yWJqb6NtUTLkEQ81r8GNw8pxSmZp9bG6h7eGXa/sh3lMzGvr2DNFgJA9K+M4Y +g26zwJjBJ0lRX1uvuDBrayPV4puZsBRN8xhC783Bbw9HHt2HWqli7OVl4L5v3I7jiaE yRdCBpvWwc04+1Czs0JG74+eCPz/KrUa4+8AwPOYLtlF+iVMjEL73Vp7KMmMpjpoATc3 oH3sKUfWw30mc9ZTOr/Lwz44XgTAlYwC9UIDgMDTYamqKd5oWqIhDllWDCZ5swEFzqaf +6jpVcqP+5DfAVOpM4SI/9p0Df2yB4uMzaGJWRObVUwx1QwOXpCk8lITLstusIwaDdjI 1nmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TzjQlIS/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e50329da0bsi5659053a12.389.2024.06.10.12.29.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 12:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TzjQlIS/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E50C5B2183E for ; Mon, 10 Jun 2024 19:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92FA014F9D5; Mon, 10 Jun 2024 19:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TzjQlIS/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9F9C14F10E; Mon, 10 Jun 2024 19:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047708; cv=none; b=S0rlFD+LJrqBGLH9WE1dB6iWor6+RjfC/WEZg90s/NqZsFMuEFg2ffrf2/bRL3xwjstYQPo5uGkCb6Qe/AAc+SXtdJ0bjjopq0zhaYSiZXRPu+T4UCH4STTm2NT9tUCfX/bucYOOJdnVGaDX0qfOlMIrmcoKfzg/F2sILJe1EQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047708; c=relaxed/simple; bh=9PZjDT0V6Lj4GRK41zPSetvsgEiAtuFunhoEXkc3IY4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WFvHkgMLTUO8m9y+g99r6QUDcO4GX4oK/0Vl4wjICoN1FzQd/ORgqWmHUwyGNA4soHMaIA6FwETvvyqDpMg+G3q0QPYSDkUyyxg3+vfMmxCaU7D8VXUlNvPP2/VQNUHIm84FJMw3C2SH8lslBOpLrmKZ0hIsnXC8MZmqDiUDYtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TzjQlIS/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 468B4C4AF1A; Mon, 10 Jun 2024 19:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718047708; bh=9PZjDT0V6Lj4GRK41zPSetvsgEiAtuFunhoEXkc3IY4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TzjQlIS/V6CcADcn39qu2MVD/FOA+Yr1qULzWAMawj4+ebOtJTsjTS8PWQReYHTUG t+b10QtTD4rZWBvXYcPEAXJyraxXaxdRcUcmIa/r/WJBUz8+ASC1ep3qdO5S8FAOBU OBfzwXkUZW57K73lsfZdzbkmqc3oyftFUt8BMrHSkwiTqIovF/ssJpOtVa9PkT7fJb W4+IRELYJ3POTYVbrVtiGU6Vl1PfN4RwR978eiSDoU7Dr/53/hcmvcGsZWM9uyEIsa P+HafwBaOUMhDp8SPgHnxzpgbr8YJHO+llEdJbpVEgLymDlFY+Q3jKcbI47wglfe73 ALVBkh4DUZJdg== Date: Mon, 10 Jun 2024 20:28:22 +0100 From: Conor Dooley To: Charlie Jenkins Cc: 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 , Evan Green , Andy Chiu , 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 Subject: Re: [PATCH 02/13] dt-bindings: thead: add a vlen register length property Message-ID: <20240610-envision-impart-7211e512f987@spud> References: <20240609-xtheadvector-v1-0-3fe591d7f109@rivosinc.com> <20240609-xtheadvector-v1-2-3fe591d7f109@rivosinc.com> <20240610-unaltered-crazily-5b63e224d633@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zZEd5eFtiVuoCvyW" Content-Disposition: inline In-Reply-To: --zZEd5eFtiVuoCvyW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 09:38:06AM -0700, Charlie Jenkins wrote: > On Mon, Jun 10, 2024 at 05:29:23PM +0100, Conor Dooley wrote: > > On Sun, Jun 09, 2024 at 09:45:07PM -0700, Charlie Jenkins wrote: > > > Add a property analogous to the vlenb CSR so that software can detect > > > the vector length of each CPU prior to it being brought online. > > > Currently software has to assume that the vector length read from the > > > boot CPU applies to all possible CPUs. On T-Head CPUs implementing > > > pre-ratification vector, reading the th.vlenb CSR may produce an ille= gal > > > instruction trap, so this property is required on such systems. > > >=20 > > > Signed-off-by: Charlie Jenkins > > > --- > > > Documentation/devicetree/bindings/riscv/thead.yaml | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > >=20 > > > diff --git a/Documentation/devicetree/bindings/riscv/thead.yaml b/Doc= umentation/devicetree/bindings/riscv/thead.yaml > > > index 301912dcd290..5e578df36ac5 100644 > > > --- a/Documentation/devicetree/bindings/riscv/thead.yaml > > > +++ b/Documentation/devicetree/bindings/riscv/thead.yaml > > > @@ -28,6 +28,13 @@ properties: > > > - const: sipeed,lichee-module-4a > > > - const: thead,th1520 > > > =20 > > > +thead,vlenb: > >=20 > > This needs to move back into cpus.yaml, this file documents root node > > compatibles (boards and socs etc) and is not for CPUs. If you want to > > restrict this to T-Head CPUs only, it must be done in cpus.yaml with > > a conditional `if: not: ... then: properties: thead,vlenb: false`. > >=20 > > Please test your bindings. >=20 > Now that I know `make dt_binding_check` exists I will use that in the > future! And in this case dtbs_check would also complain about riscv,vlenb being undocumented - and complain about thead,vlenb not being a permitted cpu property either. Thanks, Conor. --zZEd5eFtiVuoCvyW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmdT1gAKCRB4tDGHoIJi 0gELAP9N4Tu6RdQuKtMCvloFTO6BrRXNU2iSwXxMepsikmv0PQEAsVNMYTrc/cIX AooXc0b3saxiQGxb2MiZo/UtbA/dcAo= =DctY -----END PGP SIGNATURE----- --zZEd5eFtiVuoCvyW--