gpu: nvgpu: perf: Refactor Perf unit

-Renamed and moved nvgpu_pmu_perf struct from public
to unit specific
-Renamed all functions as per public/private format

NVGPU-5029

Change-Id: If3f479bb1443850a5c8a8714cd1c9da346cb566a
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2300609
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2020-02-21 15:28:47 +05:30
committed by Alex Waterman
parent 14f268563a
commit e424e4791a
18 changed files with 123 additions and 104 deletions

View File

@@ -25,6 +25,11 @@
#ifndef PMU_PERF_H_
#define PMU_PERF_H_
#include "vfe_equ.h"
#include "vfe_var.h"
#include "change_seq.h"
#include "pstate.h"
/* PERF RPC ID Definitions */
#define NV_PMU_RPC_ID_PERF_VFE_CALLBACK 0x01U
#define NV_PMU_RPC_ID_PERF_SEQ_COMPLETION 0x02U
@@ -52,6 +57,18 @@ struct pmu_nvgpu_rpc_perf_event {
struct pmu_nvgpu_rpc_header rpc_hdr;
};
int nvgpu_get_pstate_entry_idx(struct gk20a *g, u32 num);
struct perf_vfe_invalidate {
bool state_change;
struct nvgpu_cond wq;
struct nvgpu_thread state_task;
};
struct nvgpu_pmu_perf {
struct vfe_vars vfe_varobjs;
struct vfe_equs vfe_equobjs;
struct pstates pstatesobjs;
struct perf_vfe_invalidate vfe_init;
struct change_seq_pmu changeseq_pmu;
};
#endif /* PMU_PERF_H_ */