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/gm20b/acr_gm20b.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/gm20b') diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index 310a3bc8..f9e2d477 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c @@ -94,8 +94,14 @@ static void gm20b_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf) inf->size = mem_inf.size; } +static bool gm20b_is_pmu_supported(struct gk20a *g) +{ + return true; +} + void gm20b_init_secure_pmu(struct gpu_ops *gops) { + gops->pmu.is_pmu_supported = gm20b_is_pmu_supported; gops->pmu.prepare_ucode = prepare_ucode_blob; gops->pmu.pmu_setup_hw_and_bootstrap = gm20b_bootstrap_hs_flcn; gops->pmu.is_lazy_bootstrap = gm20b_is_lazy_bootstrap; -- cgit v1.2.2