From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E62FB1D696; Thu, 4 Jul 2024 10:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720089158; cv=none; b=bLPdJZOUDavtpVaK/VuuTfKc2dMavJohZ7ApQbjWvbf5q0Y1mA3omQioKmk28rJBYMq9bvyuUdbUyga/xAY0eHz9k7OkXNara5xne75e+rnRZF8KVjzuxZ1r3F6bOR04sb96jNj7B7mrJREV+wHaClrcVH1dvzRh619j/k13l/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720089158; c=relaxed/simple; bh=0PZh3q+a7ToijpDQIW9OsIT8qGi+U0E5R5MjBL/wbWQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IbDLrqYSLSwbDRIv/C5/uj+Z8JPZcECk5gIVdn2Jvym65orrFupqZwFB23FIhaF+0eKNxHI8xjRicpjB41ajsvaHEc9AphqHYPdOS/5UEyuuiQQ8M3WblRe8UgERzCHfXtuyOYqXVMNdVCbvVSjb/AEyGdhIlDP++ktUntiUsJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E801367; Thu, 4 Jul 2024 03:33:00 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A1A53F762; Thu, 4 Jul 2024 03:32:33 -0700 (PDT) Date: Thu, 4 Jul 2024 11:32:30 +0100 From: Sudeep Holla To: Sibi Sankar Cc: , , , , , , , , , Sudeep Holla , Subject: Re: [PATCH] pmdomain: arm: Fix debugfs node creation failure Message-ID: References: <20240703110741.2668800-1-quic_sibis@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240703110741.2668800-1-quic_sibis@quicinc.com> On Wed, Jul 03, 2024 at 04:37:41PM +0530, Sibi Sankar wrote: > The domain attributes returned by the perf protocol can end up > reporting identical names across domains, resulting in debugfs > node creation failure. Fix this duplication by appending the > domain-id to the domain name. > > Logs: > debugfs: Directory 'NCC' with parent 'pm_genpd' already present! > debugfs: Directory 'NCC' with parent 'pm_genpd' already present! > If there are 2 perf domains for a device or group of devices, there must be something unique about each of these domains. Why can't the firmware specify the uniqueness or the difference via the name? The example above seems firmware is being just lazy to update it. Also for the user/developer/debugger, the unique name might be more useful than just this number. So please use the name(we must now have extended name if 16bytes are less) to provide unique names. Please stop working around such silly firmware bugs like this, it just makes using debugfs for anything useful harder. -- Regards, Sudeep