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 2B11629994E for ; Tue, 24 Jun 2025 13:25:38 +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=1750771540; cv=none; b=DDpbebh+cus7hPhLMhsY5wz9b34aWlUEgmQsa8VlShq9qRroSW+9YOrUyXZe7gQL6XLmtWYt1f6lqllTT2KDjZwQsLu30SKp+j8i4Gi9AcvZG28iJXws/prY+3d6AQnhGVdnaR5L/kBoI963prZlk5hFTOCgjpmkeU3ZI5+aicM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750771540; c=relaxed/simple; bh=O//ctg+SgVaxYLIL04Z2pIwS9W/cpXKX5+4dHW6Gpu0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M1igYxHJBlqOYurRkXgTxcCyLd9jHNIbyiMrghqknZNbDonqxkdsfD3IsfXpTJVemvyc3HNdMQgK8yZQqmvSMSLRFgCcvrurOrFePoTiTTZMDH/zjf8KTRlvAuS8sxKT5dmkO5SmVE7Oyg6h4vWsYF7XcrVjhC0zmg9NaT/gLKc= 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=cbul+x/5; 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="cbul+x/5" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55O8eLEf016718 for ; Tue, 24 Jun 2025 13:25:38 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= puqnTEAbiwXXvejvFqHMQDxLMczv/myXUOZnE8pspZY=; b=cbul+x/5zDFIJR/D zoSVQtmbiMSfUxpe5Joqf9z4WRN/GHRJKQ0dBU6x9qEJg99OMKXfIcwBvH3b1xKS ptuT422Jq2dJXuUPeXfMMZZ9nGfBNR7xzhA1qR/x7DySHcMDkT4KHsINHjPxOesO WOucqMNUgflVUTjdXu+Vmb2qpVLOlqXYYceD8zYGd3CROzOoQYzyBk64myVEjB51 v5IqA74RHvP/s6bU1ajNvJFPg8ykX9B+aczmvV7f6QqhGuZGIydJrrDG2aIZVKzy z9thC8TevL2Na/Zn9CTrgN8KaVMLSN3ElMgDT1pVpSxE6T4Xxn/aTC2wwa1cOIz7 tQn4Ag== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47fbhqjqb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 24 Jun 2025 13:25:37 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7d097083cc3so167006585a.3 for ; Tue, 24 Jun 2025 06:25:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750771537; x=1751376337; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=puqnTEAbiwXXvejvFqHMQDxLMczv/myXUOZnE8pspZY=; b=xK1BBfQRtRfDzW+ZrFuR6LGHZxDjdAePVyH2FENrFqnrUgu64g4DtYnYKAFtHdxW90 CqskyUnbBuag9uhpmtAL4L4Lipk3HzYV1Rs+7O6FZs1ahGO9pdr7j7TCVkdjAk6pTXRL kMfJPJY1TcfmMpx0dw7eKgOv4GFVi6/weAiO3f9/dxfxQDc/rBJTVsFOcVWOApZ1UOuY +IlAy9rm49JAFCcrvtRw6QGqZ9PtMaFsBP+6CXk+6MmhgnxhMks+SEqMOG0PX0KzNXDj /rkTCb0/5/DBXpiTbeOQJTbyA+n5+/JcM7x0iA8lQtJs8sk1NudeQb2mRHi5W2BxOcWS Ov3g== X-Forwarded-Encrypted: i=1; AJvYcCVB/5+3HQVHQncxkSL6lCTeMiiM1gMCQ/lA7ZfaL9ZXOOi6N+Vh1tCatMQZZmNb1xKBo7vMJO/OLA17Gag=@vger.kernel.org X-Gm-Message-State: AOJu0YzUDaxADMWh07XEsEZEFGG9Ly0EDnk3ZDMHVM50QyTdE3BEtr+g ZB1C2n7YTx/hLAn8FoGtKOyjgNfVvSOa/Kl1wFaHMQJInybsAcRTPw4b7FXrIwd3JqMT0hNfqFU lZwRItsCIJQk2JIDKKhtCnuSGDXuKWivr8wFJ7WlgEmJ6wvSwkSCEJcGS99hP+CWtISw= X-Gm-Gg: ASbGnctfKvDesq0xSNomeis8ivYFuX25ubuQVofzq66aXTaEmjabssJT3/JexATlmWv 95stcZNTfeE0f46R7DJoR+LR3M3p+AqScxJkRbvAcsveF6rtPnhGZXGbtpCcaO2BT0cnjye9Tf0 4r4H/Wa6Wo4xfD01l/DbOYsj5bDxEJVrgsuWVsha6z7IYcpxjFWZAb8rvP1cbIcldGsepPjgkSt GwobMJg/RG6cUurg6/yDYrU/t9N2MCKhIVJc0OnSd5ph9h2ZokX4zEyV5+YNOQWmWeZpg+uBBVK npJLaSsvhnGdKqXKQzMDAjkPJ/binBgpGW94vAyys0Mthb+dSwX/NIegke2q59fzGeU25ff5sR7 bW/E= X-Received: by 2002:a05:620a:1b97:b0:7c0:b018:5941 with SMTP id af79cd13be357-7d3f98f6cc8mr773216885a.7.1750771537000; Tue, 24 Jun 2025 06:25:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdrAg7gq+yCMSKsOWWwPNIbmt3jijAcQ2jxJTGwCS226EaL249p7Qlaj5TFZ6lHgo2gEcMWQ== X-Received: by 2002:a05:620a:1b97:b0:7c0:b018:5941 with SMTP id af79cd13be357-7d3f98f6cc8mr773214385a.7.1750771536510; Tue, 24 Jun 2025 06:25:36 -0700 (PDT) Received: from [192.168.143.225] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae0541b75b0sm864445466b.126.2025.06.24.06.25.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jun 2025 06:25:36 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2025 15:25:33 +0200 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 4/4] ARM: dts: qcom: msm8974: Start using rpmpd for power domains To: Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250621-msm8974-rpmpd-switch-v1-0-0a2cb303c446@lucaweiss.eu> <20250621-msm8974-rpmpd-switch-v1-4-0a2cb303c446@lucaweiss.eu> <50b0aa77-4ec5-412f-9ce5-6ec613dd0afb@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: 57qo9IEXBxWVbzGg6irtMZF_pMsdJv2p X-Authority-Analysis: v=2.4 cv=Id+HWXqa c=1 sm=1 tr=0 ts=685aa751 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=wIXcl6-ah0yuBUIPcu0A:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: 57qo9IEXBxWVbzGg6irtMZF_pMsdJv2p X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjI0MDExMyBTYWx0ZWRfX/WwW8CbNgDCG KE6OFMSNiJ11dSBMd9EMxJDcI39q8NGN6+vcVR6ih/GucvKWgUWPapplrlFh9qoHMXMg8EiF2pT o/Xc4B7XalYfDr1tuut9JY8wUchYM+F/naNaWGkNbznos+s+I133Rfs/UmoZSu9n2t+ZDFTz1py p9mW/vX8sH1+sa35ASiMCXtnIsLiygF1RTPjcCkohVJGcWW+8E6FuqNHoVgC26wZFT32KXRgfbe z/waQ9fg5JnT/9DSvHQ+tTifrRrITY97czJYVs1D/gEVW0GmRVcLIU0ISlzV9Y7X+XL6F+eEiCL +SkSkNzgOUZdPMzAPjiUVucgb8tHlTb32c0YCxvKFJmuZvCXxStREezuy8a+mKZo0svljV/xU7f SL10lJZvrhctDq5J4EEdqNWO7COwo8SqgIkS8ooqOGC7nh7GRVt+k/AitjE0N6tIpYQ4BpKq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-24_05,2025-06-23_07,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 bulkscore=0 clxscore=1015 impostorscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506240113 On 6/23/25 6:44 PM, Luca Weiss wrote: > On 23-06-2025 2:39 p.m., Konrad Dybcio wrote: >> On 6/21/25 3:19 PM, Luca Weiss wrote: >>> Due to historical reasons all msm8974 boards have used the CX power rail >>> as regulator instead of going through the power domain framework. >>> >>> Since rpmpd has gained msm8974 support quite a bit ago, let's start >>> using it and replace all usages of pm8841_s2 (CX), pm8841_s4 (GFX) and >>> for the boards using pma8084 pma8084_s2 (CX), pma8084_s7 (GFX). >>> >>> For reference, downstream is using GFX power rail as parent-supply for >>> mmcc's OXILI_GDSC GDSC which then is used for GPU, but nothing there is >>> modelled upstream. >> >> if you use an opp table with described rpmpd levels and bind the GFX >> domain to gpucc, it should propagate - check it out > > I don't *really* understand what you mean here. I'd be happy if you provided an example (or better yet, a patch) for this. sm6115 > > Also msm8974 does not have gpucc, only gcc and mmcc. *oh*... right You would then have to somehow selectively bind the OXILI_GDSC to VDD_GX, for which I don't know if we have a good interface today.. Konrad