Received: by 10.223.176.5 with SMTP id f5csp711242wra; Tue, 6 Feb 2018 06:13:20 -0800 (PST) X-Google-Smtp-Source: AH8x227WDmUHDEwm7YcWxM+QpWZztkfxWTTGdY6xquH72SMlW7Dw+QFIdavqB4yawjCM0pf5Ur4F X-Received: by 10.99.123.81 with SMTP id k17mr1985143pgn.400.1517926400582; Tue, 06 Feb 2018 06:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517926400; cv=none; d=google.com; s=arc-20160816; b=A4IhOK5aIIgWOO8VbuLEBOzNm9ae/2dfL6Cm9+XA/nwEOniNdS2IlzNke5l2JCKi09 uFWUS8Lwf7rsMay3nCV38wghpMYPIaksiZXWU0kwaLef/qRw3sSseHC8nNsBTe1I5L1I BeMFVl+L3Qi/55oAMK9UHcsck0gSZ2iff0u758irTulUMq1VpB1QFQ38tOLDrBoS9cgP HlnopgPX3055v8KnKvneXw+f1JFj/EScbTNWSzjZ9BLpjh+4qh46SvvoR7oO6HRjpqx5 CjrvxXW4AWGrewRyux52C1zNiPtBakJOSw5uneRWGpxOoCnf1GTkc2puCVVJdsLB6zH5 QiWQ== 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:arc-authentication-results; bh=91ruQBMvvc8PErhdQyw4TZONTCJMzDuEypoPLeYpYT4=; b=cKIzRfFE6Aii6U8VuagGMQhySvGJ6uff/UVozRFy1V5zurzJslSHj8B1Hwg0HfUqqG yZ6PqMdOH+ZS2YHvtizYqfLSXAjiOMB1+CLGEgOjgBfLl7EHX2rl8x5GRz+9niKYOLYU 4WQiDhDyoelMIJk6D1awTVTP0OomtEqVk2uPV0R4wfIt/+jVJYsJwwSp2cEM68LmTe5w DDG4s1mpw2gQtBjtPiPR/zl7FFJDFUZ2EPqAaJbZzMgbvu2xDqQOWFt3hKY4VNAqAmLL S/kODPL2kkxwTnyroyCRUYvXbr2QqQ7J8A/NJG0MSrhJUTu4emAk2txNqydymNMXVbRq D72Q== 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 h3-v6si6780265plh.694.2018.02.06.06.13.06; Tue, 06 Feb 2018 06:13:20 -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; 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 S1752215AbeBFOMa (ORCPT + 99 others); Tue, 6 Feb 2018 09:12:30 -0500 Received: from mga17.intel.com ([192.55.52.151]:32797 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbeBFOMW (ORCPT ); Tue, 6 Feb 2018 09:12:22 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2018 06:12:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,468,1511856000"; d="scan'208";a="25101155" Received: from yu-chen.sh.intel.com ([10.239.160.138]) by orsmga003.jf.intel.com with ESMTP; 06 Feb 2018 06:12:20 -0800 Date: Tue, 6 Feb 2018 22:16:14 +0800 From: Yu Chen To: Lukas Wunner Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , "Rafael J . Wysocki" , Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Rui Zhang Subject: Re: [PATCH 3/3][RFC/RFT] PM / sleep: Do not delay the synchronization of MTRR during resume Message-ID: <20180206141614.GA912@yu-chen.sh.intel.com> References: <1613777.Al2QaFApID@aspire.rjw.lan> <20171213160242.GB29572@yu-chen.sh.intel.com> <20180206140417.GA14526@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180206140417.GA14526@wunner.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 03:04:17PM +0100, Lukas Wunner wrote: > On Thu, Dec 14, 2017 at 12:02:42AM +0800, Yu Chen wrote: > > On Wed, Dec 13, 2017 at 01:31:50AM +0100, Rafael J. Wysocki wrote: > > > On Tuesday, October 31, 2017 10:58:50 AM CET Yu Chen wrote: > [snip] > > > > In one word, with the patch applied, the cpu online time during resume > > > > has decreased by about 6 seconds on a bogus MTRR platform, and decreased > > > > by about 600ms on a 88 cpus Xeon platform after resumed. > > > > > > > > Cc: Len Brown > > > > Cc: Rafael J. Wysocki > > > > Cc: Rui Zhang > > > > Signed-off-by: Chen Yu > > > > > > It will be better to combine this with patch [2/3] IMO, because that makes > > > it clear why the changes in that patch are needed. > > > > > > Also you can define the new flag in mtrr/main.c, set it in > > > arch_enable_nonboot_cpus_begin() and clear it in > > > arch_enable_nonboot_cpus_end(). It is better to put it into the > > > arch-specific code as the flag itself is arch-specific. > > > > > > Then, of course, you don't need patch [1/3] and all can be done in one > > > patch. > > > > Ok, will rewrite the patch, thanks! > > Just for the record, this series cuts down resume time from system sleep > by 4-5 seconds on my MacBookPro9,1. Great work, looking forward to this > being respun and merged. > > Tested-by: Lukas Wunner > Thanks Lukas, I've sent the latest patch at: https://patchwork.kernel.org/patch/10150077/ > Thanks, > > Lukas