Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3099448ybb; Mon, 6 Apr 2020 01:59:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJjbxpWwKP5yVvameWOy901IvZCT3xeV5UF/My/fJxEq9DGjuzzwGGODIfharbQXL6S+b90 X-Received: by 2002:a9d:6c19:: with SMTP id f25mr17032960otq.371.1586163560107; Mon, 06 Apr 2020 01:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586163560; cv=none; d=google.com; s=arc-20160816; b=yNuvx6YcLM+NsJ9ngdclvDxNn53JYA211T9nvNqgCYjO1F2cIs3R9i7yOZv/ozi4Pu tpzYt1FRm9SWsu8NnxLS9jRgHuJmEasZrAPaiP7plzv/XUJPUoquo+0cFl8ei8TLZTxY NEB76roAnq5zd8xB9DVlifPOBJR9ymb8Vns4MiK38D6lkbuRMCk5dz+Ww8FjAm9QCqWR huk4ZcE335XPI+9vO7/+UHy94sFDLAk5c87w5Ky2ryjWDpMGtZppQaA5NcwNuI+NxzOf 3lsg3gzAl5pfRiaJONhQtX8g+IVob5JqxKcnqpKGM9bsitLINvrMC3YuZYk5vUuR6Rt0 ZmbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/hzY+ek3AQ5mRnt/FyuCpee9n2nCW8nH3eTOcmr8Hcc=; b=G3b6FfLPnLQ0EwpGkag7rhbO94blAHwQdqujPuTjxdYJPwdiKdWsZR5U77OT0HaWEY 0IlPmZfFNF784BRTABELEFKRn67DrwNggroWiGgHWcQlWAEmkpGNk8VJHov9oUlBsNPf Ti2bOr4+fEEmaGLVmc8p/Mxh0lFG8lKmnK94K61RwaBJpm7+cH+FhFzT9qbqUpeRcLF1 61XA8lLHzCaUAL4nVf1rPfVQt0issghuJuEzhd0Lz2imMsz6R0PPsRfcf48uxYxyG6be meP39hZe48SU4i7OUOx5m2kTzhlRqI0//tb0i5LjRTAswEe3TvHBMH9Ks6kQMc1v2WF4 ctlg== ARC-Authentication-Results: i=1; mx.google.com; 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 5si6918623oin.43.2020.04.06.01.59.08; Mon, 06 Apr 2020 01:59:20 -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; 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 S1726716AbgDFI6r (ORCPT + 99 others); Mon, 6 Apr 2020 04:58:47 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:54118 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgDFI6q (ORCPT ); Mon, 6 Apr 2020 04:58:46 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4417F1C4519; Mon, 6 Apr 2020 10:58:44 +0200 (CEST) Date: Mon, 6 Apr 2020 10:58:43 +0200 From: Pavel Machek To: Chen Yu Cc: linux-pm@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Thomas Gleixner , Josh Poimboeuf , Andrew Morton , "Rafael J. Wysocki" , Len Brown , Andy Shevchenko , Randy Dunlap Subject: Re: [PATCH][v2] PM / sleep: Add pm_debug_messages boot command control Message-ID: <20200406085843.GE31120@duo.ucw.cz> References: <20200329144640.20536-1-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BZaMRJmqxGScZ8Mx" Content-Disposition: inline In-Reply-To: <20200329144640.20536-1-yu.c.chen@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BZaMRJmqxGScZ8Mx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2020-03-29 22:46:40, 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. >=20 > Turning on the pm_debug_messages during boot up by appending > 'pm_debug_message'. >=20 > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Andy Shevchenko > Cc: Randy Dunlap > Signed-off-by: Chen Yu > --- > v2: According to Randy's suggestion, add the command line > option to Documentation/admin-guide/kernel-parameters.txt > --- > Documentation/admin-guide/kernel-parameters.txt | 3 +++ > kernel/power/main.c | 7 +++++++ > 2 files changed, 10 insertions(+) >=20 > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentat= ion/admin-guide/kernel-parameters.txt > index c07815d230bc..105ec73743d7 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -3698,6 +3698,9 @@ > Override pmtimer IOPort with a hex value. > e.g. pmtmr=3D0x508 > =20 > + pm_debug_message [SUSPEND,KNL] > + Enable suspend/resume debug messages during boot up. > + > pnp.debug=3D1 [PNP] > Enable PNP debug messages (depends on the > CONFIG_PNP_DEBUG_MESSAGES option). Change at See? So this should be pm.debug=3D1 for consistency? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --BZaMRJmqxGScZ8Mx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXorvQwAKCRAw5/Bqldv6 8ohfAJ0e7TkJIo8BhyMZ9/yLwGJSPzhM5gCfesbJk8F2XpXKz8Cwoa+84PO8aXY= =n2/g -----END PGP SIGNATURE----- --BZaMRJmqxGScZ8Mx--