From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753835AbdK2J2g (ORCPT ); Wed, 29 Nov 2017 04:28:36 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:37526 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781AbdK2J2f (ORCPT ); Wed, 29 Nov 2017 04:28:35 -0500 Date: Wed, 29 Nov 2017 10:28:30 +0100 (CET) From: Thomas Gleixner To: Jarkko Nikula cc: Ingo Molnar , linux-kernel , Andy Lutomirski , Peter Zijlstra , Linus Torvalds , Borislav Petkov Subject: Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled In-Reply-To: <17b6e0c8-db18-f63d-0118-52b85c0c2a7f@linux.intel.com> Message-ID: References: <0fede9f9-88b0-a6e7-1027-dfb2019b8ef2@linux.intel.com> <20171129070951.hjjjpbyilzaak4ig@gmail.com> <17b6e0c8-db18-f63d-0118-52b85c0c2a7f@linux.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Nov 2017, Jarkko Nikula wrote: > On 11/29/2017 09:09 AM, Ingo Molnar wrote: > > > > * Jarkko Nikula wrote: > > > > > Hi > > > > > > Suspend-to-ram and resume stopped working on v4.15-rc1 and I bisected it > > > to commit ca37e57bbe0c ("x86/entry/64: Add missing irqflags tracing to > > > native_load_gs_index()"). > > > > > > I noticed it on Intel Kabylake (core) and Apollolake (atom) based > > > prototype machines. Symptoms are that machine appears to enter > > > into suspend but resumes instantly and hangs. Unfortunately no > > > logs. > > > > > > If I revert ca37e57bbe0c on v4.15-rc1 it works as expected. > > > > Hm, that commit looks broken with irq-tracing enabled. Does the > > patch below fix it? > > > No, it makes the machine not to boot at all :-( > > Log below when I used my config (now attached). With x86_64_defconfig it > booted twice but didn't survive suspend/resume. However several other boot > attempts with x86_64_defconfig failed somewhat similarly. Not in the same > place but hanging anyway. With my own config it seems to always end up failing > in trace_hardirqs_off_caller. Does it work when you disable all the tracing muck? Thanks, tglx