diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-05-04 06:22:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-18 12:28:36 -0400 |
commit | 6266a1210d9fa36916e7469a0107b73a076b43a1 (patch) | |
tree | 2b43d34febd670df381f1c0460dd01ad250b33f5 /drivers/gpu/nvgpu/gv100 | |
parent | 85d7b3c5cc2e081c8bc81f43cef08738a254fc32 (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1708382
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/hal_gv100.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c index 4a710689..595dbdaf 100644 --- a/drivers/gpu/nvgpu/gv100/hal_gv100.c +++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c | |||
@@ -263,6 +263,9 @@ static const struct gpu_ops gv100_ops = { | |||
263 | .init = gp106_bios_init, | 263 | .init = gp106_bios_init, |
264 | .preos_wait_for_halt = gv100_bios_preos_wait_for_halt, | 264 | .preos_wait_for_halt = gv100_bios_preos_wait_for_halt, |
265 | .preos_reload_check = gv100_bios_preos_reload_check, | 265 | .preos_reload_check = gv100_bios_preos_reload_check, |
266 | .devinit = gp106_bios_devinit, | ||
267 | .preos = gp106_bios_preos, | ||
268 | .verify_devinit = NULL, | ||
266 | }, | 269 | }, |
267 | .ltc = { | 270 | .ltc = { |
268 | .determine_L2_size_bytes = gp10b_determine_L2_size_bytes, | 271 | .determine_L2_size_bytes = gp10b_determine_L2_size_bytes, |