Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16816723rwd; Mon, 26 Jun 2023 15:55:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FunxWD7GTHzJ/PjMawF6NttHC7TAq3XmRzP/cUotmXtGT4A49vFBDDfjArTiISWUp+dJw X-Received: by 2002:a05:6a20:3c86:b0:10b:bf2d:71bb with SMTP id b6-20020a056a203c8600b0010bbf2d71bbmr45235158pzj.27.1687820121926; Mon, 26 Jun 2023 15:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687820121; cv=none; d=google.com; s=arc-20160816; b=0Pvb5kSrn0041WCvxo7MN8VdCIiw6nZ3rOqNjLuDzP9grbypNSveZzbngK6XLEosNM bnDDeaUUtRXTQYSthWAn5bRmFoiMjtfntgZod5ULo8zHOOQGcv4NCc7nEl7NU1Ou+DEF l/C0Phmp8/um11DWl3K8D2FHMS3fLzXbSktBY5kEt7mmvk8EIXMvEabMtw3DrjYDOZLq 2/4U5fXtyYNW+/yDRMnYvVCZzk275CP1JymNNjUeh3zOm0Twqy8hS9yVfBQ+sxbFrjqQ 5UQ8vpPXpVfXZlT/S7kMekphvJjGM+STKfTzyn5e8ncfSqEg7Rixibik1tf541vehA3u McOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=g/HbI+tlHDdTUjnW9h4L8w2WP0zE6rcb9swUHefgPkU=; fh=XMWirsVPQt9lfSyyOp2fa5CGzU/i8u8ul9dBLpIu7/Y=; b=pCwKPJZS63jVl8uUVmUCySgjVM6pgGxI/Y1TETUkPZ3vZ9M1bbHnhq08BsUpSV3lAC xkIZnr3+eu0mVtL0qtsBwIK5LDKmCkPMMHdbHdkFFPzY2zEgi12bWOvPkIw7idT1bRtG 55lHtZV1hIYOFKGKRwAxCaYEGdDYDOR0yvMtBt3De/CEiCm6YBLkRmWnOZI/U7nYZWBP V72FtO2BuxzWVn6PNa34+jXo0D1kltkVBszIuhswkiif8fNAI7q9hhkvjrcHboi9dEpv o7rbHiANysT9OU6ski+ypd4C2vuqZB9NZwS7QeSv4OYJyJeqAdVDJqmx/55Mj4XM8tuW rj3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SOpWDX2f; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 29-20020a630d5d000000b0054ff4634f1asi6024882pgn.658.2023.06.26.15.55.10; Mon, 26 Jun 2023 15:55:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=SOpWDX2f; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbjFZWqm (ORCPT + 99 others); Mon, 26 Jun 2023 18:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjFZWqe (ORCPT ); Mon, 26 Jun 2023 18:46:34 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EB1188 for ; Mon, 26 Jun 2023 15:46:32 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b44d77e56bso59402931fa.1 for ; Mon, 26 Jun 2023 15:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687819590; x=1690411590; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=g/HbI+tlHDdTUjnW9h4L8w2WP0zE6rcb9swUHefgPkU=; b=SOpWDX2f3Sf5+j1ArGQZP/YJvY47JwcAoGYiM0PA4TdvZKjtFHVL7C79r1CKa+9sGP HWgavLF/CMaFsyMfN/W86D/ZXSxdwaJPt/BrHnQNRwuGVfQ9/jBuaGtYqUajNZkySabX QeMwlAvoCXvJvAXEFusyEhfl3n55Wma/kqU+EeGxJG40KTzI7GOWz59muJfsxcvOfjD5 8FH1S9PCEg3xvcgsRaT8fmXZUiL0qM/bwlOCfs/XSkg8CwXE40RPNLZXuEVlXskGIvm4 xjbAf79YnLLFuDnKELitkEf3Wq6RvTrYH9wrHb7Aml7w2g0wc0uwK6D0ty8zRu9pj0mE HRuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687819590; x=1690411590; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g/HbI+tlHDdTUjnW9h4L8w2WP0zE6rcb9swUHefgPkU=; b=EiXGsr1zS/QUJuHRbSLf4ZXK86fNfbv8KOC/sBJ6W55NwvY7J8N9FUXT4Wf8s6VE7R K9mRFXJLcsz9ud5Ukjpwn3mCmF07CwP8fzwIZpWchdBuSL3fTvy3SEy+6pt6Vn6Rl9ys Tboxu047M3Y7rvBUJvZefgPEOgcxflCUnHEPgXuctUWjyXQtmHp9GBay78hO6op5lIeR fuOmriVSicKcRoxXiIuAUSmK4tfPPDQkeEZYzUNntogrfTS2o4PFk8Ou8wo6bbKtHr+i wnjVb2ks79dwsy1bU/5SDSt/LvMNEqToDMij6j9g78t0/j3WfM4KYiNlhud9uxVOCQLP M2KA== X-Gm-Message-State: AC+VfDzIfAGDWGS4PGrFePoNTwKluo/9PEdZIGgp0qLKHgVgvv6sMgpH 3g48lc86POevAWSDkzvE8gKpBA== X-Received: by 2002:a05:6512:3088:b0:4f6:2d47:274c with SMTP id z8-20020a056512308800b004f62d47274cmr12489431lfd.15.1687819590412; Mon, 26 Jun 2023 15:46:30 -0700 (PDT) Received: from [192.168.1.101] (abyk179.neoplus.adsl.tpnet.pl. [83.9.30.179]) by smtp.gmail.com with ESMTPSA id q1-20020ac25101000000b004f858249932sm1277950lfb.90.2023.06.26.15.46.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 15:46:30 -0700 (PDT) Message-ID: <1808f43b-5a76-d4e6-a36d-88779ecd3836@linaro.org> Date: Tue, 27 Jun 2023 00:46:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 06/15] dt-bindings: display/msm: sc7180-dpu: Describe SM6125 Content-Language: en-US To: Marijn Suijten 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 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> <26pqxmuuyznb4qbi4wkiexr5excxenfmiuojrqgrz5k5t5palm@ttlk6m2zuokm> From: Konrad Dybcio In-Reply-To: <26pqxmuuyznb4qbi4wkiexr5excxenfmiuojrqgrz5k5t5palm@ttlk6m2zuokm> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 26.06.2023 22:28, Marijn Suijten wrote: > 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. That's a very good question. I don't have a 7180 to test, but for you it seems to cause inexplicable issues on 6125.. Konrad > > - 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