Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34380290rwd; Sun, 9 Jul 2023 10:39:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTyYIWSwUUINyxNB/FNastb/0PM8+9uEp4RW8CGTwUHgLZoW4Z5iS7i0cQhdV3ywbAQqQA X-Received: by 2002:a17:906:7385:b0:991:b292:699 with SMTP id f5-20020a170906738500b00991b2920699mr9306950ejl.5.1688924343503; Sun, 09 Jul 2023 10:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688924343; cv=none; d=google.com; s=arc-20160816; b=j222QeZfJxekgWI1bMrmUTC1iV5i0y4e8YKSeqV2+JmqSms2CS8Ln2FM6upDSMNLmz GQNPtPKGbgVDd+ZwqxukSsEXR6esmywNHWvF+YgaE7ER2yCJuVNl5OQh0A63WBRFSM14 F3Jjdv3aPISfhc3JqI5XlwM0Lz9lzatiOtl2bGYhkOkxyjMe4nwwnJRWvIRwRYPJunX9 UYg9+JW0naWcX9uv0acLvVj6LwZZ0xpBWNMdno5ucLZSgoO0aiHa4iXkhWsI4nY6TJAg rPpqxtNypVppkYoihwep15nSxa4cqU/bsD//Y6lBwkUXj+bFrokxfzyAkXsOA1Doiifv 7WCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5d1LgLh9nuNOMR33H8pyxp1UrgRxhQg0BTYHoVJ3Cgc=; fh=amQEoXZ/DpxDKVn9o0Pr+FglXuz/5o5TMJHzAQcJWYw=; b=qHR5MzvpopIiWRDw48FSN2rMl8wwOkoxMNcpLcjcaVpzJrr/zWEjy0HTGYbG4JlEzp OIiKsedRjS6GPYV5F9wI817CFFxDy+Ql+ry/5Cij/FExWe+uvatJQ5D55PrM7qrFf//i VkAVHOvLNxsbcuEH8mP0KhCWwYTAJ1xN+CZtcYvwmkzp8QC0K5bh+go98P349X97acAx 6OzStKLDQ1R7Ovw0gBBLkdReDi9FDky2NYCR/R3qitJBNxp1yzq1vClKoMxyaQ/yEY6z jfgAVA361cdSJuDTR/oVNa3FfTVG/Rb6A/ksM2r2IfezmmOkH57toJQV1MJi8UzF9786 h2Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OzWUlCRJ; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va28-20020a17090711dc00b00993211b85acsi4718929ejb.216.2023.07.09.10.38.39; Sun, 09 Jul 2023 10:39: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=@quicinc.com header.s=qcppdkim1 header.b=OzWUlCRJ; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbjGIRWO (ORCPT + 99 others); Sun, 9 Jul 2023 13:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230243AbjGIRWN (ORCPT ); Sun, 9 Jul 2023 13:22:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27995FA; Sun, 9 Jul 2023 10:22:11 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 369HLtmI031886; Sun, 9 Jul 2023 17:21:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=5d1LgLh9nuNOMR33H8pyxp1UrgRxhQg0BTYHoVJ3Cgc=; b=OzWUlCRJ0jA20PW4d7zDSdX1t1ZztKIRUkcvZi7QUxREjf/AekRrcYWpfdeX4DYvHyHv nx6G4uSsKbIkwMyLRwqYCEmB8SKgHEzbe7P+dlPfbJRev3SHndCHAEdzpgJkmJCbCkLV QdQx+H4OfWajzRe7gz8nkkvJp6mT1UXq8IAD78j2QNSR8eq55wi2bZgx0skpE5RyvD4Q gHFRMLGq1TJgXb9vSY4JJDNaIkDQ6Q/FX6kI9oq9CmbuTvoMFBt0OtD/w+Maw5Mbw18c pBUx6QEcEmjrfKM1KlvZQ9jV/Z/p5LBC8hg4jeY1rWDdu0EwZdfp3Zmky3sScPGVRXAE +A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rq01dhumt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Jul 2023 17:21:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 369HLsho027370 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 9 Jul 2023 17:21:54 GMT Received: from [10.110.47.185] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 9 Jul 2023 10:21:53 -0700 Message-ID: <72cb729b-a9d3-3e5b-c70a-0761f47a6779@quicinc.com> Date: Sun, 9 Jul 2023 10:21:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [Freedreno] [PATCH v1 1/5] drm/msm/dp: remove pm_runtime_xxx() from dp_power.c Content-Language: en-US To: Dmitry Baryshkov , Kuogee Hsieh , , , , , , , , , , CC: , , , , , References: <1688773943-3887-1-git-send-email-quic_khsieh@quicinc.com> <1688773943-3887-2-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 9CUYSeYKYggZIPaTeM2g9ggGYsSPPaJb X-Proofpoint-GUID: 9CUYSeYKYggZIPaTeM2g9ggGYsSPPaJb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-09_12,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 adultscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 spamscore=0 phishscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307090163 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/2023 5:06 PM, Dmitry Baryshkov wrote: > On 08/07/2023 02:52, Kuogee Hsieh wrote: >> Since both pm_runtime_resume() and pm_runtime_suspend() are not >> populated at dp_pm_ops. Those pm_runtime_get/put() functions within >> dp_power.c will not have any effects in addition to increase/decrease >> power counter. > > Lie. > Even if the commit text is incorrect, review comments like this are not helping the patch nor the author and will just get ignored anyway. >> Also pm_runtime_xxx() should be executed at top >> layer. > > Why? > I guess he meant to centralize this around dp_display.c. Will elaborate while posting the next rev. >> >> Signed-off-by: Kuogee Hsieh >> --- >>   drivers/gpu/drm/msm/dp/dp_power.c | 9 --------- >>   1 file changed, 9 deletions(-) >> >> diff --git a/drivers/gpu/drm/msm/dp/dp_power.c >> b/drivers/gpu/drm/msm/dp/dp_power.c >> index 5cb84ca..ed2f62a 100644 >> --- a/drivers/gpu/drm/msm/dp/dp_power.c >> +++ b/drivers/gpu/drm/msm/dp/dp_power.c >> @@ -152,8 +152,6 @@ int dp_power_client_init(struct dp_power *dp_power) >>       power = container_of(dp_power, struct dp_power_private, dp_power); >> -    pm_runtime_enable(power->dev); >> - >>       return dp_power_clk_init(power); >>   } >> @@ -162,8 +160,6 @@ void dp_power_client_deinit(struct dp_power >> *dp_power) >>       struct dp_power_private *power; >>       power = container_of(dp_power, struct dp_power_private, dp_power); >> - >> -    pm_runtime_disable(power->dev); >>   } >>   int dp_power_init(struct dp_power *dp_power) >> @@ -173,11 +169,7 @@ int dp_power_init(struct dp_power *dp_power) >>       power = container_of(dp_power, struct dp_power_private, dp_power); >> -    pm_runtime_get_sync(power->dev); >> - >>       rc = dp_power_clk_enable(dp_power, DP_CORE_PM, true); >> -    if (rc) >> -        pm_runtime_put_sync(power->dev); >>       return rc; >>   } >> @@ -189,7 +181,6 @@ int dp_power_deinit(struct dp_power *dp_power) >>       power = container_of(dp_power, struct dp_power_private, dp_power); >>       dp_power_clk_enable(dp_power, DP_CORE_PM, false); >> -    pm_runtime_put_sync(power->dev); >>       return 0; >>   } >