summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-05-11 08:04:44 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-18 14:54:34 -0400
commitdc45473eeb39d93100290a0f09bd787b3a5ce3f2 (patch)
tree90c56a0fc8ed2019bd4e1bfdb9fbddf18c20bd0c /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent67a41e46a230cde7353e4cd46040f1e71d7cd289 (diff)
gpu: nvgpu: use mem_desc in priv_cmd_entry
Replace the plain cpu pointer accesses with gk20a_mem_wr32(), and use a reference to the underlying mem_desc (within priv_cmd_queue) paired with an offset, for buffer aperture flexibility. JIRA DNVGPU-21 JIRA DNVGPU-23 Change-Id: I317672c94bb682bb895f9ed3e8116729c8bb7f4b Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1145922 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index e9ac8f18..d943b231 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -164,7 +164,8 @@ struct priv_cmd_queue {
164}; 164};
165 165
166struct priv_cmd_entry { 166struct priv_cmd_entry {
167 u32 *ptr; 167 struct mem_desc *mem;
168 u32 off; /* offset in mem, in u32 entries */
168 u64 gva; 169 u64 gva;
169 u32 get; /* start of entry in queue */ 170 u32 get; /* start of entry in queue */
170 u32 size; /* in words */ 171 u32 size; /* in words */