Message ID | 20230620-topic-dsiphy_rpm-v2-0-a11a751f34f0@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3601184vqr; Tue, 20 Jun 2023 04:45:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xyEoRFBv+7u+qAnoseqODcU7ljpzwNjqneWzzLndv6nqO7P4aYKDcrXQV94INJZuRL9es X-Received: by 2002:a05:6358:e927:b0:12f:2076:f372 with SMTP id gk39-20020a056358e92700b0012f2076f372mr7902664rwb.12.1687261549883; Tue, 20 Jun 2023 04:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687261549; cv=none; d=google.com; s=arc-20160816; b=c/sijSVXvCMQJNikmtvyKybH95vmPpRfW7wWn4VezP3oworBrfHjOwZ9Fw5uy7wrhl x6lvhNrsrknB7NBz3myW0WDmufTG37cpv/fSpxRs4CR8vEc+qlAK0W2xnd0EiNPmHG+R izibvrXMRD7chazYvgo717Ftn2BeTe/b+BDJOMA31tlsIkdrxuVDaLrpgwEPB6Iz+wgH 7Nx3CfTksni5KxWP8X09cyNNIU2H6Fa/WD0ogxeA1u120RRVBnzDf5DMCozUXuYVYfkF zD016aymVG3nhpdrGQ6NJoLOcV/d+SXzKxsv1c5UbfiBofuu2LACyOV2pdLEB5Zq2dTu N7/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=TmPjUwACn3+NI9gtBE9ADTLdrd5FFdppPJx2J3ijYe3aI54+P9EHzm+AQw2tBGbDzm 57utExmSVEhupSd4fcrlCN5EThO85nHfJzh1asX4VTeG1aKMeCAoqaFjz81w/O6ETXqJ A+gCUfxqbklLEUaRsLrC1jHi+osz2yA+6OW70e1Op6dM51qm8nwoKHSiZO/baYuf8bi8 /i9r8HytG2xxAixYVLOqfq2HrKlqlaAzCuu6+A0Ktmw+njEyWKvWoA6bOp3MYRfR/y0p /RCMcCVUkUHcGitfDvgERoSkCxiBA++6oidiFO8k6y2A1yuJJOZNM5oXW1UbVebo+fbn qnog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XrLh4GtE; 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 i30-20020a63585e000000b0054fe07d2f41si1459225pgm.894.2023.06.20.04.45.31; Tue, 20 Jun 2023 04:45:49 -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=XrLh4GtE; 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 S231260AbjFTLnk (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 20 Jun 2023 07:43:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbjFTLna (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2023 07:43:30 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F89C1713 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 04:43:29 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f866a3d8e4so4068823e87.0 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 04:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687261407; x=1689853407; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=XrLh4GtEgxMgS393kJtNt5OQY0aDhepU5WL09MdOh1LQOK3Oqi1HUyGdV2/Zq3Hs/V EkVP/iYzcHMeN5Vc4O0UrLNrp7scbfHeRTCxP2jBDBiwjslhDzlEeXTocH4J80ewj2fZ w4VEiWUGm2zvXlnimoWvD9WGDr4d2Ar0uB/8aVQ3hGUjiUiv/AJsD8bx7uF1ElMPYCWT DeORGnLHQ7L6TH0WqAVRfM0qTDo5Bz7WPwEiwLr+9m55wwS5chqny3z0si7MPMe7rNLc 650MSRPhll89NUc2DCwQD8fSElv5dyZSk3H1RExZAvsTFecGbaCxx2bjML8e5RrOKkdk dy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687261407; x=1689853407; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=XxEWTdNAFRC2M+CNzfjAtOhmr4BL+FPZgUy2Q4VZdrBRLpWEA8ReFc39LUO8p0KBy+ vImGbpuAUVzW5BRdkyPr5ZxOZsq8eRA2ha/XBGwDGNVxfEzxP4GJmF4lr7DHwdofOr0E 7dC83wMGXaK6WQeQbWKHXPES0NJAUuc/AAZg2TaubTS8bIpcj/GfWjkJ93y2dIqswtLr sqAdsElrWjVGDyExX+Mgvq97jslzNt+8IT5Yz8fEOdKBaAGJUJQ/3Pwn/Fy3yiFpzrOt HTutMXbHx9hVC86hLm/nRKm3hpsz/w+1FKRKqmKhfN5PnUzw0r9TNaXRj+9xfwp7IqRi hXxA== X-Gm-Message-State: AC+VfDxH4IqR1zVjvSwLuOJyEWjedA2LOPKKK6ItpW9Axl98Km2my5EW vXHjILYe7VpWpg66IDOo2COKyw== X-Received: by 2002:a19:7b02:0:b0:4f6:1b45:e8aa with SMTP id w2-20020a197b02000000b004f61b45e8aamr7160691lfc.50.1687261407277; Tue, 20 Jun 2023 04:43:27 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id v17-20020ac25591000000b004f640b0fb04sm324158lfg.212.2023.06.20.04.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 04:43:26 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH v2 0/2] DSIPHY RPM Date: Tue, 20 Jun 2023 13:43:19 +0200 Message-Id: <20230620-topic-dsiphy_rpm-v2-0-a11a751f34f0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANeQkWQC/32NQQqDMBAAv1JybkqMQUtP/UeRsklWXbBJ2Fipi H9v6gN6nIFhNpGRCbO4nTbBuFCmGAro80m4EcKAknxhoZWuVaOVnGMiJ32mNK5PTi+JYK5Va8E DWFEyCxmlZQhuLGF4T1ORibGnz/F5dIVHynPk9dgu1c/+OSyVVNKYBtreK4emvk8UgOMl8iC6f d+/fu/i+MYAAAA= To: Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687261406; l=831; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FulnHTQVR5IFvYXocwRssbKvCfyBHt3fJGnSrpxUdHU=; b=RwTKpnvDySD7/pCybHeBMO9p+5NXfvNwuLdf4wG8fFac/2KFlHw/l9iCggnqrz+o9+fnosUEP i1M5ashWbOJDihGRvlR96hGHAgOFSGt6TUoJauT2lplP1ORUVca6mJi X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1769221967106288606?= X-GMAIL-MSGID: =?utf-8?q?1769221967106288606?= |
Series | DSIPHY RPM | |
Message
Konrad Dybcio
June 20, 2023, 11:43 a.m. UTC
Some recent SoCs use power rails that we model as GENPDs to power the
DSIPHY. This series attempts to make such configurations suspendable.
Tested on SM6375.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Changes in v2:
- Improve patch 1 commit message
- Add return value checking in patch 1
- Link to v1: https://lore.kernel.org/r/20230620-topic-dsiphy_rpm-v1-0-446a7fd0ce43@linaro.org
---
Konrad Dybcio (2):
drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
drm/msm/dsi: Enable runtime PM
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
base-commit: 9dbf40840551df336c95ce2a3adbdd25ed53c0ef
change-id: 20230620-topic-dsiphy_rpm-ea4817badaab
Best regards,
Comments
On Tue, 20 Jun 2023 13:43:19 +0200, Konrad Dybcio wrote: > Some recent SoCs use power rails that we model as GENPDs to power the > DSIPHY. This series attempts to make such configurations suspendable. > > Tested on SM6375. > > Applied, thanks! [1/2] drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks https://gitlab.freedesktop.org/lumag/msm/-/commit/a402e0e61b75 [2/2] drm/msm/dsi: Enable runtime PM https://gitlab.freedesktop.org/lumag/msm/-/commit/4e905c2acc9d Best regards,
On 11/07/2023 17:21, Dmitry Baryshkov wrote: > > On Tue, 20 Jun 2023 13:43:19 +0200, Konrad Dybcio wrote: >> Some recent SoCs use power rails that we model as GENPDs to power the >> DSIPHY. This series attempts to make such configurations suspendable. >> >> Tested on SM6375. >> >> > > Applied, thanks! > > [1/2] drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks > https://gitlab.freedesktop.org/lumag/msm/-/commit/a402e0e61b75 > [2/2] drm/msm/dsi: Enable runtime PM > https://gitlab.freedesktop.org/lumag/msm/-/commit/4e905c2acc9d Unfortunately this series breaks our CI, see [1], [2]. I had to remove these patches for now. I suppose this is either because of a probe deferral or because of having subset of drivers built as module. Konrad, could you please take a look? [1] https://gitlab.freedesktop.org/drm/msm/-/jobs/45271774 [2] https://gitlab.freedesktop.org/drm/msm/-/jobs/45271775
On 11.07.2023 18:31, Dmitry Baryshkov wrote: > On 11/07/2023 17:21, Dmitry Baryshkov wrote: >> >> On Tue, 20 Jun 2023 13:43:19 +0200, Konrad Dybcio wrote: >>> Some recent SoCs use power rails that we model as GENPDs to power the >>> DSIPHY. This series attempts to make such configurations suspendable. >>> >>> Tested on SM6375. >>> >>> >> >> Applied, thanks! >> >> [1/2] drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks >> https://gitlab.freedesktop.org/lumag/msm/-/commit/a402e0e61b75 >> [2/2] drm/msm/dsi: Enable runtime PM >> https://gitlab.freedesktop.org/lumag/msm/-/commit/4e905c2acc9d > > Unfortunately this series breaks our CI, see [1], [2]. I had to remove these patches for now. > > I suppose this is either because of a probe deferral or because of having subset of drivers built as module. Konrad, could you please take a look? I see no reason why it would break things :/ You can see that rpmhpd sync_state has not completed, which means all PDs should still be pinned at max vote.. Can we somehow retest it? If it still fails, can you try enabling runtime pm on dispcc and hooking up vddcx? Konrad > > [1] https://gitlab.freedesktop.org/drm/msm/-/jobs/45271774 > [2] https://gitlab.freedesktop.org/drm/msm/-/jobs/45271775 >
On 15.07.2023 17:25, Konrad Dybcio wrote: > On 11.07.2023 18:31, Dmitry Baryshkov wrote: >> On 11/07/2023 17:21, Dmitry Baryshkov wrote: >>> >>> On Tue, 20 Jun 2023 13:43:19 +0200, Konrad Dybcio wrote: >>>> Some recent SoCs use power rails that we model as GENPDs to power the >>>> DSIPHY. This series attempts to make such configurations suspendable. >>>> >>>> Tested on SM6375. >>>> >>>> >>> >>> Applied, thanks! >>> >>> [1/2] drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks >>> https://gitlab.freedesktop.org/lumag/msm/-/commit/a402e0e61b75 >>> [2/2] drm/msm/dsi: Enable runtime PM >>> https://gitlab.freedesktop.org/lumag/msm/-/commit/4e905c2acc9d >> >> Unfortunately this series breaks our CI, see [1], [2]. I had to remove these patches for now. >> >> I suppose this is either because of a probe deferral or because of having subset of drivers built as module. Konrad, could you please take a look? > I see no reason why it would break things :/ > > You can see that rpmhpd sync_state has not completed, which means all > PDs should still be pinned at max vote.. > > Can we somehow retest it? > > If it still fails, can you try enabling runtime pm on dispcc and hooking > up vddcx? IIRC this was a fluke with the CI, can we retry? Konrad
On Tue, 20 Jun 2023 13:43:19 +0200, Konrad Dybcio wrote: > Some recent SoCs use power rails that we model as GENPDs to power the > DSIPHY. This series attempts to make such configurations suspendable. > > Tested on SM6375. > > Applied, thanks! [1/2] drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks https://gitlab.freedesktop.org/lumag/msm/-/commit/3d07a411b4fa [2/2] drm/msm/dsi: Enable runtime PM https://gitlab.freedesktop.org/lumag/msm/-/commit/6ab502bc1cf3 Best regards,