Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp437259rwi; Thu, 27 Oct 2022 03:26:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eUxJvZnYzJkE4EEzdRJg9cmrMXrNZVj3wNJjKZ27kkSC3nLjRVXSNcG1jIHPs82XzF1Zm X-Received: by 2002:a17:906:6a27:b0:7a6:c537:ba4 with SMTP id qw39-20020a1709066a2700b007a6c5370ba4mr18866649ejc.517.1666866418483; Thu, 27 Oct 2022 03:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666866418; cv=none; d=google.com; s=arc-20160816; b=0JEXXRFuER8QAh2/aAJnPdsdy6c+3+cVnUNKgD0Ar8nHA3y3Bjm9Oy607onTIhUsfl 0IdKE+N8wzQf9CB3ox35WOawqiDMLKbxEG6+f7+X2tDcExZLtL8wzO1xxHyez1w+8tAC P28HqziHdWGhQoCVKTvLpr4wZMZzGPRJtBvrwvqECva014JzyNsIrnJV0aO1Q1WzSsx5 M6FZ2udeA/Hvjnm74+vGkM4MV7/LYYnxUN6tSLIyVaIwz33PYSZnqMxu8o8rwPIdmCyl t1dnWj5dzVWBNAilDGnjXXEe0mhi/87AZH/RcPcvfBq6a7d4qwhIjiQ8+4v71MlahNhJ O3Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0mIoEOlWVpXSR0dulv3bw0bWnpWbGJI5+eFJ3CWSqkk=; b=WxVxuEiZMcyB93ffAd1myWAafqQrtwUzXFiYHHpklQLqgS/zD3SK8/hyQU+TKjWI+5 f5e2WOokimgUddXXvM+mjyR/r56gU93nMQ3dsdcX+ndwnEcGb971WcGrg0rZv4t4/Hpj bV4+hiUS8v7fcO7chIJC9qqUP9vjyZVrdFCE+STP3mm33ZK5K6iK9qyUItg1f1pua53f Go460HL3pLLtcDGsLkmPiAVcqvFHXru1wtxkuNHid6oEVJtFBiel6JhsjyWZHnKdZ3wA yDGR311utt8WvgKwK4FTkT5FkS174KHISLMiwrnduBn8j96CLgB4FBGBQA0G7k4SibBg v9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e24edh4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020a056402351300b0045cda8e8383si220360edd.542.2022.10.27.03.26.33; Thu, 27 Oct 2022 03:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e24edh4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235384AbiJ0KNL (ORCPT + 99 others); Thu, 27 Oct 2022 06:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235248AbiJ0KNG (ORCPT ); Thu, 27 Oct 2022 06:13:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD85115400; Thu, 27 Oct 2022 03:13:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C520C6226C; Thu, 27 Oct 2022 10:13:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC411C433C1; Thu, 27 Oct 2022 10:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666865584; bh=yVmhw3y2OWp44DSjCHlO0oAg03ahIcs/vanAqKRUviY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e24edh4tK/S4pO9I1vfKB5gnsZmXh5LWk5xIqS3v7A0AQTC6vj/skpdbq+qexAzH3 TJVtLOyE/2CWXdqH4dGCSx5v8Tjlyi+Pk+TfF10jP8S9Pxl2R/21kyEn0XWsmFWKbP tniyM1fnKEQKV8gihaWJgR4/n+2hNR6a4cM1iBx0= Date: Thu, 27 Oct 2022 12:13:01 +0200 From: Greg KH To: Rishabh Bhatnagar Cc: stable@vger.kernel.org, sashal@kernel.org, tglx@linutronix.de, mingo@redhat.com, linux-kernel@vger.kernel.org, benh@amazon.com, mbacco@amazon.com Subject: Re: [PATCH 0/6] IRQ handling patches backport to 4.14 stable Message-ID: References: <20220929210651.12308-1-risbhat@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929210651.12308-1-risbhat@amazon.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 29, 2022 at 09:06:45PM +0000, Rishabh Bhatnagar wrote: > This patch series backports a bunch of patches related IRQ handling > with respect to freeing the irq line while IRQ is in flight at CPU > or at the hardware level. > Recently we saw this issue in serial 8250 driver where the IRQ was being > freed while the irq was in flight or not yet delivered to the CPU. As a > result the irqchip was going into a wedged state and IRQ was not getting > delivered to the cpu. These patches helped fixed the issue in 4.14 > kernel. > Let us know if more patches need backporting. > > Lukas Wunner (2): > genirq: Update code comments wrt recycled thread_mask > genirq: Synchronize only with single thread on free_irq() > > Thomas Gleixner (4): > genirq: Delay deactivation in free_irq() > genirq: Fix misleading synchronize_irq() documentation > genirq: Add optional hardware synchronization for shutdown > x86/ioapic: Implement irq_get_irqchip_state() callback > > arch/x86/kernel/apic/io_apic.c | 46 ++++++++++++++ > kernel/irq/autoprobe.c | 6 +- > kernel/irq/chip.c | 6 ++ > kernel/irq/cpuhotplug.c | 2 +- > kernel/irq/internals.h | 5 ++ > kernel/irq/manage.c | 106 ++++++++++++++++++++++----------- > 6 files changed, 133 insertions(+), 38 deletions(-) A simple build test breaks with this series applied: ld: kernel/irq/manage.o: in function `__synchronize_hardirq': manage.c:(.text+0x149): undefined reference to `__irq_get_irqchip_state' ld: kernel/irq/manage.o: in function `irq_get_irqchip_state': manage.c:(.text+0x5a2): undefined reference to `__irq_get_irqchip_state' make: *** [Makefile:1038: vmlinux] Error 1 How did you test this? {sigh} I'm dropping all of these from my queue. I think you need to just keep this in your device-specific tree as obviously this is not ready to be backported anywhere. greg k-h