summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJanne Hellsten <jhellsten@nvidia.com>2015-01-26 10:27:42 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-10-27 11:40:31 -0400
commit057c6334f7f72071bc87a1793b688b34add7c681 (patch)
tree95f916f86016dcb9f1f36772ed62907487e8ae18 /include
parent5c26f72fe18719a6639e1b6064eb013ec37b15ef (diff)
gpu: nvgpu: Get rid of legacy gpfifo type
Get rid of the duplicate gpfifo struct to emphasize the fact that nvgpu_gpfifo is the only memory layout for gpfifo entries that works. This is the same layout that HW uses. Also, add a local pointer to the gpfifo memory in gk20a_submit_channel_gpfifo to get rid of repeated typecasts. Bug 1592391 Bug 1550886 Change-Id: I5432859ef8e7c1aab5907e44098994d7bb807f50 Signed-off-by: Janne Hellsten <jhellsten@nvidia.com> Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/677341 (cherry picked from commit 724c8c6228af81dd440e825bddf545dd6b2b8bd7) Reviewed-on: http://git-master/r/822548 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 138d7971..6fdf4025 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -563,6 +563,7 @@ struct nvgpu_dbg_gpu_pc_sampling_args {
563#define NVGPU_PRIORITY_HIGH 150 563#define NVGPU_PRIORITY_HIGH 150
564#define NVGPU_TIMEOUT_FLAG_DISABLE_DUMP 0 564#define NVGPU_TIMEOUT_FLAG_DISABLE_DUMP 0
565 565
566/* this is also the hardware memory format */
566struct nvgpu_gpfifo { 567struct nvgpu_gpfifo {
567 __u32 entry0; /* first word of gpfifo entry */ 568 __u32 entry0; /* first word of gpfifo entry */
568 __u32 entry1; /* second word of gpfifo entry */ 569 __u32 entry1; /* second word of gpfifo entry */