diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/channel.h')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/channel.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/channel.h b/drivers/gpu/nvgpu/os/linux/channel.h index 2210678d..e6326fad 100644 --- a/drivers/gpu/nvgpu/os/linux/channel.h +++ b/drivers/gpu/nvgpu/os/linux/channel.h | |||
@@ -63,6 +63,19 @@ struct nvgpu_os_fence_framework { | |||
63 | struct sync_timeline *timeline; | 63 | struct sync_timeline *timeline; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | struct nvgpu_usermode_bufs_linux { | ||
67 | /* | ||
68 | * Common low level info of these is stored in nvgpu_mems in | ||
69 | * channel_gk20a; these hold lifetimes for the actual dmabuf and its | ||
70 | * dma mapping. | ||
71 | */ | ||
72 | struct nvgpu_usermode_buf_linux { | ||
73 | struct dma_buf *dmabuf; | ||
74 | struct dma_buf_attachment *attachment; | ||
75 | struct sg_table *sgt; | ||
76 | } gpfifo, userd; | ||
77 | }; | ||
78 | |||
66 | struct nvgpu_channel_linux { | 79 | struct nvgpu_channel_linux { |
67 | struct channel_gk20a *ch; | 80 | struct channel_gk20a *ch; |
68 | 81 | ||
@@ -72,6 +85,8 @@ struct nvgpu_channel_linux { | |||
72 | struct nvgpu_error_notifier error_notifier; | 85 | struct nvgpu_error_notifier error_notifier; |
73 | 86 | ||
74 | struct dma_buf *cyclestate_buffer_handler; | 87 | struct dma_buf *cyclestate_buffer_handler; |
88 | |||
89 | struct nvgpu_usermode_bufs_linux usermode; | ||
75 | }; | 90 | }; |
76 | 91 | ||
77 | u32 nvgpu_submit_gpfifo_user_flags_to_common_flags(u32 user_flags); | 92 | u32 nvgpu_submit_gpfifo_user_flags_to_common_flags(u32 user_flags); |