Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3767528pxt; Tue, 10 Aug 2021 10:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCnn4sfk2Fdf6KVENOFDX43kSSU2NurqT3YdzZDVrrsW2MCJ2ZfUM3tqeDkh12vTYtc4w8 X-Received: by 2002:a5e:9602:: with SMTP id a2mr207919ioq.146.1628617879860; Tue, 10 Aug 2021 10:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617879; cv=none; d=google.com; s=arc-20160816; b=r5KwJ7BmxLjlnqXTEXOyxOqFxHtuSrGWpLW7Z5gvLA8mJ9i/Pm+dfzeOVHiUlQFAFG FX6waffuExo4GUs09eDqm18RI+CiqxMpKespN1krAhVlSUd/zWiXrsyKHco0YQedfMyc xQLTp24NFs2Hg4H/Su2unxSMI1U+cNNuyTeun59Qh/h8futYvSRvry6nPTr6EeAOan4+ OKvYxBHZPuZauzJBylEcZi/8Q/GdoLhpD4DcM1rdAz3Seda/c0wt9ssWWnBMG783MpRu arPeOaAptEtse4JLZnfelG67uodM4JNpBSOVsmY6N9FbWTi96z7QMq/klBJxkl3/Qc20 oSSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LRxvMNneadsmLEkVhMb/n1wv4/yyhD05rQd0UdrdMrg=; b=sYdwV92Vy0C+V8PJBr/NuVRNymiWJ0stP0sDrR9qUa+txCA0nv+pbnRB4k561MDK5c mto2TdpW5X6yYxVEJXQS79aSG4LCAV0nbrSTRtvtIn9Fm8dFVg4Hfynz4pwya870P3Ol 9J7YHL2pUrUgkmfdqiRgUf3t+glQx/2o/yD0+dQh8C5z7cR4MqM7XLiQjz9kvLQXzmEO Kfya605jxYT6x76yv2JYYS/Z51ZoHciGzSgbVp8H0Ped8XMGjMbjkhwQbh3tmSRhT7hS DeQeFqfAABVOzGaoJELoT2UWXQUyRsA68kucvLS6tuUyYnYfkg2Ewt6p3ZaaxGC/fUkE dFzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="XWHt/uSv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si13933336iob.65.2021.08.10.10.51.07; Tue, 10 Aug 2021 10:51:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="XWHt/uSv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233191AbhHJRup (ORCPT + 99 others); Tue, 10 Aug 2021 13:50:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:34572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233035AbhHJRrZ (ORCPT ); Tue, 10 Aug 2021 13:47:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2772260243; Tue, 10 Aug 2021 17:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617256; bh=EpQXItnnKfAiIbmbeGSU6rhyO++6V+o/V39Qx5+LndE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XWHt/uSvGF+5jXhMMNyAVKudrtWXQrDC+TXOPX+7E9pDrjRax9hn5dxMQHAgTZM// bUqpCVV7GCSxyj7AycmuoyJKqizk0gB9MFBkIc/UIWBTExo02NZbYJJGr7A1XvgDaA 36ZUslib+WI0f3OgJY9o+az0Eo4HWz3YT3O7jHDY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rasmus Villemoes , Bartosz Golaszewski Subject: [PATCH 5.10 107/135] Revert "gpio: mpc8xxx: change the gpio interrupt flags." Date: Tue, 10 Aug 2021 19:30:41 +0200 Message-Id: <20210810172959.397392587@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rasmus Villemoes commit ec7099fdea8025988710ee6fecfd4e4210c29ab5 upstream. This reverts commit 3d5bfbd9716318b1ca5c38488aa69f64d38a9aa5. When booting with threadirqs, it causes a splat WARNING: CPU: 0 PID: 29 at kernel/irq/handle.c:159 __handle_irq_event_percpu+0x1ec/0x27c irq 66 handler irq_default_primary_handler+0x0/0x1c enabled interrupts That splat later went away with commit 81e2073c175b ("genirq: Disable interrupts for force threaded handlers"), which got backported to -stable. However, when running an -rt kernel, the splat still exists. Moreover, quoting Thomas Gleixner [1] But 3d5bfbd97163 ("gpio: mpc8xxx: change the gpio interrupt flags.") has nothing to do with that: "Delete the interrupt IRQF_NO_THREAD flags in order to gpio interrupts can be threaded to allow high-priority processes to preempt." This changelog is blatantly wrong. In mainline forced irq threads have always been invoked with softirqs disabled, which obviously makes them non-preemptible. So the patch didn't even do what its commit log said. [1] https://lore.kernel.org/lkml/871r8zey88.ffs@nanos.tec.linutronix.de/ Cc: stable@vger.kernel.org # v5.9+ Signed-off-by: Rasmus Villemoes Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -396,7 +396,7 @@ static int mpc8xxx_probe(struct platform ret = devm_request_irq(&pdev->dev, mpc8xxx_gc->irqn, mpc8xxx_gpio_irq_cascade, - IRQF_SHARED, "gpio-cascade", + IRQF_NO_THREAD | IRQF_SHARED, "gpio-cascade", mpc8xxx_gc); if (ret) { dev_err(&pdev->dev, "%s: failed to devm_request_irq(%d), ret = %d\n",