diff options
author | Jack Diver <diverj@google.com> | 2023-01-06 15:25:09 +0000 |
---|---|---|
committer | Jack Diver <diverj@google.com> | 2023-03-23 12:11:40 +0000 |
commit | bbff2067d58e7b7b100c2319d7550250c594ac02 (patch) | |
tree | d7c54a5e3faad2c859de5596bae1c7d909f592fb /common | |
parent | a4bb6f01a6d8aecfd4cebe2dc6e75afff4968b73 (diff) | |
download | gpu-bbff2067d58e7b7b100c2319d7550250c594ac02.tar.gz |
mali_kbase: Add buffer liveness ioctl
Add an ioctl that userspace can use to inform the kernel of buffer
live ranges.
The icotl is currently a stub.
Bug: 264990406
Change-Id: Ie36395be5a1e835ed1ed39ba29737f4e51b8deee
Signed-off-by: Jack Diver <diverj@google.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/include/uapi/gpu/arm/midgard/mali_kbase_ioctl.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/include/uapi/gpu/arm/midgard/mali_kbase_ioctl.h b/common/include/uapi/gpu/arm/midgard/mali_kbase_ioctl.h index 73d54e9..587b00d 100644 --- a/common/include/uapi/gpu/arm/midgard/mali_kbase_ioctl.h +++ b/common/include/uapi/gpu/arm/midgard/mali_kbase_ioctl.h @@ -728,6 +728,27 @@ struct kbase_ioctl_apc_request { #define KBASE_IOCTL_APC_REQUEST \ _IOW(KBASE_IOCTL_TYPE, 66, struct kbase_ioctl_apc_request) +/** + * struct kbase_ioctl_buffer_liveness_update - Update the live ranges of buffers from previous frame + * + * @live_ranges_address: Array of live ranges + * @live_ranges_count: Number of elements in the live ranges buffer + * @buffer_va_address: Array of buffer base virtual addresses + * @buffer_sizes_address: Array of buffer sizes + * @buffer_count: Number of buffers + * @padding: Unused + */ +struct kbase_ioctl_buffer_liveness_update { + __u64 live_ranges_address; + __u64 live_ranges_count; + __u64 buffer_va_address; + __u64 buffer_sizes_address; + __u64 buffer_count; +}; + +#define KBASE_IOCTL_BUFFER_LIVENESS_UPDATE \ + _IOW(KBASE_IOCTL_TYPE, 67, struct kbase_ioctl_buffer_liveness_update) + /*************** * test ioctls * ***************/ |