diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-07-06 01:47:20 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:19:16 -0400 |
commit | a9ce91f910ca730a3abadb9e7491e3504af30d86 (patch) | |
tree | d79e70c782672e6d6281db57a1053e515ee7914a /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 017a9f57756f120cb492fc6c66d8588a2c1626d8 (diff) |
gpu: nvgpu: add syncpoint read map
For sync-point read map:
1. Added nvgpu_mem memory allocator in gk20a struct and
allocated memory for this in gk20a_finalize_poweron()
and freed this memory in gk20a_remove().
2. Added "u64 syncpt_ro_map_gpu_va" in vm_gk20a struct
for read map in vm.
Added nvgpu_quiesce() in nvgpu_remove() before freeing
syncpoint read map to ensure that nvgpu is idle.
JIRA GPUT19X-2
Change-Id: I7cbfec57f0992682dd833a1b0d92d694bcaf1eb3
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1514338
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 72e47ec6..a45a7b4e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1293,6 +1293,7 @@ struct gk20a { | |||
1293 | size_t syncpt_unit_size; | 1293 | size_t syncpt_unit_size; |
1294 | u32 syncpt_size; | 1294 | u32 syncpt_size; |
1295 | #endif | 1295 | #endif |
1296 | struct nvgpu_mem syncpt_mem; | ||
1296 | }; | 1297 | }; |
1297 | 1298 | ||
1298 | static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) | 1299 | static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) |