Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3847068ybl; Mon, 13 Jan 2020 03:44:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwazazPX2jswZ6oRI34fnkSQo9AxKXO4x2MqlkZVSt4zgNk+SA1NRsHJw0OHfpHBynknkR+ X-Received: by 2002:aca:3182:: with SMTP id x124mr12792604oix.170.1578915876979; Mon, 13 Jan 2020 03:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578915876; cv=none; d=google.com; s=arc-20160816; b=CfECu51DF+gdRjxw4Kw6ZNz7luf5bA5amaRF/GYDfyY/AwvXXzemZkcMA2Fa0bx7dr Xl2RbJx7NWtQS7S6YQGXNqmArxSngQTTFeiwmFthxNgBO4PxPg+sE+5souREzDu4Gw03 yu4JH3UWBzjvTNg5ZUwCfiVesNWoiKL5DWIAQpPSgKeHuuJF/tsV/xnf2wmw4HSx6EGm 5RRWM/PC3NK2p/7rdEI60OdbdsRySzTYC71FSMJXpwo383ALXl1D/JMS5t+EN5t4AP1j H19TCgF7AU3YG52V4DnRq9/gQO/Azt9SCV4pJOkYC5fMmLU2pTfWZGYmWRYAlBZ5obOl RWWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=6XSa5GpL3gh4h8YvwELtoJ+sfZcbWRXkFc5y4pfehoc=; b=CFEBH5zHfau34JiUusPD4/ooBnsiLteVg3cTyOGt/iGD/Ip64hOgaC2iS9faxb7abo fwwglBPuMG78yJUiLM39awvxfLXS04NOYvL/5cLs7ZK8g1SN7nCsCTss0wnEG0uI201Y jfXz0gjInNp9bi/9q2MLUaRF9iIGtUfNkHOueU7MbQS1a4A73oBO07K5zZIsWM7MmEDO nYDsbcwdrvfx3VAj9hLsf7/qRbgVlJSq8FZjgC6/D4C8er5FeZ71Ar0/7B3oYHvnigPY CDKi/mhGJJYT4JxE7M2gDDNSmjIBFk7651qRU+twlXY7k6zPkhk8GTPS7alnWqxs/uXQ Gy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=H7UzrQnH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7si6825373otl.133.2020.01.13.03.44.25; Mon, 13 Jan 2020 03:44:36 -0800 (PST) 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=pass header.i=@amazon.com header.s=amazon201209 header.b=H7UzrQnH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728699AbgAMLna (ORCPT + 99 others); Mon, 13 Jan 2020 06:43:30 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:35125 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728516AbgAMLna (ORCPT ); Mon, 13 Jan 2020 06:43:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1578915809; x=1610451809; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=6XSa5GpL3gh4h8YvwELtoJ+sfZcbWRXkFc5y4pfehoc=; b=H7UzrQnHQV07GhWJ+7S7zpRigS14pbS0EBNq/WvUy+nCwkE+jWJkHg/k 6yUUkvZ+9sq5At9GMk0twnajn2w+dZm9TX68EFrsUSoTkeoW63aFLnhm3 0TUQ/5y9Asnj0DsDxWMADyC9taaFQlYBJHCH6/M6TPd07M0x7ooXN62Ky M=; IronPort-SDR: R+BlWp6nTHVVhaIhMU2TJ0LB4YSRTLQsATI0sOMiyFM4iSh27yUGPwc+8iW49sp1OvtUIhwKnD k40Idn6O/1kA== X-IronPort-AV: E=Sophos;i="5.69,428,1571702400"; d="scan'208";a="12102670" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-821c648d.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 13 Jan 2020 11:43:27 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1a-821c648d.us-east-1.amazon.com (Postfix) with ESMTPS id 9A4CDA1D45; Mon, 13 Jan 2020 11:43:19 +0000 (UTC) Received: from EX13D05UWB003.ant.amazon.com (10.43.161.26) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 13 Jan 2020 11:43:18 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13D05UWB003.ant.amazon.com (10.43.161.26) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 13 Jan 2020 11:43:18 +0000 Received: from EX13D01UWB002.ant.amazon.com ([10.43.161.136]) by EX13d01UWB002.ant.amazon.com ([10.43.161.136]) with mapi id 15.00.1367.000; Mon, 13 Jan 2020 11:43:18 +0000 From: "Singh, Balbir" To: "peterz@infradead.org" , "Valentin, Eduardo" CC: "boris.ostrovsky@oracle.com" , "linux-kernel@vger.kernel.org" , "Agarwal, Anchal" , "Woodhouse, David" , "vkuznets@redhat.com" , "sstabellini@kernel.org" , "tglx@linutronix.de" , "linux-pm@vger.kernel.org" , "Woodhouse@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com" , "linux-mm@kvack.org" , "jgross@suse.com" , "pavel@ucw.cz" , "axboe@kernel.dk" , "x86@kernel.org" , "roger.pau@citrix.com" , "hpa@zytor.com" , "rjw@rjwysocki.net" , "mingo@redhat.com" , "Kamata, Munehisa" , "bp@alien8.de" , "netdev@vger.kernel.org" , "konrad.wilk@oracle.co" , "len.brown@intel.com" , "davem@davemloft.net" , "fllinden@amaozn.com" , "xen-devel@lists.xenproject.org" Subject: Re: [RFC PATCH V2 11/11] x86: tsc: avoid system instability in hibernation Thread-Topic: [RFC PATCH V2 11/11] x86: tsc: avoid system instability in hibernation Thread-Index: AQHVxbSKwN2FtiBCp0yRN06uTqctz6fgl2OAgAN0VQCABF3RgIAAGFiA Date: Mon, 13 Jan 2020 11:43:18 +0000 Message-ID: <857b42b2e86b2ae09a23f488daada3b1b2836116.camel@amazon.com> References: <20200107234526.GA19034@dev-dsk-anchalag-2a-9c2d1d96.us-west-2.amazon.com> <20200108105011.GY2827@hirez.programming.kicks-ass.net> <20200110153520.GC8214@u40b0340c692b58f6553c.ant.amazon.com> <20200113101609.GT2844@hirez.programming.kicks-ass.net> In-Reply-To: <20200113101609.GT2844@hirez.programming.kicks-ass.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.162.119] Content-Type: text/plain; charset="utf-8" Content-ID: <842199D22376DB4B847E04A9819A1D72@amazon.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTAxLTEzIGF0IDExOjE2ICswMTAwLCBQZXRlciBaaWpsc3RyYSB3cm90ZToN C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