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/common | |
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/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index b103fcea..59691c64 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -246,6 +246,10 @@ int gk20a_pm_finalize_poweron(struct device *dev) | |||
246 | INIT_WORK(&l->nonstall_fn_work, nvgpu_intr_nonstall_cb); | 246 | INIT_WORK(&l->nonstall_fn_work, nvgpu_intr_nonstall_cb); |
247 | } | 247 | } |
248 | 248 | ||
249 | err = gk20a_detect_chip(g); | ||
250 | if (err) | ||
251 | return err; | ||
252 | |||
249 | err = gk20a_finalize_poweron(g); | 253 | err = gk20a_finalize_poweron(g); |
250 | set_user_nice(current, nice_value); | 254 | set_user_nice(current, nice_value); |
251 | if (err) | 255 | if (err) |