From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 127071474C5 for ; Thu, 3 Oct 2024 11:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727955417; cv=none; b=ssHf9GQmR6iZavCMYIFiXG5VptTjlDcYXRMaz5+XQ3tSVCrCt2iSq7+g6y0dVArGnaEHsxGfc+9HXNpT6hQBiiSyzgRQE5uKrA7lu+3tWFuKihoju6AZLLh+lr/IRWZ0YuodkMZtA/IrAjK5vRGuERQuPuG+G/44Jf3QcvqSF0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727955417; c=relaxed/simple; bh=9XNu2YiPVfCXMRsCJIzq5HdVuO3OfnQEUwzdN5epTWc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GQ2woNXvYA1YPY3dVl83ZkT+jU1QHTiDxsdXkwtb0xQqo+Jd5MetDSYqIMYp2gPQj2tMFCWso5q9uR0iM+WqyWEX0aooZ22LFNfIKZOWYbD61uw/1WWJhspRhue69UMSCRqA5ZxRG8rw1QWHZH/PzVIVjx/TTLDb24U/zDmev94= 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=ELoH5JGx; arc=none smtp.client-ip=209.85.214.170 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="ELoH5JGx" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-20b6c311f62so7275325ad.0 for ; Thu, 03 Oct 2024 04:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1727955414; x=1728560214; 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=JQor36jTy9xL586/Rs54JpiyHVbpn/Wm9HFv91ZHsxY=; b=ELoH5JGxvH/X6L1FL33IWcnkGZ152De6eb2y4hlJj2a1orRgRK4NwPoss0YWLhFDln taOe1SeEpB29N3k3i/JRLCyz5VOPu4Z3jfP3jbgpuGPD/VhdaoeGVFBIb99c9AJwGUW1 PLQbjHYkCUuhoInvxoibdT2raf4q1XxuI1kR3/Mi1qYRE+zk5pLDqFX30KjGUs1oi1IQ 95xTUv/Mi+LJ6Uq5RuvQgnLmTes2Brtw4sxQwlYMeYmC/Jayhh+y1ynNn24q/aGMwvwn 3jNHKlpAoXChpR+w3Y1LBIeNQqBuIa0k/exhUFfQf2pyZODno+ymLAQaD54hJKD34uCR crGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727955414; x=1728560214; 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=JQor36jTy9xL586/Rs54JpiyHVbpn/Wm9HFv91ZHsxY=; b=sMWHcbFRUeZrRizzYuqwSlq9KeYtzLoH0qkyOeCcHVJIeRF0Njk4O9sNIYjo5a1gB9 3Qx+AMhZ10eSHpH5ud8ymGz/DsWY/TgtKwp13LZKSyM0jcdwK42Tfrnk+m5+Y3CvWZJH ZeKbYF0NLJu53jVyTr1Zt0awQbCSMgVSGu0EJRfMwt7aQVpXKIYPmZjeh4yEdibkswSB kB/7VOe6bEu/crOfCKaWcGuFMYp/1+xKBusmRbpXkTzezHh72bC8cKfgYFxZx//XyNCb Ksbi7/FkKDBKsiCIa4MAx5IXp3jB9quu2Mvuu5xgjfS8aJwlirjmTQBrgSKStwz8MA3R Q4kQ== X-Forwarded-Encrypted: i=1; AJvYcCUsWW0LW7feu2e8H/lTlvb46PB6Xq+hY/vXRZRyngSYEl8FmwNQ7I0dF9WcKKimbdR4qZYiXqKitnr1@vger.kernel.org X-Gm-Message-State: AOJu0Ywx04F4Nezer349zPjnHrhLJ1sT83lIQ9733KhZ6uFtP/jnLz84 AB4hnKO63zL+G0MsZk965jFVAW17eOpoPCoUOtGhm39iI0vygrpN41WD/gkEOVs= X-Google-Smtp-Source: AGHT+IEQ68PlX9h44E20F8mxHs7TxeSSTPFiB6+vSfinW6ZvpbDDUvkv5/aJJDNY6+Od8jkr6Cptog== X-Received: by 2002:a17:90a:a10d:b0:2d8:e524:797b with SMTP id 98e67ed59e1d1-2e1846be8fbmr6630662a91.18.1727955414243; Thu, 03 Oct 2024 04:36:54 -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 98e67ed59e1d1-2e18fa05087sm3476494a91.39.2024.10.03.04.36.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2024 04:36:53 -0700 (PDT) Message-ID: <9858968e-178b-4357-9eff-3374df84ec90@rivosinc.com> Date: Thu, 3 Oct 2024 13:36:43 +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 5/5] dt-bindings: riscv: document vector crypto requirements To: Conor Dooley Cc: linux-riscv@lists.infradead.org, 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-sincerity-urgent-acdb0e8d8a66@spud> <0fa7461f-5c7c-4f18-ac02-66d37e2c559c@rivosinc.com> <20241003-variable-quirk-9a13fe040e4a@spud> Content-Language: en-US From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= In-Reply-To: <20241003-variable-quirk-9a13fe040e4a@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 03/10/2024 13:05, Conor Dooley wrote: > On Thu, Oct 03, 2024 at 09:59:38AM +0200, Clément Léger wrote: >> >> >> On 02/10/2024 18:10, Conor Dooley wrote: >>> From: Conor Dooley >>> >>> Section 35.2. Extensions Overview of [1] says: >>> | The Zvknhb and Zvbc Vector Crypto Extensions --and accordingly the composite extensions Zvkn and >>> | Zvks-- (sic) require a Zve64x base, or application ("V") base Vector Extension. >>> | All of the other Vector Crypto Extensions can be built on any embedded (Zve*) or application ("V") base >>> | Vector Extension >>> >>> Apply these rules in the binding, so that invalid combinations can be >>> avoided. >>> >>> 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 | 32 +++++++++++++++++++ >>> 1 file changed, 32 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml >>> index abf2579171c5b..02b822bbf341d 100644 >>> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml >>> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml >>> @@ -651,6 +651,38 @@ properties: >>> - contains: >>> const: zve64f >>> >>> + - if: >>> + contains: >>> + anyOf: >>> + - const: zvbc >>> + - const: zvkn >>> + - const: zvknhb >>> + - const: zvks >> >> Shouldn't zvksed and zvksh be part odf this list ? My understanding of >> the spec might be wrong but "Zvks--" seems like a poor-man's wildcard >> for Zvks* extensions ? > > I don't think so, there's a corresponding -- on the first line of the > quote. I think it is some really odd styling that should be replaced by > commas. > Oh yes, my bad.