From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AIpwx4+Aw2YjWU9A0W5gaQxxAq2iVjR6c8r3RwDiBg2ovEHv/lXtvbTBJtt6kI0I1zNBe7vX2inF ARC-Seal: i=1; a=rsa-sha256; t=1523022047; cv=none; d=google.com; s=arc-20160816; b=R+s4DpMStTmzGx1IDMS55JXI04VPHWE4Xj8BWn3Ucy6Qwwjhf+m19YnnraGx1L5ZHi fq1a8bngnwnhVta81o+xaTB7IBFmWlQ7kMBtV7de1+mxNpp5vsuEhTsJpHIIhRUKAeIS OiT6zMnrtJ5s9hZabRXM+XO/b1KJkQb0hOII42IXu2cHp9s81e4bV+8+7HEdRsSpdp7j 4mpc54dtb34oDr4BKxIvTWN136EhLnklzG4pp9/kZMFEeNOm94M688asZhzxaX0iTyoJ m6vapofQRY9lYd51Mz8/EVRJfTs5XgXtAm9w4WiHHgrYuzAOlpqPixeFYanDpxwQGWLb DbTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=EnFWIJ2v6MB+PinEkUJlXQ5MbgqXk0++4+K9gGiDYZQ=; b=ZNd8S/hrqJIXx8xowiBzCMwS3iGdV11t8P4NfUMlJFoZBOgkXhZgrLA9uiwUugj6e1 LzQJ4Am6zF2KzQ2TvnKTaifGPyoZnogL2O6N61uwO985hoWPmKtxAUgZezlQD4OKd8EQ aOFY7cRYSAJyC06xLxtFqdlrke+78qY4CDQJGdxR2XwIOFACFTT1ORZigwlsnzHgLcHr lYF+3uUhgdzI7i30+A//L08Rnbw4SLUIfqxq+FGMLgPwbgUpkSf3GdoB1KhVJCSDQzpx EeL086T+VO3JQr3wTNtqgKrpJZ8jJCl3ooBoTgwRCq9xjPm5WiPclsZsSESm4uJa+eJf rUOg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org 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.15 10/72] x86/platform/uv/BAU: Add APIC idt entry Date: Fri, 6 Apr 2018 15:23:45 +0200 Message-Id: <20180406084350.344047752@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084349.367583460@linuxfoundation.org> References: <20180406084349.367583460@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1597004172509533841?= X-GMAIL-MSGID: =?utf-8?q?1597004367080792354?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.15-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 @@ -36,6 +36,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;