diff options
| author | Arvind M <am@nvidia.com> | 2019-09-30 04:55:34 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-01-05 05:26:07 -0500 |
| commit | a47b24973e9d7c5dcb75cd4ded39dd109274b791 (patch) | |
| tree | ea0ef3027d03801d8effb2e9a8e407320ecb0140 /include/uapi/linux | |
| parent | b31432b605df5a6743533caed3959855d5fadcc9 (diff) | |
video: tegra: host: pin with specific permission
[1] Facilitate pinning of buffer with user requested access
permission
[2] This feature allows to restrict access to buffers shared
with the device.
Jira DLA-2502
Jira DLA-4175
Bug 3200422
Change-Id: I175ad10922480689de57eb832040a7d59b29b9bd
Signed-off-by: Arvind M <am@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2209415
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2412573
GVS: Gerrit_Virtual_Submit
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Mitch Harwell <mharwell@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nvhost_nvdla_ioctl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h index d2cf3ea0d..3bb1a8183 100644 --- a/include/uapi/linux/nvhost_nvdla_ioctl.h +++ b/include/uapi/linux/nvhost_nvdla_ioctl.h | |||
| @@ -52,6 +52,21 @@ struct nvdla_ping_args { | |||
| 52 | __u32 out_response; | 52 | __u32 out_response; |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | /** | ||
| 56 | * struct nvdla_mem_share_handle structure for sharing memory identifier | ||
| 57 | * and its properties | ||
| 58 | * | ||
| 59 | * @share_id identifier of handle to be shared | ||
| 60 | * @offset offset within the shared memory | ||
| 61 | * @access_flags access with which memory is intended to be shared | ||
| 62 | * @reserved reserved for future use | ||
| 63 | **/ | ||
| 64 | struct nvdla_mem_share_handle { | ||
| 65 | __u32 share_id; | ||
| 66 | __u32 offset; | ||
| 67 | __u32 access_flags; | ||
| 68 | __u32 reserved; | ||
| 69 | }; | ||
| 55 | 70 | ||
| 56 | /** | 71 | /** |
| 57 | * struct nvdla_pin_unpin_args strcture args for buffer pin/unpin | 72 | * struct nvdla_pin_unpin_args strcture args for buffer pin/unpin |
