From patchwork Wed May 11 14:56:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 574172 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 D9C7AC433F5 for ; Wed, 11 May 2022 14:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245270AbiEKO5Z (ORCPT ); Wed, 11 May 2022 10:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245025AbiEKO5V (ORCPT ); Wed, 11 May 2022 10:57:21 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A7B69B50 for ; Wed, 11 May 2022 07:57:20 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id g16so2976553lja.3 for ; Wed, 11 May 2022 07:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NTwD4gLKmHN7E/fbQzayCb4Ey3ryS/IVDOIHFJLYaw0=; b=Oa3p0Qcx0Xv/C4eTI1R6LW+r61z+jhCZtmwCVCCxydrf7aeTXGjaIWeCKMQWKoFqau TR5Bb5WErQwCiPW1Jn9SNNORu8NFnVMpxWczs7EPkrBy4rdEOBnn/TBTjs0K95+Y+f7o 5monH/kS9VuBHbqJ65Jaj2gN4HaVFN2utFAmxw/gWZ264tzD5y49kilaVDSRu5jmwrNL 0SqvT+F5G5yIV1t/8cM+fnaePvLbOwZQikMwRGULaBRdyYVS5A0jYSfSp1wTf6gsG05+ X+GM5dndMrI1YlF+8SdcOfAT+69kwwTwwFupZgTAQQQtyt0LdRD7OI/qX1uwPUUJNSSk PCRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NTwD4gLKmHN7E/fbQzayCb4Ey3ryS/IVDOIHFJLYaw0=; b=3/5BL4e+Hwq7ZwAZNly19uScco8dCw+tJG3o1E6AMx/3bJngNsK86W4yNY/0bYIUlD oySMqN6uANTzc14wwuuyX3+nhba0CgrWYFIGX2nl+Rf1i0AsSXrY9eL0QRtCb2NXA0nK G7/Y4BAdubmBxnaHK+LT1Zutc3N3dMV6tp841PX+jCllFVGlvHA8u8SdQyRowFtaBiXz Ey7wN5sSXYNE4Y8QL4GYEhx/7USp/7EycPuob3PqydEXam7FXZ1LeqGBh2cork4GqgJq cmov1RFtHY/SmpQtc+RwRG5XUKFN8YDlLfXRXSYjXW/ETKU8vM63JQVuhRmQA9qVNlAW PMlQ== X-Gm-Message-State: AOAM532xGKisF0VjEfTnfIoBybrk4QjrtJkFe9nk8SUodfMIxE9u8y9Y MtVBXU+FgdpjaSM+O5MT70rRhw== X-Google-Smtp-Source: ABdhPJyPDaLPh052/eGE9GBsFch7tnDr/+2QhvcD8efEkQsXZp+785gms7IyGXQ28Z0bhO/LniKWjw== X-Received: by 2002:a2e:9617:0:b0:250:896e:3d25 with SMTP id v23-20020a2e9617000000b00250896e3d25mr17485503ljh.526.1652281038522; Wed, 11 May 2022 07:57:18 -0700 (PDT) Received: from localhost.localdomain (h-98-128-181-154.NA.cust.bahnhof.se. [98.128.181.154]) by smtp.gmail.com with ESMTPSA id z26-20020a19f71a000000b0047255d210f3sm320793lfe.34.2022.05.11.07.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 07:57:17 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Geert Uytterhoeven , Maulik Shah , Gabriel Fernandez , Alexandre Torgue , Dmitry Osipenko , Kevin Hilman , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/14] PM: domains: Various improvements for genpd Date: Wed, 11 May 2022 16:56:50 +0200 Message-Id: <20220511145704.698189-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The main goal with this series is to improve the way genpd deals with its governor(s). Especially it turns allocation of governor related data to be dynamically allocated. It also improves the execution path for runtime- suspend/resume of devices (attached to a genpd of course) and the similar is also done for genpd's power-on/off path. Note that, patch 1->3 have already been sent before in a separate series [1], but for simplicity I have included them here again. Tests/reviews are as usual highly appreciated! Kind regards Ulf Hansson [1] https://www.spinics.net/lists/kernel/msg4335838.html Ulf Hansson (14): PM: domains: Add GENPD_FLAG_RPM_ALWAYS_ON for the always-on governor PM: domains: Drop redundant code for genpd always-on governor PM: domains: Don't check PM_QOS_FLAG_NO_POWER_OFF in genpd PM: domains: Rename irq_safe_dev_in_no_sleep_domain() in genpd PM: domains: Skip another warning in irq_safe_dev_in_sleep_domain() PM: domains: Allocate gpd_timing_data dynamically based on governor PM: domains: Move the next_wakeup variable into the struct gpd_timing_data PM: domains: Measure suspend/resume latencies in genpd based on governor PM: domains: Fixup QoS latency measurements for IRQ safe devices in genpd PM: domains: Fix initialization of genpd's next_wakeup PM: domains: Clean up some code in pm_genpd_init() and genpd_remove() PM: domains: Allocate governor data dynamically based on a genpd governor PM: domains: Measure power-on/off latencies in genpd based on a governor PM: domains: Trust domain-idle-states from DT to be correct by genpd drivers/base/power/domain.c | 201 +++++++++++++++++---------- drivers/base/power/domain_governor.c | 65 +++++---- include/linux/pm_domain.h | 18 ++- 3 files changed, 173 insertions(+), 111 deletions(-)