mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
tegra: hwpm: add checks for PMA quiesce state
- Zeroing of PMA trigger registers is unnecessary. Remove corresponding logic from HWPM teardown function. - During device open, add a check for PMA/RTR status. This will ensure that PMA/RTR are ready to start new profiling session. Device open will fail if RTR and PMA enginestatus is not ready(idle). - SOC HWPM driver disables and releases all reserved IPs before teardown steps. Update teardown logic to zero out IP allowlist registers during teardown. Jira THWPM-41 Bug 3714516 Change-Id: Iede5a5ed9860e2a73c8e4a04aeedfc061458c793 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2776229 Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2797444
This commit is contained in:
committed by
mobile promotions
parent
7c1ae11f78
commit
913f1b0697
@@ -162,12 +162,13 @@ enum tegra_hwpm_element_type {
|
||||
enum tegra_hwpm_funcs {
|
||||
TEGRA_HWPM_INIT_IP_STRUCTURES,
|
||||
TEGRA_HWPM_MATCH_BASE_ADDRESS,
|
||||
TEGRA_HWPM_FIND_GIVEN_ADDRESS,
|
||||
TEGRA_HWPM_UPDATE_IP_INST_MASK,
|
||||
TEGRA_HWPM_GET_ALIST_SIZE,
|
||||
TEGRA_HWPM_COMBINE_ALIST,
|
||||
TEGRA_HWPM_RESERVE_GIVEN_RESOURCE,
|
||||
TEGRA_HWPM_BIND_RESOURCES,
|
||||
TEGRA_HWPM_FIND_GIVEN_ADDRESS,
|
||||
TEGRA_HWPM_UNBIND_RESOURCES,
|
||||
TEGRA_HWPM_RELEASE_RESOURCES,
|
||||
TEGRA_HWPM_RELEASE_ROUTER,
|
||||
TEGRA_HWPM_RELEASE_IP_STRUCTURES
|
||||
@@ -396,6 +397,7 @@ struct tegra_soc_hwpm_chip {
|
||||
int (*reserve_rtr)(struct tegra_soc_hwpm *hwpm);
|
||||
int (*release_rtr)(struct tegra_soc_hwpm *hwpm);
|
||||
|
||||
int (*check_status)(struct tegra_soc_hwpm *hwpm);
|
||||
int (*disable_triggers)(struct tegra_soc_hwpm *hwpm);
|
||||
int (*perfmon_enable)(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *perfmon);
|
||||
|
||||
Reference in New Issue
Block a user