Received: by 2002:a19:6e46:0:0:0:0:0 with SMTP id q6csp383426lfk; Fri, 4 Mar 2022 14:19:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJw54kABa7Y5hC+SsT/IzK4FsmuX30PhakjOA/Lfs4HtFDOFhl3usw9pehu/LoejUTK+8Uou X-Received: by 2002:a17:902:e803:b0:150:1cb0:e0a4 with SMTP id u3-20020a170902e80300b001501cb0e0a4mr471787plg.65.1646432371687; Fri, 04 Mar 2022 14:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646432371; cv=none; d=google.com; s=arc-20160816; b=y18Y8vdZxpQOaxQEHaSf7GwCrHLHBRp7G+btTE92FMIbiPmncGTNOPoq8GZZFrYPDa G/yP9uvJ09lSxcEapIv9MTlLnXnbDCO6igfKEYruGkwxFDDxuxM/fHOrn/i4oU4uxp4p edl331bdd8VD0orR2Tzp4qWZ35FDUvIoj+TX2cLxzNkZa3Utax/zrcQu+bnHwVcnRSrG Zaj5vOHBm6+FI2wBI6XUYQuhP/dbYcNXUtvoH5tz3FekSOCBN7tgOGyA2pIQTdECx+P2 qFdFuFnQkGMmxaFYAMcyDSgholk2tOXS6wGUnad7r+tpuwrj/RiiPCrAGksG6TbCne5T ULSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gorolFJ2WIFQvAsoxOSrO8YEN0k5n1TryFpMGW1zZQQ=; b=ynCVerfT09dy2pFaZwpwqxF1xSdhywUIP5+3fVyQG1hwJZtwnS9SS8yZ4TY69JQFAB VbNKdlobxbvwtbPya7T/wtz1wyUVAb9ffBZIpFzry+isgK+tHxrRsQ/4l3jg6ganOPXB NfsOmpis2WROMf1XSUaKm1hOcS+xn23kOtBgZJTLv4fexhIQdmRDOc0O7XiuhrMvNBUH aeTiJOUvB/Wayc550brTRC75LwcLJ+SVCW1RQYt2xHYAvKapPpOday/rph08LdgDmyO+ Jt1woxZ2AdwDkDFppzkVRkO15wqV/1wGHDdgUcLkwh9DXAItNtqwzgdT8qou72s6TOn0 RcFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LzsQ5rUY; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc13-20020a656d8d000000b00373d43e8e65si5868794pgb.688.2022.03.04.14.18.30; Fri, 04 Mar 2022 14:19:31 -0800 (PST) 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=@chromium.org header.s=google header.b=LzsQ5rUY; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229867AbiCDVue (ORCPT + 99 others); Fri, 4 Mar 2022 16:50:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiCDVub (ORCPT ); Fri, 4 Mar 2022 16:50:31 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4963E21F9F8 for ; Fri, 4 Mar 2022 13:49:43 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id bi12so6964471ejb.3 for ; Fri, 04 Mar 2022 13:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gorolFJ2WIFQvAsoxOSrO8YEN0k5n1TryFpMGW1zZQQ=; b=LzsQ5rUYvvNub8x9l9kvDaWf7K77rlY+iRkn5dlD+82ZPl7ZCGrmcqBTtvNe+X0bPW MXRTMoQCl8ndHSQ6jy2WO/qD7mm7dVBag6oQqBnicr4/Dj55BzR195+oqLqUf8RbLZob PzkGqmSuP2Iou/Cr3Jb7zTgkEP2cvx8IU6iZs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gorolFJ2WIFQvAsoxOSrO8YEN0k5n1TryFpMGW1zZQQ=; b=MEDDYPAaVMjiR4kPBaVou4GQqmS5DiREpgZNm9Sn+uB5KAOvtVOUVsfCEKPgrJL8Ky BhnIj19UwG8TtLMXHuBnz36ciRAEVE01AFv9nLmGrzueRzKEWljhhMT/gwqpU2ezO0b6 AdY6o+FGhMsu6WIS/ugAanG7jogm68D3HP5f3OQSLXBGGeYvD+TqwQC3PORfDJejQdWt Gukq8DzqRlTtnZbg+vbrEdpk3qiBBW+6ZdNL8JF6L8OGAx73qn6C2gs9l/t6GEOO74V1 C+xuTIJ81tg/KdEa/Q+DfBDyrrl3o1tm9YbQ8abmCKo5NxwS8RE/1XobxbCrKdtGpJ8V zx7g== X-Gm-Message-State: AOAM5320b6W3tAzYmQGNfI0Wq4DIJSC15G1v96jV4h1S2uJsfFx+D8+E QmsVEljWNCz8Rvu/uJDCa9olkQglk3bg7wko X-Received: by 2002:a17:906:66cb:b0:6cf:e4f7:9504 with SMTP id k11-20020a17090666cb00b006cfe4f79504mr695564ejp.142.1646430581340; Fri, 04 Mar 2022 13:49:41 -0800 (PST) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com. [209.85.128.52]) by smtp.gmail.com with ESMTPSA id kw3-20020a170907770300b006d2a835ac33sm2192587ejc.197.2022.03.04.13.49.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Mar 2022 13:49:40 -0800 (PST) Received: by mail-wm1-f52.google.com with SMTP id k29-20020a05600c1c9d00b003817fdc0f00so5831813wms.4 for ; Fri, 04 Mar 2022 13:49:40 -0800 (PST) X-Received: by 2002:a05:600c:1d08:b0:381:6eda:67d1 with SMTP id l8-20020a05600c1d0800b003816eda67d1mr9758221wms.88.1646430579829; Fri, 04 Mar 2022 13:49:39 -0800 (PST) MIME-Version: 1.0 References: <1646300401-9063-1-git-send-email-quic_vpolimer@quicinc.com> <1646300401-9063-5-git-send-email-quic_vpolimer@quicinc.com> In-Reply-To: From: Doug Anderson Date: Fri, 4 Mar 2022 13:49:27 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 4/4] arm64/dts/qcom/sm8250: remove assigned-clock-rate property for mdp clk To: Dmitry Baryshkov Cc: Stephen Boyd , Vinod Polimera , dri-devel , linux-arm-msm , freedreno , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Rob Clark , quic_kalyant@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi, On Thu, Mar 3, 2022 at 4:16 PM Dmitry Baryshkov wrote: > > On Fri, 4 Mar 2022 at 02:56, Stephen Boyd wrote: > > > > Quoting Dmitry Baryshkov (2022-03-03 15:50:50) > > > On Thu, 3 Mar 2022 at 12:40, Vinod Polimera wrote: > > > > > > > > Kernel clock driver assumes that initial rate is the > > > > max rate for that clock and was not allowing it to scale > > > > beyond the assigned clock value. > > > > > > > > Drop the assigned clock rate property and vote on the mdp clock as per > > > > calculated value during the usecase. > > > > > > > > Fixes: 7c1dffd471("arm64: dts: qcom: sm8250.dtsi: add display system nodes") > > > > > > Please remove the Fixes tags from all commits. Otherwise the patches > > > might be picked up into earlier kernels, which do not have a patch > > > adding a vote on the MDP clock. > > > > What patch is that? The Fixes tag could point to that commit. > > Please correct me if I'm wrong. > Currently the dtsi enforces bumping the MDP clock when the mdss device > is being probed and when the dpu device is being probed. > Later during the DPU lifetime the core_perf would change the clock's > rate as it sees fit according to the CRTC requirements. "Currently" means _before_ ${SUBJECT} patch lands, right? Since ${SUBJECT} patch is removing the bump to max. > However it would happen only when the during the > dpu_crtc_atomic_flush(), before we call this function, the MDP clock > is left in the undetermined state. The power rails controlled by the > opp table are left in the undetermined state. > > I suppose that during the dpu_bind we should bump the clock to the max > possible freq and let dpu_core_perf handle it afterwards. Definitely feels like seeing the clock to something predictable during the initial probe makes sense. If it's just for the initial probe then setting it to max (based on the opp table) seems fine. I think an earlier version of this series set it to max every time we did runtime resume. We'd have to have a good reason to do that. -Doug