summaryrefslogtreecommitdiff
path: root/mali_pixel/memory_group_manager.c
diff options
context:
space:
mode:
authorJack Diver <diverj@google.com>2023-02-08 15:42:53 +0000
committerJack Diver <diverj@google.com>2023-03-23 12:11:40 +0000
commita96daa1bce4dbc67e89540d5dfcd00e739846b7f (patch)
tree4d42dfcaea2ffcb140c6df2c27369ff2a2ddce30 /mali_pixel/memory_group_manager.c
parent399d0259f81adc479fdc8889a02297b23a2f2e54 (diff)
downloadgpu-a96daa1bce4dbc67e89540d5dfcd00e739846b7f.tar.gz
mali_pixel: Enable MGM_SLC_GROUP_ID by default.
The platform integration will assume that an SLC memory group is available, so we need to enable the group by default. Bug: 264990406 Test: Build mali_kbase, mali_pixel Test: Boot to home Change-Id: If799875885600cdeb156fbd89a6efc43a131ac8e Signed-off-by: Jack Diver <diverj@google.com>
Diffstat (limited to 'mali_pixel/memory_group_manager.c')
-rw-r--r--mali_pixel/memory_group_manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mali_pixel/memory_group_manager.c b/mali_pixel/memory_group_manager.c
index fc7a5bd..a587272 100644
--- a/mali_pixel/memory_group_manager.c
+++ b/mali_pixel/memory_group_manager.c
@@ -808,6 +808,11 @@ static int mgm_initialize_data(struct mgm_groups *mgm_data)
if ((ret = mgm_sysfs_init(mgm_data)))
goto out_err;
+#ifdef CONFIG_MALI_PIXEL_GPU_SLC
+ /* We enable the SLC partition by default to support dynamic SLC caching */
+ enable_partition(mgm_data, MGM_SLC_GROUP_ID);
+#endif
+
return ret;
out_err: