Received: by 10.213.65.68 with SMTP id h4csp470539imn; Tue, 13 Mar 2018 10:04:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELt7M2UAom/weM+QWwWOez4ZCmfBy6Xabg8i9vhAnJzb9CwBI3AbdqSh5X0fw+bwv6HaacPz X-Received: by 10.98.192.203 with SMTP id g72mr1285572pfk.27.1520960651805; Tue, 13 Mar 2018 10:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960651; cv=none; d=google.com; s=arc-20160816; b=xMtB3Sx9FNK9mG1sOGe6OiRzcX0yhCG2nIk7YHH2njY15pORuwc6Yym66i+bDpF3Jm iqZ/G+/mg0Y4DZWQCS039hs8HEPbegYzQUZIR6ixw75mDfdVNi+aSk+MjzCeKrhcbr7x oCDxPo37A/HfQh6W4v+ryeB9igRLhfUhVzZaA4QybcJ1Q1PDtzXSsJjUrA7ymdP9uo4b 8WYMejKhSc+WoH2M3uN8hkbNgoorYbdKoVBMpE5g7QcdPqvj2wZRJpAAzgD12BN1P4u7 bX8djSNFlX48lAFLlOiaPxWcpB4tv/pbG845B0y+wu1XvP8PMstIg1bmCmLJizPXjMMl OjoQ== 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=1peRJdrevGxhu4qChfcHYTGQ+77AZo3DDIRUNJ3NzdU=; b=o4eKrfMj57jyD+NpVgHVFwqNVUefSHOyShq6dFViRju8iN3BpWikkKCprwf4nHpytt CR5bjK4DCC7+/xLibL+1b1yBw1yrXRnm2lJfG1mLG20KLvqsxYTEjuWmVRQ5BxCq08zC hds3ggjjt9ibPOr/8EQStNrJK/Ni3BqU3JVizY3FmTwwF3FMJHrAPYmH+UD/YUDJ7D7M /OagMYLQlOMyi2zNy/u/m0a0/BP2mKlZzkyt9V0hXI53K2P085cnrEe8G4FzCtrQTAwr fl1EWWsEB1GQ02QelJcBr5ZBcqtntt5Vxkpj866QvB8oh/a3o83/UEB2CGdF5CfYuigj PKyw== 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 f10-v6si294334plm.188.2018.03.13.10.03.56; Tue, 13 Mar 2018 10:04:11 -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 S932433AbeCMP3U (ORCPT + 99 others); Tue, 13 Mar 2018 11:29:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58330 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751735AbeCMP3T (ORCPT ); Tue, 13 Mar 2018 11:29:19 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 699E9F7B; Tue, 13 Mar 2018 15:29:18 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Justin Chen , Florian Fainelli , linux-mips@linux-mips.org, James Hogan Subject: [PATCH 4.15 040/146] MIPS: BMIPS: Do not mask IPIs during suspend Date: Tue, 13 Mar 2018 16:23:27 +0100 Message-Id: <20180313152323.668121514@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Justin Chen commit 06a3f0c9f2725f5d7c63c4203839373c9bd00c28 upstream. Commit a3e6c1eff548 ("MIPS: IRQ: Fix disable_irq on CPU IRQs") fixes an issue where disable_irq did not actually disable the irq. The bug caused our IPIs to not be disabled, which actually is the correct behavior. With the addition of commit a3e6c1eff548 ("MIPS: IRQ: Fix disable_irq on CPU IRQs"), the IPIs were getting disabled going into suspend, thus schedule_ipi() was not being called. This caused deadlocks where schedulable task were not being scheduled and other cpus were waiting for them to do something. Add the IRQF_NO_SUSPEND flag so an irq_disable will not be called on the IPIs during suspend. Signed-off-by: Justin Chen Fixes: a3e6c1eff548 ("MIPS: IRQ: Fix disabled_irq on CPU IRQs") Cc: Florian Fainelli Cc: linux-mips@linux-mips.org Cc: stable@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17385/ [jhogan@kernel.org: checkpatch: wrap long lines and fix commit refs] Signed-off-by: James Hogan Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/smp-bmips.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -168,11 +168,11 @@ static void bmips_prepare_cpus(unsigned return; } - if (request_irq(IPI0_IRQ, bmips_ipi_interrupt, IRQF_PERCPU, - "smp_ipi0", NULL)) + if (request_irq(IPI0_IRQ, bmips_ipi_interrupt, + IRQF_PERCPU | IRQF_NO_SUSPEND, "smp_ipi0", NULL)) panic("Can't request IPI0 interrupt"); - if (request_irq(IPI1_IRQ, bmips_ipi_interrupt, IRQF_PERCPU, - "smp_ipi1", NULL)) + if (request_irq(IPI1_IRQ, bmips_ipi_interrupt, + IRQF_PERCPU | IRQF_NO_SUSPEND, "smp_ipi1", NULL)) panic("Can't request IPI1 interrupt"); }