From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E2A1C433ED for ; Tue, 27 Apr 2021 12:37:20 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD5EB61073 for ; Tue, 27 Apr 2021 12:37:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD5EB61073 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Subject:Cc:To: From:Message-ID:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=x8YiZhwTojUs7NilhonD+ucn5hai1ImgUbQOUVcN9Nk=; b=RnhWfWiK55utlhbum71tYU7/h 635ZQ57R0/VxCCvW++vc9Q4Kxsrq7JZpZo42PmtwUKVg3U49g8rq107LXk23jsE3TVAHGq9EnBm/Q W4FN+wyOkCZWE1LAs9LhWdRmhYRPsvKUH652F1LByuBuceDXRf3Kugq5KM4Gvy9IM0ZVVQspmCGva 4J90w2RV1JpW5+9rANyDOXpWLe+K1vseTQsD/tY3ZU8pMZAh7OYKI7vJpYWMcPJOw1uVI3UIK2ET3 QRBQzFWnt/saJBFjtJN9pE/udEdqf40c82bVuy0IoR8vb0ebTH0w9eiSdzyt6/xHibYalb7a8JzZU WG+NEsZgA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbMvw-001cmQ-R8; Tue, 27 Apr 2021 12:35:20 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbMvu-001cmL-8o for linux-arm-kernel@desiato.infradead.org; Tue, 27 Apr 2021 12:35:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eewqrxAb9z7xz+AKZlBugkPfj6oaIBpt3D7qXOCuHE4=; b=ETa0e2zuAtKviJjCK3tx1bWVIM MP7kxhZZAW2Nx5LVcorz8cgdU/BNhv19mXZ8pmHhajTCEKQvGEm9tsFbrUPf410AiMZ6BN/DDN35M EvTSuHShVLsoFy6eVs96JNqp03mD15vNKOuN2NELtSaGAI5zVqy4lAFcKbMDu+FuJ2A5JDELPd/RQ Av+IaT+R5L3gnUzKKM8nyiamB4j9KUxcGEhxosPFNkpRLin9rWaqKwf3Y1LipnPr6RLnPAts1IZ7m IUWh+BmKjm+s9JA0Kz0aiWJIrGavtulQKjRdPbJ7HUWTi5cDMco3gc/7hHQGijXVD137+VFR2XxLu caV3H/uw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbMvr-00GjLk-3b for linux-arm-kernel@lists.infradead.org; Tue, 27 Apr 2021 12:35:16 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 16CF9613C1; Tue, 27 Apr 2021 12:35:13 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lbMvm-009g6L-VJ; Tue, 27 Apr 2021 13:35:11 +0100 Date: Tue, 27 Apr 2021 13:35:10 +0100 Message-ID: <87lf93oqgx.wl-maz@kernel.org> From: Marc Zyngier To: Anirudha Sarangi Cc: Thomas Gleixner , Michal Simek , Valentin Schneider , Douglas Anderson , Hans de Goede , Maulik Shah , Zhen Lei , , , Rob Herring , Frank Rowand , , Subject: Re: [PATCH 2/3] irqchip: Add support to remove irqchip driver modules. In-Reply-To: <20210427113136.12469-3-anirudha.sarangi@xilinx.com> References: <20210427113136.12469-1-anirudha.sarangi@xilinx.com> <20210427113136.12469-3-anirudha.sarangi@xilinx.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: anirudha.sarangi@xilinx.com, tglx@linutronix.de, michal.simek@xilinx.com, valentin.schneider@arm.com, dianders@chromium.org, hdegoede@redhat.com, mkshah@codeaurora.org, thunder.leizhen@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, frowand.list@gmail.com, devicetree@vger.kernel.org, git@xilinx.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210427_053515_194442_D9CDBD97 X-CRM114-Status: GOOD ( 22.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 27 Apr 2021 12:31:35 +0100, Anirudha Sarangi wrote: > > The existing irqchip implementation does not fully support use cases > where an irqchip driver has to be used as a module. In particular there > is no support to remove an irqchip driver module. > The use cases where an irqchip driver has to be loaded and then removed > as a module are really relevant in fpga world. A user can decide to > have a irqchip as part of a removable partial fpga region. In such cases > not only the corresponding irqchip driver has to be loaded as a module, > but must also be removed when the removable partial region is removed. > > The existing implementation updates the existing framework to achieve > the above said goal. > > Signed-off-by: Anirudha Sarangi There is absolutely no way we can entertain the removal of an interrupt controller based on *this*. What happen to the irqdesc structures? What happen when a client driver decides to do a disable_irq(), or any other interaction with the interrupt controller that now has dangling pointers everywhere (if your third patch is supposed to be an example of how to use this functionality)? So no, you can't do that until you figure out all the dependencies that need to be accounted for to safely remove an interrupt controller. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel