From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charlie Jenkins Date: Wed, 29 May 2024 15:13:10 -0700 Subject: [PATCH v5 06/16] dt-bindings: riscv: add Zca, Zcf, Zcd and Zcb ISA extension description In-Reply-To: <20240517145302.971019-7-cleger@rivosinc.com> References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-7-cleger@rivosinc.com> Message-ID: List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Charlie Jenkins 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74EE5C25B75 for ; Wed, 29 May 2024 22:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6KVZVYoIixO1ZFj6fRWlYpcDv3EjD6t5tyGNOk59YUQ=; b=QV1pYEuAqtPie1 A3R0nWTvMTA5Z6nEV7f7DAh86Dzrj14D+BVXjBukfx9k9OK+Yqfl3kk1H7Zz29H4COY8O87BS3cCx hDPBgl2fEKwrSbtZusUztsYxMCYZrF1CyI48G4ZkqnUlBCXD/bPDJnkSHCpRSgKH7EO57pPbKY7IO LS2uCV5yjcCAHQRTzwd5Ec3mZYEIbH/euV3pOHmmfKadjP0R8R28AYyRmLf8OMOhI5YqXTxSVfL5I oiT4WpdcERjbKcsczAEYYom/aUkUDAKyfDlpLyxe1pxLcslbVNVgBBXZnVai8Als5w9XMbMTwp0Yt vcSZRgEbMlcYVkpLB64A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCRXp-00000005hAb-0tns; Wed, 29 May 2024 22:13:17 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCRXm-00000005h9m-3CWZ for linux-riscv@lists.infradead.org; Wed, 29 May 2024 22:13:16 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-6bfd4b88606so102585a12.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=lists.infradead.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=3ELQ76mZck9RjCdz1pwTuOggZWuuzhEH1nduk+3DlPFq0KNQzSQXkg9kTpNU0eav50 EHknAzMcCvFYwnKOQuRT+rn8u/Qp8Wwkf6tRjMCWdnK4pLYXLeu/tTr80T56RGTYFd86 ZYVXBnUsASi3rKwS/Fx8pqNOCWXfCKIGPNFoohin6O6udQ+6Ynid2CKpwvA3gb+FbxWc J/I3tchOo5q7YQ66HK8nZkwqjP79ACtBkJjFHvbPICra74VWtsOEIZ1DkM5ZS0loDOsa 9qK1TPEUXgz69Kdxl8+31595C0sv5nYzn/lyiCkzxeMXWPLmtwLFKayDOjTSO6F7mq+k MHtA== 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=hk8kH6PHApRkTS+ALciCAGo+tbtuFwxYXqO1id8lD5jToIppkzU7MvtRwzLg85xEUR qUhKEDmOnrF9ojZwh3Gp+2sY4S0xgLgZAH0rOMZv4HJvfeDzi5fdjFE1Xxq6/DfJ1Avc cfRtULyJmtUklq9JwRYgUw//setrtbWIOWS+QSAsNxjcyo8NGEt53rGO+55TRdEFeOPZ WZ2TszBLhlcXMz7LteyNEIj4W/8MyNA7/XCuf2hnVebxHMF8uNglB9ryqpFQ4VkPL6KE HyUN6kQJqah0qmq45MpvqUPwSY27KUCQtRtqZujD3awctr3bcMbKRldyDCF+RG9Pfe4l IWqQ== X-Forwarded-Encrypted: i=1; AJvYcCXGDk4x5ennMG64SF88/9XgvWaIeipQuwXPZLCJu1acVAun/3FQh/13ko6pOyZEBSzlPSe2zZDFaBR6mYsyYtdrW6vlC9PlECVsls68cgnl X-Gm-Message-State: AOJu0YyFT00WZukMrlO9jpRfWJ3IALWeCsSRYGBFtECxuqo+TdgzCEcH 7ioSauto+veiqyiFojoRAha8FrmxvWMOmYj3RVCJxQuuDxT1CNXMmTLoOEJDJZQ= 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240517145302.971019-7-cleger@rivosinc.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_151314_835272_4BE396AD X-CRM114-Status: GOOD ( 21.43 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Fri, May 17, 2024 at 04:52:46PM +0200, Cl=E9ment L=E9ger 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=E9ment L=E9ger > 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/Do= cumentation/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 requ= est #158 > from hirooih/clmul-fix-loop-end-condition") of riscv-bitmani= p. > = > + - const: zca > + description: | > + The Zca extension part of Zc* standard extensions for code s= ize > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't e= xist on > + RV64 as it contains no instructions") of riscv-code-size-red= uction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initi= al seed > + of zc.adoc to src tree."). > + > + - const: zcb > + description: | > + The Zcb extension part of Zc* standard extensions for code s= ize > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't e= xist on > + RV64 as it contains no instructions") of riscv-code-size-red= uction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initi= al seed > + of zc.adoc to src tree."). > + > + - const: zcd > + description: | > + The Zcd extension part of Zc* standard extensions for code s= ize > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't e= xist on > + RV64 as it contains no instructions") of riscv-code-size-red= uction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initi= al seed > + of zc.adoc to src tree."). > + > + - const: zcf > + description: | > + The Zcf extension part of Zc* standard extensions for code s= ize > + reduction, as ratified in commit 8be3419c1c0 ("Zcf doesn't e= xist on > + RV64 as it contains no instructions") of riscv-code-size-red= uction, > + merged in the riscv-isa-manual by commit dbc79cf28a2 ("Initi= al 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/953= 58cb2cca9489361c61d335e03d3134b14133f/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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv