Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7220277pxb; Thu, 18 Feb 2021 04:54:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEaFgfXAPvP8i3TageYOmnLnRQBatAHvZdf0jKk5QQ2ndJjT16sR0fxGOcWKpHbaHrLD1J X-Received: by 2002:a50:da4f:: with SMTP id a15mr3863938edk.301.1613652878613; Thu, 18 Feb 2021 04:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613652878; cv=none; d=google.com; s=arc-20160816; b=oIYTcbKwlty9Qfg9xvMI6XS1uIaL/qkc1Yf8bRWQcoIjK2K1t58kORXMi9Lr67HLrH /oNPgC6DqCZAT+pC2qmEzP6vRU1naSGWxb4HNgIfibiNO89RsVCrCefuGLjVkHa2avCO 5gTH41hRDxaAz7WozydnvkJ7qGmFhn+GWcxQzCHzz4INZWvpOiYpeIu4fe50bXhEYumW 1wfE1uTZtb1C+Ssssn/1467yB0boRbwAS+wbQ0Zl04vV5l8yIMsO6+7PWN+tG8FhzD65 emReQWAWP8MqCP5q9rhw1NPlS/4iuEfuy2fDUACLdTDBEDL2LzPUaaRAPDpdavp69eVk 6YJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=I8FjUCidsGlwry4hX0/LbWQ6vmD+kIIBCaN8MNf6Hkc=; b=rM9w1Gp0MMEb44Y8aJiXHFF3PUouCFMIc7IV1oEgwffQkp4qlETyo6wIUpnO6wattD fd8pyRWYMTLARLAp30oRaAWLSFPMdtfZnQbXWaHPfHVlF7J5TBimIlR016xs965WVe46 hZ1NO9K49bKYlxrIrTdry0Roi/TtLEwZyyFa1WRYt/S9GcaYGwQrf6/3Q6GKHPAx23s2 XuLPfklTH8HB/Tp0qvfhwXN8tuYOR95yNV7M1uFiYn/zW84hlSc3s1fp8rU36fDq7GmM CDRM6oCY/t+uIRxuAsjdpJETEcDOrAyc/XpeP1/FrShag1raRZM9sG1QQ5ECbuWaOO6s yWLw== 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 ch19si3839007ejb.436.2021.02.18.04.54.13; Thu, 18 Feb 2021 04:54:38 -0800 (PST) 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 S233316AbhBRMu7 (ORCPT + 99 others); Thu, 18 Feb 2021 07:50:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:60188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232366AbhBRLF4 (ORCPT ); Thu, 18 Feb 2021 06:05:56 -0500 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 8D4D964E15; Thu, 18 Feb 2021 10:39:41 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lCgih-00EkDd-Em; Thu, 18 Feb 2021 10:39:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Feb 2021 10:39:39 +0000 From: Marc Zyngier To: Greg KH Cc: Michael Walle , linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH] irqdomain: remove debugfs_file from struct irq_domain In-Reply-To: References: <20210217195717.13727-1-michael@walle.cc> <4e4d0479b935e60a53f75ef534086476@kernel.org> <5c527bfb6f3dfe31b5c25f29418306c6@walle.cc> <87czwys6s1.wl-maz@kernel.org> <8b4de9eae773a43b38f42c8ab6d9d23c@walle.cc> <87eehdpx05.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: gregkh@linuxfoundation.org, michael@walle.cc, linux-kernel@vger.kernel.org, tglx@linutronix.de 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 2021-02-18 09:38, Greg KH wrote: > On Thu, Feb 18, 2021 at 09:04:42AM +0000, Marc Zyngier wrote: >> On Thu, 18 Feb 2021 08:54:00 +0000, >> Greg KH wrote: >> >> [...] >> >> > > > Wow, wait, you are removing a debugfs file _before_ debugfs is even >> > > > initialized? Didn't expect that, ok, let me go try this again... >> > > >> > > Yeah, that's a poor man's rename (file being deleted and re-created). >> > >> > True, but that's not happening here, right? Some driver is being >> > initialized and creates a debugfs file, and then decides to unload so it >> > removes the debugfs file? >> >> No, that's not what is happening. >> >> The irqchip driver starts, creates an irqdomain. File gets created, at >> least in theory (it fails because debugfs isn't ready, but that's not >> the issue). >> >> It then changes an attribute to the domain (the so-called bus_token), >> which gets reflected in the domain name to avoid aliasing. >> Delete/create follows. >> >> > Why was it trying to create the file in the first place if it didn't >> > properly bind to the hardware? >> >> See above. We encode properties of the domain in the filename, and >> reflect the change of these properties as they happen. > > Ah, ok, you really are doing delete/re-create. Crazy. And amazing it > was working previously without the checks I just added... > > Funny that you all never were even noticing that the debugfs files are > not present in the system because they are tryign to be created before > debugfs is present? Is that an issue or has no one complained? See how irq_debugfs_init() is called in the middle of the boot sequence, and retroactively populates all the debugfs files what we missed during the early boot. So we're not missing anything in the end, it's just delayed. > Anyway, I'll go turn this into a real patch and get it into 5.12-rc1 so > that the irqdomain patch I sent you will not blow anything up. Feel > free to also queue it up in your tree if you want to as well. Thanks for that. M. -- Jazz is not dead. It just smells funny...