diff options
| author | Anup Mahindre <amahindre@nvidia.com> | 2021-03-23 03:07:06 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-08-16 23:31:56 -0400 |
| commit | d0cbf337d60aef7a6d96fc8c965e22c987f094a1 (patch) | |
| tree | 50e07895d03e0df02368b072ffe08fd2a024fe5c /include | |
| parent | 046cec39ee6bfcf8f8c6e6d64226175082077834 (diff) | |
video: tegra: host: nvdla: Add support for internal buffers
- Add buffer type field to nvdla_mem_handle
- For internal buffers, skip pin and unpin operations and pass the
offset as final adress
- Also update error handling in nvdla_map_task_memory to match with
convention
Jira DLA-4376
JIRA DLA-4908
Bug 3352716
Change-Id: I662da30cb9c606d2f67b792f09e026af391c89d1
Signed-off-by: Anup Mahindre <amahindre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2503708
(cherry picked from commit a2cc66a3f318394e65f6f126bbb7eaa5ccdae3e2)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2572190
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/nvhost_nvdla_ioctl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h index b203fda63..bd427e789 100644 --- a/include/uapi/linux/nvhost_nvdla_ioctl.h +++ b/include/uapi/linux/nvhost_nvdla_ioctl.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * | 3 | * |
| 4 | * Tegra NvDLA Driver | 4 | * Tegra NvDLA Driver |
| 5 | * | 5 | * |
| 6 | * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. | 6 | * Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved. |
| 7 | * | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
| 9 | * under the terms and conditions of the GNU General Public License, | 9 | * under the terms and conditions of the GNU General Public License, |
| @@ -127,11 +127,18 @@ struct nvdla_get_q_status_args { | |||
| 127 | * | 127 | * |
| 128 | * @handle handle to buffer allocated in userspace | 128 | * @handle handle to buffer allocated in userspace |
| 129 | * @offset offset in buffer | 129 | * @offset offset in buffer |
| 130 | * @type buffer heap type | ||
| 131 | * @reserved reserved for future use | ||
| 130 | * | 132 | * |
| 131 | */ | 133 | */ |
| 132 | struct nvdla_mem_handle { | 134 | struct nvdla_mem_handle { |
| 133 | __u32 handle; | 135 | __u32 handle; |
| 134 | __u32 offset; | 136 | __u32 offset; |
| 137 | #define NVDLA_BUFFER_TYPE_MC 0U | ||
| 138 | #define NVDLA_BUFFER_TYPE_CV 1U | ||
| 139 | #define NVDLA_BUFFER_TYPE_INTERNAL 2U | ||
| 140 | __u8 type; | ||
| 141 | __u8 reserved[3]; | ||
| 135 | }; | 142 | }; |
| 136 | 143 | ||
| 137 | /** | 144 | /** |
