misc: tegra-profiler: fix pmu init failure
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Mon, 5 Dec 2016 10:18:07 +0000 (14:18 +0400)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:19:54 +0000 (17:19 +0300)
commit8d534e51b15f2e5454f569174d1555b80c50bb34
tree1a1fac36478cc261c205f41f06b83f36730e5e50
parent19bfacd4bc7c885b9c3e87794b4d565d7d537474
misc: tegra-profiler: fix pmu init failure

On some linux-linux systems, midr register can be zeroed for
cores which are not really present in VM and this leads to PMU
initialization failure.
Process such cores correctly.
Do not show them in capabilities.

Bug 1848139

Change-Id: Id434a8e2cf4a323d49bdffe9ac06d837b05474ed
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1270083
(cherry picked from commit 13569332e89040fe6a5ad05587ab52005055f4e6)
Reviewed-on: http://git-master/r/1274708
(cherry picked from commit 0889663b7fd527c06c37d0b25157eefce8b260b2)
drivers/misc/tegra-profiler/armv7_pmu.c
drivers/misc/tegra-profiler/armv8_pmu.c
drivers/misc/tegra-profiler/comm.c
drivers/misc/tegra-profiler/comm.h
drivers/misc/tegra-profiler/main.c
drivers/misc/tegra-profiler/quadd.h
drivers/misc/tegra-profiler/quadd_proc.c