diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-08-30 05:33:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-31 04:55:06 -0400 |
commit | c094ea161785a8c00bb2dc8c55e1a2bb8ffbcfc7 (patch) | |
tree | c5c257b2de9391a79a2cb32eda65c1d18dfa4d2a /drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | |
parent | 1ac8f6477df7bd1e1b1c5922b1916ae6450c07ad (diff) |
gpu: nvgpu: gv11b: Secure boot support.
This patch adds Secure boot support for T194.
JIRA GPUT19X-5
Change-Id: If78e5e0ecfa58bcac132716c7f2c155f21899027
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1514558
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/pmu_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c index 2b89fbcc..41c6199e 100644 --- a/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/pmu_gv11b.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "gp106/pmu_gp106.h" | 28 | #include "gp106/pmu_gp106.h" |
29 | 29 | ||
30 | #include "pmu_gv11b.h" | 30 | #include "pmu_gv11b.h" |
31 | #include "acr_gv11b.h" | ||
31 | 32 | ||
32 | #include <nvgpu/hw/gv11b/hw_pwr_gv11b.h> | 33 | #include <nvgpu/hw/gv11b/hw_pwr_gv11b.h> |
33 | 34 | ||
@@ -41,6 +42,42 @@ bool gv11b_is_pmu_supported(struct gk20a *g) | |||
41 | return true; | 42 | return true; |
42 | } | 43 | } |
43 | 44 | ||
45 | bool gv11b_is_lazy_bootstrap(u32 falcon_id) | ||
46 | { | ||
47 | bool enable_status = false; | ||
48 | |||
49 | switch (falcon_id) { | ||
50 | case LSF_FALCON_ID_FECS: | ||
51 | enable_status = true; | ||
52 | break; | ||
53 | case LSF_FALCON_ID_GPCCS: | ||
54 | enable_status = true; | ||
55 | break; | ||
56 | default: | ||
57 | break; | ||
58 | } | ||
59 | |||
60 | return enable_status; | ||
61 | } | ||
62 | |||
63 | bool gv11b_is_priv_load(u32 falcon_id) | ||
64 | { | ||
65 | bool enable_status = false; | ||
66 | |||
67 | switch (falcon_id) { | ||
68 | case LSF_FALCON_ID_FECS: | ||
69 | enable_status = true; | ||
70 | break; | ||
71 | case LSF_FALCON_ID_GPCCS: | ||
72 | enable_status = true; | ||
73 | break; | ||
74 | default: | ||
75 | break; | ||
76 | } | ||
77 | |||
78 | return enable_status; | ||
79 | } | ||
80 | |||
44 | int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu) | 81 | int gv11b_pmu_bootstrap(struct nvgpu_pmu *pmu) |
45 | { | 82 | { |
46 | struct gk20a *g = gk20a_from_pmu(pmu); | 83 | struct gk20a *g = gk20a_from_pmu(pmu); |