mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
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:
committed by
mobile promotions
parent
dd86a4afb2
commit
6fa5d10ca0
@@ -145,30 +145,3 @@ void tegra_soc_hwpm_ip_unregister(struct tegra_soc_hwpm_ip_ops *hwpm_ip_ops)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int tegra_hwpm_get_floorsweep_info(struct tegra_soc_hwpm *hwpm,
|
||||
struct tegra_soc_hwpm_ip_floorsweep_info *fs_info)
|
||||
{
|
||||
int ret = 0;
|
||||
u32 i = 0U;
|
||||
|
||||
tegra_hwpm_fn(hwpm, " ");
|
||||
|
||||
for (i = 0U; i < fs_info->num_queries; i++) {
|
||||
ret = hwpm->active_chip->get_fs_info(
|
||||
hwpm, (u32)fs_info->ip_fsinfo[i].ip_type,
|
||||
&fs_info->ip_fsinfo[i].ip_inst_mask,
|
||||
&fs_info->ip_fsinfo[i].status);
|
||||
if (ret < 0) {
|
||||
/* Print error for debug purpose. */
|
||||
tegra_hwpm_err(hwpm, "Failed to get fs_info");
|
||||
}
|
||||
|
||||
tegra_hwpm_dbg(hwpm, hwpm_verbose,
|
||||
"Query %d: ip_type %d: ip_status: %d inst_mask 0x%llx",
|
||||
i, fs_info->ip_fsinfo[i].ip_type,
|
||||
fs_info->ip_fsinfo[i].status,
|
||||
fs_info->ip_fsinfo[i].ip_inst_mask);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user