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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1DE4C433EF for ; Mon, 10 Jan 2022 09:28:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238618AbiAJJ2w (ORCPT ); Mon, 10 Jan 2022 04:28:52 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43592 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238864AbiAJJ2o (ORCPT ); Mon, 10 Jan 2022 04:28:44 -0500 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 58D6560F40 for ; Mon, 10 Jan 2022 09:28:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B814CC36AEF; Mon, 10 Jan 2022 09:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641806922; bh=Zzw7XicHXwbphesdb2LPnS8aIVN7zN6lbm6VQJfpbPY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V8DOh03saCM5Pf6E+a8EF5j3FVZbZbvt9xymzjGhNSQhMpWHQNTwwB0ZwfL1PYl9t ZqHj9DWXe+OfqTMavzpqBylPEoqjKhlqMhfWZ7axOLeCaWb1NDgU2+LTqbigWXhGML 2l0FzG6MWYAWh44ApjeExardfdbDHYy5sfAkG9ZueOP50l/qDU3eUj/BzEpZ+83okX xBm2SBtE0IbKCxdK7ze1DCnN9yiyOFB/re2fmMxhgeBJhNh3e3nqNzMbzu8DFmm7uQ xGGYjRlAB/JtCFRN/M26GF/gCNr0VvEPnHmEJ7RAe8BvZ52CkC88NaYaKvaubX7QqN sZrN8mOxh0IPQ== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) 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 1n6qym-00H5tN-5A; Mon, 10 Jan 2022 09:28:40 +0000 MIME-Version: 1.0 Date: Mon, 10 Jan 2022 09:28:39 +0000 From: Marc Zyngier To: =?UTF-8?Q?Marek_Beh=C3=BAn?= Cc: Lorenzo Pieralisi , Bjorn Helgaas , pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 23/23] PCI: aardvark: Make main irq_chip structure a static driver structure In-Reply-To: <20220110015018.26359-24-kabel@kernel.org> References: <20220110015018.26359-1-kabel@kernel.org> <20220110015018.26359-24-kabel@kernel.org> User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: kabel@kernel.org, lorenzo.pieralisi@arm.com, helgaas@kernel.org, pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 2022-01-10 01:50, Marek BehĂșn wrote: > Marc Zyngier says [1] that we should use struct irq_chip as a global > static struct in the driver. Even though the structure currently > contains a dynamic member (parent_device), Marc says [2] that he plans > to kill it and make the structure completely static. > > We have already converted others irq_chip structures in this driver in > this way, but we omitted this one because the .name member is > dynamically created from device's name, and the name is displayed in > sysfs, so changing it would break sysfs ABI. > > The rationale for changing the name (to "advk-INT") in spite of sysfs > ABI, and thus allowing to convert to a static structure, is that after > the other changes we made in this series, the IRQ chip is basically > something different: it no logner generates ERR and PME interrupts > (they > are generated by emulated bridge's rp_irq_chip). There is no 'is spite of the ABI'. If you don't understand why we don't break the ABI, you have an even bigger problem. So NAK to this patch, now and forever. Any change to the structure to make it read-only must allow the preservation of the existing names when they are generated by the driver. M. -- Jazz is not dead. It just smells funny... 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 5F28EC433FE for ; Mon, 10 Jan 2022 09:40:08 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2guNRUBRyNZsYa56pgAkANJLf/LrXlfg8Ik+GhNx6T0=; b=e0/XIAxxdvDwbpHQ2EGwSacKNQ p5NAaG7WJzzwZ9PGwcV+4xWehOrulo0LJsYicGYcGCUiARCbnwq22TwxQeRxQjRmhXalh/R/wl6co Ndu/h6bf1ZV71Q57hIL7oVbxkQ4ij7zn2Lcs8e/m0p1Z1FyFNvcAtcy0Lm4Luf0CS9zijkjV6PR4Z cVLB3GrclvPuuDV+C9abBhctrfTVkSqDDcoR/Q7fTQTHzHGGsP+dmb//EnGD8lNLGILVRN/x4LUZM 5MBvu2X63vRNY/0+n//GyYz6DPQIZjG2K4CSOt6+2//SLbzcqakaX7BeoAgtSudiNK5POT/bzGx8y JSsMNHxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6r8K-00ATWq-Ss; Mon, 10 Jan 2022 09:38:33 +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 1n6qyq-00ANUr-Vl for linux-arm-kernel@lists.infradead.org; Mon, 10 Jan 2022 09:28:59 +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 5133D60EC9; Mon, 10 Jan 2022 09:28:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B814CC36AEF; Mon, 10 Jan 2022 09:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641806922; bh=Zzw7XicHXwbphesdb2LPnS8aIVN7zN6lbm6VQJfpbPY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V8DOh03saCM5Pf6E+a8EF5j3FVZbZbvt9xymzjGhNSQhMpWHQNTwwB0ZwfL1PYl9t ZqHj9DWXe+OfqTMavzpqBylPEoqjKhlqMhfWZ7axOLeCaWb1NDgU2+LTqbigWXhGML 2l0FzG6MWYAWh44ApjeExardfdbDHYy5sfAkG9ZueOP50l/qDU3eUj/BzEpZ+83okX xBm2SBtE0IbKCxdK7ze1DCnN9yiyOFB/re2fmMxhgeBJhNh3e3nqNzMbzu8DFmm7uQ xGGYjRlAB/JtCFRN/M26GF/gCNr0VvEPnHmEJ7RAe8BvZ52CkC88NaYaKvaubX7QqN sZrN8mOxh0IPQ== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) 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 1n6qym-00H5tN-5A; Mon, 10 Jan 2022 09:28:40 +0000 MIME-Version: 1.0 Date: Mon, 10 Jan 2022 09:28:39 +0000 From: Marc Zyngier To: =?UTF-8?Q?Marek_Beh=C3=BAn?= Cc: Lorenzo Pieralisi , Bjorn Helgaas , pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 23/23] PCI: aardvark: Make main irq_chip structure a static driver structure In-Reply-To: <20220110015018.26359-24-kabel@kernel.org> References: <20220110015018.26359-1-kabel@kernel.org> <20220110015018.26359-24-kabel@kernel.org> User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: kabel@kernel.org, lorenzo.pieralisi@arm.com, helgaas@kernel.org, pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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-20220110_012845_138022_ED825225 X-CRM114-Status: GOOD ( 17.88 ) 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-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org T24gMjAyMi0wMS0xMCAwMTo1MCwgTWFyZWsgQmVow7puIHdyb3RlOgo+IE1hcmMgWnluZ2llciBz YXlzIFsxXSB0aGF0IHdlIHNob3VsZCB1c2Ugc3RydWN0IGlycV9jaGlwIGFzIGEgZ2xvYmFsCj4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