diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-02-26 20:58:14 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-06 17:52:30 -0500 |
commit | d6b5d74c5ede5fb620b056286f9f615566f84b29 (patch) | |
tree | ed98310272f5626aede13f73904a2478a2f05a42 /drivers/gpu/nvgpu/gv11b | |
parent | 98d91dd2609faadfa4aa9aafad5e295c924ae08f (diff) |
gpu: nvgpu: make gr functions that are used by vsrv global
Fixed vsrv link errors for gr unification.
Jira VQRM-2982
Change-Id: Icd46792191f1a9aaefbf86d2f3c0b4d5bce2384e
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1664706
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 808cf19f..e697b491 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -131,7 +131,7 @@ bool gr_gv11b_is_valid_compute_class(struct gk20a *g, u32 class_num) | |||
131 | return valid; | 131 | return valid; |
132 | } | 132 | } |
133 | 133 | ||
134 | static u32 gv11b_gr_sm_offset(struct gk20a *g, u32 sm) | 134 | u32 gv11b_gr_sm_offset(struct gk20a *g, u32 sm) |
135 | { | 135 | { |
136 | 136 | ||
137 | u32 sm_pri_stride = nvgpu_get_litter_value(g, GPU_LIT_SM_PRI_STRIDE); | 137 | u32 sm_pri_stride = nvgpu_get_litter_value(g, GPU_LIT_SM_PRI_STRIDE); |
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index 0f42e795..4615ff55 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -231,5 +231,6 @@ void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g, | |||
231 | struct channel_gk20a *ch_ctx, | 231 | struct channel_gk20a *ch_ctx, |
232 | struct nvgpu_mem *mem); | 232 | struct nvgpu_mem *mem); |
233 | int gr_gv11b_handle_ssync_hww(struct gk20a *g); | 233 | int gr_gv11b_handle_ssync_hww(struct gk20a *g); |
234 | u32 gv11b_gr_sm_offset(struct gk20a *g, u32 sm); | ||
234 | 235 | ||
235 | #endif | 236 | #endif |