From patchwork Sun Oct 16 09:58:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 166 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp951361wrs; Sun, 16 Oct 2022 02:59:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Zsieb57nB1oHu4PtY+dwo2zukA2+RFhKUFwfHiIAUOZE3pheTxbyMJx4QShf6HaSBJo4H X-Received: by 2002:a05:6402:249f:b0:453:eb1b:1f8b with SMTP id q31-20020a056402249f00b00453eb1b1f8bmr5450467eda.235.1665914392969; Sun, 16 Oct 2022 02:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665914392; cv=none; d=google.com; s=arc-20160816; b=zYY0wDpYGBMTwCnfKuUABkTA7KRYh98N3UQ8Xpe/CoL1dQc0YSSGy/88pd3yPjesxb qT+iM3gR4On3y6cHrW5idJX4OzlvDomWiu6U8tXH3gdvTcjWnY7/oSceq/raIYsAyVt+ Qo4j2jR7UTYpahiQi5K8WX8D4kx5UMU/MfDnOMaiRYpwhxmKSFRMCphnszts/wgeXKp+ ZGXak7ISnH1PkbBbBQyrS4A3HKAQRcLHhnjmkWq+AAO75lVvwwnBwThLsfVI+G1bRYQs VwnQmjHmbqoKTjXBVCPLcuvocIcWW5sZNQGYn7vX3ngvJ+SgL3Dz/GB39PdnBDbna+7L pUyw== 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=OtzY9AfvtG9xTgyGyHBnIXaAiiTuXFCltxImevKgkqM=; b=c2Rd07cR/iISo9lb3f24FJ3MgwYyz2FeegPy4MoGfor55SLAH6m7gQy4eefJupafpN U1WdpOCgqAJTiKTZ7lrKjCp+WOYEfFazhZd8J0DUYF9B+4sn/GvESbQb0f09VZPeh37X UOrNzkxx7gUmLEoGtV1WgaOzvLvfroYenuSQutpjRK2/uPTk331HtEvcKFvmlRayNs3l NyCT58Avurn5YnDj8nRzEslYWHQYUtDz+Mgb4JQ0F8YGW1iq8VTRPZoY9G6N6Xs5UJiZ zqio1L/4CgArL9XRXxk/uyzV/zld3CCLLQnLr8Fnqq8BXiT057b3BsONb66dH4Bmzb0S DfXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kZM/bndE"; 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 z20-20020a05640240d400b0045cef1f1f70si6614311edb.548.2022.10.16.02.59.28; Sun, 16 Oct 2022 02:59: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="kZM/bndE"; 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 S229461AbiJPJ6g (ORCPT + 99 others); Sun, 16 Oct 2022 05:58:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiJPJ6e (ORCPT ); Sun, 16 Oct 2022 05:58:34 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 932C92FC04 for ; Sun, 16 Oct 2022 02:58:33 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id z20so8388331plb.10 for ; Sun, 16 Oct 2022 02:58:33 -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=OtzY9AfvtG9xTgyGyHBnIXaAiiTuXFCltxImevKgkqM=; b=kZM/bndEKtYZijRanfxD1Z+Sf4sTpaSccjAzYHXv/rMYVsufpaab6hBFkzyavqDBTX 0CBqFm1Wy/jzMNK5SQMI1bvoTLSlH9JW4dsUOXw1Kg3/JvQOcFl6rYTa/ba0jP0LDJ8Y oLLqnmayYKm4ExXowfk4CrwfomehgboEhOGMVj3h5Aj09hSSBRasCsCkZJ8HCj2XytoG 9fkeisH4wX9bweAfmo9fM2m2/p3stboXKE9fQWJBrBF7Szx6pnImFe56/O8gbKPH6AX/ UAIFRwED11tWPijhsTaJ5ynnSwNWHLHR3h7XZVrrd61FX3I65X8HXewPW5rbJGc8euuo 6scA== 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=OtzY9AfvtG9xTgyGyHBnIXaAiiTuXFCltxImevKgkqM=; b=VK4ev5wuRX7FvK0vm9bINT0dY857xH8qLolcJ37ofogvhYjyDmW0dNmDUeSCAv8xaN BSxiqSnk/0j5fOV0CgJch03XqyoTC1EX18o031m5ye660APKFKAnzFLWBcuyQMetLkf0 0Oae+K6GsOMFMeCJURaY4tJFjT/SCVm100b6cC2om+47usnFerHy1vN+470CKJid8CXR SkcX4jSkrQSUufNWrUpTO2pOLvOflbodv41SRSUoWTBVJd0Wx+pXukEPe41s7v4GRsaN VM2C8jcW1z62P2acypDwyM4tD/7jduipuPBSHqiYzQ54l2JzvAXBN0h9RpafcUYQdK41 Pl9w== X-Gm-Message-State: ACrzQf1Pzzvnsu1Ovj8FybeysqhwAVURIooUj+zrIPLJ5rAC+Xq44PJj 8aQTod04pWCErTF0M2FCmDENiO9yCF2HUw== X-Received: by 2002:a17:902:e982:b0:17f:ca1f:aa44 with SMTP id f2-20020a170902e98200b0017fca1faa44mr6388293plb.76.1665914313066; Sun, 16 Oct 2022 02:58:33 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id c18-20020a170902d49200b001745662d568sm4481838plg.278.2022.10.16.02.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 02:58:32 -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 0/3] Manage domain power state for hibernate freeze Date: Sun, 16 Oct 2022 17:58:12 +0800 Message-Id: <20221016095815.2550034-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?1746837850112253365?= X-GMAIL-MSGID: =?utf-8?q?1746837850112253365?= 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. 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(-)