From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 4FCCA4078EB for ; Mon, 24 Aug 2026 11:07:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787569669; cv=none; b=jgvY8ILZ6epzDhdnjDoJhdf48ilLuC3slTxV/B5WiULZEqe21geq7STcMN0o23jm5b12K3zkzouMaib3+twI1M5L6JYBdV4BR3Ij6N93Kc/WCyOZPq1LH70hyK3/eJHxeQ9kCjI2edCILFWEZRLK7aafQixUsIT11vDUnakkmJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787569669; c=relaxed/simple; bh=OSns+uTIs22s3YlcDW6QPFVIFw1QF1ErNeeSa5lcm1A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Gt5v6m51XT9u8178m/vewuD8RjimVjuOuPJFGvCJXZ+Umdt2FrSD8AYcu8ur9h7HR7Jnmq9uN6EWOMDhYwVKB7FTtiqV8O2tezj7SEZ9+dbvkE1IMRQ6VrJM/0UpoZp5piAwyo+ZF2iJJoOnb2dnBFx3uy6kihaQpnLd0J0EZTA= 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=ojum985C; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=LBYo7+e1; arc=none smtp.client-ip=205.220.180.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="ojum985C"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="LBYo7+e1" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67O99cFU2572093 for ; Mon, 24 Aug 2026 11:07:46 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= jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=ojum985CHaucqlo3 csKOLbyg3UklvxJSS2AUhhWHKKTk5umUiaArXncU5E6Wd5hyUg88tL+lWSoj8Eyn KcqqBo8LpnUOqOmCWH3sBqvhX0zNZhR/Oum1DDFtstGKJWoD+UiluJzPf/jjB0PP BvTNqvFhGBhK2xszeFaqu/hJcplAyVt3VqRNKNE/xR6OfL0+ogwFjGretAJVRvOW wrf6sNoQxW2tF467JKk+uR/y7ArtojnURrqSigiDroxhv2eQNjATjdyC3YlJ3OX6 /WFrN99pfWYB6NL9JOLHfHhWtc6xrZTcd0qtc6DtkiczJuBb/z363+ITm13aIhq+ nNROAg== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g8bdr24jm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 24 Aug 2026 11:07:46 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-848662cd2a1so3534213b3a.2 for ; Mon, 24 Aug 2026 04:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1787569665; x=1788174465; 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=jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=LBYo7+e1T/JwmD5drW1ExyMgUi6lpbBe/wlQkTsa3qipx4Z5VU76BIAZwb0Js3tjIO nmIEQ9QiujweRPFlfnliOg/GZE8EqbTB5UGS11FfKca0QFSK9uTh1XSZnrutjq7IbYU6 Elem6DMz8uQWRWpmiusBCM9EyTUMLzLI8eIUliR3cmm4Oi+xkZoV1KzGP7ADDcm6SAkn 26uGD1wV5bPn4jbKw0k8lwfi/ydpiJkHcTOEcEvcB7Stf6bM0fBp+NRItXJD0Vt8CmM8 2lVgwdFPWrshci5My0eGGIZLv0+qxVO6p+VwClROJz9HIzdYXBabW93+/1iKT1P1v1YD B/PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787569665; x=1788174465; 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=jRpGpu4L7njGKrZAm4LPVjfYmC7MPX8emmTGwksOl+Y=; b=K4o4XZGv4d3sik6NjB+jJE95UULgHu9kAhwVqi34SwUFZ81qlMOGUKSEbAarI8S8xe O3yrv7RVsKyRTvc6WYXQ9DhGHX9v8ydSON+Bfduzs8NBzTj8U6HVgAFQhaNPOOXSTNds 9KjdiSOflUIjjA7YYpoWeBUTgeChFqJiohjuYmkOhBO+K8cy7auhac9odemHugl1Qi6k nt2MLJZ2ohy3F9n/zrcTgqJvOizwsEONQjrcXjLoRskiswF6xU+qfy31wNxp4LkmYWfj 3PEZTU75cPkI3pd+CzWgiWqohGm5I48IAzwEVTuOKN5ptPy5k1M7rl+B7zdHxb78qEoW 7lfw== X-Forwarded-Encrypted: i=1; AHgh+Rpq3kqGfTLkWC70rZ60V4P6IT0Ok/b1KSQzELhLFSC/pThDQKv+7157s6SWeRECB8jVAgcvUBFHM7Y34QU=@vger.kernel.org X-Gm-Message-State: AFuF++kLnM5qREV5KtY59w+hS3KhQ/MvcBQslgpMoKsNApzYrRpfxvYA tqbRZA90fqUrRgyWuwMnUo1E7jSoXoUNDZUyPR2ggio4barHLIxikbewQYO044l2WzR/z2BfAfc SL6iq905pbdHLf6nXu0gib/d7hQMxowseH0KChhQHpHATZMNTRrQQC1vq6g3px55cCC0= X-Gm-Gg: AR+sD13ikziUKHKrqIMTYZAEbVQSLCuNb4pwhHJIW0ldZ2YceRiR03DG+NGOg+BeBHI hbZpK1OiXuWFVyHvOcrEVrYaazQ6aZElsQpSCaM3sXcs9puK5JlVhkvxFHYJnSs2Tkfa5cKgiz4 QA3gnzZ6fMr5aJfd05FSq7XstWA5tlqU+Vvg8Mty7xue1I1K4casyIKqbJ+IMQ+WKx1H5mxdzyu dtg5ooZF8O5xYBj3m6pIB4qwSnuTEe7S2KG4X2SaZYu26D1rvHEjYD0SS1F6QwEu8odXHJiy0La s1rnjCCmgApRdz/ioghMol7tnLcErfiikn2r4OAx7hGyPyJUv6O5zQ/XBxRGpk75hsrvQYjKNfj tdjFCyl92DSecuhIh0XcTaEqb/EPKyHENr8k= X-Received: by 2002:a05:6a00:4145:b0:847:9315:fb8b with SMTP id d2e1a72fcca58-851f9a9f0bamr43921523b3a.6.1787569665314; Mon, 24 Aug 2026 04:07:45 -0700 (PDT) X-Received: by 2002:a05:6a00:4145:b0:847:9315:fb8b with SMTP id d2e1a72fcca58-851f9a9f0bamr43921428b3a.6.1787569664916; Mon, 24 Aug 2026 04:07:44 -0700 (PDT) Received: from [10.217.218.158] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8520eed88f8sm1864508b3a.10.2026.08.24.04.07.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2026 04:07:44 -0700 (PDT) Message-ID: Date: Mon, 24 Aug 2026 16:37:37 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/7] soc: qcom: geni-se: Add helper to set SE clock rate via OPP To: Praveen Talari , konrad.dybcio@oss.qualcomm.com, Sudeep Holla , Cristian Marussi , Ulf Hansson , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , Mark Brown , Viken Dadhaniya , Andi Shyti Cc: chandana.chiluveru@oss.qualcomm.com, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org References: <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-0-61171ab1cdce@oss.qualcomm.com> <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-3-61171ab1cdce@oss.qualcomm.com> Content-Language: en-US From: Mukesh Savaliya In-Reply-To: <20260805-derive_clk_perf_tbl_from_perf_domain_opp_table-v1-3-61171ab1cdce@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODI0MDA5MyBTYWx0ZWRfX0APeaLWJcFBX hLqqSODD5cozHgMs1TDc1mGYg4LyNGg712Bfpac7SFwb7B/qOijOgjxg/pgzTgZnO+QLmwJiGC5 OLZeMSF6xulr1NYWkY6hkyZwn78LY9mqy/ZtLAYzoGWeqTnVDdhU2tpw/88w/ZDnF8DLyxCw4j9 iFkimSUDlEezjgmFm/q8eIZW9J5PIoKvEfkKHrLnjimF1uWRCdfnftNtnveeGVI0vcd0xuie0qn B3BA5sYgxhe/0U1EapMKciNTG/oawmucf6dnDQXpCm9vqaPgCVouHNorJSdq+l4+PtCT2dKVN62 89r1Fu9kONbRC7E56h5XTKzUaiSbvHWEO1M+7kvPJHzTZz5jaVAqRx+pBXKUJ7yMpHSznatBc4X GWzpRjD+EaR8kRuH1iepfAIZ8z7Cs27p95esAXwuudWMrd6w8NtkO1ZJ2eXq2ERyUbFBLZ/pR/9 ubvHVIjXG9tmpnbPQPg== X-Proofpoint-GUID: kpfB9heH5VKi81c5FvQL0E-5AsPRJyFh X-Proofpoint-ORIG-GUID: kpfB9heH5VKi81c5FvQL0E-5AsPRJyFh X-Proofpoint-Spam-Info: AW1haW4tMjYwODI0MDA5MyBTYWx0ZWRfX81AWPUrJQPMK 9qdpoeuuzg2IYzp6JLHg/ajc126S1Fm1PEwUIqEiey87vfROXIOMgT+i1hIHY+SsjNatwPy3Ggu NWIflCzDXjCD9i+2daHxbzoBcLLKqXk= X-Authority-Analysis: v=2.4 cv=W8cIkxWk c=1 sm=1 tr=0 ts=6a8c2602 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=9aiwZt7zaXvVnErAyWsA:9 a=QEXdDO2ut3YA:10 a=ZXulRonScM0A:10 a=IoOABgeZipijB_acs4fv: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-08-24_03,2026-08-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 malwarescore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608240093 On 8/5/2026 1:27 AM, Praveen Talari wrote: > GENI protocol drivers need a common way to scale the SE source clock > through the OPP framework. However, the device that owns the OPP table > differs depending on how the SE resources are managed. For Linux clock > managed platforms, the OPP table is associated with the SE device, > whereas on firmware-managed platforms it is associated with the > performance power-domain device. This requires protocol drivers to be > aware of the underlying resource management model when requesting > frequency changes. > > Introduce geni_se_set_rate(), a common helper that abstracts this > difference and applies the requested frequency through the appropriate > device. The helper automatically selects the performance-domain device > when power domains are attached and falls back to the SE device > otherwise. > > Signed-off-by: Praveen Talari > --- Acked-by: Mukesh Kumar Savaliya