hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_cache_policy_backend.h
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2014-2016, 2020-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2014-2016, 2020-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -26,12 +26,40 @@
2626 #include <uapi/gpu/arm/bifrost/mali_base_kernel.h>
2727
2828 /**
29
- * kbase_cache_set_coherency_mode() - Sets the system coherency mode
30
- * in the GPU.
31
- * @kbdev: Device pointer
32
- * @mode: Coherency mode. COHERENCY_ACE/ACE_LITE
33
- */
29
+ * kbase_cache_set_coherency_mode() - Sets the system coherency mode
30
+ * in the GPU.
31
+ * @kbdev: Device pointer
32
+ * @mode: Coherency mode. COHERENCY_ACE/ACE_LITE
33
+ */
3434 void kbase_cache_set_coherency_mode(struct kbase_device *kbdev,
3535 u32 mode);
3636
37
-#endif /* _KBASE_CACHE_POLICY_H_ */
37
+/**
38
+ * kbase_cache_get_coherency_features() - Get the coherency features
39
+ * in the GPU.
40
+ * @kbdev: Device pointer
41
+ *
42
+ * Return: Register value to be returned
43
+ */
44
+u32 kbase_cache_get_coherency_features(struct kbase_device *kbdev);
45
+
46
+/**
47
+ * kbase_amba_set_memory_cache_support() - Sets AMBA memory cache support
48
+ * in the GPU.
49
+ * @kbdev: Device pointer
50
+ * @enable: true for enable.
51
+ *
52
+ * Note: Only for arch version 12.x.1 onwards.
53
+ */
54
+void kbase_amba_set_memory_cache_support(struct kbase_device *kbdev,
55
+ bool enable);
56
+/**
57
+ * kbase_amba_set_invalidate_hint() - Sets AMBA invalidate hint
58
+ * in the GPU.
59
+ * @kbdev: Device pointer
60
+ * @enable: true for enable.
61
+ *
62
+ * Note: Only for arch version 12.x.1 onwards.
63
+ */
64
+void kbase_amba_set_invalidate_hint(struct kbase_device *kbdev, bool enable);
65
+#endif /* _KBASE_CACHE_POLICY_BACKEND_H_ */