From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 989D925FA2A for ; Tue, 11 Mar 2025 17:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741715718; cv=none; b=RIsGJu4o/WMZv8VRLoKB4nQQECycjMlpbSgPxto9l/FpWjmSRv/yykB0YUH4k++Jr5YItDKYbm2x75UbZMf5OYKNa4yIo9kAPFC5xOedaF+Hq7gPdidzvc12u13G0OZFHCaH5SgxnCL2sQ8dRA1aXE1lxjU7u/vQpV4sqdSyiyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741715718; c=relaxed/simple; bh=+n9E1X52Of+0Qd+ZQ0Y1r8563ZihbOxSI8RKMEktnvs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cIUzH54Y8/VYcLwOQ4DV6y4waGlp7KY8J6j0zMIPie0GWctYs3hEF2q1ETfQjuETyAA3UxRlCW6WgrHbJoeG99beZD4bym5NEkqLJAt2VjTzKD20WEACIaBBj0rEn7cw8nn/fnXZOKNaZz0c3ff4pZxSUoZNQQtF98ty/8UxV/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=wYQkBdrV; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wYQkBdrV" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-54995620c02so507387e87.0 for ; Tue, 11 Mar 2025 10:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741715715; x=1742320515; darn=vger.kernel.org; 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=7WdQTyBopz7mxHzFVAna3izLewrTUpKF7sAoJQrcvvs=; b=wYQkBdrV7OtpiN/eS7rKhy7tGjLocD06JeYnOKwcUQjDAFSIMEA0p0JerMXAmxLtJq x4G0fu1cfrPB5otAhGjkPpeVEN2bS1UxmI0LJx/gaekp5Txy+8eMDRsH9sbV9VlXee+W Igd6bzOT9FVRlYuZp24RSSFUIHP2/kAqn2R4RLXtYndUXjFQqF/DVO/2/yPs17SXxv8r 6g6B5UYdDMXwBTJPZLYUjPgi5YvWLEBbKZiA+nmyeKFhhds3j4Nd3r746QSEfHB71bR+ JBewqJwOlRDPPAptk+katq/IZmA6OAyJzWF9oSiHeAoDbaMyIlE6gZIZoFzuPQ9vyg/M 1v2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741715715; x=1742320515; 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=7WdQTyBopz7mxHzFVAna3izLewrTUpKF7sAoJQrcvvs=; b=wzi/TXjcFaU/yhz+Cc37+h0A2sT/BpnQ2ub9bx4CCHaY9zd2KTWZxHuCTctTclrdFD Zp/G/uSzSNFYqAif7uKT/V75YA0B1kSso1GH4lUPw8v9E7zIB1Hc2pEa/N+l4PYUs0y+ j3/OnWbcI+BrD1dnA6AEcpTyNDybwniGTA1LOidxEB8wUV1/x6y2hOCCedZbLssiTXC1 +nRqSu/UT6ClgWZzgnAghhZQ0PcH75cPFM/RimNy0ujwlXg+8K6u7G7SqU+uwy1wIa4y aqxg8sAeHIP6yagc4pL4VEop3QNB2Qih/loWSTZ91fOdf9tuzszv8m4WliCAzLGwrhfO FOTg== X-Forwarded-Encrypted: i=1; AJvYcCWoT8972Nx9tmV+q5OAsfaPGedOA7NgKnP+R6Zj17VpmALh3bhWxkRWzeQ3UhQECt6s7IE4wcsIG/RX@vger.kernel.org X-Gm-Message-State: AOJu0Yz2CHI9Kj449DSoxVVip1LugFfo5Inx7wUSaCFnVD5GlKZYCkBv 3s5nm6qrQfgmQuzargvWxiRvmco3ZkLN4fuSnYum1OLsp3GSXQQluXJCgdgU2l4= X-Gm-Gg: ASbGncuCtW6ynDUa2GoO7p6VU1E87jW4KkGmspr0I9vusCbT5X4kepQKDlNHjhN8nwl z678m0Tx8WfFBAKmuRn247ZlVKohS8lkLh+iMz21zJeQUpqpuTzrtglbH2E6nGY80o/VrmntKGa 2zGok16jy5PY4Nhxb8XDI1mejkEUGdXnqZpNmu0oDhiQHnyG8Mq5aQlDU4IT3TqrlRtjgOClzBW UECQ7eSIwrDMuZ+T+V1OYT5V+Vn8i1CiV9lmF+aEvjPp0JyyxdYClpNFc90i6Efb0Kesc/Ghif0 iNGT7UV05R2CCaltq9PqA6R9jSp1PE5a8bvJOHS0sVhYy97s2somPohK3f6akacD8gPWspvH5J+ tRUoWZZjhLQ0c3P/RmTcxciE= X-Google-Smtp-Source: AGHT+IFaFjSbRxdirUqUTeBI9TYH3RQnaCLtmtz58LmMZdcdbTD1mseF//sb+hUuzIm6th6cicp37Q== X-Received: by 2002:a05:6512:b08:b0:545:2338:f5f8 with SMTP id 2adb3069b0e04-549abac0ae5mr660729e87.6.1741715714536; Tue, 11 Mar 2025 10:55:14 -0700 (PDT) Received: from [192.168.1.4] (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5498ae580c5sm1865024e87.70.2025.03.11.10.55.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Mar 2025 10:55:13 -0700 (PDT) Message-ID: Date: Tue, 11 Mar 2025 19:55:07 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/8] clk: qcom: Add support to attach multiple power domains in cc probe Content-Language: ru-RU To: Bryan O'Donoghue , Jagadeesh Kona , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: Ajit Pandey , Imran Shaik , Taniya Das , Satya Priya Kakitapalli , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov References: <20250306-videocc-pll-multi-pd-voting-v2-0-0cd00612bc0e@quicinc.com> <5a45fd25-74ed-46e3-b0e3-5adf92b5e9f7@linaro.org> <46d4f090-3e31-414f-abfc-3d1018913c56@linaro.org> <9e6fdcfe-3c6d-44c7-95a3-7652c0650bf4@linaro.org> From: Vladimir Zapolskiy In-Reply-To: <9e6fdcfe-3c6d-44c7-95a3-7652c0650bf4@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/11/25 14:10, Bryan O'Donoghue wrote: > On 11/03/2025 10:12, Vladimir Zapolskiy wrote: >> On 3/11/25 11:52, Bryan O'Donoghue wrote: >>> On 06/03/2025 08:55, Jagadeesh Kona wrote: >>>> In some of the recent chipsets, PLLs require more than one power domain >>>> to be kept ON to configure the PLL. But the current code doesn't enable >>>> all the required power domains while configuring the PLLs, this leads >>>> to functional issues due to suboptimal settings of PLLs. >>>> >>>> To address this, add support for handling runtime power management, >>>> configuring plls and enabling critical clocks from qcom_cc_really_probe. >>>> The clock controller can specify PLLs, critical clocks, and runtime PM >>>> requirements in the descriptor data. The code in qcom_cc_really_probe() >>>> ensures all necessary power domains are enabled before configuring PLLs >>>> or critical clocks. >>>> >>>> This series updates SM8450 & SM8550 videocc drivers to handle rpm, >>>> configure PLLs and enable critical clocks from within >>>> qcom_cc_really_probe() >>>> using above support, so video PLLs are configured properly. >>>> >>>> This series fixes the below warning reported in SM8550 venus testing due >>>> to video_cc_pll0 not properly getting configured during videocc probe >>>> >>>> [   46.535132] Lucid PLL latch failed. Output may be unstable! >>>> >>>> The patch adding support to configure the PLLs from common code is >>>> picked from below series and updated it. >>>> https://lore.kernel.org/all/20250113-support-pll-reconfigure- >>>> v1-0-1fae6bc1062d@quicinc.com/ >>>> >>>> Signed-off-by: Jagadeesh Kona >>>> --- >>>> Changes in v2: >>>>    - Added support to handle rpm, PLL configuration and enable critical >>>>      clocks from qcom_cc_really_probe() in common code as per v1 >>>> commments >>>>      from Bryan, Konrad and Dmitry >>>>    - Added patches to configure PLLs from common code >>>>    - Updated the SM8450, SM8550 videocc patches to use the newly >>>>      added support to handle rpm, configure PLLs from common code >>>>    - Split the DT change for each target separately as per >>>>      Dmitry comments >>>>    - Added R-By and A-By tags received on v1 >>>> - Link to v1: https://lore.kernel.org/r/20250218-videocc-pll-multi- >>>> pd-voting-v1-0-cfe6289ea29b@quicinc.com >>>> >>>> --- >>>> Jagadeesh Kona (7): >>>>         dt-bindings: clock: qcom,sm8450-videocc: Add MXC power domain >>>>         clk: qcom: common: Manage rpm, configure PLLs & AON clks in >>>> really probe >>>>         clk: qcom: videocc-sm8450: Move PLL & clk configuration to >>>> really probe >>>>         clk: qcom: videocc-sm8550: Move PLL & clk configuration to >>>> really probe >>>>         arm64: dts: qcom: Add MXC power domain to videocc node on SM8450 >>>>         arm64: dts: qcom: Add MXC power domain to videocc node on SM8550 >>>>         arm64: dts: qcom: Add MXC power domain to videocc node on SM8650 >>>> >>> This list looks sparse. >>> >>> - camcc is missing >>> - x1e is missing >>> - sm8650 and sm8750 and both also missing >>> >> >> Since there are concerns about DT bindings ABI change of CAMCC given by >> Krzysztof, likely CAMCC changes shall not be inserted into this series. >> >> -- >> Best wishes, >> Vladimir > > drivers/clk/qcom/camcc-sm8650.c > drivers/clk/qcom/camcc-x1e80100.c > > In fact we appear to be amending the dts but not the driver for the 8650 > here. I kindly ask to elaborate here. This series does not touch CAMCC at all, and if the series touches CAMCC, then it changes DT ABI, which is objected. Or is it for some reason objected only for SM8550 and not for the other platforms? More information is needed. -- Best wishes, Vladimir