Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7133160pxb; Thu, 18 Feb 2021 02:14:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzopCb/4CabLiq/WQ9HGCqRaehkAdrdNBAgY8Svb2Js1sXuzzoM+r7izx3RKcSaPcPVoFg3 X-Received: by 2002:a17:907:2710:: with SMTP id w16mr1518317ejk.33.1613643261866; Thu, 18 Feb 2021 02:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613643261; cv=none; d=google.com; s=arc-20160816; b=w9Zh9RVa56p6O298Aca/ZF11gBeV2dCIXKc20tOqgrejXbWaYkvFVBSD0AokW/BbdJ 0pKsOHUyAb/W6jl/E/edugLWVye+SUQtY403gt7QAPHB2i2Uk3l1zcoXVz0ivTrhQIiZ Q5UETsUnoQvvtvehlphiwe6S24mHyK8i8t1c9Lq70Kd59uSZlONIiAakzSh5LbJjVpNg zKad7wA5OaLdBnAaSodsSI98Q2HXRcL2KcZehcgjeiQFi83+Swm3r3Udyknt6CYBwEAy itqwV+54RqM2Tg4J5EFexHkzLYd9ExkdTHbfcWp7JqlCfUZchhQqWDQIJpOF6zOCGmuV 5Lgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=S+56cQcPo+XmoqlZeJhwXJ008KF7Vxt9tY3aHta2xkU=; b=DbLmyz3zkLJGCW6nDeUcGMyn7qhfGI8u6WwZIiPGk58JGv58+pz2IpeH+hXMBeWQS8 /xdio6P/N4TSdFXv7hLthhbESS/6eUEQ/IP57XnpPtr7yQfE+WdeFh9erK/VUBoYwi6S cvl2+APJVPjKL7TdRz3vzlbukz5w5Lc3C+N7u851zzrybwcU76vwi1aRiuJJczxLa770 Z250D19KBpyvgF+1GBV6uncvwLL7WUsap5dzFHY8AadSGOHPyZlwEpDqnnsivTZAfaKU cyEvnHx8P44U6AAzEDFSpAHHe9VJqkUIAnsFlRijD+RYCawmVnCQcvm0Rd3CIf/aXixS L0Xg== 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 la19si3200519ejc.445.2021.02.18.02.13.52; Thu, 18 Feb 2021 02:14:21 -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 S232632AbhBRKLJ (ORCPT + 99 others); Thu, 18 Feb 2021 05:11:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:47850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbhBRJF3 (ORCPT ); Thu, 18 Feb 2021 04:05:29 -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 5D0D66146D; Thu, 18 Feb 2021 09:04:45 +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) (envelope-from ) id 1lCfEp-00EjT3-Fz; Thu, 18 Feb 2021 09:04:43 +0000 Date: Thu, 18 Feb 2021 09:04:42 +0000 Message-ID: <87eehdpx05.wl-maz@kernel.org> 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> 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=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 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 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. M. -- Without deviation from the norm, progress is not possible.