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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A8E0C433F5 for ; Fri, 4 Mar 2022 17:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=wBMaskQbpsuHnJPdTi6JJZchoTTTSMZi8JZQQYchYOY=; b=FTHtfg8HTFcx8D 8vtTuc8zw4/uf4Mmq8GBMlLOTDtoKK/miaOOEMisfhP8GXXLcWIVZsUVpvrlhiJElx7CbGuvMS3nE 3Ht/4XmPPx2XiHvVcWb2F5rNvLEtmHBOcuySaQUo897pilVHkX3LggNJ6WDWvEVd+W1S6MPg+qWkc G92d+K6BBVGw0+A7xNlQ428jL8IP5r5MTzgevB9oBJPZ+tQNsQgKYUU1lcrjijPUUPGspVJ1+kAZ/ s1HZwAEi2UtcAFoRQnE39xpA0V7piBvx4b9k3DoSTJpOs85WDBvFqq37yDjcbCPB2gyMWxdWCruBD xUwmyRJz+rErhJfzAAPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQBaQ-00BFUn-MG; Fri, 04 Mar 2022 17:19:26 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQBaN-00BFU0-39 for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 17:19:24 +0000 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 9864961E3F; Fri, 4 Mar 2022 17:19:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA34AC340F1; Fri, 4 Mar 2022 17:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646414360; bh=MaF5anHurB1xUF2NaRcNb2bM5G1HoBIKDIJkPgP80kA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ooK74z0tQ6mby+x2Ja2LiccQRUg7Y74ztqDw28vi8MoFDiuwe/WFW0JroTKEHQ5LB PB2gKNQ+zAtUpIpZtI5oXJKf49Gw1uOHDjoKukMWfEnr9Ei4fHHCQzL38M9vy88Cgl J8scrSTHTInFgSEW88Z+wzuRV56Tk5dXgHJ/M/YgURxGibY6IdUviyEcAbPJcENgto vvx6C9V7T+TEi5jEOGa8u/0qNqZrAHrNVzdIN6U8+OSqDsOzcxy0lyhJ544auCWDNm M5QLrhia9T0ZEAcXfLBsI09tS77UPFJGAJNPsQjZTVhv4TTDa9bPtZ5C2SR6JGXNqW 6vOyJ9DYRQQuw== Received: from sofa.misterjones.org ([185.219.108.64] 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.2) (envelope-from ) id 1nQBaI-00CHlw-7o; Fri, 04 Mar 2022 17:19:18 +0000 Date: Fri, 04 Mar 2022 17:19:17 +0000 Message-ID: <87ilst1vqi.wl-maz@kernel.org> From: Marc Zyngier To: Thierry Reding Cc: linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Joey Gouly , Jonathan Hunter , Hector Martin , Sven Peter , Alyssa Rosenzweig , Bjorn Andersson , Andy Gross , Thomas Gleixner , linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 0/5] gpiolib: Handle immutable irq_chip structures In-Reply-To: <371a530ea9ae8c58bf13ac16d1f2cd3c@kernel.org> References: <20220223154405.54912-1-maz@kernel.org> <371a530ea9ae8c58bf13ac16d1f2cd3c@kernel.org> 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: 185.219.108.64 X-SA-Exim-Rcpt-To: thierry.reding@gmail.com, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, joey.gouly@arm.com, jonathanh@nvidia.com, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, bjorn.andersson@linaro.org, agross@kernel.org, tglx@linutronix.de, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, kernel-team@android.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-20220304_091923_237962_88870E12 X-CRM114-Status: GOOD ( 30.18 ) 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 Thu, 24 Feb 2022 17:42:02 +0000, Marc Zyngier wrote: > > On 2022-02-24 16:40, Thierry Reding wrote: > > On Wed, Feb 23, 2022 at 03:44:00PM +0000, Marc Zyngier wrote: > >> I recently realised that the gpiolib play ugly tricks on the > >> unsuspecting irq_chip structures by patching the callbacks. > >> > >> Not only this breaks when an irq_chip structure is made const (which > >> really should be the default case), but it also forces this structure > >> to be copied at nauseam for each instance of the GPIO block, which is > >> a waste of memory. > >> > >> My current approach is to add a new irq_chip flag (IRQCHIP_IMMUTABLE) > >> which does what it says on the tin: don't you dare writing there. > >> Gpiolib is further updated not to install its own callbacks, and it > >> becomes the responsibility of the driver to call into the gpiolib when > >> required. This is similar to what we do for other subsystems such as > >> PCI-MSI. > >> > >> 3 drivers are updated to this new model: M1, QC and Tegra, as I > >> actively use them (though Tegra is hosed at the moment), keeping a > > > > Hosed in what way? Anything I can help with? > > Tegra186 doesn't boot as host1x is been broken since -rc1. > > I have been carrying this[1] patch which has been in -next for > some time, but still not merged AFAICS. Looks like it finally made it -rc6. Thanks, 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