Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp455983ybd; Sat, 29 Jun 2019 00:16:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxn93ZCcgq+o/RsGrqK4ABjx8oyM7t4rpVaY9Si1lMD/X6qwaFunxsrrDq5pEAgMfHc+Nn X-Received: by 2002:a63:1316:: with SMTP id i22mr13745384pgl.274.1561792616772; Sat, 29 Jun 2019 00:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561792616; cv=none; d=google.com; s=arc-20160816; b=gPpCus82TjYGIhzw0QEL0+CabpRsqcs7ciEg6dGw/4PdPO5Nn5N1aIkoz5QzBAA4Xn PtDr0IRTqgJms4SwCdY6XlE7pnFTkArbqRWnVSOEk8Tn+iwKCR0ZlGTAO8VzY/YxNwsd 3nk7u7VGLtFeGDrrYpsdChYb6uPkbdFuuJv1g5FEVwgnHrdcM2zbocLpop2UApvOMhKA jmMZuO86uhEFH/Fci/Sz2TKNb/QyRPASza4FT1bAkwgQHZwCV56jxE48ZD/t6F7djhL9 gbB/xNKgZJpBbX90at7R8c+Et20ef1kRr1s/R8GYsFx5RSLPYK7lPw8YPP3UQdLvQBTM 4XzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=qLcF1DAhYxxWpOylh4daNYlru3LlglxTFbEYLG0wTYg=; b=kbqdjbXR0AlTW7k1fdZeLxYFSiPxZvPIZsXVlkSeu9iVNM7jskYphMV+Ny8Da5he5G Rvn1xhhpGB0tCcdSsTdHEw2MzM9hXmmoRkRO0U7gw+IVnqIv5MgaY0zWfTCEDVjKq0I4 up3uFGFpx59vJBwd2FAm+U2nWYFXVHS5S9vSC+jgL/zWCwMTvv+eTq3aJRLmy+gfbvpS 37VMJU1JTvHgOwqtsJb90DV9Da+aeVWoAK+UmlOJLuFpf4YH7462aq0u/iSqbxTwp34T aa1cEcx85Pee2O9js3bfU+OrGSSS+Tqi7jMmWa3H884xn90w+ihLgpowy82ejsTE/EhZ 8BSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si4741390pfz.268.2019.06.29.00.16.40; Sat, 29 Jun 2019 00:16:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbfF2HPY (ORCPT + 99 others); Sat, 29 Jun 2019 03:15:24 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38346 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbfF2HPY (ORCPT ); Sat, 29 Jun 2019 03:15:24 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hh7Zu-0001Xt-L3; Sat, 29 Jun 2019 09:15:18 +0200 Date: Sat, 29 Jun 2019 09:15:17 +0200 (CEST) From: Thomas Gleixner To: Feng Tang cc: "Chen, Rong A" , "tipbuild@zytor.com" , Ingo Molnar , "lkp@01.org" , LKML , "H. Peter Anvin" , x86@kernel.org Subject: Re: [LKP] [x86/hotplug] e1056a25da: WARNING:at_arch/x86/kernel/apic/apic.c:#setup_local_APIC In-Reply-To: Message-ID: References: <20190620021856.GP7221@shao2-debian> <58ea508f-dc2e-8537-fe96-49cca0a7c799@intel.com> <20190628063231.GA7766@shbuild999.sh.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Feng, On Fri, 28 Jun 2019, Thomas Gleixner wrote: > On Fri, 28 Jun 2019, Feng Tang wrote: > > On Tue, Jun 25, 2019 at 07:32:03PM +0800, Thomas Gleixner wrote: > > > the head of that branch is: > > > > > > 4f3f6d6a7f8e ("x86/apic/x2apic: Add conditional IPI shorthands support") > > > > > > This is WIP and force pushed. There are no incremental changes. Could you > > > please check again? > > > > Since you can't reproduce it yet, we've added some debug hook to get more > > info, like dmesg below: > > > > [ 288.866069] IRR[7]: 0x1000 > > [ 289.890274] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/apic/apic.c:1502 setup_local_APIC+0x2d1/0x4f0 > > > [ 290.182418] queued = 0x1000 acked = 0 > > [ 290.189159] IRR[7]: 0x1000 > > > > Which shows the IRR[7] was set 0x1000, IIUC, it means vector > > 0xec, which is for LAPIC timer, and ISRs are all 0 before and > > after the loop. > > Ahhhh. That makes a lot of sense now. > > That interrupt is in the IRR, but not in the ISR. So the acknowledge > attempts are useless because the ack only clears an pending ISR and the IRR > is not propagated because in the state in which this happens the entry is > masked. > > That function just 'works' by chance not by design. I'll stare into it and > fix it up for real. > > Thank you very much for that information. Your debug was spot on! I rewrote that function so it actually handles that case correctly along with some other things which were broken and force pushed the WIP.x86/ipi branch. Can you please run exactly that test again against that new version and verify that this is fixed now? Thanks, tglx