Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16690467rwd; Mon, 26 Jun 2023 13:45:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53yaJRXm5aJ1NwYr8PG8QwLeQqC1ToZyILMPJh8pfJ+p0LDg2bQKwM6n2cTfzRUy8kehkr X-Received: by 2002:a17:906:8442:b0:991:e458:d16 with SMTP id e2-20020a170906844200b00991e4580d16mr1955795ejy.72.1687812304944; Mon, 26 Jun 2023 13:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687812304; cv=none; d=google.com; s=arc-20160816; b=cHJlaLGNMisLT+4qG4GJuqj12M4diA7f4i0lnWF4l4UoNenX7xM8sg+C50CdDyF7wo peCGIvP6yrm+tW/k4lKzBKIFzU4EvqQj89dvvq8ArlafZTy/IuQnoERUhj5LEJ+QsKvz 0NuZysIS9+/AEoXRtzSV/2PLZIMopbPQD/4BCBsvDaSHJUopc7yU91Ocw1hHQDc3LTcY heqR2gOx7Un68EfWKqMM9Cx/bfkGxxx/XuRRH0bklQAUBEuXlWdkvz3ZvaLrZpKq8Vdz Mt+P0cIv6j62o72qWT0lIofj6NJtZW43nOh5RcJOZEDozb4WGgiBpH3b8rwAEnIrH3Hu olXg== 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=5BKVNDYCQ/g8Ehd8a8CE0NEdLJFDfxS3EcBsoZuqYTE=; fh=Nx2OSHWDrAAOYS8FtafkcBBqkDmNp0s4Gwiug/iI4jY=; b=WbpP+4WhWy92ljHy3UpC+HkeTAc61YS4MeKEnbebnXdajMQP6pMLfTaDwBjuSes4CQ O7I2qKWJp9LxtDTPsfSmh+p4Q2yKljdWM/AKGEKgqhzN3hmi40Yf8UZtmNfosfmFOpIR +Zwn3qM2OPI52HT4uu0wNdIavvILhZOfajgVx18Yp6bcnJ4asN/kNxFpwBTZuhZdAR/4 T9Gs1DCf3WblGAl4vb/lFkEI2nqnvFsw6kjoXeAHs+19fex2kJc9asq/5dBT+uC8+pOk xSxDT8c/mkxaROToVYjGpb3eYHj3AOXPWH81qZx3lEQ/OMXEQf9mcu4GLmgKL6DDhc5w 3OEA== 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 bm6-20020a170906c04600b0096f86bd395dsi2969574ejb.281.2023.06.26.13.44.38; Mon, 26 Jun 2023 13:45:04 -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 S230030AbjFZU24 (ORCPT + 99 others); Mon, 26 Jun 2023 16:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjFZU2z (ORCPT ); Mon, 26 Jun 2023 16:28:55 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53F5D98; Mon, 26 Jun 2023 13:28:51 -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-r1.th.seeweb.it (Postfix) with ESMTPSA id 63F771F48A; Mon, 26 Jun 2023 22:28:43 +0200 (CEST) Date: Mon, 26 Jun 2023 22:28:41 +0200 From: Marijn Suijten To: Konrad Dybcio Cc: Krzysztof Kozlowski , 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 , 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: <26pqxmuuyznb4qbi4wkiexr5excxenfmiuojrqgrz5k5t5palm@ttlk6m2zuokm> 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> <3daf9990-79da-9adf-af6a-d9007c186557@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3daf9990-79da-9adf-af6a-d9007c186557@linaro.org> 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 20:57:51, Konrad Dybcio wrote: > On 26.06.2023 19:54, Marijn Suijten wrote: > > 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 (Looks like I forgot to complete this sentence before sending, apologies) > 6375 needs the throttle clk and the clock(-names) are strongly ordered > so having minItems: 6 discards the last entry The question is whether or not we should have maxItems: 6 to disallow the clock from being passed: right now it is optional and either is allowed for any !6375 SoC. - Marijn > > Konrad > > > >>> 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