]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: tegra: bpmp: Add support for multi-socket platforms
authorJon Hunter <jonathanh@nvidia.com>
Fri, 29 May 2026 17:33:37 +0000 (18:33 +0100)
committerThierry Reding <treding@nvidia.com>
Sun, 31 May 2026 05:25:25 +0000 (07:25 +0200)
commit040eeafee0146b9d046caef501f387e107a59960
tree7b09aec285a16d5cc6974fbf275aa66e455a1f81
parent7ba53a3d1c4dae0124b2c141ae551ab9d9d7f1f9
firmware: tegra: bpmp: Add support for multi-socket platforms

On multi-socket platforms each socket has its own BPMP that is
registered with the kernel, so the existing single fixed "bpmp"
debugfs directory name cannot accommodate more than one instance.

Group the per-socket BPMP debugfs entries under a shared top-level
/sys/kernel/debug/bpmp/ directory, with each socket's BPMP device
under a "<numa-node-id>-bpmp" subdirectory:

  /sys/kernel/debug/bpmp/0-bpmp/...
  /sys/kernel/debug/bpmp/1-bpmp/...

For a multi-socket platform, the root debugfs bpmp/ directory is created
by the first BPMP device that is populated. For single-socket platforms,
the existing directory structure is preserved.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/tegra/bpmp-debugfs.c