coresight: etm4x: add CPU hotplug support for probing
authorTamas Zsoldos <tamas.zsoldos@arm.com>
Tue, 5 Jul 2022 14:59:35 +0000 (16:59 +0200)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 31 Oct 2022 10:32:46 +0000 (10:32 +0000)
commit3c728e079d83f581a1f8b7755f6e26087b15c4fb
tree720137b9354f70a4fdfe91bec1bf1516b48194d6
parent30a0b95b1335e12efef89dd78518ed3e4a71a763
coresight: etm4x: add CPU hotplug support for probing

etm4x devices cannot be successfully probed when their CPU is offline.
For example, when booting with maxcpus=n, ETM probing will fail on
CPUs >n, and the probing won't be reattempted once the CPUs come
online. This will leave those CPUs unable to make use of ETM.

This change adds a mechanism to delay the probing if the corresponding
CPU is offline, and to try it again when the CPU comes online.

Signed-off-by: Tamas Zsoldos <tamas.zsoldos@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20220705145935.24679-1-tamas.zsoldos@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c