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 5F0CCC6FD1D for ; Tue, 21 Mar 2023 04:14:49 +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:MIME-Version:References:In-Reply-To: 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=SkNqveS2Rwav+49lu+pNKLMSSvOWk3jMxTVtwnf30+Q=; b=f5ptm7n2JTHw+0 9T9dye83bJCNBRt5Yzuc5d1bxl/SHb10FbcyG6cs+hGRvLTa/z2VVFoV3GZgcvuLLJ3TOv3Rt9GMf qQ4I24v1FV+ahMzPCM+9vtVKxGIgEOizmX5YAQxs7CVTO3pX5sGAUI2NItuDir5KEhVrbtKP9ZefT ogONNYZpoOV/hliHr/64lhZ6ViiIDDEVkcu3Qk06pUMmuB3ZfqVGqZ+jCE2RUC8ctPVf9bDKB/Zg5 Otizkq8luYZf0QNUL+RWXI7XCFGa9nvuzIVm2cbR6OsGwauN52b0XrecNu05McdfDsY70PmPfiJ1t ImSR+eokdKJQVQogdb9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peTNo-00BAC3-2l; Tue, 21 Mar 2023 04:14:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peTNm-00BABf-0E for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 04:13:59 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05F3B618F1; Tue, 21 Mar 2023 04:13:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD132C433D2; Tue, 21 Mar 2023 04:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679372036; bh=x9sqnghMTXViAQe+ndFBJ7uBh+cN+EuxRObADFi+kbw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O8vE2b3uan/PFfwaroSvHDIZ9og4lDIlOQQXf6jWvg5tilDrq7IJLqfz6GbGUh0O3 Mijd8HCQNGjGEBxguhjdgwMMc5926HGSmqnNiVNMps5vsUEcANmHEkQuKzrrznjMQQ TTBD6p9nYDrS83BR1hRf0gOborVvWSTOq0FTNCF7ZgpY6Yo/XLTTNUdcvjtqtWmzdD TcYEhAGsxcOeS0p4H60sfGvyFOeu+qlk4Q2AP+x54g81BKuPXeKYnEvivSOHkIsEIL LobETxIgueAo0QP/5tm7xS9C/We/SUu3HQHFiNh9gfAJrrpHzw8byZJffj/pweObRa NJF7Wq/NFzIgw== Date: Mon, 20 Mar 2023 21:13:54 -0700 From: Jakub Kicinski To: "Kubalewski, Arkadiusz" Cc: Jiri Pirko , Vadim Fedorenko , Jonathan Lemon , Paolo Abeni , Vadim Fedorenko , poros , mschmidt , "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-clk@vger.kernel.org" , "Michalik, Michal" Subject: Re: [PATCH RFC v6 1/6] dpll: spec: Add Netlink spec in YAML Message-ID: <20230320211354.4d0f8654@kernel.org> In-Reply-To: <20230320210549.081da89b@kernel.org> References: <20230312022807.278528-1-vadfed@meta.com> <20230312022807.278528-2-vadfed@meta.com> <20230320210549.081da89b@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_211358_151676_08D72897 X-CRM114-Status: GOOD ( 17.37 ) X-BeenThere: linux-arm-kernel@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="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 20 Mar 2023 21:05:49 -0700 Jakub Kicinski wrote: > > Actually this particular one is not needed (also value: 12 on pin above), > > I will remove those. > > But the others you are refering to (the ones in nested attribute list), > > are required because of cli.py parser issue, maybe Kuba knows a better way to > > prevent the issue? > > Basically, without those values, cli.py brakes on parsing responses, after > > every "jump" to nested attribute list it is assigning first attribute there > > with value=0, thus there is a need to assign a proper value, same as it is on > > 'main' attribute list. > > Are you saying the parser gets confused after returning from nested > parsing? Can you still repro this problem? I don't see any global > state in _decode().. Oh, I grokked the attr structure. This should be fixed now. Commit 7cf93538e087 ("tools: ynl: fully inherit attrs in subsets") The entire attr structure is a bit off (/ inspired by devlink?) Why create one huge attribute space with all attributes in it? Try to find something in the devlink attrs, it's pages long with little to no reuse :| Can't pins and devices have their own spaces? If one has to carry a link to the other you should create a subset so there is no circular dependency. That's the only potentially tricky thing I can think of... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel