Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2775959imb; Mon, 4 Mar 2019 14:01:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyh6VXnygCX6jn2LxvcsOB9qfA/DAKPQwHe28WBajfW1ZB3DyTCFvinJJiTmkoExwIkNI3h X-Received: by 2002:a63:5fce:: with SMTP id t197mr20137804pgb.415.1551736879691; Mon, 04 Mar 2019 14:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551736879; cv=none; d=google.com; s=arc-20160816; b=jJ0h2NKLV1I7VT3prYxMPDHVzANmFWGTiAVDfUndZPTc8wcD/i2z1FbcQuNFfis9uP RERP2IWm/xhGJROj3ysJHttNgd90GAcqlfJ5uIABpCaIMh5yGISAxeMkwGIqCL679aqC kpj/GbfCASgXPQVryezojZt8s8vPRC7kI4gYz9JnXRQdpbpEthfdJuqypyR+q6hsXFQb RLHSwkFsDNdhFlOMGmfmsqCrEVrU4fW40yGkIa2jj3cvxgPPBZ6N6oIMWcewhKKbjmmc xcYOprb7JDbOb1Ytb/6q0GQhMDXfHY9DDmRrnEyyV8O9aVwCNEOEtg9rTCH1N0024CoW 7yYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BisLo9/b9Ar4ctpd7aCZvgAEfjgsKbtxnPlg+EbWROk=; b=iXO+Kiv/nnOa1PIKbuQv4JWGBjODzh0UsAldJJNM6gYMnwSsTQ7Y/JnQiOywGgdKa7 YR4JG/9pgZOU+qEdJH0xIekncA0wIV+buiz/nimYNXhv3jyHJTlsOuGzklU+G4NtwiFL tN+uOj7ajm/a9ZSfS4rlHNOsBXogcoOJyoIM8BbZWrj/xb/kqTu9z75FzWyqip2nwE6t Kb1knFExzSToF1XN0QNOAA2mJSdacdn3rw8SrffO1B/HZY1oqHOAaFf+2S/Us/YRcgMy uJvqYm5bl8Hla1rValWVjQ5nq/9lrpX4uzpQhtvPmbxzIQ9R+PSkC5J1Y2Cx6TdLW1uV SzZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=2EkGocQz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si5903083pgv.468.2019.03.04.14.01.04; Mon, 04 Mar 2019 14:01:19 -0800 (PST) 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; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=2EkGocQz; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbfCDWAi (ORCPT + 99 others); Mon, 4 Mar 2019 17:00:38 -0500 Received: from tomli.me ([153.92.126.73]:44100 "EHLO tomli.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfCDWAi (ORCPT ); Mon, 4 Mar 2019 17:00:38 -0500 Received: from tomli.me (localhost [127.0.0.1]) by tomli.me (OpenSMTPD) with ESMTP id 94d04484; Mon, 4 Mar 2019 22:00:35 +0000 (UTC) X-HELO: localhost.lan Authentication-Results: tomli.me; auth=pass (login) smtp.auth=tomli Received: from Unknown (HELO localhost.lan) (2402:f000:1:1501:200:5efe:72f4:b31) by tomli.me (qpsmtpd/0.95) with ESMTPSA (DHE-RSA-CHACHA20-POLY1305 encrypted); Mon, 04 Mar 2019 22:00:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tomli.me; h=from:to:cc:subject:date:message-id:mime-version:content-transfer-encoding; s=1490979754; bh=uieIdADfuGnZgn/vvyEk/SEUq7QDCLA8JwWoh6XOsWk=; b=2EkGocQzGe0bGtC9WY5Z2e7uOGrZoC2Nc9i6mmD+UVEC/Ebe3Q+w1TqAk62ZHR100KQwGlNnWWuzU8y0AO0Odx6DfmYag2bO6RKwpttIRb2Kt4b9TuTJzk2/lSnu3aJ7Nv2VHYkc2EVUJ4In4Eh8kviemFy9BprUVDQXPTcTuFEby+yax0ClQRDlJbCHFGS7WRah2bsl7sJ9vjaiPZciTUmbIG2rVykOp0Dc9Ae8Q1vFc7i2esO9433HEg305SPNQdFDLMHuxIJfSkskvEy+WDixHI2iKVQoKw9t3qqKbVmRZwKX8gk4hvxXM6g4gswfxO+iNPElHehHu+eGL6FGHw== From: Yifeng Li To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Huacai Chen , Ralf Baechle , Paul Burton , James Hogan , linux-kernel@vger.kernel.org, Yifeng Li Subject: [PATCH] mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction. Date: Tue, 5 Mar 2019 06:00:22 +0800 Message-Id: <20190304220022.20682-1-tomli@tomli.me> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Timekeeping IRQs from CS5536 MFGPT are routed to i8259, which then triggers the "cascade" IRQ on MIPS CPU. Without IRQF_NO_SUSPEND in cascade_irqaction, MFGPT interrupts will be masked in suspend mode, and the machine would be unable to resume once suspended. Previously, MIPS IRQs were not disabled properly, so the original code appeared to work. Commit a3e6c1eff5 (MIPS: IRQ: Fix disable_irq on CPU IRQs) uncovers the bug. To fix it, add IRQF_NO_SUSPEND to cascade_irqaction. This commit is functionally identical to 0add9c2f1cff ("MIPS: Loongson-3: Add IRQF_NO_SUSPEND to Cascade irqaction"), but it forgot to apply the same fix to Loongson2. Signed-off-by: Yifeng Li --- arch/mips/loongson64/lemote-2f/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/loongson64/lemote-2f/irq.c b/arch/mips/loongson64/lemote-2f/irq.c index 9e33e45aa17c..b213cecb8e3a 100644 --- a/arch/mips/loongson64/lemote-2f/irq.c +++ b/arch/mips/loongson64/lemote-2f/irq.c @@ -103,7 +103,7 @@ static struct irqaction ip6_irqaction = { static struct irqaction cascade_irqaction = { .handler = no_action, .name = "cascade", - .flags = IRQF_NO_THREAD, + .flags = IRQF_NO_THREAD | IRQF_NO_SUSPEND, }; void __init mach_init_irq(void) -- 2.20.1