firmware: tegra: Add support for in-band debug
authorJon Hunter <jonathanh@nvidia.com>
Sun, 12 Jul 2020 10:01:17 +0000 (11:01 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 14 Jul 2020 16:01:50 +0000 (18:01 +0200)
commit5e37b9c137ee5a3a9dc2815ca51f71746c2609a6
tree74f8f55cb91d97293da1d251d11b4cfef5f6e04d
parentcc8d0a4538a678b34fe04732ca3cedb5f40320ab
firmware: tegra: Add support for in-band debug

Add support for retrieving BPMP debug information via in-band messaging
as opposed to using shared-memory which older BPMP firmware used. Note
that it is possible to detect at runtime whether the BPMP firmware being
used supports the in-band messaging for retrieving the debug
informaation. Therefore, if the BPMP firmware supports the in-band
messaging for debug use this and otherwise fall-back to using shared
memory.

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