diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-09-07 13:43:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-11 18:10:52 -0400 |
commit | c37c9baae65bcf0ef08a319488c09f57131026cc (patch) | |
tree | e3b4252bfff7436574a909dd625de49229d538da /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |
parent | 17451138cf60f5d64eed88cc5defd44981926d9d (diff) |
gpu: nvgpu: Move CDE code to Linux module
CDE is only used in Linux platforms, and the code is highly dependent
on Linux APIs. Move the common CDE code to Linux module and leave only
the chip specific parts to HAL.
Change-Id: I507fe7eceaf7607303dfdddcf438449a5f582ea7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1554755
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 0d79b143..0357f098 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -138,6 +138,7 @@ static int gk20a_ctrl_prepare_compressible_read( | |||
138 | struct gk20a *g, | 138 | struct gk20a *g, |
139 | struct nvgpu_gpu_prepare_compressible_read_args *args) | 139 | struct nvgpu_gpu_prepare_compressible_read_args *args) |
140 | { | 140 | { |
141 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
141 | struct nvgpu_fence fence; | 142 | struct nvgpu_fence fence; |
142 | struct gk20a_fence *fence_out = NULL; | 143 | struct gk20a_fence *fence_out = NULL; |
143 | int ret = 0; | 144 | int ret = 0; |
@@ -146,7 +147,7 @@ static int gk20a_ctrl_prepare_compressible_read( | |||
146 | fence.id = args->fence.syncpt_id; | 147 | fence.id = args->fence.syncpt_id; |
147 | fence.value = args->fence.syncpt_value; | 148 | fence.value = args->fence.syncpt_value; |
148 | 149 | ||
149 | ret = gk20a_prepare_compressible_read(g, args->handle, | 150 | ret = gk20a_prepare_compressible_read(l, args->handle, |
150 | args->request_compbits, args->offset, | 151 | args->request_compbits, args->offset, |
151 | args->compbits_hoffset, args->compbits_voffset, | 152 | args->compbits_hoffset, args->compbits_voffset, |
152 | args->scatterbuffer_offset, | 153 | args->scatterbuffer_offset, |