coresight: etm4x: Match all ETM4 instances based on DEVARCH and DEVTYPE
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 5 Jun 2023 13:30:30 +0000 (14:30 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 7 Jun 2023 11:07:10 +0000 (12:07 +0100)
commitab5ca6268afcc470e7c9b2d66b0eb9f178755260
tree937591f49a04b6bb8215ef2ea5961d5be7691961
parentc5f231f1a7e18d28e02b282d33541d31358360e4
coresight: etm4x: Match all ETM4 instances based on DEVARCH and DEVTYPE

Instead of adding the PIDs forever to the list for the new CPUs, let us detect
a component to be ETMv4 based on the CoreSight CID, DEVTYPE=PE_TRACE and
DEVARCH=ETMv4. This is already done for some of the ETMs. We can extend the PID
matching to match the PIDR2:JEDEC, BIT[3], which must be 1 (RAO) always.

Link: https://lkml.kernel.org/r/20230317030501.1811905-1-anshuman.khandual@arm.com
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: frowand.list@gmail.com
Cc: linux@armlinux.org.uk
Cc: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
[ Fixed typo in the description RA0 => RAO ]
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230605133031.1827626-1-suzuki.poulose@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c
drivers/hwtracing/coresight/coresight-priv.h