Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16517233rwd; Mon, 26 Jun 2023 11:03:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hMipyxkuBPEdluu8XACSympjroQQSHm2zcigtvwQRIBtVAo+wP/GuHtY18XtXnWuPY2fu X-Received: by 2002:aa7:c9d4:0:b0:51d:a08e:5b85 with SMTP id i20-20020aa7c9d4000000b0051da08e5b85mr1998893edt.17.1687802594324; Mon, 26 Jun 2023 11:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687802594; cv=none; d=google.com; s=arc-20160816; b=R/y64AWUIp7IxAZsu1ndG90LYcQwXKoGiVkTyrdF3WRD/jB7THSMOmlmAMofIpGT2I lK1Je2swHpc19wrXr6QLRZYvoDg1HbeRZ7vkGueSHyr2O8KLKmpwz87IS0Qjc1T57xBi b0PvOwQEciWuD3IZvy4TF93vnFL74P50qPjekVq05d08KA7sSP2pdZNa+u2aGJ5qB5bz EBx+iQNTG1TDlGO8Wu6YS1f0JNIkxWqyl4u3Bc4bNFw+DKo8teFEReVRHbslwn5a1tT9 Q2WeGNIAnRfpVtEiRdKJs9hsX/0Su8s5Yl6D+hJJGj6fZhZMQ3gyP8VzA1MQ9Bb+yzBt qXJQ== 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=dipiFzPjtBNjVzKREJOSrFG9Atu94onGxe7cyxyOcWs=; fh=yl4IL4lsV2hnVI+n4ETVz+CTzmzATIHlCoDziPb25Y8=; b=cGn+bR10vQ4T8Q5/ZOq2XJ5TdUmyHM0Cj+TzTutaPGgjgQRwyjRKBXVI32mqrbHcf9 JzBzNOTedLZ6vr6xu36LPjTAwuLS9e+XWN9RhtH+1qyEeaF9OWkHYYTpwomgf9F4uKWH YBLmLi4OX8ms/4olFqO32I5CUSHGv5g44tlcbTicKuBiaXl8ZGL/V48N7i2EH/8/S975 Ldxue+hoPM8vpx/K5MRELhDOcBY5ttpW9yFa6rJTdHQ9iMArmi7mVvXIU5bcxJqFVp7i le0otyWsZh2vlEvt7fBM640BGedQJTywjfNrItW4FExEvvMGl3ygkiAfvKgHVf2SSGuV d6UA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020aa7c490000000b0051d7d8497dcsi2965433edq.512.2023.06.26.11.02.43; Mon, 26 Jun 2023 11:03:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230361AbjFZRyd (ORCPT + 99 others); Mon, 26 Jun 2023 13:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbjFZRy3 (ORCPT ); Mon, 26 Jun 2023 13:54:29 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [IPv6:2001:4b7a:2000:18::167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4895E186; Mon, 26 Jun 2023 10:54:26 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 3CB883E7AF; Mon, 26 Jun 2023 19:54:23 +0200 (CEST) Date: Mon, 26 Jun 2023 19:54:21 +0200 From: Marijn Suijten To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga Subject: Re: [PATCH 06/15] dt-bindings: display/msm: sc7180-dpu: Describe SM6125 Message-ID: References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-6-1d5a638cebf2@somainline.org> <6bbf239f-d530-2f1e-ff52-361f7c9cc951@linaro.org> <75d64lixeawfoqbrctm4thzh73cxkvnlmnh5xgbpf277pmh3gz@zthnqvvuxmeq> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2023-06-26 18:16:58, Krzysztof Kozlowski wrote: > On 25/06/2023 21:52, Marijn Suijten wrote: > > On 2023-06-24 11:12:52, Krzysztof Kozlowski wrote: > >> On 24/06/2023 02:41, Marijn Suijten wrote: > >>> SM6125 is identical to SM6375 except that while downstream also defines > >>> a throttle clock, its presence results in timeouts whereas SM6375 > >>> requires it to not observe any timeouts. > >> > >> Then it should not be allowed, so you need either "else:" block or > >> another "if: properties: compatible:" to disallow it. Because in current > >> patch it would be allowed. > > > > That means this binding is wrong/incomplete for all other SoCs then. > > clock(-name)s has 6 items, and sets `minItems: 6`. Only for sm6375-dpu Of course meant to say that clock(-name)s has **7** items, not 6. > > does it set `minItems: 7`, but an else case is missing. > > Ask the author why it is done like this. Konrad, can you clarify why other > > Shall I send a Fixes: ed41005f5b7c ("dt-bindings: display/msm: > > sc7180-dpu: Describe SM6350 and SM6375") for that, and should maxItems: > > 6 be the default under clock(-name)s or in an else:? > > There is no bug to fix. Or at least it is not yet known. Whether other > devices should be constrained as well - sure, sounds reasonable, but I > did not check the code exactly. I don't know either, but we need this information to decide whether to use `maxItems: 6`: 1. Directly on the property; 2. In an `else:` case on the current `if: sm6375-dpu` (should have the same effect as 1., afaik); 3. In a second `if:` case that lists all SoCS explicitly. Since we don't have this information, I think option 3. is the right way to go, setting `maxItems: 6` for qcom,sm6125-dpu. However, it is not yet understood why downstream is able to use the throttle clock without repercussions. > We talk here about this patch. We used this patch to discover that other SoCs are similarly unconstrained. But if you don't want me to look into it, by all means! Saves me a lot of time. So I will go with option 3. - Marijn