diff options
author | Vijayakumar <vsubbu@nvidia.com> | 2015-06-24 03:26:50 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-26 16:14:53 -0400 |
commit | 30d399de307befc4edc2b8ca66c36ad2440d34f1 (patch) | |
tree | 6e94200cc3f0c8d320de3c413ec471939990355c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 25b540e5c9b4febaa0aedc8cfe3b3fcf6cfd56b8 (diff) |
gpu: nvgpu: load secure gpccs using dma
bug 200080684
use new cmd defined in ucode for loading
GR falcons. flip PRIV load flag in lsb
header to indicate using dma. use pmu msg
as cmd completion for new cmd instead of
polling fecs mailbox. also move
check for using dma in non secure boot path
to hal.
Change-Id: I22582a705bd1ae0603f858e1fe200d72e6794a81
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/761625
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index d8e3586f..9a183e44 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -333,6 +333,7 @@ struct gpu_ops { | |||
333 | struct { | 333 | struct { |
334 | int (*get_netlist_name)(int index, char *name); | 334 | int (*get_netlist_name)(int index, char *name); |
335 | bool (*is_fw_defined)(void); | 335 | bool (*is_fw_defined)(void); |
336 | bool use_dma_for_fw_bootstrap; | ||
336 | } gr_ctx; | 337 | } gr_ctx; |
337 | struct { | 338 | struct { |
338 | bool (*support_sparse)(struct gk20a *g); | 339 | bool (*support_sparse)(struct gk20a *g); |
@@ -383,7 +384,9 @@ struct gpu_ops { | |||
383 | int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g); | 384 | int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g); |
384 | int (*pmu_setup_elpg)(struct gk20a *g); | 385 | int (*pmu_setup_elpg)(struct gk20a *g); |
385 | int (*init_wpr_region)(struct gk20a *g); | 386 | int (*init_wpr_region)(struct gk20a *g); |
387 | int (*load_lsfalcon_ucode)(struct gk20a *g, u32 falconidmask); | ||
386 | u32 lspmuwprinitdone; | 388 | u32 lspmuwprinitdone; |
389 | u32 lsfloadedfalconid; | ||
387 | bool fecsbootstrapdone; | 390 | bool fecsbootstrapdone; |
388 | } pmu; | 391 | } pmu; |
389 | struct { | 392 | struct { |