Received: by 10.213.65.68 with SMTP id h4csp18562imn; Tue, 27 Mar 2018 15:22:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6Kvek5Lqc8ZSloB3ddlqGQi+VtjiAt/f+wRgNy8ih+QYa9NFjStXIKqqq708ehnbxaQJO X-Received: by 2002:a17:902:68c2:: with SMTP id x2-v6mr1063581plm.129.1522189337537; Tue, 27 Mar 2018 15:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522189337; cv=none; d=google.com; s=arc-20160816; b=S09HClYwAhk07lxAkU7W2M1Mg6vU0k1xmywoKve1ZDbVU/wExkoe2Yptdkswwfu9zc WwlyCNTt1Tzelqrckg7Tx3o0ohi2crchdh08EDQI/edoJl1QYA3A7u31JAIcYBPH+Pgb D1fstPRsK+Pwb0L44Uci1QU25h3m9By0K8qYDiFFSUhZYDPJkCbgxBlUNvH723sdtncd It/wbVg2PEMy5meqZlmvRa+pdas1b4F394FSbhN7sIxTBZwlysEumBZkYCKsD5fpue5G pE0+RdeNYQsGdA6XzGFJ8oDy4q8obQk5nBtQuWtZVKL2x+HD36jzFYdlwg6ul6Oxto0K BhBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9cixDC455ZQXfWcBBs6ZGHCSB1Zw2mnbUWcGo5fL3Xo=; b=Bh4A9nPjnXHsZOaoPWCieCu0BtajOebIJKalAhzLgQeHwQAv1WlETW+kfxwdElGOI3 EXzez5mAs/kb/3H7QuThZHP90+jAr/cL7j7jJj5vUaF5MAlgdxFKNA3sV1NIhHrJ3gus cBUQugUwqMGUwLREj8D+tZgOsjFKSbfTm8CDQkCu0NwyiRmYSAakWJsOwyakLFTSxn7C 7Jhuf89U1BxtQ2RUsTjWIYETfgAxAx6Q050nktPMfqFIr3aA5QrNhIqJCur3e9S3mulQ mtjP9LokROWjefmiopitPKNsp9NPs32Z3zHxZmOicX5OaUrkQdE1jQOdfgZQi247VUiW n1Uw== 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 e2-v6si2203915pls.160.2018.03.27.15.22.02; Tue, 27 Mar 2018 15:22:17 -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 S1752281AbeC0WVE (ORCPT + 99 others); Tue, 27 Mar 2018 18:21:04 -0400 Received: from relay2.sgi.com ([192.48.180.65]:43137 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751913AbeC0WVC (ORCPT ); Tue, 27 Mar 2018 18:21:02 -0400 X-Greylist: delayed 436 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Mar 2018 18:21:02 EDT Received: from stormcage.americas.sgi.com (stormcage.americas.sgi.com [128.162.236.70]) by relay2.corp.sgi.com (Postfix) with ESMTP id B6772304032; Tue, 27 Mar 2018 15:13:41 -0700 (PDT) Received: by stormcage.americas.sgi.com (Postfix, from userid 200151) id 8A850200F8C0E; Tue, 27 Mar 2018 17:13:41 -0500 (CDT) From: Andrew Banman To: Thomas Gleixner Cc: Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Mike Travis , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Russ Anderson , Dimitri Sivanich , Andrew Banman Subject: [PATCH] x86/platform/uv/BAU: add APIC idt entry Date: Tue, 27 Mar 2018 17:09:06 -0500 Message-Id: <1522188546-196177-1-git-send-email-abanman@hpe.com> X-Mailer: git-send-email 1.8.2.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BAU uses the old alloc_initr_gate method to setup its interrupt. This fails silently as the BAU vector is in the range of APIC vectors that are registerted to the spurious interrupt handler. Then BAU broadcasts are not handled, and the broadcast source CPU hangs. Fixed by updating BAU to use new idt structure. Signed-off-by: Andrew Banman Acked-by: Mike Travis --- arch/x86/include/asm/hw_irq.h | 1 + arch/x86/kernel/idt.c | 3 +++ arch/x86/platform/uv/tlb_uv.c | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index 6dfe366..a56cd0b 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -33,6 +33,7 @@ extern asmlinkage void kvm_posted_intr_nested_ipi(void); extern asmlinkage void error_interrupt(void); extern asmlinkage void irq_work_interrupt(void); +extern asmlinkage void uv_bau_message_intr1(void); extern asmlinkage void spurious_interrupt(void); extern asmlinkage void thermal_interrupt(void); diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c index 99f93a6..c5da34e 100644 --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -138,6 +138,9 @@ struct idt_data { # ifdef CONFIG_IRQ_WORK INTG(IRQ_WORK_VECTOR, irq_work_interrupt), # endif +#ifdef CONFIG_X86_UV + INTG(UV_BAU_MESSAGE, uv_bau_message_intr1), +#endif INTG(SPURIOUS_APIC_VECTOR, spurious_interrupt), INTG(ERROR_APIC_VECTOR, error_interrupt), #endif diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index f44c0bc..5e22845 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c @@ -2254,8 +2254,6 @@ static int __init uv_bau_init(void) init_uvhub(uvhub, vector, uv_base_pnode); } - alloc_intr_gate(vector, uv_bau_message_intr1); - for_each_possible_blade(uvhub) { if (uv_blade_nr_possible_cpus(uvhub)) { unsigned long val; -- 1.8.2.1