From 6266a1210d9fa36916e7469a0107b73a076b43a1 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 4 May 2018 03:22:50 -0700 Subject: gpu: nvgpu: add HALs for devinit and preos bios operations Add below new HALs for bios operations gops.bios.devinit() gops.bios.preos() gops.bios.verify_devinit() Export existing APIs gp106_bios_devinit() and gp106_bios_preos() and set them to above HALs on gp106 and gv100 And call new HALs from gp106_bios_init() if supported instead of directly calling APIs Jira NVGPUT-48 Change-Id: Ic89f1c86cf6e3e0785b3663fe733b201d6f2f773 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1708382 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 45fa58f1..076bf89f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -1124,6 +1124,9 @@ struct gpu_ops { int (*init)(struct gk20a *g); int (*preos_wait_for_halt)(struct gk20a *g); void (*preos_reload_check)(struct gk20a *g); + int (*devinit)(struct gk20a *g); + int (*preos)(struct gk20a *g); + int (*verify_devinit)(struct gk20a *g); } bios; #if defined(CONFIG_GK20A_CYCLE_STATS) -- cgit v1.2.2