diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-06-15 07:06:28 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-06-20 10:45:33 -0400 |
commit | 27baafaad1a5c999642939faef63cacab17c9ed6 (patch) | |
tree | 9ad2ce8dbf044f120c8959f4c69d825dee3183f8 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | efb6113b65c4976cf718787b2adc64d495e8fd94 (diff) |
gpu: nvgpu: use gpfifo_mem via gk20a_mem_{rd,wr}
Use gk20a_mem_*() accessors for gpfifo memory in work submission instead
of direct cpu accesses in order to support other apertures than sysmem.
The gpfifo memory is still allocated from sysmem for dgpus too.
Split the copying of priv_cmds and the main gpfifo to be submitted in
gk20a_submit_channel_gpfifo() into separate functions.
JIRA DNVGPU-21
Change-Id: If271ca8e7e34235f00d31855dbccf77c0008e10b
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1145923
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index f9c5477e..db74a5ca 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -69,6 +69,10 @@ struct gpfifo_desc { | |||
69 | u32 put; | 69 | u32 put; |
70 | 70 | ||
71 | bool wrap; | 71 | bool wrap; |
72 | |||
73 | /* if gpfifo lives in vidmem or is forced to go via PRAMIN, first copy | ||
74 | * from userspace to pipe and then from pipe to gpu buffer */ | ||
75 | void *pipe; | ||
72 | }; | 76 | }; |
73 | 77 | ||
74 | struct patch_desc { | 78 | struct patch_desc { |