From 4def2dd1807f802810d8c16e13d81a8c5e5c4e55 Mon Sep 17 00:00:00 2001 From: Kyongho Cho Date: Thu, 13 Jul 2023 12:39:53 -0700 Subject: [PATCH] ANDROID: ABI: update symbol list for Xclipse GPU Leaf changes summary: 1 artifact changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable 1 Added function: [A] 'function void ttm_tt_unpopulate(ttm_bo_device*, ttm_tt*)' Xclipse GPU driver depends on TTM for graphics buffer allocation and management. It is required by customers to add graphics memory swap to improve overall memory efficiency. However TTM's swap feature can't be used since it selects victim buffer by LRU and we can't choose a specific buffer to swap. Xclipse GPU driver implements its own swap feature by means of APIs of TTM. But the problem is TTM's buffer allocations statistics in ttm_tt.c which are local to that file. Whenever a graphic buffer is swapped out, the size of total page allocation should be decreased but it is not possible from the outside of ttm_tt.c. If the statistics is not maintained well, TTM ends up swapping out TTM buffers globally which is unexpected. Bug: 291100620 Change-Id: I0edc4b5e8ae6d9e41e99750eb5f0e62fa78ec1fb Signed-off-by: Kyongho Cho --- android/abi_gki_aarch64.xml | 164 ++++++++++----------------------- android/abi_gki_aarch64_exynos | 1 + drivers/gpu/drm/ttm/ttm_tt.c | 1 + 3 files changed, 52 insertions(+), 114 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index de2a2412ca6d..a35c3777c1d0 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -5613,6 +5613,7 @@ + @@ -7303,6 +7304,14 @@ + + + + + + + + @@ -9500,9 +9509,9 @@ - - - + + + @@ -15446,89 +15455,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -24624,6 +24550,9 @@ + + + @@ -40110,8 +40039,8 @@ - - + + @@ -68685,14 +68614,7 @@ - - - - - - - - + @@ -71699,7 +71621,17 @@ - + + + + + + + + + + + @@ -94003,7 +93935,6 @@ - @@ -128282,16 +128213,16 @@ - - + + - - + + - - + + @@ -128303,16 +128234,16 @@ - - + + - - + + - - + + @@ -147002,6 +146933,11 @@ + + + + + @@ -147826,12 +147762,12 @@ - - + + - - + + diff --git a/android/abi_gki_aarch64_exynos b/android/abi_gki_aarch64_exynos index c64082bb95b0..ef69e40b6754 100644 --- a/android/abi_gki_aarch64_exynos +++ b/android/abi_gki_aarch64_exynos @@ -2136,6 +2136,7 @@ ttm_tt_destroy_common ttm_tt_populate ttm_tt_set_placement_caching + ttm_tt_unpopulate ttm_unmap_and_unpopulate_pages tty_flip_buffer_push tty_insert_flip_string_fixed_flag diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index f43fa69a1e65..3f1a029248ce 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -466,3 +466,4 @@ void ttm_tt_unpopulate(struct ttm_bo_device *bdev, else ttm_pool_unpopulate(ttm); } +EXPORT_SYMBOL(ttm_tt_unpopulate);