Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7154485pxb; Thu, 18 Feb 2021 02:58:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAteImkMjjqkaVpg3l8uXuJ4U6XIRZIJBWaJ+k/CcvD4XjitJhxEM2Wp3WNHc5nr3IMUfo X-Received: by 2002:a17:907:75e6:: with SMTP id jz6mr455293ejc.446.1613645904640; Thu, 18 Feb 2021 02:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613645904; cv=none; d=google.com; s=arc-20160816; b=KSuWN+hpcaa5DkrDEUpDGAlIrKuHYE49B+NG7p9BXkITCdasO0An2o16+H4qXNRfc3 onROXIztTTPTf8q3Lhx45eF/PSjI0lxVY+0PABD1vvvDdKDYy4pgQANy4UFsmbZHyTQr dge0rCRiI6joZfWSVjgcW/HIJP8Hrh+ukuc+Bm1wNvHUUz+mg/jWusLp/ta6wDXGzVhP tlvpJGbaM6CaHph9vJZTuR0SX5m38KeC9rH/gTFAGEs6el2/I+dxHW0oYI9UhXo+OI3M 77V0QlEPWPL0RMolWS6X+DYFPp6zJqj4Yl+fcVFHs/7YAAVhHVPDjALY1E6+U47Q1kD5 NUJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CDMtmmzr4w09T0ZedaEfizrH6YDM/CfTHe2WErO2EpA=; b=yXDltlzzP3gxdd5HlemR4mZwg1YEyb3x998c1VGKdhFDwofWnHKRXcLnEQ6ry6XmK0 OY0KdmWn29WO+s7mWOWyRkBloA7REjT3nk3VIEKALhL/D65R+5UTNmarF+J72DCGUvCQ N8WIsrs96HANl1cpVl7aI6wAN3Znt/8/GiKpgWwosGOhg77j+ZtZN2naxhr8J9+qr8yQ mVMx1lfGr9iQmLmcPpMujKt6MzZxqBe34FhP1mS5W9i+v/e6P0f8tISETshIolgf9uJ6 aua7vTEs00flDb3MEKcr5H1JXEANqYrgsZibjgZT/8ffGYgzMRAQIj8keZIVNw6CoVjj TZlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZvfqqPHX; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si3334898ejn.577.2021.02.18.02.58.00; Thu, 18 Feb 2021 02:58:24 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZvfqqPHX; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232383AbhBRKzR (ORCPT + 99 others); Thu, 18 Feb 2021 05:55:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:50126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbhBRJis (ORCPT ); Thu, 18 Feb 2021 04:38:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB0FA64E15; Thu, 18 Feb 2021 09:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613641084; bh=n9k7hg+19cLfjrZwHG3nCnKQnBVS0A9C53st/mPIP0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZvfqqPHXF4Kii3xoSRztyxs4GCnKVOqH7zb2TjZqA4T1E35eXlY4xIiLi9ld6yTe6 U3W77V5nKpARBeww2mTPB3EeUBm8Dzq9hj4Ygm+Hrd3IZJer3cwnq4Cr+k8Pg5V6h/ abVcG3FGtUtu/hsTLHCA3Ya5FeuPEH0znHAMrSEM= Date: Thu, 18 Feb 2021 10:38:01 +0100 From: Greg KH To: Marc Zyngier Cc: Michael Walle , linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH] irqdomain: remove debugfs_file from struct irq_domain Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eehdpx05.wl-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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, greg k-h