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: 13026615 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 C1417FA3741 for ; Tue, 1 Nov 2022 02:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiKACrv (ORCPT ); Mon, 31 Oct 2022 22:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiKACrv (ORCPT ); Mon, 31 Oct 2022 22:47:51 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414781789F for ; Mon, 31 Oct 2022 19:47:48 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id k22so12335100pfd.3 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=FiQa3S3NM0ysVs/rsoiHGjHWPbrvtKu5hx4A1z1EuAIK23F68uzUgRHal4CfxcT7Q4 EyXT7QUMfMjBOIJp6qY07I/vYLpkKCyX5ggLXD1g4ctTSwNdFIH5G770hJSXP1AHE6sa awWlhu4NOywuD9xPpEz5dkhG5YAAlfL1ADtZH6pFyQDKyRRApHU8+XvFxqgvYqqrMaKq v6YtUyLpGLUKt43ZazmZA0jVehZoENtYqge1Pvvc0hKy1aoUtvcBZGq6k9IdFycuyGof ZHWbiBwGpmG5ks623ootKFCbqEPtJ/j91/GxmSbqSxrWZUuEakQTZ3zdsgPX0cvP2joB BbTQ== X-Gm-Message-State: ACrzQf1v7VrKo/f5B/CB6P0dV89gRVFBbjKB4ZWLie6ONSgvtKbFkHGo xbtpX5XkXQmtrDDz+Y53oL8RQw== X-Google-Smtp-Source: AMsMyM71feJVISISgariwLNWQfEM4he/JyNbNIKmkyIWnvZ2Qgt8Ponl4uP06pOBBoik59p0tmVFjA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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(-)