Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3295432lfo; Mon, 23 May 2022 00:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdJvGR7ulacQuBa1VGP1LIEHvsU1Qo6NUfMNVLuBRLUt2yaOJrmptDoTQkyyXo+IUHYHhq X-Received: by 2002:a17:902:7c0e:b0:161:f9f6:be5b with SMTP id x14-20020a1709027c0e00b00161f9f6be5bmr13025665pll.156.1653292716285; Mon, 23 May 2022 00:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292716; cv=none; d=google.com; s=arc-20160816; b=fNb75R1ZzYzxSOnjel2Felvs5wjL7sTGuo5kud/S66I2X4CNycDsibzsh14+WHYT6R jHNuwyEbNyXYWQuw7/t+PY+PCrbw1pqwmcNNKEZTRph+9AD3p0CAPEtOMRpxE4+lW/Ug rRz4ep4uPMT1GoT29MgWh1/VdR3xSTHwIcLW13fatJJ0b0PwTsYMwQIRAsQuQsuY+OHv Jy96yuubW4QmuAoHiGSHEtz1/AqFkCwa9nBFrAIFtYh3fyRq+pslo1rxpKFwHLoQMU7t vF2IW2mV4lHq3DoCtpMl2ezpv7NTfdfG0rF9xCWlVjT4WuXdAzaZUukeUyMn+N6XPETQ 0oww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HgU6CVcBQStjcDR5gk2dFy7rEHS5OgkX1HJgnqEvLw4=; b=NmulsZvE/6T1FPIfgRu/R6kNoYIZ6voSwDhBlHkR/KBS5pUsiOwVumNDbZmRBlbcw3 4nTc+3vb4kNeR9YZRtSO4gGMbtr3jG388NybZOIZORVIvlyuA+j23wd4soFeSAe3myXQ Pgt1SQ5Ix9sjr/5nd9YNEacnAlCBmpmIxYkhSua/i5UgPwtM/cSVuH4G2apcjOHFvodf UIWDEPUpG8+MoGypVLkiH2hrqv9VfBi5Be+dNrN/17wSMkE4yT3zSp0sEKVpxiFwgnFo U/du90B2RCgm/wenO5x3LimiyVU/Ri5UGExlyvbm/6XWQsEZvnp5mslsRkIEdWQRHboO uhSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OiM5dSKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h126-20020a636c84000000b003c1725602b4si8900129pgc.627.2022.05.23.00.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OiM5dSKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C8124506A; Sun, 22 May 2022 23:58:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350339AbiEUJwf (ORCPT + 99 others); Sat, 21 May 2022 05:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236810AbiEUJwc (ORCPT ); Sat, 21 May 2022 05:52:32 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0AADFF67; Sat, 21 May 2022 02:52:30 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id d198so5876820iof.12; Sat, 21 May 2022 02:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HgU6CVcBQStjcDR5gk2dFy7rEHS5OgkX1HJgnqEvLw4=; b=OiM5dSKoVRtHFckOGNUBmUfGQYcX+ecD9ipw8M8AS5csnbpWH32uLwtiwQ5hVwyHvx IXAXwm0FLv8yQMy78Z9KQP1t9L8hg9KCEcFQ03HQqWFTtYvy/NQWY9Eopwga0Lneqpje MTZTZKTpQW1eUtDAZ/V04SNZKFIUZ/wyPuD+vklv/a72S+41O+iD9i1rgiHoQHhWaSXt XzLgATlHRwU1liDoo+vw5sC8C9YIa/rMHzfOYIS2Q69Pgfo665nC0hbioBh7Xq4ltYsd G3enkBJb1ElKXAi9fLqDNjcb/WPpJRvhnf3GGKWCVDz0x2GRhQXs25q4TnvHb8DLK9SY QGPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HgU6CVcBQStjcDR5gk2dFy7rEHS5OgkX1HJgnqEvLw4=; b=beLGFEJLOMSwk5MejloaXs2WzITbxUZjE4+w3N/d/XieNIcxXUHLQr1n8umCo7DvC3 eElkDaKDPvwyJUMNvqv+WS/FiIHUuO654SqZY05alA45HJaf+oqWw6WgZkj8Z5SNm8X2 jlZ4PhDiXw8v2Cg0uifyNwQQog7AFuRCZjPSynCVPQIhZT44s2hncZuE3i7UOa7fi46O +JQljLA8/W8oYhhe0d84S9pm/ma9xnARrZSYiez0SeCogPjWI1SFZuS8a6OsnCVt1M07 xLLXccZ8iRB7acNK1FL//lInhpXhn3na5suJiZU0YUGmMz+LQSYvwo1CsfzncOSudVss 66mg== X-Gm-Message-State: AOAM531QE6sPZrfZn642JIaL0HCB1381c41F3DyL9EULDhmyVjEIqdEc FoFSmf4ZNq5kGCKtp6wUlh41fiUCowhQrmIYEQI= X-Received: by 2002:a05:6638:130a:b0:32b:b608:1676 with SMTP id r10-20020a056638130a00b0032bb6081676mr7729318jad.108.1653126749775; Sat, 21 May 2022 02:52:29 -0700 (PDT) MIME-Version: 1.0 References: <20220515064126.1424-1-linux.amoon@gmail.com> <20220515064126.1424-7-linux.amoon@gmail.com> <79b727f8-0631-5a96-fbc6-6e5d637bab7d@linaro.org> <018b97c2-efab-699d-653d-c220a98f5ec3@linaro.org> In-Reply-To: <018b97c2-efab-699d-653d-c220a98f5ec3@linaro.org> From: Anand Moon Date: Sat, 21 May 2022 15:22:13 +0530 Message-ID: Subject: Re: [PATCHv2 6/6] thermal: exynos: Add runtime power management for tmu To: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Alim Akhtar , Linux PM list , linux-samsung-soc@vger.kernel.org, linux-arm-kernel , Linux Kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Wed, 18 May 2022 at 12:49, Krzysztof Kozlowski wrote: > > On 17/05/2022 20:45, Anand Moon wrote: > > Hi Krzysztof, > > > > On Sun, 15 May 2022 at 15:18, Krzysztof Kozlowski > > wrote: > >> > >> On 15/05/2022 08:41, Anand Moon wrote: > >>> Add runtime power management for exynos thermal driver. > >> > >> First of all - why? Second, I do not see it being added. Where are the > >> runtime callbacks? > >> > > > > To control runtime control PMU, did I miss something? > > Controlling runtime PM by itself is not a goal. What does it change if > it is enabled? > It means we could have efficient power management for this driver. as per my understanding, it controls runtime sleep and improves power efficiency > > I looked into imx thermal driver # drivers/thermal/imx_thermal.c > > to enable run-time power management for exynos driver. > > So you have runtime PM enabled and then what happens? Where is the power > saving? Since you did not implement the callbacks, all this should be > explained in commit msg. > Ok, As per the original code, it just registers the SIMPLE_DEV_PM_OPS with .pm = &exynos_tmu_pm So I have made sure that suspend resume feature works correctly with these changes on SBC Odroid U3 and XU4. I will try to look into setting RUNTIME_PM_OPS or use UNIVERSAL_DEV_PM_OPS instead of SIMPLE_DEV_PM_OPS any thought on this? > > Best regards, > Krzysztof Thanks and Regards -Anand