From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 8E7B813A3F0 for ; Thu, 3 Oct 2024 07:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727941937; cv=none; b=PZzvJiBdINdoYqnGETN2BURDEjN8WjxfDmIF5k11WyNnBlV+M8+XHU05qK4VF4s7Jh2Tl0YrH5GSRBp1d/AaQk0f+tfM6x6wtbMlmq8Q9EvxIqU/Pg6qUFdPI6A3HWazXSgWnb6o5xKojeg+zRRSh2Ini9yynDeZ9bi6gdMfDug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727941937; c=relaxed/simple; bh=qxLGfFHk48N54tHtoOeSdcqqX6OYmX7Um0o4ucPkydI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gilIGtDd8n9mFufUShGTkxnVJXuMdQok6ONsCvguv899xBeGYjf0vu1T+hjUIfsNOfB9z92jibqHgDukBKvYU3NFsbkjVFHS+boKy/1AYAqquUvMbCiOG4xOyILB9bn0sws7D9gzk8ncx5v0oQprGDhGAbIDFlp0OJUNssVC9ng= 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=lD+OSZTb; arc=none smtp.client-ip=209.85.128.41 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="lD+OSZTb" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42cb57f8b41so8432275e9.0 for ; Thu, 03 Oct 2024 00:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1727941934; x=1728546734; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hqwQ/zncqL+Otp1RcK1yRc78ue9IM5xaO84OK1nfH6k=; b=lD+OSZTbgdkDQQ0iImoXxfFV5KwjQ+saTnuNG/mOHcC7xwIZlrFkMoWzpS/7aN2gfq siid0QZWyzcK4E2W6T/69Nx3g6DtZO/zkQ5cZFr5xa9HeKBemhuyZjYtr+iyDvW8FlEs +JxMcPLFAbwRu147Efk5vK0/je333y3OrZ2+7wMjr6vobP0l6vSzuTNEXxvncGrkxLCs EcQDcjv8Mv1ROQS1Cjq/G8dIk1qrObB3jDn/yreXef5Sn1kgFf16D2Ji5XzMjEIr8c0P ccawvURAieMFMSmqsDqyGpL8jY+UcLAp4mlSMwlxwRD2YkaK3YCIXzzrOjwBhUs55HpD vhSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727941934; x=1728546734; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hqwQ/zncqL+Otp1RcK1yRc78ue9IM5xaO84OK1nfH6k=; b=Gqj4OT1HrzcFeYXE/aWZ8NACeZGH9Q2carljToZezCa+hROb7b/A8+DUdNuOUb7u0F u9KtoK+ZWtU/NhCzwqoV1b9cYQxHOVeEiZNABnlv25nulCvF/IycRScKN2jjyXZeSjiQ pSux1jjrfZmEnEXamVOYcOotLtbkZd68xaZV46lL5QKFmXcXHL4CYceqAJ5SmHrEFw2P 478RMDmwGly97F8Wj7EpwR+j/iszVwu3X1NCNLGIzh6+0IQW68KKL/zOLe+kUx4cexJk TqarEmnNp7QeLB1qVzlu6O5gk80D2GaDO7McX/6CoB8yHUwc/QctD8FzCfeiEh5c9NE+ cQ2g== X-Forwarded-Encrypted: i=1; AJvYcCVDiNJujXWxryyde9IIkiQOSYh5JDzp2B3i3qUVuYl8LF5YgLq9D6MdiQiujJaQ8okSojoAFc16XiCW@vger.kernel.org X-Gm-Message-State: AOJu0Yxno7XPner5NAvXHbpt1i5UxQTD3aBwYRaabyc3Hv441gvCVSbg vwxnaTAFZUsYoFPI/deLo2LLECtIaojgUaOYW0zHQ4TI4kOvMgQs+z8EoKoi7j0= X-Google-Smtp-Source: AGHT+IGXlCpjd4tKzLHHj8wH2BDGO4iTZaoBK1oTq4S+8PGiA4E1uN9byvXyd5dtX9Xfr2ZPDnjeyg== X-Received: by 2002:a05:600c:1ca2:b0:42c:b995:20db with SMTP id 5b1f17b1804b1-42f777b1fe6mr50087975e9.5.1727941933917; Thu, 03 Oct 2024 00:52:13 -0700 (PDT) Received: from ?IPV6:2a01:e0a:e17:9700:16d2:7456:6634:9626? ([2a01:e0a:e17:9700:16d2:7456:6634:9626]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f802a02d0sm8695285e9.29.2024.10.03.00.52.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2024 00:52:13 -0700 (PDT) Message-ID: Date: Thu, 3 Oct 2024 09:52:12 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v1 4/5] dt-bindings: riscv: add vector sub-extension dependencies To: Conor Dooley , linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Andy Chiu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20241002-defeat-pavestone-73d712895f0b@spud> <20241002-eagle-fresh-4b2e259e45ee@spud> Content-Language: en-US From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= In-Reply-To: <20241002-eagle-fresh-4b2e259e45ee@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 02/10/2024 18:10, Conor Dooley wrote: > From: Conor Dooley > > Section 33.18.2. Zve*: Vector Extensions for Embedded Processors > in [1] says: > | The Zve32f and Zve64x extensions depend on the Zve32x extension. The Zve64f extension depends > | on the Zve32f and Zve64x extensions. The Zve64d extension depends on the Zve64f extension > > | The Zve32x extension depends on the Zicsr extension. The Zve32f and Zve64f extensions depend > | upon the F extension > > | The Zve64d extension depends upon the D extension > > Apply these rules to the bindings to help prevent invalid combinations. > > Link: https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-698e64a-2024-09-09 [1] > Signed-off-by: Conor Dooley > --- > .../devicetree/bindings/riscv/extensions.yaml | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml > index 779f5cfab806e..abf2579171c5b 100644 > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml > @@ -605,6 +605,52 @@ properties: > contains: > const: zca > > + - if: > + contains: > + const: zve32x > + then: > + contains: > + const: zicsr > + > + - if: > + contains: > + const: zve32f > + then: > + allOf: > + - contains: > + const: f > + - contains: > + const: zve32x > + > + - if: > + contains: > + const: zve64x > + then: > + contains: > + const: zve32x > + > + - if: > + contains: > + const: zve64f > + then: > + allOf: > + - contains: > + const: f > + - contains: > + const: zve32f > + - contains: > + const: zve64x > + > + - if: > + contains: > + const: zve64d > + then: > + allOf: > + - contains: > + const: d > + - contains: > + const: zve64f > + > allOf: > # Zcf extension does not exist on rv64 > - if: Looks good to me. Reviewed-by: Clément léger Thanks, Clément