All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Joerg Roedel <joro@8bytes.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Jiang Liu <jiang.liu@linux.intel.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] x86/apic updates for v3.20
Date: Mon, 16 Feb 2015 08:22:04 +0100	[thread overview]
Message-ID: <20150216072204.GA24215@gmail.com> (raw)
In-Reply-To: <20150213154716.GG29106@8bytes.org>


* Joerg Roedel <joro@8bytes.org> 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

      parent reply	other threads:[~2015-02-16  7:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-09  9:15 [GIT PULL] x86/apic updates for v3.20 Ingo Molnar
2015-02-13  0:52 ` Linus Torvalds
2015-02-13  2:06   ` Rafael J. Wysocki
2015-02-13  2:08     ` Linus Torvalds
2015-02-13  2:50       ` Linus Torvalds
2015-02-13  5:05         ` Jiang Liu
2015-02-13 15:47       ` Joerg Roedel
2015-02-13 17:00         ` Linus Torvalds
2015-02-13 17:47           ` Jiang Liu
2015-02-16  7:22         ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150216072204.GA24215@gmail.com \
    --to=mingo@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=jiang.liu@linux.intel.com \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.