From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.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 CF51C1C8FC9 for ; Wed, 29 May 2024 22:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020796; cv=none; b=L/2U8DVj0R7TVPEVPeIHtKMarBEq1NyhqdZ9PUKAYhVNXwiB1J+8OsJ0dAqR/FpQIenhNymEx7qjq7cHJHB3kXJVXza3laYrnDZQgYUCA9FhPYZIQBLSd4N5uJLr6ZTs6CQKvF2NJB/CvDSkixx4EEfBAdVWbSNzq4+kf3zLYvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020796; c=relaxed/simple; bh=Qpm21gYNPzC5coWzUo4QZV+kF+pJIchx2KZIx+YUsBY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZlZJPaPU01OjOK7QcfZepBcyhwKljWyJ4hI+wfGTEBH/x7Nvxb+CUfVkcjJHlpl/Y+6jA8TDUqjpcBV0kXmAeN4beARmCxhurej2m3TYnIAe31WlLFlFIzRvoc6Jma9bIP9Gwc+9xixi/isdrOa+25Xff9gLdM3b6mzUriQPdro= 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=QKNczN99; arc=none smtp.client-ip=209.85.216.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 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="QKNczN99" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2bfff08fc29so177809a91.1 for ; Wed, 29 May 2024 15:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717020793; x=1717625593; 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=0IlII5UPz7okOGVtp4oFhfmfzPg6aAU73p7l7C1qc+k=; b=QKNczN99ChlIoY7dFfMTgiQq3y95ZGgCceefk7nUgKe3325kh/prJBaYNA24dKvf00 +F3SMZOGdq2nfXraMvqs2M4HcjVmLwsuqnaPmDeEUsqEggM7Mc9GNjeu6FqIXXCB3eKC q+h4OmPNPXmmcjwlH6dfKUolBmn6f7sE4TATR/ZUNAGB9Xez0+qLaLO7Xiia7KymrGga jSO7ZLAAWHsniLm63V1ngqKLL8cv1toyYsExScEkFyEDvkLgIiX3MrjrT2Tsa+HX8Qdj qDgt2ZOSvs3CGEUGCRXyEahYrCOMAQvbbaoIX8iLvC18EpqUBVCB0Y7BbSIBbho7e3fa 0hxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717020793; x=1717625593; 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=0IlII5UPz7okOGVtp4oFhfmfzPg6aAU73p7l7C1qc+k=; b=FHq52olf+4xAZ4RFqHq/8X65iFMFTKZaO+pnwP4yaNMMzo6d3qYj9FCLIKT17aU23X GdgJaFfsQKSNij2KhPTtyzza7RNtW7LRyjmNKusZBZf8kguMwABKqtKSLI2UIwf7W4Uo GJZnn/Yciy4abs32Z8Y4y1XGple7/44AiaKIQvhtmRSpBXhueViOCXr52qbjk1AyMRdc RUBoVcPm0HIsB0md5J95lAPlnDXMCm6mJhOaST08ITRH+52IaZRrfBZ/UuxY800GrFSC hEjpHMwjFiXY1ODm7FZ6sDh3jiF5EiRsDI2tsYVVybGf0mgkGPLIBqzP0WSb5FXM7g7L VTXA== X-Forwarded-Encrypted: i=1; AJvYcCW+n8dnq1R+Gxkd5hGNA41HExggZoWcwyhaLVTSwHbw/5kRHAss5PX+AvJFQwjMUUREAAKOJBH7v5jhoOcs2OPMxcpVHeFXp6Js X-Gm-Message-State: AOJu0YzZ32R3foPo9/mp7fPAyz8jBj9hO6pbAm6EQAfQmDw/c20W9oLZ RTsZDxJgYvyVerQPu3xEJ/pdlmudBdEuCeuASdebx7B2DLKCztAyeTitC7Y6m80= X-Google-Smtp-Source: AGHT+IGZO+QhLAfwlgYNEFfJDCtn8LQjOZE5KcgbzkziiPV98AS34GxnJcpziGZFsgu3JA+ZTJhYwA== X-Received: by 2002:a17:90a:ad6:b0:2bf:dcba:a3c1 with SMTP id 98e67ed59e1d1-2c1abc3e316mr512737a91.34.1717020793113; Wed, 29 May 2024 15:13:13 -0700 (PDT) Received: from ghost ([2601:647:5700:6860:32f9:8d5b:110a:1952]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a7772cebsm287763a91.17.2024.05.29.15.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:13:12 -0700 (PDT) Date: Wed, 29 May 2024 15:13:10 -0700 From: Charlie Jenkins To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, Conor Dooley Subject: Re: [PATCH v5 06/16] dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension description Message-ID: References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-7-cleger@rivosinc.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240517145302.971019-7-cleger@rivosinc.com> On Fri, May 17, 2024 at 04:52:46PM +0200, Clément Léger wrote: > Add description for Zca, Zcf, Zcd and Zcb extensions which are part the > Zc* standard extensions for code size reduction. Additional validation > rules are added since Zcb depends on Zca, Zcf, depends on Zca and F, Zcd > depends on Zca and D and finally, Zcf can not be present on rv64. > > Signed-off-by: Clément Léger > Reviewed-by: Conor Dooley > --- > .../devicetree/bindings/riscv/extensions.yaml | 78 +++++++++++++++++++ > 1 file changed, 78 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml > index b9100addeb90..39084c58d4e4 100644 > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml > @@ -220,6 +220,38 @@ properties: > instructions as ratified at commit 6d33919 ("Merge pull request #158 > from hirooih/clmul-fix-loop-end-condition") of riscv-bitmanip. > > + - const: zca > + description: | > + The Zca extension part of Zc* standard extensions for code size > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on > + RV64 as it contains no instructions") of riscv-code-size-reduction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed > + of zc.adoc to src tree."). > + > + - const: zcb > + description: | > + The Zcb extension part of Zc* standard extensions for code size > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on > + RV64 as it contains no instructions") of riscv-code-size-reduction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed > + of zc.adoc to src tree."). > + > + - const: zcd > + description: | > + The Zcd extension part of Zc* standard extensions for code size > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on > + RV64 as it contains no instructions") of riscv-code-size-reduction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed > + of zc.adoc to src tree."). > + > + - const: zcf > + description: | > + The Zcf extension part of Zc* standard extensions for code size > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't exist on > + RV64 as it contains no instructions") of riscv-code-size-reduction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initial seed > + of zc.adoc to src tree."). > + > - const: zfa > description: > The standard Zfa extension for additional floating point > @@ -499,5 +531,51 @@ properties: > The T-HEAD specific 0.7.1 vector implementation as written in > https://github.com/T-head-Semi/thead-extension-spec/blob/95358cb2cca9489361c61d335e03d3134b14133f/xtheadvector.adoc. > > + allOf: > + # Zcb depends on Zca > + - if: > + contains: > + const: zcb > + then: > + contains: > + const: zca > + # Zcd depends on Zca and D > + - if: > + contains: > + const: zcd > + then: > + allOf: > + - contains: > + const: zca > + - contains: > + const: d > + # Zcf depends on Zca and F > + - if: > + contains: > + const: zcf > + then: > + allOf: > + - contains: > + const: zca > + - contains: > + const: f > + > +allOf: > + # Zcf extension does not exist on rv64 > + - if: > + properties: > + riscv,isa-extensions: > + contains: > + const: zcf > + riscv,isa-base: > + contains: > + const: rv64i > + then: > + properties: > + riscv,isa-extensions: > + not: > + contains: > + const: zcf > + > additionalProperties: true > ... > -- > 2.43.0 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Charlie Jenkins