diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/channel.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/channel.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/channel.h b/drivers/gpu/nvgpu/common/linux/channel.h index d4cb6d55..805de55a 100644 --- a/drivers/gpu/nvgpu/common/linux/channel.h +++ b/drivers/gpu/nvgpu/common/linux/channel.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -29,6 +29,9 @@ struct gk20a_fence; | |||
29 | struct fifo_profile_gk20a; | 29 | struct fifo_profile_gk20a; |
30 | struct nvgpu_os_linux; | 30 | struct nvgpu_os_linux; |
31 | 31 | ||
32 | struct sync_fence; | ||
33 | struct sync_timeline; | ||
34 | |||
32 | struct nvgpu_channel_completion_cb { | 35 | struct nvgpu_channel_completion_cb { |
33 | /* | 36 | /* |
34 | * Signal channel owner via a callback, if set, in job cleanup with | 37 | * Signal channel owner via a callback, if set, in job cleanup with |
@@ -52,9 +55,19 @@ struct nvgpu_error_notifier { | |||
52 | struct nvgpu_mutex mutex; | 55 | struct nvgpu_mutex mutex; |
53 | }; | 56 | }; |
54 | 57 | ||
58 | /* | ||
59 | * This struct contains fence_related data. | ||
60 | * e.g. sync_timeline for sync_fences. | ||
61 | */ | ||
62 | struct nvgpu_os_fence_framework { | ||
63 | struct sync_timeline *timeline; | ||
64 | }; | ||
65 | |||
55 | struct nvgpu_channel_linux { | 66 | struct nvgpu_channel_linux { |
56 | struct channel_gk20a *ch; | 67 | struct channel_gk20a *ch; |
57 | 68 | ||
69 | struct nvgpu_os_fence_framework fence_framework; | ||
70 | |||
58 | struct nvgpu_channel_completion_cb completion_cb; | 71 | struct nvgpu_channel_completion_cb completion_cb; |
59 | struct nvgpu_error_notifier error_notifier; | 72 | struct nvgpu_error_notifier error_notifier; |
60 | 73 | ||