mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 09:12:05 +03:00
7a89f70da6314bda8a2bb3ee8e04f33319e210b0
- HWPM driver requires to know if an IP is available for performance measurements. The ideal way is for IP driver registration with HWPM driver. This way IP driver can share required power management and register access function pointers. - For IPs that do not have registration mechanism implemented, a workaround to set an IP enabled is implemented in the HWPM driver. - In the recent releases, MSS channel, PVA and DLA IPs are the only PORs for production builds. Currently, this is acheived using the combination of minimal build and force enable flags. - However, this implementation limits the number of enabled IPs on TOT to only minimal expected ones. - This patch modifies the force enable IP logic implementation to make force enable and minimal IP flag definition more clear. - CONFIG_T234_HWPM_ALLOW_FORCE_ENABLE should be used to purposely enable IPs that do not have registration mechanism implemented. This flag is used for POR or non-POR IPs. Ideally, all IPs should implement HWPM registration and force enable flag should not be required. - CONFIG_TEGRA_HWPM_MINIMAL_IP_ENABLE should be used to implement logic for POR IPs. In other words, if CONFIG_TEGRA_HWPM_MINIMAL_IP_ENABLE is not defined, non-POR IPs should be included in the builds. This patch sets MINIMAL IP config only for external non-safety builds. - Fix include t234_perfmon_device_index.h error in t234_mss_mcf.c file. - Add missing device index for PVA perfmon C0. Jira THWPM-41 Change-Id: I20651eac14b6d42e5bf3cc5164d1f64ec208dc04 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2818735 Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided