From 161b61e6cc76c2050115039141027320a2f2e745 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Thu, 27 Oct 2016 10:54:18 -0700 Subject: 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 Reviewed-on: http://git-master/r/1243911 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm206/pmu_gm206.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/gm206') 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) return 0; } +static bool gm206_is_pmu_supported(struct gk20a *g) +{ + return true; +} + void gm206_init_pmu_ops(struct gpu_ops *gops) { + gops->pmu.is_pmu_supported = gm206_is_pmu_supported; if (gops->privsecurity) { gm206_init_secure_pmu(gops); gops->pmu.init_wpr_region = gm20b_pmu_init_acr; -- cgit v1.2.2