tegra: hwpm: update floorsweep info IOCTL

- Update tegra_soc_hwpm_ip enum to hold only IPs which can be
floorswept.
- Update floorsweep_info IOCTL to return floorsweepable component
details of tegra_soc_hwpm_ip IPs.

Bug 3573882

Change-Id: Ia62222ba8afdf60b25d0f3701bfd2be215bb6071
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2713363
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Vasuki Shankar <vasukis@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Vedashree Vidwans
2022-05-16 13:16:50 -07:00
committed by mobile promotions
parent dd86a4afb2
commit 6fa5d10ca0
41 changed files with 191 additions and 107 deletions

View File

@@ -223,6 +223,15 @@ struct hwpm_ip_inst {
*/
u32 hw_inst_mask;
/*
* An IP instance is a group of core elements of the IP
* Eg., channels in MSS, controllers in PCIe
* Performance tracking is counted by 0, 1 or more HWPM components
* (perfmux/perfmon) connected to each IP core element.
*
*/
u32 num_core_elements_per_inst;
/* Element details specific to this instance */
struct hwpm_ip_element_info element_info[TEGRA_HWPM_APERTURE_TYPE_MAX];