Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8162EC74A4B for ; Mon, 13 Mar 2023 20:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbjCMUAn (ORCPT ); Mon, 13 Mar 2023 16:00:43 -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 ); 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 ; Mon, 13 Mar 2023 13:00:16 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id m4so4202810lfj.2 for ; 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-Google-Smtp-Source: AK7set8eSIYWPnIGSAKERHAgapiGKwl0YTrot7vNBpddpbM//Rmq/pTBIqy3uXR+gPgFqOAzJ0Tm8w== 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 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 , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Dmitry Baryshkov 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= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- 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, -- 2.39.2