Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3071725ybd; Fri, 28 Jun 2019 02:19:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsNNDnNeq5SYynCLkN/ts56NjSGMYeH/fOuoGBoBlMUtAAtzSvcs+EcXWIWpBliVy0Azpx X-Received: by 2002:a65:4507:: with SMTP id n7mr7942784pgq.291.1561713586622; Fri, 28 Jun 2019 02:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561713586; cv=none; d=google.com; s=arc-20160816; b=GLfY2Fjl6Bp643ekXfsQGGJ1kYVEco8WWfaz8JJbLw/hTf+n85LVCFGZ+5WiLi2yj5 gzKdLT0pP8/VfTFk5GzDk/gkPvB0khCpieCBCWnKpxXlMJbqKfA6OQE7kiyOSo76W9bs MrQUKM1huMZ7AwOHBu5/YcCkdi67gqWCNbTbj7P2DIScDAX8BkK6Vi1NdBi80R4iyfI8 lNonLRUB1J+gMrdTfO8JZBtNEmF7AzcgZh6sMLhhKQkTRXbbhdn1ggs8NMjJ/W5DxYxB Jo3sEzXPSKWtTFm06wQBNbMmEGrEbzY7PF3HPkldh1a3YJoIrl2gfkVpCsNX1TmgdHu1 aJNA== 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=tkBwPO+PrV4ftScBbbqBQDr3Y+PBcM/F+ln0pPQIfLQ=; b=tmbiL2bxyJCmABKlfX8LRQu9kVpgc+PL9DDSx1GMjsSKTce9MetmK69L+PAPj5nMzJ Y4AucSZyiOKuMT/O7mlU1Q8wNKEZeI1jRg01GqaPsXfwFY/YXLhpoSwPJMqYoZfTW11U oaecefHASjs6iJ0ZQeqq95quxI2HmDOjdfhw3KLoBj8romipYdF16q7lorHoxC5Kt0vj 0Y2qg5yhkem06bCOGhY0zCMobsBTcF4SIhixIxygFrUDJWyp9EzOCbbvVXviOfxr91dt wT6sirDMUcimlxo4y//eseRjJJUIaCYq9Puphgo0YlGzCazz2i5rJWaaqGsOh/8jmgbh U5aA== 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 r8si1576586pls.372.2019.06.28.02.19.30; Fri, 28 Jun 2019 02:19:46 -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 S1726542AbfF1JTX (ORCPT + 99 others); Fri, 28 Jun 2019 05:19:23 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:34712 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfF1JTX (ORCPT ); Fri, 28 Jun 2019 05:19:23 -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 1hgn2L-0007wp-35; Fri, 28 Jun 2019 11:19:17 +0200 Date: Fri, 28 Jun 2019 11:19:08 +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: <20190628063231.GA7766@shbuild999.sh.intel.com> 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, 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! tglx