From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751674AbcFYQLM (ORCPT ); Sat, 25 Jun 2016 12:11:12 -0400 Received: from mga03.intel.com ([134.134.136.65]:49316 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbcFYQLK (ORCPT ); Sat, 25 Jun 2016 12:11:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,527,1459839600"; d="scan'208";a="1005093337" From: Chen Yu To: linux-pm@vger.kernel.org, x86@kernel.org Cc: "Rafael J. Wysocki" , Len Brown , Peter Zijlstra , "H. Peter Anvin" , Borislav Petkov , Pavel Machek , Brian Gerst , Thomas Gleixner , Ingo Molnar , Varun Koyyalagunta , linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/4][RFC v2] x86, hotplug: Use hlt instead of mwait when resuming from hibernation Date: Sun, 26 Jun 2016 00:18:18 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently it is reported that, when system is trying to resume from hibernation, the nonboot CPUs might be incorrectly woken up and hang there. The reason for this is because of inconsistent page tables across hibernation resume. To avoid this situation, use hlt instead of mwait to put nonboot CPUs in a more safe state and just let them watch the boot CPU to do all the things and wakes them up later. The first three patches are preparation for the fourth one, please refer to [4/4] for detail. Chen Yu (4): PM / sleep: Avoid accessing frozen_cpus if it is NULL PM / sleep: Introduce arch-specific hook for disable/enable nonboot cpus PM / hibernate: introduce a flag to indicate resuming from hibernation x86, hotplug: Use hlt instead of mwait when resuming from hibernation arch/x86/kernel/smpboot.c | 15 +++++++++++++++ include/linux/cpu.h | 2 ++ include/linux/suspend.h | 7 +++++++ kernel/cpu.c | 38 ++++++++++++++++++++++++++++++++++++++ kernel/power/hibernate.c | 3 +++ 5 files changed, 65 insertions(+) -- 2.7.4