mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Use sw ops for PMU PG unit
Some functions are not accessing hardware directly but are being called using HAL ops: For example g->ops.pmu.pmu_elpg_statistics, g->ops.pmu.pmu_pg_init_param, g->ops.pmu.pmu_pg_supported_engines_list, g->ops.pmu.pmu_pg_engines_feature_list, g->ops.pmu.pmu_is_lpwr_feature_supported, g->ops.pmu.pmu_lpwr_enable_pg, g->ops.pmu.pmu_lpwr_disable_pg, g->ops.pmu.pmu_pg_param_post_init, g->ops.pmu.save_zbc Change the function access by using sw ops, like: Create new functions: int nvgpu_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, struct pmu_pg_stats_data *pg_stat_data); void nvgpu_pmu_save_zbc(struct gk20a *g, u32 entries); bool nvgpu_pmu_is_lpwr_feature_supported(struct gk20a *g, u32 feature_id); JIRA NVGPU-3209 Change-Id: I6db9b43c7c4a5054720a72487302b740b091044d Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2110963 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8e86bcfdfe
commit
5ec94e4a98
@@ -635,14 +635,9 @@ static const struct gpu_ops vgpu_gp10b_ops = {
|
||||
.pmu_dump_falcon_stats = NULL,
|
||||
.pmu_enable_irq = NULL,
|
||||
.write_dmatrfbase = NULL,
|
||||
.pmu_elpg_statistics = NULL,
|
||||
.pmu_pg_init_param = NULL,
|
||||
.pmu_pg_supported_engines_list = NULL,
|
||||
.pmu_pg_engines_feature_list = NULL,
|
||||
.dump_secure_fuses = NULL,
|
||||
.reset_engine = NULL,
|
||||
.is_engine_in_reset = NULL,
|
||||
.save_zbc = NULL,
|
||||
},
|
||||
.clk_arb = {
|
||||
.check_clk_arb_support = gp10b_check_clk_arb_support,
|
||||
|
||||
@@ -723,17 +723,11 @@ static const struct gpu_ops vgpu_gv11b_ops = {
|
||||
.pmu_dump_falcon_stats = NULL,
|
||||
.pmu_enable_irq = NULL,
|
||||
.write_dmatrfbase = NULL,
|
||||
.pmu_elpg_statistics = NULL,
|
||||
.pmu_pg_init_param = NULL,
|
||||
.pmu_pg_supported_engines_list = NULL,
|
||||
.pmu_pg_engines_feature_list = NULL,
|
||||
.dump_secure_fuses = NULL,
|
||||
.reset_engine = NULL,
|
||||
.is_engine_in_reset = NULL,
|
||||
.pmu_ns_bootstrap = NULL,
|
||||
.pmu_pg_set_sub_feature_mask = NULL,
|
||||
.is_pmu_supported = NULL,
|
||||
.save_zbc = NULL,
|
||||
},
|
||||
.clk_arb = {
|
||||
.check_clk_arb_support = gp10b_check_clk_arb_support,
|
||||
|
||||
Reference in New Issue
Block a user