summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks Todorov <aleksbgbg@google.com>2023-05-24 15:42:22 +0100
committerAleks Todorov <aleksbgbg@google.com>2023-06-06 11:16:10 +0100
commit55030cbca771fda41651f2314e3320a15aeaf080 (patch)
treee8c9021414a7745a6039c9a60a28abb858e205ba
parent742b99a55c83b81619437f28bc4dee4702a5c768 (diff)
downloadgpu-android-gs-tangorpro-5.10-u-beta4.tar.gz
pt_size_init ignores size update unless the size is invalidated, therefore invalidate the size before resetting the partition to size 0 when disabling it. Before this change startup logs are as follows: [ 2.648001] google,slc-acpm slc-acpm: ptid 3 size 0K [ 2.648164] mali-mgm physical-memory-group-manager: pt_size_init: tried to set size to 0 and got 262144 After this change startup logs are as follows: [ 2.625674] google,slc-acpm slc-acpm: ptid 3 size 0K [ 2.625852] mali-mgm physical-memory-group-manager: pt_size_invalidate: set size to sentinel (18446744073709551615) [ 2.626263] mali-mgm physical-memory-group-manager: pt_size_init: tried to set size to 0 and got 0 Bug: 284108328 Test: ./build_slider.sh Test: ./build_cloudripper.sh Test: boot to home Change-Id: Iaf506c4a148c215ed94b7a5af469dc73cf482b67 Merged-In: Iaf506c4a148c215ed94b7a5af469dc73cf482b67 Signed-off-by: Aleks Todorov <aleksbgbg@google.com>
-rw-r--r--mali_pixel/memory_group_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mali_pixel/memory_group_manager.c b/mali_pixel/memory_group_manager.c
index e1a5aca..06e09e9 100644
--- a/mali_pixel/memory_group_manager.c
+++ b/mali_pixel/memory_group_manager.c
@@ -499,9 +499,9 @@ static void disable_partition(struct mgm_groups* data, enum pixel_mgm_group_id g
return;
pt_client_disable_no_free(data->pt_handle, active_idx);
-
data->groups[group_id].state = MGM_GROUP_STATE_DISABLED_NOT_FREED;
+ pt_size_invalidate(data, active_idx);
pt_size_init(data, active_idx, 0);
}