diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-07 13:41:09 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-12 14:34:03 -0500 |
commit | 4c451b06bd0b771da2ff4612626a81adea0e3be2 (patch) | |
tree | dadc4da74b1e1664a717af0951baff5462a74424 /drivers/gpu/nvgpu/vgpu | |
parent | 01c98eb68055f0b18d4f5b9dc4aa78601a00bc1e (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/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c index fca6525a..0e440241 100644 --- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c +++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_gr_gm20b.c | |||
@@ -35,11 +35,10 @@ void vgpu_gr_gm20b_init_cyclestats(struct gk20a *g) | |||
35 | /* cyclestats not supported on vgpu */ | 35 | /* cyclestats not supported on vgpu */ |
36 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, false); | 36 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, false); |
37 | 37 | ||
38 | g->gpu_characteristics.max_css_buffer_size = | 38 | g->gr.max_css_buffer_size = vgpu_css_get_buffer_size(g); |
39 | vgpu_css_get_buffer_size(g); | ||
40 | 39 | ||
41 | /* snapshots not supported if the buffer size is 0 */ | 40 | /* snapshots not supported if the buffer size is 0 */ |
42 | if (g->gpu_characteristics.max_css_buffer_size == 0) | 41 | if (g->gr.max_css_buffer_size == 0) |
43 | snapshots_supported = false; | 42 | snapshots_supported = false; |
44 | 43 | ||
45 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT, | 44 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS_SNAPSHOT, |