[PATCH V4 3/4] pmdomain: core: Fix debugfs node creation failure
Johan Hovold
johan at kernel.org
Fri Oct 25 06:53:11 PDT 2024
On Wed, Oct 23, 2024 at 03:51:47PM +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 failure by ensuring that pm domains
> get a unique name using ida in pm_genpd_init.
>
> Logs: [X1E reports 'NCC' for all its scmi perf domains]
> debugfs: Directory 'NCC' with parent 'pm_genpd' already present!
> debugfs: Directory 'NCC' with parent 'pm_genpd' already present!
>
> Reported-by: Johan Hovold <johan+linaro at kernel.org>
> Closes: https://lore.kernel.org/lkml/ZoQjAWse2YxwyRJv@hovoldconsulting.com/
> Fixes: 718072ceb211 ("PM: domains: create debugfs nodes when adding power domains")
> Suggested-by: Ulf Hansson <ulf.hansson at linaro.org>
> Signed-off-by: Sibi Sankar <quic_sibis at quicinc.com>
> ---
>
> v3:
> * Update device names only when a name collision occurs [Dmitry/Ulf]
> * Drop Johan's T-b from "fix debugfs node creation failure"
Also seems to do the trick:
Tested-by: Johan Hovold <johan+linaro at kernel.org>
But perhaps you could consider starting enumerating the duplicate
domains from 2 (or 1) instead of 0?:
NCC_1 on 0
NCC_0 on 0
NCC on 0
Johan
More information about the linux-arm-kernel
mailing list