Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp927129lqb; Wed, 29 May 2024 15:13:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPaZvuYLDHwLYaED/+pq43B9SYLWGI/TwvxSSlZdF9Ee3Fd7XvDlyuryRY6zB6mjQEJmNyMKAdkDzTiDZv/z2/aA2WjR1wbeQ8Wp+j7g== X-Google-Smtp-Source: AGHT+IH86OMkSfxktAAA392dZTUyP748FR7jJ1RRszrvxTqslhKZel7Bw2+eYmg3KIGC42u5EdXF X-Received: by 2002:a05:6808:1511:b0:3d1:d17d:8379 with SMTP id 5614622812f47-3d1dccf0738mr377665b6e.47.1717020809888; Wed, 29 May 2024 15:13:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717020809; cv=pass; d=google.com; s=arc-20160816; b=Z8ZWw6BTebmrGZLuq5Zd61vtD3De5Y7xswsh7VM3PagWTc8Pbp1yS2Yt2icInrUVoX UkNdeh2HPbeaycqdbeZR8OzNhzL/P+AbavUb6zwJaQmk14ch/UbIVYKqCazcg2pFwLwv D0dtGupCOjQdiOTbXO3pSR/Fs/o3X5tPmd6BhlhcncB0qwRU85Jl3R35pn988O0IoXdd S8MTva3f3+HsKcur7uz910WVrMgM0EmyIsKUsiYrRm2SAH3KCNG8kk2FFnDQBUt5lJyM /Pgos76wTDz7GZUhdesqUw+2SexrNhlCKmN+wvRXTpwrXtAqAbbMHBqHAL3MezAGISX7 rOiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0IlII5UPz7okOGVtp4oFhfmfzPg6aAU73p7l7C1qc+k=; fh=WvqaNewku2bh/Fwv1HezkOf7kMQNBR2JydmOs5LO3lg=; b=TovurJW6PkUKP/F1Bt8qdth4pNi56jo/Wk1s61g3eOAguyA+RKY30hpgKKE0DpXb+j Tm+7/g2YxSLboVhwcquxEEecxtTLPScQMjH10+FvP4xgNYNelli3hfmNB5W8byaOKk+a Za7ZZiZm0jlA93FY1+tt+9RLYbLYdTRzeQ/FM4pb5vhNzXyBd/nps6AcMpSPW/ljEAfg 7bLhsNNbjGotB15cQvFXCBmO6qPsrWzGpDFjb00E/KEDUygmzgPTUtiC6fW0BXzUmDqp NSu3O0CLa/aqf4oPj7p7EDz/QhbYckuaHDpuagrxIB8DB2zU8H1mEZJ3Fba7wugLe/Vi wCcA==; 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=QKNczN99; 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-194735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194735-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 6a1803df08f44-6ac162b4f12si139976016d6.474.2024.05.29.15.13.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194735-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=QKNczN99; 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-194735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194735-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 7282A1C21DCD for ; Wed, 29 May 2024 22:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4943E1CB312; Wed, 29 May 2024 22:13:17 +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="QKNczN99" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 D305F1C9EA7 for ; Wed, 29 May 2024 22:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717020796; cv=none; b=ovOhF1FRUCEwIOZpmiLuiddoeN360k7u3lemjawbbiJoqDcUgDpIlba5aGrLWL8t5S8yBJFIiAoKHeWzM+gFLmlN5jgOy0D+A7rcr57zMVpQ+kHbjUXPoVrl1S6RoobX3Ghy0JqDQToo6ISl+UKMKTYfJ3Q32lZbQVJeaVrpeBs= 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.42 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-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2c199e776ebso169717a91.3 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=LwKeMjRXMbQvCjM6jciG/A3vSWytgG5nY74LpoCauywSlTJ9Z6gGRheqcOdzojMo2T vZZhFahYaOCJBlnu/m6Vv1HRKBh4GK53s638nNquLcxOaa4ZkA+r2Sc0vJFWaOGu5doi zYobKhjApAzCjm80VCArJIv/aLcgXWstzR0L9SnHjB0+mX/Mm1Bq+98bvpSIMbc0kKws twR5OKrNKj6cILRmIoUbu2pKPFCCmehLSh0Vp/eCCnmlGR9KlceFXNyzSUS/nYkwRTsL HXGX1jslFbHBAxdEIvYMzUcdgj9UOaNFuyfrY8jA9C9Fti05zTgWey/pv1VSsWS5LW+D QMpA== X-Forwarded-Encrypted: i=1; AJvYcCV93c7X9FyPoJNAoUImZckzH/GpUIwMK1jNEoKcp1j+TCOZik0rG9YKQZUryQuNtY+eKtirt7UEbhqTC4RL8K/eMxQbtaH5U4m9Y3MP X-Gm-Message-State: AOJu0YzUPQUvSeA2brHaeQ95LCs5ptacKmvhLgfzq7YCP9OFOcISXz9n UGPoVbR/zh73HiC5an5zfEpeD0YpgJ0s1QtQZCFUf5Yvevh/sBdcVJqhDPHlhsY= 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-kernel@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