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 /mali_kbase | |
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 'mali_kbase')
-rw-r--r-- | mali_kbase/mali_kbase_core_linux.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mali_kbase/mali_kbase_core_linux.c b/mali_kbase/mali_kbase_core_linux.c index f94eb90..b6b7d43 100644 --- a/mali_kbase/mali_kbase_core_linux.c +++ b/mali_kbase/mali_kbase_core_linux.c @@ -822,6 +822,14 @@ static int kbase_api_apc_request(struct kbase_file *kfile, } #endif +static int kbase_api_buffer_liveness_update(struct kbase_context *kctx, + struct kbase_ioctl_buffer_liveness_update *update) +{ + CSTD_UNUSED(kctx); + CSTD_UNUSED(update); + return 0; +} + #if !MALI_USE_CSF static int kbase_api_job_submit(struct kbase_context *kctx, struct kbase_ioctl_job_submit *submit) @@ -2201,6 +2209,12 @@ static long kbase_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) struct kbase_ioctl_set_limited_core_count, kctx); break; + case KBASE_IOCTL_BUFFER_LIVENESS_UPDATE: + KBASE_HANDLE_IOCTL_IN(KBASE_IOCTL_BUFFER_LIVENESS_UPDATE, + kbase_api_buffer_liveness_update, + struct kbase_ioctl_buffer_liveness_update, + kctx); + break; } dev_warn(kbdev->dev, "Unknown ioctl 0x%x nr:%d", cmd, _IOC_NR(cmd)); |