mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-25 02:34:23 +03:00
tegra: hwpm: update and add IOCTLs in UAPI header
- Add resource_info IOCTL to return status of HWPM resources. - Remove TEGRA_SOC_HWPM_RESOURCE_MSS_NVLINK which is duplicate of MSS_GPU_HUB. - Add logic for resource_info IOCTL in the driver code. - Ptimer and TSC timer have 1:1 relation. Hence timer relation IOCTLs are not required. Bug 3573882 Change-Id: I937c6c72636f0c786391a74785673060038d385e Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2707447 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: Seema Khowala <seemaj@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
fe7a4734a2
commit
dd86a4afb2
@@ -708,9 +708,10 @@ int tegra_hwpm_func_single_ip(struct tegra_soc_hwpm *hwpm,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (chip_ip->inst_fs_mask == 0U) {
|
||||
if (chip_ip->resource_status ==
|
||||
TEGRA_HWPM_RESOURCE_STATUS_INVALID) {
|
||||
/* No IP instance is available to reserve */
|
||||
return 0;
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
case TEGRA_HWPM_RELEASE_RESOURCES:
|
||||
|
||||
Reference in New Issue
Block a user