Received: by 10.213.65.68 with SMTP id h4csp696726imn; Fri, 6 Apr 2018 07:26:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TepxmPuIU+qhq+1Fuzbzv0YsJywDOPCYQvluyj1W3rZG4lYkKyNzen1M230Pb9ZZOSaBJ X-Received: by 2002:a17:902:ac8a:: with SMTP id h10-v6mr27658498plr.290.1523024813340; Fri, 06 Apr 2018 07:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523024813; cv=none; d=google.com; s=arc-20160816; b=Dgm5ZpO2mWD5DLsOXwLVqWJ2o/xHLeDcwf31s8awbSaf6RvvvDD9dsOcB1pAEbT357 FoCbJaAoLnyQTLUgj6sBZZtI2fPhPX2GkbDWGEofkxOnJ66G9H69KbqXfvdMCrbHYgs4 DBlgwOq2PYg6uvfsbiMmgQpQrGjska5R04Jgo+9WQZ/WB7ii9mG1vaRkWxr/KXpK9YUg Uv/dxQ83URugJ1MSyDuUTGNrNYXXhEO/sLip9qpqVhxMOqYaWlSioTLJpRWrwG7G3HK5 2GPlZ0Q/Xzo/RMcEyrfAfiWptWPgfd7xiEic+Wy20atRfW7tenjdQCSnJjIzD4iQy9P+ 8uvg== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=M07uMXYrDhD/fMf1GMPKIDiAr9s3oEXdbKKIJbJIljg=; b=owqJVqgjLQXi1SwRzgvKxDSx2uua94bvp9beeIMA1s5wXyqYdhC28uEBegGcRJ/PH/ bCOWtLXrIYH1CdA1h6Eg0z34UxXv6j71+1QmhC8yVMKwQYGcEmJMH2EyHSUNuv9mAusK ncd2Q1zfAIKdojm7FxZYkT7IdKg5N/ehaB8z16bpDTFCnur363RTudpDwJWXnyMMsvaZ J6CTxNQCVYChPRPjDvLkuX5ThN5A7AHjRSevhA/AvdG3wQCvD10nTvkX8DvnYXGjJoQ9 gu1PuVx7jI2mH1YmBhxtYB+NQqdYbNGPruT4ts14razJEa+ORweM87/TZb40M1dTQXHN ZRFQ== 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 h1-v6si6182682plh.375.2018.04.06.07.26.39; Fri, 06 Apr 2018 07:26:53 -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 S1756837AbeDFOZm (ORCPT + 99 others); Fri, 6 Apr 2018 10:25:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932298AbeDFNhm (ORCPT ); Fri, 6 Apr 2018 09:37:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 01AC1D0A; Fri, 6 Apr 2018 13:37:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Banman , Thomas Gleixner , Mike Travis , Dimitri Sivanich , Russ Anderson , "H. Peter Anvin" Subject: [PATCH 4.14 10/67] x86/platform/uv/BAU: Add APIC idt entry Date: Fri, 6 Apr 2018 15:23:40 +0200 Message-Id: <20180406084342.695837991@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Banman commit 151ad17fbe5e56afa59709f41980508672c777ce upstream. 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 Signed-off-by: Greg Kroah-Hartman --- 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(-) --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -34,6 +34,7 @@ extern asmlinkage void kvm_posted_intr_w 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); --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -140,6 +140,9 @@ static const __initconst 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 --- 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;