diff options
author | Aparna Das <aparnad@nvidia.com> | 2018-02-13 10:52:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-06 17:51:54 -0500 |
commit | 395c5538136049dcbc52ab218c3b5f764e7d0199 (patch) | |
tree | 9194138fff98e3c11b25a99e13f5511dcfb4f492 /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | 70bf8275efab7e155e9b3f9853a4cf7f38228c43 (diff) |
gpu: nvgpu: move chip detect in os specific probe code
This allows moving HAL overrides for vserver out of common
chip specific HAL files into os specific probe code.
Jira VQRM-3070
Change-Id: Icc61aacc03ac7db7a0ea1f6a2dd2b76185c74757
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1656752
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Tested-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index c2daf27e..0206c915 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -68,7 +68,7 @@ void __gk20a_warn_on_no_regs(void) | |||
68 | WARN_ONCE(1, "Attempted access to GPU regs after unmapping!"); | 68 | WARN_ONCE(1, "Attempted access to GPU regs after unmapping!"); |
69 | } | 69 | } |
70 | 70 | ||
71 | static int gk20a_detect_chip(struct gk20a *g) | 71 | int gk20a_detect_chip(struct gk20a *g) |
72 | { | 72 | { |
73 | struct nvgpu_gpu_params *p = &g->params; | 73 | struct nvgpu_gpu_params *p = &g->params; |
74 | 74 | ||
@@ -131,10 +131,6 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
131 | 131 | ||
132 | g->power_on = true; | 132 | g->power_on = true; |
133 | 133 | ||
134 | err = gk20a_detect_chip(g); | ||
135 | if (err) | ||
136 | goto done; | ||
137 | |||
138 | /* | 134 | /* |
139 | * Before probing the GPU make sure the GPU's state is cleared. This is | 135 | * Before probing the GPU make sure the GPU's state is cleared. This is |
140 | * relevant for rebind operations. | 136 | * relevant for rebind operations. |