From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752948AbdJPORj (ORCPT ); Mon, 16 Oct 2017 10:17:39 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51712 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752290AbdJPORd (ORCPT ); Mon, 16 Oct 2017 10:17:33 -0400 Date: Mon, 16 Oct 2017 16:16:19 +0200 (CEST) From: Thomas Gleixner To: Petri Latvala cc: Yu Chen , Juergen Gross , Boris Ostrovsky , Tony Luck , Marc Zyngier , Alok Kataria , Joerg Roedel , "Rafael J. Wysocki" , Steven Rostedt , Christoph Hellwig , Peter Zijlstra , Borislav Petkov , Paolo Bonzini , Rui Zhang , "K. Y. Srinivasan" , Arjan van de Ven , Dan Williams , Len Brown , LKML Subject: Re: Regression in linux-next In-Reply-To: <9923015d-ea50-27d1-1a38-f661f05dd09f@intel.com> Message-ID: References: <20171013110850.GA5303@yu-chen.sh.intel.com> <149ec6e8-4189-040c-a53c-12b0a51a855e@intel.com> <9923015d-ea50-27d1-1a38-f661f05dd09f@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 Mon, 16 Oct 2017, Petri Latvala wrote: > On 10/16/2017 03:54 PM, Thomas Gleixner wrote: > > > Hrm. I completely forgot that this does not dump the buffers of offline > > > CPUs. So half of the information is missing. So forget the tracer for now. > > > > > > Can you please apply the debug patch below and provide the full dmesg > > > output? > > > > > > Its going to be too big for LKML so either upload it somewhere or send it > > > to me in private mail. > > > > > > Note, I removed the BUG_ON, so box might survive suspend/resume but it > > > should trigger that printout. > > Forgot to add the counterpart to the clear side. Updated patch below. > > http://paste.debian.net/991048/ Thanks for providing the data! Does the patch below fix the issue? Thanks, tglx 8<--------------- --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -809,7 +809,7 @@ static void free_moved_vector(struct api trace_vector_free_moved(apicd->irq, vector, managed); irq_matrix_free(vector_matrix, cpu, vector, managed); - __this_cpu_write(vector_irq[vector], VECTOR_UNUSED); + per_cpu(vector_irq, cpu)[vector] = VECTOR_UNUSED; hlist_del_init(&apicd->clist); apicd->prev_vector = 0; apicd->move_in_progress = 0;