mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
tegra: soc_hwpm: update soc_hwpm_release logic
Update soc_hwpm IP release logic to invoke hwpm_ip_pm only for reserved perfmons. Bug 3333031 Bug 3333042 Change-Id: I78ab369b0803de4ca326603fd97b21ea157c2eae Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2614689 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
649b353b01
commit
aef209f1f5
@@ -1462,7 +1462,6 @@ static int tegra_soc_hwpm_release(struct inode *inode, struct file *filp)
|
|||||||
RELEASE_FAIL("Unable to disable PERFMON(0x%llx - 0x%llx)",
|
RELEASE_FAIL("Unable to disable PERFMON(0x%llx - 0x%llx)",
|
||||||
aperture->start_pa,
|
aperture->start_pa,
|
||||||
aperture->end_pa);
|
aperture->end_pa);
|
||||||
}
|
|
||||||
ip_ops = &hwpm->ip_info[aperture->dt_aperture];
|
ip_ops = &hwpm->ip_info[aperture->dt_aperture];
|
||||||
if (ip_ops && (*ip_ops->hwpm_ip_pm)) {
|
if (ip_ops && (*ip_ops->hwpm_ip_pm)) {
|
||||||
err = (*ip_ops->hwpm_ip_pm)
|
err = (*ip_ops->hwpm_ip_pm)
|
||||||
@@ -1479,6 +1478,7 @@ static int tegra_soc_hwpm_release(struct inode *inode, struct file *filp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Stream MEM_BYTES to clear pipeline */
|
/* Stream MEM_BYTES to clear pipeline */
|
||||||
if (hwpm->mem_bytes_kernel) {
|
if (hwpm->mem_bytes_kernel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user