Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp290562pxb; Fri, 3 Sep 2021 02:07:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5nDVELt1PI6hY2YDusGN1qVM7Vj8iuP0KfmvW0uB2IdTEMH60Nu6bfIaJbVHAbTmdWQcz X-Received: by 2002:a17:906:e82:: with SMTP id p2mr3105377ejf.50.1630660046264; Fri, 03 Sep 2021 02:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630660046; cv=none; d=google.com; s=arc-20160816; b=toffpB94s3oLXolGq+MlleCIVIPEPk3mzoe8iA47FZVt1UzePbT238163ZnSYavHEt fjijKyuR5tcP9uqPNjRKYHq8vTekyZB9iKSmPLquCqkznj1pI4DFKs9ewVuVFP0hnvnh qfmuzY/lQrOIfQ5ADnaBCbz6mu/3rVc2d9UW+NmMk0H5TWh0AFLjc0Dxj9n/i94YDB3b dK8zSuJDxZ+RSWZQXG2QoOg20/P5I1q53ObM9BkP3aO80cc7q+cctnrxW8W0p0Iyd6Xx KW+QK4DbHiZvu634NsWY9oXZvw0C05CeLxsI6+HY+Yur1sLNP5aH4GkHk9G2WpHuYoM9 atSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=y2yOgR7xOsgNe3DptYo2QPyqQttv32W4xVBl15aqNN4=; b=VB49LiqGEZe3Eato+gW/phkSG1ueub5wo6vmyyTIxUHe4QbsxXzK1AwnrvZQ06lKTT Oy8+OmXbNBSkoyH2zDPPyJc8ZMmpeXmUUqpcRRI0GbMfdJHJNxuzsuqKr2RPCfBxl/JY zGtA/S6UeeoztMY05Y7/sJn/k4S8DyjgNKM80FWIz7nCakgQWLhVCjshxGf5AE+s9fCe AqvaG8LcTPeZ9J6bH5bB1IqmROabQ4Ju2k3zEIWs/mIIMv3A5+YuZbH21OmVHB3bWOhu W9Y7mydHutNBzCHICx9ZIrNb+nLAhh5bNNL6aGDemzRrWsGQBveqfKYJ/bjUl2EmQyhM y01Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pNNE6BX8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si4914877edt.402.2021.09.03.02.07.03; Fri, 03 Sep 2021 02:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pNNE6BX8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348662AbhICJDb (ORCPT + 99 others); Fri, 3 Sep 2021 05:03:31 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:41304 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348635AbhICJDA (ORCPT ); Fri, 3 Sep 2021 05:03:00 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5EFA6225F7; Fri, 3 Sep 2021 09:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1630659719; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y2yOgR7xOsgNe3DptYo2QPyqQttv32W4xVBl15aqNN4=; b=pNNE6BX8asHX6WKrgFgKgJflKWF5Ifavakx2rqMPBZZDZpfs2PgmzaM61GHNjicbucQaA4 gYG1qSy5fMSSHEv6bwSJbR+RVxktEdMYGR5MnqeZ6tCaBOKDNFCE3fMsHRcAyWj+Mm8ben LzQuKW/A7oCAYGQQFM9AdQ5A3LB1+N4= Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 0FB0C1374A; Fri, 3 Sep 2021 09:01:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 2qW5AYfkMWFBdwAAGKfGzw (envelope-from ); Fri, 03 Sep 2021 09:01:59 +0000 Subject: Re: [PATCH 1/2] PM: base: power: don't try to use non-existing RTC for storing data To: Greg Kroah-Hartman Cc: xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Pavel Machek , "Rafael J. Wysocki" , stable@vger.kernel.org References: <20210903084937.19392-1-jgross@suse.com> <20210903084937.19392-2-jgross@suse.com> From: Juergen Gross Message-ID: <1b6a8f9c-2a5f-e97e-c89d-5983ceeb20e5@suse.com> Date: Fri, 3 Sep 2021 11:01:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8QrHnFxLhYwW5JVUDZedIeiKcRWLD8jDi" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8QrHnFxLhYwW5JVUDZedIeiKcRWLD8jDi Content-Type: multipart/mixed; boundary="DDwF9mzVWNkpBGBzATm4O5noHEiM7Qhxi"; protected-headers="v1" From: Juergen Gross To: Greg Kroah-Hartman Cc: xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Pavel Machek , "Rafael J. Wysocki" , stable@vger.kernel.org Message-ID: <1b6a8f9c-2a5f-e97e-c89d-5983ceeb20e5@suse.com> Subject: Re: [PATCH 1/2] PM: base: power: don't try to use non-existing RTC for storing data References: <20210903084937.19392-1-jgross@suse.com> <20210903084937.19392-2-jgross@suse.com> In-Reply-To: --DDwF9mzVWNkpBGBzATm4O5noHEiM7Qhxi Content-Type: multipart/mixed; boundary="------------7C43D073BE29B721237268B8" Content-Language: en-US This is a multi-part message in MIME format. --------------7C43D073BE29B721237268B8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 03.09.21 10:56, Greg Kroah-Hartman wrote: > On Fri, Sep 03, 2021 at 10:49:36AM +0200, Juergen Gross wrote: >> In there is no legacy RTC device, don't try to use it for storing trac= e >> data across suspend/resume. >> >> Cc: >> Signed-off-by: Juergen Gross >> --- >> drivers/base/power/trace.c | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/drivers/base/power/trace.c b/drivers/base/power/trace.c >> index a97f33d0c59f..b7c80849455c 100644 >> --- a/drivers/base/power/trace.c >> +++ b/drivers/base/power/trace.c >> @@ -13,6 +13,7 @@ >> #include >> #include >> #include >> +#include >> =20 >> #include >> =20 >> @@ -165,6 +166,9 @@ void generate_pm_trace(const void *tracedata, unsi= gned int user) >> const char *file =3D *(const char **)(tracedata + 2); >> unsigned int user_hash_value, file_hash_value; >> =20 >> + if (!x86_platform.legacy.rtc) >> + return 0; >=20 > Why does the driver core code here care about a platform/arch-specific > thing at all? Did you just break all other arches? This file is only compiled for x86. It depends on CONFIG_PM_TRACE_RTC, which has a "depends on X86" attribute. Juergen --------------7C43D073BE29B721237268B8 Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Transfer-Encoding: quoted-printable Content-Description: OpenPGP public key Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjrioyspZKOBy= cWx w3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2kaV2KL9650I1SJvedYm8O= f8Z d621lSmoKOwlNClALZNew72NjJLEzTalU1OdT7/i1TXkH09XSSI8mEQ/ouNcMvIJNwQpd369y= 9bf IhWUiVXEK7MlRgUG6MvIj6Y3Am/BBLUVbDa4+gmzDC9ezlZkTZG2t14zWPvxXP3FAp2pkW0xq= G7/ 377qptDmrk42GlSKN4z76ELnLxussxc7I2hx18NUcbP8+uty4bMxABEBAAHNHEp1ZXJnZW4gR= 3Jv c3MgPGpnQHBmdXBmLm5ldD7CwHkEEwECACMFAlOMcBYCGwMHCwkIBwMCAQYVCAIJCgsEFgIDA= QIe AQIXgAAKCRCw3p3WKL8TL0KdB/93FcIZ3GCNwFU0u3EjNbNjmXBKDY4FUGNQH2lvWAUy+dnyT= hpw dtF/jQ6j9RwE8VP0+NXcYpGJDWlNb9/JmYqLiX2Q3TyevpB0CA3dbBQp0OW0fgCetToGIQrg0= MbD 1C/sEOv8Mr4NAfbauXjZlvTj30H2jO0u+6WGM6nHwbh2l5O8ZiHkH32iaSTfN7Eu5RnNVUJbv= oPH Z8SlM4KWm8rG+lIkGurqqu5gu8q8ZMKdsdGC4bBxdQKDKHEFExLJK/nRPFmAuGlId1E3fe10v= 5QL +qHI3EIPtyfE7i9Hz6rV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csuylW= svi uGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5BjR/i1DG86lem3iBDX= zXs ZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------7C43D073BE29B721237268B8-- --DDwF9mzVWNkpBGBzATm4O5noHEiM7Qhxi-- --8QrHnFxLhYwW5JVUDZedIeiKcRWLD8jDi Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmEx5IYFAwAAAAAACgkQsN6d1ii/Ey8Z Ywf+Pq3IKlaBuk34XWwT2ZcLn5H2s4d3HKoC1sokLsNtHiDJAveAMkhzsaIiSP8xfYzC0FKpGsB2 Y9iAFojypHyCF/BVEY1A48vxMFfYVcgqrohKB9MUVOhKDsaB5mzAZ7YeqQR5khtuc5J2B34Rij5c VW0E0QjxjgcPL4O0ZFw9+p+f/BpIBECqUZV1hVoSiEtunFIt9xz+hJFJ9CF5P/ic0lsaNy2aTUos 3sHTrWdrBcHLE8pPN4wYXWz5SBj4HW64jG9C/nO6lw43EJ4JO4tw9KtgQ7VI4oQphdQmiKqk8Vzw m3FWeab8bAWHHq9/MpyGfh+SBea4edJOy/pVI7CKng== =vU83 -----END PGP SIGNATURE----- --8QrHnFxLhYwW5JVUDZedIeiKcRWLD8jDi--