Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3514086pxj; Mon, 24 May 2021 08:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBbhlzLR9BTsJFXpCCpNBdh02DQ3WDxIh/E/Mfe5CFIWBKXjXAGUcaOKGAh92OL8MPS4uI X-Received: by 2002:a05:6638:134c:: with SMTP id u12mr26379217jad.67.1621869873417; Mon, 24 May 2021 08:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621869873; cv=none; d=google.com; s=arc-20160816; b=vhWX2wLWGuK+6WQZLIuZ6Jt1w0qHkK766U9VR2vOWUJIamlZfx3aAeE9X6IlClNES5 Xd2sH6yOn/+UWLZ9hJUI19wDpacqYdqfMCoRMfDiE6QC+khwJ4WAIhxPi91cnuHEUXpY djp+9ZmDsXMvH8FD/ea0ru6+L7GpfTTgypjCQXUiP6vi5A2QlId1m4OHjU2VRZ71I4lQ 6Mc6PbQ1CDxHz1t1LNLMBpMe2HRXdYcmo+XuJeyUx2wl5LOh7OX/kQgfJ5DQp7CucMf4 DoPuse2NMwA1bulTAsOte4DByc2BpnzwCt8PfMgWFNZknuUFWAa0gOSvWVbChCj3vUv8 k9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=SFp1TFR19PQyCg1rkFkZaH2XuD7c34SnPm6yWvuIiwo=; b=mO6KRyYZeEqVbsJKPGuEwTKiseRZZpU+NukANYtOke1QdXrBbrt2VAqGf1B1Ah9ADl wDstwz8Q1xmA7keuAw39aHV8yKJoES2++Yyff+BWz2QfgeJW0F5III0e+HU6pqY4VfF5 JuqGQHFJIhLHhqucKp40SIKLI93iVf/EePGJ2DAi/YMoz0LrEbTciWfMbdOwmfA21X8Z 53Oy18dG9eO3kVgG8PIqq3kselskLTzjXAcqCKSoQslbusnC4GkB28aFUmzBq0SxGInK he1+apkt90V7xEOX3ROmJdN4g/OHlWR8Sg5eFi6KgoxdITmpNbC9a6yQy1eL9J+/63Gm taeg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si14732058jaj.3.2021.05.24.08.24.20; Mon, 24 May 2021 08:24:33 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232887AbhEXPZK convert rfc822-to-8bit (ORCPT + 99 others); Mon, 24 May 2021 11:25:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:44100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233119AbhEXPQa (ORCPT ); Mon, 24 May 2021 11:16:30 -0400 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 E48F961057; Mon, 24 May 2021 15:15:01 +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.2) (envelope-from ) id 1llCIF-003FbG-Pc; Mon, 24 May 2021 16:14:59 +0100 Date: Mon, 24 May 2021 16:14:59 +0100 Message-ID: <87h7isw4cs.wl-maz@kernel.org> From: Marc Zyngier To: Marek =?UTF-8?B?QmVow7pu?= Cc: Pali =?UTF-8?B?Um9ow6Fy?= , Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas , Russell King , Remi Pommarel , Xogium , Tomasz Maciej Nowak , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 15/42] PCI: aardvark: Change name of INTx irq_chip to advk-INT In-Reply-To: <20210524163651.430e5497@thinkpad> References: <20210506153153.30454-1-pali@kernel.org> <20210506153153.30454-16-pali@kernel.org> <87im3uq5bx.wl-maz@kernel.org> <20210524163651.430e5497@thinkpad> 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") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kabel@kernel.org, pali@kernel.org, lorenzo.pieralisi@arm.com, thomas.petazzoni@bootlin.com, robh@kernel.org, bhelgaas@google.com, rmk+kernel@armlinux.org.uk, repk@triplefau.lt, contact@xogium.me, tmn505@gmail.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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-kernel@vger.kernel.org On Mon, 24 May 2021 15:36:51 +0100, Marek Behún wrote: > > On Fri, 07 May 2021 10:08:18 +0100 > Marc Zyngier wrote: > > > On Thu, 06 May 2021 16:31:26 +0100, > > Pali Rohár wrote: > > > > > > This name is visible in /proc/interrupts file and for better reading it > > > should have at most 8 characters. Also there is no need to allocate this > > > name dynamically, since there is only one PCIe controller on Armada 37xx. > > > This aligns with how the MSI irq_chip in this driver names it's interrupt > > > ("advk-MSI"). > > > > And *because* the name is visible in /proc/interrupts, it has become > > an ABI, and cannot be changed anymore. > > > > We had the exact same issue with Tegra this merge window as I > > accidentally changed "Tegra" to "tegra", resulting in userspace > > programs failing find stuff in /proc/interrupts. > > > > Please keep the name as is, no matter how ugly it is. > > Hmm, I am 99% sure that for the A3720 platform this ABI change would not > affect anybody. And it does make the driver's irq names confusing. > Can't we really do anything here? No, this is final. Show anything in /proc/*, maintain it forever. We already went there with the bogomips crap showing up in /proc/cpuinfo. There is no way you can know what userspace does, and the best course of action is not to change things for some dubious value of "nicer" or "less confusing". > Note that there were suggestions from some people to completely remove > this driver due to the many problems it has which Pali is trying to > solve. But if the driver was removed and then later introduced again > without these problems, the new version would use the "advk-INT" IRQ > name... No, you would have to keep the *exact same output*. Userspace doesn't know about drivers, and expect things in /proc to be stable. Frankly, there are more important things to do than to worry about the shape of /proc/interrupts. And if we could change it, I'd simply get rid of it (you really should look at it on a system that has ~200 CPUs...). Thanks, M. -- Without deviation from the norm, progress is not possible.