diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-10-27 13:54:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-01 14:36:51 -0400 |
commit | 161b61e6cc76c2050115039141027320a2f2e745 (patch) | |
tree | fdfdefb9bcb19c03e7d3f6cb315105dc473f88bb /drivers/gpu/nvgpu/gm206/pmu_gm206.c | |
parent | 9dce41e208818c0084c91685c8255942a2ca6e8d (diff) |
gpu: nvgpu: pmu HAL update
Update pmu HAL to check for pmu support.
pmu initialization will check for pmu support in
that platform.
JIRA GV11B-21
Change-Id: Ib55be58a1540862b7a91a6162544d10be85b5eb4
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1243911
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/pmu_gm206.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/pmu_gm206.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/pmu_gm206.c b/drivers/gpu/nvgpu/gm206/pmu_gm206.c index e0ae06ea..a87ecc1d 100644 --- a/drivers/gpu/nvgpu/gm206/pmu_gm206.c +++ b/drivers/gpu/nvgpu/gm206/pmu_gm206.c | |||
@@ -129,9 +129,15 @@ int gm206_load_falcon_ucode(struct gk20a *g, u32 falconidmask) | |||
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |
131 | 131 | ||
132 | static bool gm206_is_pmu_supported(struct gk20a *g) | ||
133 | { | ||
134 | return true; | ||
135 | } | ||
136 | |||
132 | 137 | ||
133 | void gm206_init_pmu_ops(struct gpu_ops *gops) | 138 | void gm206_init_pmu_ops(struct gpu_ops *gops) |
134 | { | 139 | { |
140 | gops->pmu.is_pmu_supported = gm206_is_pmu_supported; | ||
135 | if (gops->privsecurity) { | 141 | if (gops->privsecurity) { |
136 | gm206_init_secure_pmu(gops); | 142 | gm206_init_secure_pmu(gops); |
137 | gops->pmu.init_wpr_region = gm20b_pmu_init_acr; | 143 | gops->pmu.init_wpr_region = gm20b_pmu_init_acr; |