Received: by 10.223.176.5 with SMTP id f5csp701814wra; Tue, 6 Feb 2018 06:05:36 -0800 (PST) X-Google-Smtp-Source: AH8x227FsmSe7Sc82BoKUJv0rNUdySTFzUH5AmZ1037HtM5gmapi1XfGMnZGEMxAvLb6llFM6d+E X-Received: by 2002:a17:902:2f03:: with SMTP id s3-v6mr2628490plb.112.1517925936607; Tue, 06 Feb 2018 06:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517925936; cv=none; d=google.com; s=arc-20160816; b=tbPTaVK9sgdKaal/TVHEKPbAOy7WekX3R5acZAo2jVd5jJq3Bn6wSnVwxkRzLNa/6n z8KUSUr43mUYCQiodayI/YHuRWpL4ZQik3Nk9iBo0xScZfQSTuVk+YQLb+IIs8at0UW8 w+LexJMUla6zDOqycDLbTNi20uJIAFtXDwwCrzMVQZXrzFDRUsSg44oM6MxGe9hnIIbh RcSOq9DbTfAXT4JpQJkEdDbQa7XDeL1eeS90rmPqYW0JwhA09dOrcogyQ9OV9VLDAOkg 1AQc3sZcszrg4DKDkFBdkipREGL37MxBApdTxBMaIWTNWedUJBZDfDaS/55wdV68kVJk o7/g== 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=wsOC/d/qAonYngXqMwrl/jGbQSsKbPvftEHGj3nG2/A=; b=x4nkAreV63Hp6UqgV6N04ON7TV8mekozocKqmUkAZ8u0HO37R+bgBZSFcftJakG3md mfbCuX9bX5DjKBAfRJubbdV+vrJkiMON0vw6o3kWFTqmHe4OXVB8NHQL4fBz+AZY/9B7 v1gGWQCPRZZiMv/jjDU1nHqlk1+LpUeWdjDXhV8AsIWTEEByrvxzpmAI+Zk2/gdWnUdS KdYFobeTUgYjCBtrVu7f6oXtx4++CyW5X6XZa9Adc91+DK7FItovza3LqR2b6UAkrPcL nCN4qDqQuLdnq78lU3TqS8fJJ2lUFXSRCuHGJNoNOzYmAYkbijCpd9FT8AkKhX13EQOE n1XA== 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 n11-v6si8476861pls.112.2018.02.06.06.05.20; Tue, 06 Feb 2018 06:05: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; 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 S1752179AbeBFOE0 (ORCPT + 99 others); Tue, 6 Feb 2018 09:04:26 -0500 Received: from bmailout1.hostsharing.net ([83.223.95.100]:57389 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbeBFOEU (ORCPT ); Tue, 6 Feb 2018 09:04:20 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id A102B300002BF; Tue, 6 Feb 2018 15:03:10 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id E3CD2194D; Tue, 6 Feb 2018 15:04:17 +0100 (CET) Date: Tue, 6 Feb 2018 15:04:17 +0100 From: Lukas Wunner To: Yu Chen 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: <20180206140417.GA14526@wunner.de> References: <1613777.Al2QaFApID@aspire.rjw.lan> <20171213160242.GB29572@yu-chen.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171213160242.GB29572@yu-chen.sh.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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