Message ID | 20230313-topic-rpmpd-v3-9-06a4f448ff90@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1380002wrd; Mon, 13 Mar 2023 13:03:03 -0700 (PDT) X-Google-Smtp-Source: AK7set++hOBCWnB78neIhg+aHAyIdSEKplANkxM7e++wxYH0upq+lN8J5BfW3dIU5sUsc1ak9n/u X-Received: by 2002:a17:902:7798:b0:19c:bcb1:d8c3 with SMTP id o24-20020a170902779800b0019cbcb1d8c3mr29627029pll.54.1678737783501; Mon, 13 Mar 2023 13:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678737783; cv=none; d=google.com; s=arc-20160816; b=Al5cTIUS46JoD46ZFWoQVkSgj1YxZrA59KdpA6relRvOGi1hgbi5EiRERo92iks14I h7PKeR5wfBIhaUzmfT3LzPOJDwkxXunaq+gm6nD6/boB16TMEcG44HFnhopHa7MXPfrM 6IVEb57NDFXVtjTmOc5of60K3IN81nHCqNLxghRDblc+NkNy3GI8QsCsDn7UVlicCEwG t5lSCtF+Dfm2nQSUpdim7JdzJe6O0VbS50kWZI6YIkeWVp6VOYaCVmoa2iubfdbJODZc L4YfvTakqqjfqjFAlJJbNfdjAREl8qif/HypZBnXFtuFWIRy+gok/Io8NNDx9qL8Mew+ 0klA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=eKRFyo+3tUDJl078WQAs1jDYE+5yKAitEL5AqqGitxE=; b=X3kOGA2hSI9/0/KDb/vV1XrigM2Zw7NS3Dl9jkcWhq45U5gWrv5vR9QZjBwZ4wkntw kCs+nB4wU6UM3SYAcmdqU3HcV5A3Xy48bSZ936+5R5lktprXpWVWprbRk6LYlMiveI59 slkANN92zUZoLyXkrmjd2cxujDU9JnQDBXESOjS3ISTpgxheFziy/5f/zuj07uyylh0n Erm6d6Qm8f0SVN97pZjCVGHRe3YvRYHyh4PeCYZYB8UBHiXPLnLf/MVFJxnFMsR56jYq 8Mq5+UFMeonPlzq2wlQoSr/3KMhn5UdVodiVvzB2Dg4o4+W5zwnGs0zwcouT+TrSws8P 1oaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hSelPAHx; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a1709029a0300b0019ca7a76d68si535836plp.67.2023.03.13.13.02.48; Mon, 13 Mar 2023 13:03:03 -0700 (PDT) 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=@linaro.org header.s=google header.b=hSelPAHx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbjCMUAm (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Mon, 13 Mar 2023 16:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCMUAR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Mar 2023 16:00:17 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7846E85687 for <linux-kernel@vger.kernel.org>; Mon, 13 Mar 2023 13:00:16 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id m4so4202810lfj.2 for <linux-kernel@vger.kernel.org>; Mon, 13 Mar 2023 13:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678737616; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=eKRFyo+3tUDJl078WQAs1jDYE+5yKAitEL5AqqGitxE=; b=hSelPAHxpuoqcifLAGoo/UbDnao9OLL/7/IY6DAbGJgrpoE2wgBaOEqEaR5sCHH858 BWK9aNOzTc4mk1MtrSOIZRHRGl6muUn3ZAqIZtgu0ercSb4eGzZ26uaLrNPUTnoT2nrY WuRsjiG1ezioTtwrNncNl4RilDnxM5Pd1UrPv7PP8+EVt/RqjX3xUs4iWPzb7/nzyHmP igmCe8wtMij2o4kOIJag6wOvDJ/hBbUcy53IcNFSRy8X+Uyk9A3u6Nfu8bVUXUPE5uMN Y5uftizgs4Rx2MyihNjSacn5DhyuXEPOJfOOA07hXvKV7QvZSrYTOssGT063Q4qpI+Sj 6nGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678737616; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eKRFyo+3tUDJl078WQAs1jDYE+5yKAitEL5AqqGitxE=; b=t0RR9LZdYahsligz5CETCyhOoIGhl4DiA2ufWFbQ0grLGS4UqMbEyWeTCQxcj3PQaa UAt05bVNMM03Hgaobg/IgqexYixqAzr6t3St6cpCBiguKkySa9okZIM+HRJoDVpAkL3w +fllynlvpRa7wiHuvjTppDFvZKh+ug/52/LF9pGJEBS60qt74xSpug6WjCCzQ90nRSRG 2N7syHMn3JpmV7V3Gbk3Wn/RON/wrNsVHeUzEGGowisVEnXVRswKsJhw68EkGB72+T+5 uK4ZnAF5Oq0CmKW5mzPolXi1Pkmx6bv3HTk2nGO1pYt03O4DoEuBSFENocoxZdRBLXOy +Onw== X-Gm-Message-State: AO0yUKVkhHHDDLwNkN2leSTZr9dK+p6GNJlx5MBaRHR12Kyv4I66yhVM XmToIRKuPOR8D3UGOiTyUpbS0g== X-Received: by 2002:ac2:5ecc:0:b0:4e6:dda2:6ad2 with SMTP id d12-20020ac25ecc000000b004e6dda26ad2mr10289972lfq.10.1678737615981; Mon, 13 Mar 2023 13:00:15 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id w3-20020ac254a3000000b004cc800b1f2csm75431lfk.238.2023.03.13.13.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 13:00:15 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Mon, 13 Mar 2023 21:00:07 +0100 Subject: [PATCH v3 09/10] soc: qcom: rpmpd: Hook up VDDMX as parent of SM6375 VDDGX MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230313-topic-rpmpd-v3-9-06a4f448ff90@linaro.org> References: <20230313-topic-rpmpd-v3-0-06a4f448ff90@linaro.org> In-Reply-To: <20230313-topic-rpmpd-v3-0-06a4f448ff90@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org> Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678737603; l=1248; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=CcBS01tg5B460uCkFw0c4heaZXq5eBGUm2vrxphKyOs=; b=mPrmyxv3rmOSJKoWf04mOJAlSW9vxfOmnZ6lrHG3ULehtA8RbqVB63EAD03Z0CkNA+1/okPuFvn+ 3Jg9BeONCLIEyJjuXMKsVUosBZOoACI4pkvLjJlbEbv1qXqSPuwl X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760284150324572266?= X-GMAIL-MSGID: =?utf-8?q?1760284150324572266?= |
Series |
RPMPD cleanup + parent PD
|
|
Commit Message
Konrad Dybcio
March 13, 2023, 8 p.m. UTC
The GPU core clock requires that both VDDGX and VDDMX domains are scaled at the same rate at the same time (well, MX just before GX but you get the idea). Set MX as parent of GX to take care of that. Suggested-by: Bjorn Andersson <andersson@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- drivers/soc/qcom/rpmpd.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c index 2027c820caa7..84283719853c 100644 --- a/drivers/soc/qcom/rpmpd.c +++ b/drivers/soc/qcom/rpmpd.c @@ -216,18 +216,22 @@ static struct rpmpd gfx_s2b_vfc = { .key = KEY_FLOOR_CORNER, }; +static struct rpmpd mx_rwmx0_lvl; static struct rpmpd gx_rwgx0_lvl_ao; static struct rpmpd gx_rwgx0_lvl = { .pd = { .name = "gx", }, .peer = &gx_rwgx0_lvl_ao, .res_type = RPMPD_RWGX, + .parent = &mx_rwmx0_lvl.pd, .res_id = 0, .key = KEY_LEVEL, }; +static struct rpmpd mx_rwmx0_lvl_ao; static struct rpmpd gx_rwgx0_lvl_ao = { .pd = { .name = "gx_ao", }, .peer = &gx_rwgx0_lvl, + .parent = &mx_rwmx0_lvl_ao.pd, .active_only = true, .res_type = RPMPD_RWGX, .res_id = 0,