From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 357FA5616BB for ; Wed, 14 Oct 2026 16:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791996166; cv=none; b=rJmiZ0WUis5T/TdGQH6TPc37Zt+8taK5+crIgajSC7P1qewB4fWKCpBeiVjBFJBCzTyW1RTRQx8XunXXK6zIjg8XoKPf8d5VnhjKi1gmP0Ko2TK+Up875O2ivbueMAiZ9VcnM1y4tBiA4/VL8omPFi/IKwrn8Cxx4pADWqq2Q/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791996166; c=relaxed/simple; bh=+5ByLKIjfqCvrkCU7NEJqSiloCHsqlgCQOrg6SvYrXM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MmYK5RVXZyYi2HFg94wug3U70lErHR4NgZVFHaHmtzT+mWZL8u1TZJtXgErppnic4UeXHwSVEseilsARHsDTtlT0/mAvCiQkYvOs7+c1gNQuQfDTKHo1Sx07Kncx6kBTJqzhUPeSW9xC78Fp3tHW/ojY5hMFzwXqFhbQBKrAlds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Ymax4bHa; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=L6ARyZHJ; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Ymax4bHa"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="L6ARyZHJ" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EFpa991672215 for ; Wed, 14 Oct 2026 16:42:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= iPmSsmPY7WrUMIeP1/fFElJBiwRXXXsL/bHEaVdSks0=; b=Ymax4bHa2o9Fs8Xf oMzFjI+CfReWH8It+9q8IN6PxA6f5+p0ncSJ4+4NMHJDIt/uxsJV9pNkr8m+jOxq kF/DppZiKZoHtI0Fi30rbnwUgBBQ3wEaj1NItVHcVoD1V9kJk3Gclv1VKZG3DKFr 8yxS5GfvB8AXfa4IkrSbg9bC4SG9Fxo23kYZk8MXEkIJKa3o+hPWTI15v/Bh5Auk PbtzUApcWGg74HxQ+IS3YM/8gpAj9OPlbnaVhj8RdScE6okKFXifLoCmthjEbKzd 8npKdrjMF3ed0tuGBLHPO1dHRRNQMNl0mQL9edtvK5l3HRbqeqCfUFRa29MyvOdO X8h0Gw== Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hacrh86ph-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 16:42:43 +0000 (GMT) Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-5360b8cf8f5so1074311cf.3 for ; Wed, 14 Oct 2026 09:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791996162; x=1792600962; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iPmSsmPY7WrUMIeP1/fFElJBiwRXXXsL/bHEaVdSks0=; b=L6ARyZHJXpJGY8JP/n/M7AFL/gELUm0g8OOz15dWxLPNw2UzBHdUw1vMK9+I96QRh4 IAYxj7XTQXkgUxSPZgqOn5NEMdxYSmokMrphRTIXmwBluJgoyIYmqNp+WICaAkcft3HW G24+DFKuhAPGsx/D0ssz01TfrLjDxe5ADMRKhM1tXWaLVV/bz7tkRntJlzY843ZrI27H 44j+Ek/SVUc08TG6qFFaNnCzn1NR9GQ7awrpox8S7qqRNj0Heiv3el0LghNJKVTZgXgc WeeilyYczZCcFD0cSnkgklH2Ww9gVhuW7AA/Q7iaKHXiuBp1KAs3aYvAeAc58DX4yAge 3Rdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791996162; x=1792600962; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=iPmSsmPY7WrUMIeP1/fFElJBiwRXXXsL/bHEaVdSks0=; b=zRZeJKxHsYoCSjQ6JWnvxZecw+wIi3gkpOWWWYZarUFfaR8737M3bVhSdqcxDls5Fx R+RPuRtDvWmqRtRR7YIB6DSYugYjSuW/T7WWbV5hK7ZZAA6RfZ0yVhMhm/apO4M1h/nZ GpLU7fpRBhMsUmr74hhjlTNqkcfOkfjYMqTydiDBKuPw3Fiqyj51DC4mKDCs96Ac+3cd 0D+YT82WOvP/I+bFiqxIYOBGquoHbzleCD57M9xx3KARMLSk9JSjgtZNG9oTgZPao6oI AhWeaC44kUZQDbMIhfwMwDzBgmH5dE+/Mg7ipF2VR/IiLYGA3Fvl05u+mAODSEa6BzbR NnEg== X-Forwarded-Encrypted: i=1; AKwUvBz9PLP+ReGvIuOQdQ0Mbla726KAIYD5WTIWH8SVop8v/+X5BAPL0V00QWp0FGVLMr9EZECG0YMRew==@vger.kernel.org X-Gm-Message-State: AFq9FYKDYP9i+It/JRKNb8KPBA4HYS+XQetxyHSYCaxInNn/zSmsoIDd UoZUEGF9COIPWLkdwYqY+6FAMG+ZuHe/aroGRaEQHwFyIXDjHd5h5g39VIpulL9puEn7N4ZahNM u24R6+okdEJIFLMNHItYP03tj+QAFNNBdaVWyY4ehiMyIIjQKKUEPEfc9fksAJg== X-Gm-Gg: AYBFou3viGEmBUCffqXoVY4YWl/wl8RFP8tn0xofpg48d2C6HKQnHmKS6sexmW4behN kk5+GXecz+HMi5Uv7BrRWxfhs/SF3n2DmDHiNrmNaOP3xab6gxvQsKrEnFj7UcUa5jvr5bWCeaz YgJen4HbOv3zLJCCTfRgOVINsvfRV6Ma3bheBH3m/RKZiJnqh322HmcIlMKwHbbDg1Y5kV/USwy KKXCesLYmzJBNKudBcqdJlIeOaTA3YPyWclMkZapVs7tecKyvJokk7ogrDPYEfiTG1EE//I7ZYH HI9liKHEqGyV4g2Q/HxP8SfFx2DB9mvYx4jtZOrpQE2IUCr3rJtTX4pmqC1qqL8HOlyxAmDRK/4 GiWIZ+Xl9E75uBPzoOvphXg== X-Received: by 2002:a05:620a:269a:b0:93a:14c:329c with SMTP id af79cd13be357-93ebd0c2693mr3053026685a.1.1791996162187; Wed, 14 Oct 2026 09:42:42 -0700 (PDT) X-Received: by 2002:a05:620a:269a:b0:93a:14c:329c with SMTP id af79cd13be357-93ebd0c2693mr3053021385a.1.1791996161600; Wed, 14 Oct 2026 09:42:41 -0700 (PDT) Received: from [192.168.226.26] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c3ed963cf98sm4760366b.13.2026.10.14.09.42.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2026 09:42:40 -0700 (PDT) Message-ID: <85f24f78-9b30-4394-9899-65e19eef1b16@oss.qualcomm.com> Date: Wed, 14 Oct 2026 18:42:37 +0200 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH DNM RFC 14/16] clk: qcom: Enable clk-dvfs on SM8650 To: Dmitry Baryshkov Cc: Konrad Dybcio , Stephen Boyd , Brian Masney , Jerome Brunet , Viresh Kumar , Nishanth Menon , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Greg Kroah-Hartman , Danilo Krummrich , Johan Hovold , Ulf Hansson , Bjorn Andersson , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Mike Tipton , Taniya Das , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, driver-core@lists.linux.dev, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20261014-topic-qc_clk_dvfs-v1-0-3041b788e9f7@oss.qualcomm.com> <20261014-topic-qc_clk_dvfs-v1-14-3041b788e9f7@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: ze0rEzZrQAIwKfObYqG-tHh9u0cH08iL X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA2NiBTYWx0ZWRfXwx34XMJ5/cdA WiYIQM6cqZUUAqjVd7W77opjDkj6LFch/nvtYK0vr2axyX2pB8k0d/r0JfgRr9ED86CIKW4+8NR gSKwnWUJ/bjZxB83FXlZHIthxLVDbPk= X-Proofpoint-GUID: ze0rEzZrQAIwKfObYqG-tHh9u0cH08iL X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA2NiBTYWx0ZWRfX7sMte2OsCSd+ UJee8QAMJ1GIs4tvgn0bruzB2VWx4lZsrsKJdyUfZpMPacS0zFjirRaji6Ub2OkdOee+vnBxGna bSaEk0mr2A3vYRMsbBcmTrguY35NXfO7Rd3XBKckz1yzJRjtlpmHwEYuxMPLmNvz6sGo1gI+/kt vXXIeutUJ0cItMCyPsJDnUmDgYS0TdRTWXDHfJaO7iLzsjg9e7cYjMaxwTBzeFYUIigKE02yS2v 7W0hvWHNi+4dbbdVSqONVspajjhQHjVhlenRQ2fSKENDZwbDqPb33l/DZlNK77vFEd5dWEwwjIs OiOE6Uq5uJldYNY+VS+MWfwzdLYWdPBwrlK8efryStp7rihxnZg5Bb1KVfhmEMH1EYLccyTYDRp ixmmEQB6jKf34Lg88cuNcodPIRapu4WR+nOWvq50pJrScnI9kOTVNmIbI6QbRKJ7qwWStotxoNj kg0fnjbV/5WVkAyE6JQ== X-Authority-Analysis: v=2.4 cv=SYZi5fRu c=1 sm=1 tr=0 ts=6acfb103 cx=c_pps a=WeENfcodrlLV9YRTxbY/uA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=lNqPBwARffoA8ln7mLoA:9 a=QEXdDO2ut3YA:10 a=kacYvNCVWA4VmyqE58fU:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 phishscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140066 On 10/14/26 6:35 PM, Dmitry Baryshkov wrote: > On Wed, Oct 14, 2026 at 05:22:40PM +0200, Konrad Dybcio wrote: >> On 10/14/26 4:40 PM, Dmitry Baryshkov wrote: >>> On Wed, Oct 14, 2026 at 02:19:14PM +0200, Konrad Dybcio wrote: >>>> From: Konrad Dybcio >>>> >>>> Make use of the clock-dvfs infrastructure and fill in the power >>>> requirements for SM8650's clocks to ensure the hardware can operate in >>>> accordance with the specification. >> >> [...] >> >>>> #include >>>> +#include >>> >>> I've commented to the cover letter. For me it feels like the layering >>> violation. >> >> I understand. I still think it's okay given this is a driver only >> for a specific SoC. > > Then soon we will get MMRM submitted upstream, which (currently) > randomly imports a set of the clock ids and asks consumers to talk to it > using the same clock IDS from DT bindings. Doesn't sounds like a good > idea. MMRM is more or less clk-powercap. The data it grabs via DT (power numbers) could as well be put into the clock driver here, in a similar fashion. >> [...] >> >>>> +static const struct qcom_clk_dvfs_data cam_cc_camnoc_axi_rt_clk_src_dvfs = { >>>> + .pd_indices = (const unsigned int[]) { DT_PMDOMAIN_MMCX, DT_PMDOMAIN_MXC }, >>>> + .num_pd_indices = 2, >>>> + .rates = (const struct qcom_clk_dvfs_rate[]) { >>>> + { 300000000, RPMH_REGULATOR_LEVEL_LOW_SVS }, >>>> + { 400000000, RPMH_REGULATOR_LEVEL_SVS }, >>> >>> And does it actually have the same vote on both MMCX and MXC? I'd need >>> to check the clock tree. >> >> In this case the RCG needs VDD_MM and its direct child branch >> needs MXC for the flipflops. > > My question was "on the same level? Or on different levels? In the OPP > tables we (should) have 1:1 between scaling PDs and PD votes. On the same level. Konrad