Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2931682pxv; Sun, 18 Jul 2021 05:55:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMX6Xn8pgvIyD4X4KXTtS5vPCLbYmYdpj4QIz7XzC8TxFoqBwgY8Ls0YCoJb2L7uLH6qoW X-Received: by 2002:a17:906:1e8a:: with SMTP id e10mr22829097ejj.278.1626612931008; Sun, 18 Jul 2021 05:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626612931; cv=none; d=google.com; s=arc-20160816; b=H0Li1jKG4wE9+sCMDM5UwlMRHETIJSZNvGlqHrn3nywZ/xQABuSaQTbgHHWBF0dsKG tYvXnEdvo42WZ1eFSHISIcE+ZwI4+BbUlfaLfqvnbE79IzyZvNOq8SA45nQGQSkWtEc2 wUxVehl6m4gKk+Fen5dcBAN6/QInGMR6jgjeZ5kUAgR3Hmt8VBH+2H3f0+g7hRfeanHW goDDOIIOiMxHIh1A6PgJUPJ0M2uhjE/ZzXyftsdiVBpcZw9aZuPwYt+ascTqz/XwyOhV WIPHfugGOYRqarhZd5azLU4PPlNLRhQb//PH1G8i18oyTZknyW4ys3BP+Tjbuu+OnaAA yPYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ot3x9A+QM97mDVvcXkVBRBSDikDCHSFweeQqLAuQYRE=; b=ZXwQgFR0qCOe+gQKgl0ZZh8nFKNT8r1joLlny7L5rkUK/kQ8YOSqrkdRBFX68TxeoM TePJUIXAclbi9sv7VSG7PL4cHh7MZlmGPzAJqbzH/vqMeYuBuRYil2iU/C8ZPeZHYRUc xTNvwHtiuXSgxJK/X1j2Q9cxowHjfB0NkGRXFVZsoNAM9iVV/bop5TzFB8In1LinxFhd eUmvuJ6/hYEF4jBYV1szseqCekD0xdnH/nc1XWFtTGVYukjIIQvvZVARMXrmefOWv9yO FnH7Zfn/fUrEyxsmZpzr/h/SIZv1a//waEVo9u4zwtUOhvQDXZAQpu86krRP2CxGpk9Y x0kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=i0Dgr+5X; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd15si16081737ejc.47.2021.07.18.05.54.54; Sun, 18 Jul 2021 05:55:31 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=i0Dgr+5X; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbhGRM4V (ORCPT + 99 others); Sun, 18 Jul 2021 08:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbhGRM4U (ORCPT ); Sun, 18 Jul 2021 08:56:20 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BAF4C061764 for ; Sun, 18 Jul 2021 05:53:21 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id k184so22991420ybf.12 for ; Sun, 18 Jul 2021 05:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ot3x9A+QM97mDVvcXkVBRBSDikDCHSFweeQqLAuQYRE=; b=i0Dgr+5XSFqFjaFWpj1aY0gLIBeJs6hYn9X1Uq2cXBST2RiP2cy3qAYr2Eiutu3Ths uP7aEee5iQDo7LxlqOh2sY3DeafUdN7hVcD2zNlk/Sicp4/TSbsVCQu9KpjUWBaIIrci MW89mob8mwp+wm1m6ov0RCRMYbeFzPNssFBekFIdzA23ywQovtH75EvbwdK0/GdJAKjl VdqxNn/67qOUu9Fgoq6mQjD2RAiMawYNgYhjspXWslw6DqZFkszCJkhG1UOwZI3T0sWY oyFMiVqaKDzLFi8fC0M8W8nnf3TiApMF4er97XTg6ZrSHtEw8N6anI5WMLzvW10fErFw RbGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ot3x9A+QM97mDVvcXkVBRBSDikDCHSFweeQqLAuQYRE=; b=CSphXuPBhryBitUjFl1aeMW2feosz30R2VJ3+8On84q3KLkurUIY4s3PtJDUffGgn/ BhWtUkgPo+d8+cvllemzSe/6gUsXvVIdNuCGehBSi4/+TzoNUasNSNaaD7TlHwxcifZl EPVI5Rn3FIcgFkrF1R5VTtaszjefh6Pfgph19gPpxD87Df8Md7nqIxMBhtOSO48y92/n sNDuBnutte/w3+apXws7SBn9G4LsLBK2/5VCe1SpQRQ46cdwOk365LCo/gQFY/qnoloy QdvWOWc8ZHLNEaIRZKVGhIeEK4kWTzQdqfSH0uhKtxrbhkVisyaT8wfVs6Dde8FmYbX1 O/Zw== X-Gm-Message-State: AOAM530j4AFdkxwYCcWv66eV56kI92H4sBO9nacX9taesP2iD/Dq7X3K hODJG+z0NATvlTjVVmMXYjNKBjMf2oLwMbeDjhV/TA== X-Received: by 2002:a25:ad95:: with SMTP id z21mr25056929ybi.25.1626612800425; Sun, 18 Jul 2021 05:53:20 -0700 (PDT) MIME-Version: 1.0 References: <20210702133712.128611-1-linux@rasmusvillemoes.dk> In-Reply-To: <20210702133712.128611-1-linux@rasmusvillemoes.dk> From: Bartosz Golaszewski Date: Sun, 18 Jul 2021 14:53:09 +0200 Message-ID: Subject: Re: [PATCH] Revert "gpio: mpc8xxx: change the gpio interrupt flags." To: Rasmus Villemoes Cc: Linus Walleij , Thomas Gleixner , Song Hui , "Stable # 4 . 20+" , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 2, 2021 at 3:37 PM Rasmus Villemoes wrote: > > 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 > --- Applied for fixes, thanks! Bartosz