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/gk20a | |
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/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index d411a2fa..2b3b74bc 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -417,6 +417,7 @@ struct gr_gk20a { | |||
417 | struct nvgpu_mutex cs_lock; | 417 | struct nvgpu_mutex cs_lock; |
418 | struct gk20a_cs_snapshot *cs_data; | 418 | struct gk20a_cs_snapshot *cs_data; |
419 | #endif | 419 | #endif |
420 | u32 max_css_buffer_size; | ||
420 | }; | 421 | }; |
421 | 422 | ||
422 | void gk20a_fecs_dump_falcon_stats(struct gk20a *g); | 423 | void gk20a_fecs_dump_falcon_stats(struct gk20a *g); |