summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-07 13:41:09 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-12 14:34:03 -0500
commit4c451b06bd0b771da2ff4612626a81adea0e3be2 (patch)
treedadc4da74b1e1664a717af0951baff5462a74424 /drivers/gpu/nvgpu/gm20b/gr_gm20b.c
parent01c98eb68055f0b18d4f5b9dc4aa78601a00bc1e (diff)
gpu: nvgpu: Move max_css_buffer_size to gr_gk20a
max_css_buffer_size was accessed directly from GPU characteristics, which added a dependency to Linux. Move the field to gr_gk20a and copy it to GPU characteristics at query time. JIRA NVGPU-259 Change-Id: Ied19e33bf1a79a9ce45e33df57fe5bbe3a3c4f9d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593689 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index 61f608f4..4c49f734 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -1126,7 +1126,7 @@ void gr_gm20b_init_cyclestats(struct gk20a *g)
1126#if defined(CONFIG_GK20A_CYCLE_STATS) 1126#if defined(CONFIG_GK20A_CYCLE_STATS)
1127 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, true); 1127 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, true);
1128 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT, true); 1128 __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT, true);
1129 g->gpu_characteristics.max_css_buffer_size = 0xffffffff; 1129 g->gr.max_css_buffer_size = 0xffffffff;
1130#else 1130#else
1131 (void)g; 1131 (void)g;
1132#endif 1132#endif