summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_trace_gpu_mem.c
diff options
context:
space:
mode:
authorSiddharth Kapoor <ksiddharth@google.com>2022-03-15 20:55:10 +0800
committerSiddharth Kapoor <ksiddharth@google.com>2022-03-23 23:13:16 +0800
commit0b2458bd7089baefcf19906e32dffec3cf6af500 (patch)
tree61beb8549e7bb3d2582268e2aa982d79b98e2548 /mali_kbase/mali_kbase_trace_gpu_mem.c
parent3d9f70261b023712c5113fb715f114ad8db9cfae (diff)
parent88d7d984fed1c2a4358ce2bbc334e82d71e3a391 (diff)
downloadgpu-0b2458bd7089baefcf19906e32dffec3cf6af500.tar.gz
Merge r36p0 from upstream into android-gs-pixel-5.10-gs101
Bug: 220942030 Test: boot to Home, Camera, Video, Chrome Signed-off-by: Siddharth Kapoor <ksiddharth@google.com> Change-Id: I8cf3a6243b092a05299acf956f5293facd1ed3cc
Diffstat (limited to 'mali_kbase/mali_kbase_trace_gpu_mem.c')
-rw-r--r--mali_kbase/mali_kbase_trace_gpu_mem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mali_kbase/mali_kbase_trace_gpu_mem.c b/mali_kbase/mali_kbase_trace_gpu_mem.c
index 0f1719e..5f50749 100644
--- a/mali_kbase/mali_kbase_trace_gpu_mem.c
+++ b/mali_kbase/mali_kbase_trace_gpu_mem.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
/*
*
- * (C) COPYRIGHT 2020-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2020-2022 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -51,6 +51,8 @@ struct kbase_dma_buf {
* rb_tree is maintained at kbase_device level and kbase_process level
* by passing the root of kbase_device or kbase_process we can remove
* the node from the tree.
+ *
+ * Return: true on success.
*/
static bool kbase_delete_dma_buf_mapping(struct kbase_context *kctx,
struct dma_buf *dma_buf,
@@ -100,6 +102,8 @@ static bool kbase_delete_dma_buf_mapping(struct kbase_context *kctx,
* of all unique dma_buf's mapped to gpu memory. So when attach any
* dma_buf add it the rb_tree's. To add the unique mapping we need
* check if the mapping is not a duplicate and then add them.
+ *
+ * Return: true on success
*/
static bool kbase_capture_dma_buf_mapping(struct kbase_context *kctx,
struct dma_buf *dma_buf,