From patchwork Tue Nov 1 02:47:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 949 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2689617wru; Mon, 31 Oct 2022 19:58:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XZjdqsa1Uz4EGq6LzlMDJJhicaqQunSYOsQILPBmkqsD1FDgPN21HRsAxineYTkBChFm7 X-Received: by 2002:a05:6402:3223:b0:461:8635:e5c with SMTP id g35-20020a056402322300b0046186350e5cmr16807106eda.303.1667271532163; Mon, 31 Oct 2022 19:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667271532; cv=none; d=google.com; s=arc-20160816; b=BFPqE21vtuf4lh4gVcSXNLkMYiVG6rds6R3NaKwhs3KnN7dvqLcZtqpZ1AL6/Vw3vi QOHdIuVD3NNUTbbIXsWLfIxQHCJJxJanVaLdvMSUD+gsj3KwwVlHfwOSy7YUlKMIch7a dlWd2CDxpdTYr1ePmT2grFkpnXNGo3ryZKNflOgm0qPHkR9E/KvzonjRXNTavjjQeTDy YSxWTGKkGeq5l17LXavJAfZqJCLXNJZs5tt/PMdJ3MphNE39iM1OwmgPYAMqqCBYsSym PBF/yHz8bLaTytVcnZKSQCjg+x5JPBGmcQ3wERIvO198qN7QCmEpvR+EDNR/Z4P2tcuT E4lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bqRIQ062uuK/o+/WpcLxqow2YV5qT2kYhS0BBT+EteU=; b=qPNsj2IEgadzPvlaK50Zy4Wwe9DM0J2MRMwN6hHGyxb0jP7IGFOaPiqiJtyZk9RiSf yrFNVxNF1Zpkcp1JW1hEtoshEUQqvGaI2COSqyORVmih1yoshGytBG4P/e0SWUDAV0uw rpfYIQdB7XEuSEUwqnZzD3FPL6yHOcR57YFbb+1/HNPH9U/Pcll0G+d1MCkB4Najc6UM 9Rp5UWMY8+byH0DXjAKcTFYYLcW9rC8H5sV9NJM/c6dIfsV0wELRlr+8MAJ9YcWwbsVP 8dlN3qKP1yhg0JRLNgkxSqv0eCwfpGWXbIeARq+8OYhZW/ZgLvwmrGxUxiDPfPlz7ox4 QlOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DRCdy0I8; 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 w10-20020a1709064a0a00b00780a882d337si7770317eju.480.2022.10.31.19.58.28; Mon, 31 Oct 2022 19:58:52 -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=DRCdy0I8; 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 S229874AbiKACrw (ORCPT + 99 others); Mon, 31 Oct 2022 22:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKACrv (ORCPT ); Mon, 31 Oct 2022 22:47:51 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4076C17894 for ; Mon, 31 Oct 2022 19:47:48 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id m6so12356304pfb.0 for ; Mon, 31 Oct 2022 19:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bqRIQ062uuK/o+/WpcLxqow2YV5qT2kYhS0BBT+EteU=; b=DRCdy0I8Sl8TkVAgdeg/jvSKu+czCngr3cXev+Kwv7pfbBInABYASHoU8SEYDVqLXh 9t5P0IzT1wYf8J6IHBJXbHTYPgwz8+YDH98zX0qa2JYt9gTxFPXJirGjAf1RQYL5+Bcj vEj9fzKQ5VULUFBRc5IoHXV6VlV3FxoAZHh61slEi18ElUUzetqNQv9QpitfRJv0UKqS ZtEBoOxaIFutjPJtWXsf5O1NTVGqyOjPR1jiHxiD4UBXXVsnft8hOTqEqz1OHBbv1KuO ByzGFheRm9rT3/yThkU5ExEyiBowAwR4X3CPCmfqZqfkwlPkeDi1edZilt2lwqRaw9WG +doQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bqRIQ062uuK/o+/WpcLxqow2YV5qT2kYhS0BBT+EteU=; b=pT2XBrnHW4BqwSWjEGUF6UAVPgzMnLL3Yp9QqcfQNhLl5Yoz8syj12DeD92rcUsB8j CdMrRJzpZfHHShsIyWvHhRSK5W2NxzyuN0xEdJVQEs+WEKKbwXG531f/ny86mkaM+vnm HeyU0mazaTaI4mBafw9HjxIu1veGYVH+9PQhBjcg9O/RP8E5y9MyVHnfO2kvB/qe9/a0 buIGwcO08RLjhYVqBlCVmAbzG9nKeqdwxOQJKdxAU1b4HrMCWB/eoFgku1C21MKdnhrU 8sVUC6x+F0UiGL7EcR1vW5VYxcbMcTJc8lrz0eJ4rdumh0Xcl4HX3/OQJGPkTOb2GRyq v4EA== X-Gm-Message-State: ACrzQf1+R82GEoykvmqjVe7RFk3U0T02g8vPB3ZRj7vEMkSFiT4Irq+h mwPv1ZtIoOH9kTwE4ZUNvpdcjw== X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:6302 with SMTP id b12-20020a056a00114c00b005282c7a6302mr17656095pfm.37.1667270867814; Mon, 31 Oct 2022 19:47:47 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id y4-20020a170902ed4400b001714c36a6e7sm5079570plb.284.2022.10.31.19.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 19:47:47 -0700 (PDT) From: Shawn Guo To: "Rafael J . Wysocki" Cc: Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v2 0/3] Manage domain power state for hibernate freeze Date: Tue, 1 Nov 2022 10:47:33 +0800 Message-Id: <20221101024736.1509207-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748260914068740315?= X-GMAIL-MSGID: =?utf-8?q?1748260914068740315?= The series tries to fix a hardware lockup issue caused by missing domain power state management from hibernate .freeze[thaw]_noirq hooks. The detailed description of the issue can be found in commit log of patch #3. Changes for v2: - Fix kernel doc of genpd_finish_resume() to use the new function name Shawn Guo (3): PM: domains: Pass generic PM noirq hooks to genpd_finish_suspend() PM: domains: Consolidate genpd_restore_noirq() and genpd_resume_noirq() PM: domains: Power off[on] domain in hibernate .freeze[thaw]_noirq hook drivers/base/power/domain.c | 130 +++++++++++++++--------------------- 1 file changed, 52 insertions(+), 78 deletions(-)