From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755048AbbBPHWL (ORCPT ); Mon, 16 Feb 2015 02:22:11 -0500 Received: from mail-we0-f180.google.com ([74.125.82.180]:37452 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754511AbbBPHWJ (ORCPT ); Mon, 16 Feb 2015 02:22:09 -0500 Date: Mon, 16 Feb 2015 08:22:04 +0100 From: Ingo Molnar To: Joerg Roedel Cc: Linus Torvalds , "Rafael J. Wysocki" , Jiang Liu , Linux Kernel Mailing List , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton Subject: Re: [GIT PULL] x86/apic updates for v3.20 Message-ID: <20150216072204.GA24215@gmail.com> References: <20150209091544.GA4177@gmail.com> <2495969.f1SBuodJtC@vostro.rjw.lan> <20150213154716.GG29106@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150213154716.GG29106@8bytes.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Joerg Roedel wrote: > On Thu, Feb 12, 2015 at 06:08:45PM -0800, Linus Torvalds wrote: > > Any ideas? The Pixel Chromebook does have an odd and often broken > > BIOS/firmware thing, but it *used* to suspend and resume very reliably > > once we got around its insane TPM thing. > > Hmm, looking at the patch and the surrounding code my guess is that > x2apic gets enabled now with 5fcee53ce705 on your Chromebook Pixel at > boot, which causes the suspend issue later for other reasons. > > So the condition should rather look like this to keep x2apic disabled > like before: > > diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c > index b665d24..770a0bb 100644 > --- a/arch/x86/kernel/apic/apic.c > +++ b/arch/x86/kernel/apic/apic.c > @@ -1580,8 +1580,8 @@ static __init void try_to_enable_x2apic(int remap_mode) > * under KVM > */ > if (max_physical_apicid > 255 || > - (IS_ENABLED(CONFIG_HYPERVISOR_GUEST) && > - !hypervisor_x2apic_available())) { > + !(IS_ENABLED(CONFIG_HYPERVISOR_GUEST) && > + hypervisor_x2apic_available())) { > pr_info("x2apic: IRQ remapping doesn't support X2APIC mode\n"); > x2apic_disable(); > return; Indeed! > Another solution would be to just revert 5fcee53ce705. > This code is not in any fast-path, so we can live well > without that optimization. Agreed. Thanks, Ingo