Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1117161rwd; Thu, 8 Jun 2023 12:22:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jH3VR8A+pPXpvTQ5RF0sHCAZnkrbPd9ep/IrW5XrTzqxPOIfrLx3wv14SrkADR775DB8m X-Received: by 2002:a17:902:c1c5:b0:1ae:50a4:78da with SMTP id c5-20020a170902c1c500b001ae50a478damr4674812plc.67.1686252153794; Thu, 08 Jun 2023 12:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686252153; cv=none; d=google.com; s=arc-20160816; b=NU9jhFuOFCjL6Q9Thz+vzq1t4g+V2MRPA2l8K1FJMjv49nqrnNpvHwVtIaVymeXpF1 Q+LX36IDjkexAY84lOPgRIdBMJg2oE3jJ5UHxqc2FxziPRfhlBitXckm76FmqG35cFV2 wtug35fJB3u2CYieHbj2Sk7P1j7q0314SWCCnVShA7VeyQTadnk7GvA7CK0RB72KHcGy uHppbU//Bn8B1vGJOSBksquJqs2TcwhBvo0+aX+19sxVrIKbXoofE+iDngQvp0w6Ur7P zvZWgcbfMpw6OEblguEWI5XFeGdwE07fsMiNUR8Iidx0f83w+ThY6Nyljr54fGOgFol1 zVZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pnuCWlLeGXkXzjrAZSc98CK+vugpSfbrMYt9DNWRMOE=; b=vGaNTXrrsSvNw/XPbNivhJrl9AhqixMoFvgIsusIBUr6uS04NInJ5gmyBOL68bISMH k8iTHJL26eAbMY1Vj9I/W9z5XBqK4cPv8DHwg5OckLNZ/4zguJ2RXdRFa1mJS9Dz7cLM VK/rxPmpXyqQJSuSUDqbLh/mdh7StrAEnoAUmLLDZUqlQvRhKBsNhzupgTsi+JSezF1/ ZR+Zs2fynAE4HiN037yEBOq6fPaWGU8f/kHXm8PQqmZd0Gja2Qht3JefDIu778zDYtz+ /BoZ514bdybTEQ4aJz47I/dweD2oH0lhJoP9bYWgjY9P/m5kgB1wjvXVT3HB5wlVKTRW 1wPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b001b1a240b107si1462924plr.221.2023.06.08.12.22.21; Thu, 08 Jun 2023 12:22:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236672AbjFHTRq (ORCPT + 99 others); Thu, 8 Jun 2023 15:17:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236575AbjFHTRo (ORCPT ); Thu, 8 Jun 2023 15:17:44 -0400 Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102F630F5; Thu, 8 Jun 2023 12:17:10 -0700 (PDT) Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-33b36a9fdf8so4457425ab.2; Thu, 08 Jun 2023 12:17:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686251740; x=1688843740; h=in-reply-to: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=pnuCWlLeGXkXzjrAZSc98CK+vugpSfbrMYt9DNWRMOE=; b=KWWwofw7I7hN6vxsSJNE5BV7JsqiVfW7yp5yNb/aS95YcVDWRZVLN2FH6KYnd1Ug0Y 0f7jRVhhHY6C80/+7sOm4Fwz+bYb+Urzq2maRWcWB2hydlQ3CahYZeSpAqeRdQht+hSC HYZ1WBLmiHHl9/bIQknUVjGu4+QaAmCviqnGRINYPijtI4/lxLplBZEKDLqXY5glIsi8 10lktI5ROPoo7ihu7WA7ZNAKdAJdWwMcrDZH/d3olNRKXE61BCuCMEO+cpSytRQ0diB3 XcZF3Mhf6mduSCrsOx46wQPaaRz0sOR0Jxe7W9pz/JN0qZEx6Fksx98CAcw9tYIiRI3T LtmA== X-Gm-Message-State: AC+VfDyFf3DwuKIpVSCRVG7eVw3lx7fONoQA4TqHC5qdKuDLstP7iQWI hSm5k9YUhctRTZQShi8CEQ== X-Received: by 2002:a92:90c:0:b0:33b:ea2:fe6c with SMTP id y12-20020a92090c000000b0033b0ea2fe6cmr10362873ilg.24.1686251740495; Thu, 08 Jun 2023 12:15:40 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id e5-20020a02caa5000000b0040908cbbc5asm464387jap.68.2023.06.08.12.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 12:15:39 -0700 (PDT) Received: (nullmailer pid 3254644 invoked by uid 1000); Thu, 08 Jun 2023 19:15:37 -0000 Date: Thu, 8 Jun 2023 13:15:37 -0600 From: Rob Herring To: Conor Dooley Cc: Conor Dooley , Sean Anderson , Anup Patel , Andrew Jones , palmer@dabbelt.com, Paul Walmsley , Krzysztof Kozlowski , Alistair Francis , Anup Patel , Atish Patra , Jessica Clarke , Rick Chen , Leo , linux-riscv@lists.infradead.org, qemu-riscv@nongnu.org, u-boot@lists.denx.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dt-bindings: riscv: deprecate riscv,isa Message-ID: <20230608191537.GA3233857-robh@kernel.org> References: <20230518-thermos-sanitary-cf3fbc777ea1@wendy> <20230518-4050231ca8dbe93c08cf9c9a@orel> <20230518-hammock-doornail-478e8ea8e6a7@wendy> <20230518-monkhood-dispersal-6749b1228b0d@spud> <20230530-duller-reset-a34ae111f207@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530-duller-reset-a34ae111f207@wendy> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2023 at 03:12:12PM +0100, Conor Dooley wrote: > On Thu, May 18, 2023 at 10:42:34PM +0100, Conor Dooley wrote: > > On Thu, May 18, 2023 at 02:30:53PM -0400, Sean Anderson wrote: > > > > > > > Why not just have something like > > > > > > mycpu { > > > ... > > > riscv,isa { > > > i; > > > m; > > > a; > > > zicsr; > > > ... I prefer property names be globally unique. The tools are geared towards that too. That's largely a symptom of having 0 type information in the DT. For example if you had an extension called 'reg', it would be a problem. > > > }; > > > }; > > > > Naming of the node aside (perhaps that could be riscv,isa-extensions) > > there's not something hitting me immediately as to why that is a no-no. > > If the size is a concern, this would certainly be more efficient & not > > like the probing would be anything other than trivial more difficult > > what I have in my proposal. > > Having started messing around with this, one of the main advantages, to > me, of this approach is proper validation. > cpus.yaml has additionalProperties: true in it, which would have had to > be sorted out, or worked around, but creating a child-node with the > properties in it allows setting additionalProperties: false. That's an issue on my radar to fix. I started that for the Arm cpus.yaml a while back. Sadly it involves adding all the misc properties vendors added. It's not a lot, but still better to get in front of that for Risc-V. > > Rob's AFK at the moment, and I was hoping that he would take a look at > > the idea, so I won't respin til he is back, but I'll give this a go in > > the interim. > > Mechanically, the conversion of the patch isn't difficult, but I'll still > wait for Rob to come back before sending a v2. But that v2 will more > than likely implement your suggestion. I haven't read the whole thread, but the initial proposal looks okay to me. Another way you could do this is a list of strings: riscv,isa-ext = "i", "m", "zicsr"; I think we have a helper to test is a string in the list. Rob