diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-04-17 20:26:34 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-25 12:36:42 -0400 |
commit | 98dce7eaac374ccd5c4d7cf6d76decc4e9cd3896 (patch) | |
tree | cbf7869961ed89cccfebf4c94a233bf4bf41ba10 /drivers/gpu/nvgpu/include | |
parent | 687b1059f078daf41024b223065107bc16822e71 (diff) |
gpu: nvgpu: move mss nvlink credit init to os specific code
The code uses ioremap, readl_relaxed/writel_relaxed, which only exists
on linux. So move them to linux folder.
Also fix build errors on qnx.
Jira VQRM-2344
Change-Id: Ide1176d0bf954a804187aa842a6bbfdecbdb0286
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1698973
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
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/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h index 0ef8a2f5..dfa3be3f 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h | |||
@@ -211,4 +211,7 @@ struct nvgpu_nvlink_dev { | |||
211 | int nvgpu_nvlink_enumerate(struct gk20a *g); | 211 | int nvgpu_nvlink_enumerate(struct gk20a *g); |
212 | int nvgpu_nvlink_train(struct gk20a *g, u32 link_id, bool from_off); | 212 | int nvgpu_nvlink_train(struct gk20a *g, u32 link_id, bool from_off); |
213 | int nvgpu_nvlink_probe(struct gk20a *g); | 213 | int nvgpu_nvlink_probe(struct gk20a *g); |
214 | |||
215 | void nvgpu_mss_nvlink_init_credits(struct gk20a *g); | ||
216 | |||
214 | #endif | 217 | #endif |