From 043ffd0c6a86e77e6043dae064e7c248463d0971 Mon Sep 17 00:00:00 2001 From: Vinod G Date: Sun, 16 Dec 2018 16:58:24 -0800 Subject: [PATCH] gpu: nvgpu: update gr hal for dgpu vdk gr hal load_ctxsw_ucode changed for dgpu vdk. This helps to avoid any pmu related code access. JIRA NVGPU-1564 Change-Id: I8026ab88c8a8efba6cb1ee45f9ad5371ee08b1af Signed-off-by: Vinod G Reviewed-on: https://git-master.nvidia.com/r/1974091 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/tu104/hal_tu104.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/nvgpu/tu104/hal_tu104.c b/drivers/gpu/nvgpu/tu104/hal_tu104.c index 48b729f27..e4618c33a 100644 --- a/drivers/gpu/nvgpu/tu104/hal_tu104.c +++ b/drivers/gpu/nvgpu/tu104/hal_tu104.c @@ -1206,6 +1206,8 @@ int tu104_init_hal(struct gk20a *g) /* Disable acr init */ gops->acr.acr_sw_init = NULL; + gops->gr.load_ctxsw_ucode = gr_gk20a_load_ctxsw_ucode; + /* Disable pmu pstate, as there is no pmu support */ __nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, false);