Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2604827ybb; Fri, 27 Mar 2020 08:41:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsIUgobgXSTU77SVckw6HKQPLn/AAcEW9VMCSmLPA7JXXKzIWGjacbexL4+Eb5Rxq5UGqkV X-Received: by 2002:aca:3b85:: with SMTP id i127mr4149997oia.123.1585323693746; Fri, 27 Mar 2020 08:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585323693; cv=none; d=google.com; s=arc-20160816; b=kOSfaFW7JD8tjEa+gyszvofnNPafTh8CJN0/j0B0VJ8uUZPA9tPI57/WacHxborKTP L9YiTxoVb52zEzqLkvBTjDJhUj3CAI2VIMXczJIdVSHqAhMaxqmXaMThKsagNoEApu6j XLN1d9Ln3WqeAySZ1wGFxD0PpH7LwLQYORTta9d8ABovMTKH7KfTG8I2YAlKL0XJSO9X YsnC1S0BHouNTqMAfWH4MTKq5lYWHPApf71ITNCqW5Yznx9+lZnQeD65gZWAmsHGrPpk ZpdtlWIsne2SEtNt2uo0YAtQbkWwIiiGI42WrkjoVvRFSrP483M7kiet4Gr+AzOg2+PZ itLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Glkd4Poyiz/H8tXZD3WNk7OjbV0plFdAnFSLYOWflAc=; b=ialV9+9VZuuJs+Wc7gpY15sZSm4n2YJwxFzSQOHACDP5sAMLqGyF+46Miq+0p6SoaM wNH22j6IAPLmsqcukWdHCufxnWH24N8tuNTNc9xaiatQGC+Hla1mbf2J8T++2GPp4BrS hQUzBSpsFTa6Y0FDEPo9Md40wioQmavGXLG6orx7Ohyh2jiU4QU6xp+Fr+Re6QZpNa/W nOvNeuvDhtUU24L2hNpoCWF1F9c6X7J4XEHmMbNSG69ImeyLrTFIeso8hgTvaMiHPYHk lhIu9ZXscnTFt/N9Za/5dEZzGofi90J8+WzctElNgDHOmiL0HfBto4/gHTX1pBYEnemg yfxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VgTMqvN2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si2577430oto.237.2020.03.27.08.41.19; Fri, 27 Mar 2020 08:41:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VgTMqvN2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbgC0Pjw (ORCPT + 99 others); Fri, 27 Mar 2020 11:39:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40756 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgC0Pjv (ORCPT ); Fri, 27 Mar 2020 11:39:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=Glkd4Poyiz/H8tXZD3WNk7OjbV0plFdAnFSLYOWflAc=; b=VgTMqvN2GhS2F+72hyoHVuZIfX mhBVu6xa3IcAdST9Cl0/hifX2ny7hpNRkDFP8nXFXLJThYqqs7C+01rfd9ExVqdAxLZZxw5pTkWcA 137UWX2ptUugqk3vk01Ftkd0r3JSRbor9iRK7rfMNvytND51qtx8uGRiLLxPmbBL3rfwGEfif8yDA cBOb20gEAU3/Iido5GZpPkMocn/q6Zz4jx9AZj/hEHoFKzSnLcEP2odZqjMdTGnjVEFoq1Regkck6 7KYY3sJsBK9M8GdIcrKLr4nb1hma+xy1NHoKIi8EoRzUkDWfLHmVvbAN+g9p5xNPoWeQ/Pa9dx3kc mjp2goMQ==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHr5I-0006ZA-AP; Fri, 27 Mar 2020 15:39:48 +0000 Subject: Re: [PATCH] PM / sleep: Add pm_debug_messages boot command control To: Chen Yu , linux-pm@vger.kernel.org Cc: Pavel Machek , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Andy Shevchenko References: <20200327111141.14324-1-yu.c.chen@intel.com> From: Randy Dunlap Message-ID: Date: Fri, 27 Mar 2020 08:39:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200327111141.14324-1-yu.c.chen@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/27/20 4:11 AM, Chen Yu wrote: > Debug messages from the system suspend/hibernation infrastructure > is disabled by default, and can only be enabled after the system > has boot up via /sys/power/pm_debug_messages. This makes the hibernation > resume hard to track as it involves system boot up across hibernation. > There's no chance for software_resume() to track the resume process, > eg. > > Turning on the pm_debug_messages during boot up by appending > 'pm_debug_message'. Please add that command line option to Documentation/admin-guide/kernel-parameters.txt. Thanks. > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Andy Shevchenko > Signed-off-by: Chen Yu > --- > kernel/power/main.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/kernel/power/main.c b/kernel/power/main.c > index 69b7a8aeca3b..1da3d7c15e03 100644 > --- a/kernel/power/main.c > +++ b/kernel/power/main.c > @@ -535,6 +535,13 @@ static ssize_t pm_debug_messages_store(struct kobject *kobj, > > power_attr(pm_debug_messages); > > +static int __init pm_debug_message_setup(char *str) > +{ > + pm_debug_messages_on = true; > + return 1; > +} > +__setup("pm_debug_message", pm_debug_message_setup); > + > /** > * __pm_pr_dbg - Print a suspend debug message to the kernel log. > * @defer: Whether or not to use printk_deferred() to print the message. > -- ~Randy Reported-by: Randy Dunlap