Received: by 10.213.65.68 with SMTP id h4csp202649imn; Wed, 28 Mar 2018 01:47:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/xvOKVz7UDYUXkiK6FmikrUzKlyVCjRpskLS/hW+U3kHfz0lQR3R96KUxtWWRosSwvRFi/ X-Received: by 10.99.156.17 with SMTP id f17mr1933618pge.102.1522226849195; Wed, 28 Mar 2018 01:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522226849; cv=none; d=google.com; s=arc-20160816; b=g82S3rGT1JY7ybOVMEQlTFsRZrTehIcATY52SLkl3txDQUIkt6yDBWds8ISA7tq1nh HXEAHqiW6CTag8pzRSwp8F3SFjZZGsDakBxj7Tk4XQjuyXb4sWeGzz7qL3MwfVneyLed l3WAwVHXue664aIm4kflLeY+y7M7CDG8N185FuZ9MvBjeDpl86gekINLYfSG+RONfBO/ 4g6t6ULpD4mJB3mlZOXRPJl6wVVUMSYJ0BU+Zcl31vxRkpG0Pbna+2p60Q+MKnIQwnhA FRXVYq7Lr4SOwHCtI4p27DkKfk8I5f+FHP5Fz7xbBfUccOPl6FZO5OflXXx9vHYfEi5L hUCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=wZpT4V+Vg4Z0iZqgTuN51PK3QJ+PTE7jdS4weqsf98M=; b=WRZ9CccdY6YbTjS9I44L9vwOpQpN1kVKrQVGpUgA+WNZ5PwERpYEp/Pj9MfXyHoMrg Yk7oRqrZ5e1/vU5dVxrahS5A42DWno6Zh8osvdpFjnQPDMeRul3KVrm+8CNeGPY79vrv 1gjSpUIbE9bIo56pgo+gR1zH2U4vMY6ODs5+xbAjC/Ch+Fnh3xDTOEphV0lbnGS8jkoV edThg8kU1nVHAprlVJ58t3gg6Nn1eMwqP38RiSarpwjB849ICY6yRgfau3FujkoPPLg2 OjpbGP1fr9nPScUDXyFg8jSgNkhIgyu8WdpqkvPSKalKvt0TDIbLfjCv+XUxRp3rrAaD w48A== 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 f5-v6si3109512plf.223.2018.03.28.01.47.14; Wed, 28 Mar 2018 01:47:29 -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 S1752743AbeC1IqS (ORCPT + 99 others); Wed, 28 Mar 2018 04:46:18 -0400 Received: from terminus.zytor.com ([198.137.202.136]:43109 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752594AbeC1IqO (ORCPT ); Wed, 28 Mar 2018 04:46:14 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2S8k0aD991428; Wed, 28 Mar 2018 01:46:00 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2S8jxdU991425; Wed, 28 Mar 2018 01:45:59 -0700 Date: Wed, 28 Mar 2018 01:45:59 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andrew Banman Message-ID: Cc: hpa@zytor.com, rja@hpe.com, mingo@kernel.org, mike.travis@hpe.com, abanman@hpe.com, linux-kernel@vger.kernel.org, sivanich@hpe.com, tglx@linutronix.de Reply-To: tglx@linutronix.de, sivanich@hpe.com, abanman@hpe.com, mike.travis@hpe.com, mingo@kernel.org, linux-kernel@vger.kernel.org, rja@hpe.com, hpa@zytor.com In-Reply-To: <1522188546-196177-1-git-send-email-abanman@hpe.com> References: <1522188546-196177-1-git-send-email-abanman@hpe.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/platform/uv/BAU: Add APIC idt entry Git-Commit-ID: 151ad17fbe5e56afa59709f41980508672c777ce X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 151ad17fbe5e56afa59709f41980508672c777ce Gitweb: https://git.kernel.org/tip/151ad17fbe5e56afa59709f41980508672c777ce Author: Andrew Banman AuthorDate: Tue, 27 Mar 2018 17:09:06 -0500 Committer: Thomas Gleixner CommitDate: Wed, 28 Mar 2018 10:40:55 +0200 x86/platform/uv/BAU: Add APIC idt entry BAU uses the old alloc_initr_gate90 method to setup its interrupt. This fails silently as the BAU vector is in the range of APIC vectors that are registered to the spurious interrupt handler. As a consequence BAU broadcasts are not handled, and the broadcast source CPU hangs. Update BAU to use new idt structure. Fixes: dc20b2d52653 ("x86/idt: Move interrupt gate initialization to IDT code") Signed-off-by: Andrew Banman Signed-off-by: Thomas Gleixner Acked-by: Mike Travis Cc: Dimitri Sivanich Cc: Russ Anderson Cc: stable@vger.kernel.org Cc: "H. Peter Anvin" Link: https://lkml.kernel.org/r/1522188546-196177-1-git-send-email-abanman@hpe.com --- 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 2851077b6051..32e666e1231e 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -36,6 +36,7 @@ extern asmlinkage void kvm_posted_intr_wakeup_ipi(void); 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 56d99be3706a..5d039c848bd9 100644 --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -140,6 +140,9 @@ static const __initconst struct idt_data apic_idts[] = { # 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 db77e087adaf..b36caae0fb2f 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c @@ -2255,8 +2255,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;