ANDROID: GKI: ZSMALLOC & ZRAM as modules for arm64
Enable zram and zsmalloc (dependency for zram) as unprotected modules for aarch64. These are already being used as modules by the vendor currently; so needs to be unprotected. Bug: 230519159 Test: TH Signed-off-by: Ramji Jiyani <ramjiyani@google.com> Change-Id: I7c617c1a24f6e083301cbed67d0d323388cbd622
This commit is contained in:
15
BUILD.bazel
15
BUILD.bazel
@@ -24,7 +24,20 @@ load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels", "define
|
|||||||
# glob(["android/abi_gki_aarch64*"]) differs from
|
# glob(["android/abi_gki_aarch64*"]) differs from
|
||||||
# KMI_SYMBOL_LIST + ADDITIONAL_KMI_SYMBOL_LISTS in build.config.gki.aarch64,
|
# KMI_SYMBOL_LIST + ADDITIONAL_KMI_SYMBOL_LISTS in build.config.gki.aarch64,
|
||||||
# or TRIM_NONLISTED_KMI changes, override kmi_configs here.
|
# or TRIM_NONLISTED_KMI changes, override kmi_configs here.
|
||||||
define_common_kernels()
|
define_common_kernels(target_configs = {
|
||||||
|
"kernel_aarch64": {
|
||||||
|
"module_outs": [
|
||||||
|
"drivers/block/zram/zram.ko",
|
||||||
|
"mm/zsmalloc.ko",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"kernel_aarch64_debug": {
|
||||||
|
"module_outs": [
|
||||||
|
"drivers/block/zram/zram.ko",
|
||||||
|
"mm/zsmalloc.ko",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
# Sync with build.config.db845c
|
# Sync with build.config.db845c
|
||||||
define_db845c(
|
define_db845c(
|
||||||
|
|||||||
@@ -1,4 +1,144 @@
|
|||||||
[abi_symbol_list]
|
[abi_symbol_list]
|
||||||
# commonly used symbols
|
# commonly used symbols
|
||||||
|
arm64_const_caps_ready
|
||||||
|
__cpuhp_remove_state
|
||||||
|
__cpuhp_setup_state
|
||||||
|
cpu_hwcap_keys
|
||||||
|
kasan_flag_enabled
|
||||||
|
kfree
|
||||||
|
kmalloc_caches
|
||||||
|
kmem_cache_alloc_trace
|
||||||
|
memcpy
|
||||||
module_layout
|
module_layout
|
||||||
|
__per_cpu_offset
|
||||||
|
preempt_schedule
|
||||||
|
_printk
|
||||||
__put_task_struct
|
__put_task_struct
|
||||||
|
__stack_chk_fail
|
||||||
|
__ubsan_handle_cfi_check_fail_abort
|
||||||
|
|
||||||
|
# required by zram.ko
|
||||||
|
__alloc_percpu
|
||||||
|
bio_endio
|
||||||
|
bio_end_io_acct_remapped
|
||||||
|
bio_start_io_acct
|
||||||
|
__blk_alloc_disk
|
||||||
|
blk_cleanup_disk
|
||||||
|
blk_queue_flag_clear
|
||||||
|
blk_queue_flag_set
|
||||||
|
blk_queue_io_min
|
||||||
|
blk_queue_io_opt
|
||||||
|
blk_queue_logical_block_size
|
||||||
|
blk_queue_max_discard_sectors
|
||||||
|
blk_queue_max_write_zeroes_sectors
|
||||||
|
blk_queue_physical_block_size
|
||||||
|
__class_register
|
||||||
|
class_unregister
|
||||||
|
__cpuhp_state_add_instance
|
||||||
|
__cpuhp_state_remove_instance
|
||||||
|
cpumask_next
|
||||||
|
__cpu_possible_mask
|
||||||
|
crypto_alloc_base
|
||||||
|
crypto_comp_compress
|
||||||
|
crypto_comp_decompress
|
||||||
|
crypto_destroy_tfm
|
||||||
|
crypto_has_alg
|
||||||
|
del_gendisk
|
||||||
|
device_add_disk
|
||||||
|
disk_end_io_acct
|
||||||
|
disk_start_io_acct
|
||||||
|
down_read
|
||||||
|
down_write
|
||||||
|
flush_dcache_page
|
||||||
|
free_pages
|
||||||
|
free_percpu
|
||||||
|
fsync_bdev
|
||||||
|
__get_free_pages
|
||||||
|
idr_alloc
|
||||||
|
idr_destroy
|
||||||
|
idr_find
|
||||||
|
idr_for_each
|
||||||
|
idr_remove
|
||||||
|
__init_rwsem
|
||||||
|
kstrtoint
|
||||||
|
kstrtou16
|
||||||
|
kstrtoull
|
||||||
|
memparse
|
||||||
|
memset64
|
||||||
|
mutex_is_locked
|
||||||
|
mutex_lock
|
||||||
|
mutex_unlock
|
||||||
|
nr_cpu_ids
|
||||||
|
__num_online_cpus
|
||||||
|
page_endio
|
||||||
|
param_ops_uint
|
||||||
|
__register_blkdev
|
||||||
|
scnprintf
|
||||||
|
set_capacity
|
||||||
|
set_capacity_and_notify
|
||||||
|
snprintf
|
||||||
|
strcmp
|
||||||
|
strcpy
|
||||||
|
strlcpy
|
||||||
|
strlen
|
||||||
|
__sysfs_match_string
|
||||||
|
sysfs_streq
|
||||||
|
unregister_blkdev
|
||||||
|
up_read
|
||||||
|
up_write
|
||||||
|
vfree
|
||||||
|
vzalloc
|
||||||
|
zs_compact
|
||||||
|
zs_create_pool
|
||||||
|
zs_destroy_pool
|
||||||
|
zs_free
|
||||||
|
zs_get_total_pages
|
||||||
|
zs_huge_class_size
|
||||||
|
zs_malloc
|
||||||
|
zs_map_object
|
||||||
|
zs_pool_stats
|
||||||
|
zs_unmap_object
|
||||||
|
|
||||||
|
# required by zsmalloc.ko
|
||||||
|
alloc_anon_inode
|
||||||
|
__alloc_pages
|
||||||
|
__ClearPageMovable
|
||||||
|
contig_page_data
|
||||||
|
dec_zone_page_state
|
||||||
|
finish_wait
|
||||||
|
flush_work
|
||||||
|
__free_pages
|
||||||
|
inc_zone_page_state
|
||||||
|
init_pseudo
|
||||||
|
init_wait_entry
|
||||||
|
__init_waitqueue_head
|
||||||
|
iput
|
||||||
|
kern_mount
|
||||||
|
kern_unmount
|
||||||
|
kill_anon_super
|
||||||
|
kmem_cache_alloc
|
||||||
|
kmem_cache_create
|
||||||
|
kmem_cache_destroy
|
||||||
|
kmem_cache_free
|
||||||
|
kstrdup
|
||||||
|
__list_add_valid
|
||||||
|
__list_del_entry_valid
|
||||||
|
__lock_page
|
||||||
|
memstart_addr
|
||||||
|
page_mapping
|
||||||
|
prepare_to_wait_event
|
||||||
|
__put_page
|
||||||
|
queue_work_on
|
||||||
|
_raw_read_lock
|
||||||
|
_raw_read_unlock
|
||||||
|
_raw_spin_lock
|
||||||
|
_raw_spin_unlock
|
||||||
|
_raw_write_lock
|
||||||
|
_raw_write_unlock
|
||||||
|
register_shrinker
|
||||||
|
schedule
|
||||||
|
__SetPageMovable
|
||||||
|
system_wq
|
||||||
|
unlock_page
|
||||||
|
unregister_shrinker
|
||||||
|
__wake_up
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
mm/zsmalloc.ko
|
||||||
|
drivers/block/zram/zram.ko
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
drivers/block/zram/zram.ko
|
||||||
|
mm/zsmalloc.ko
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ CONFIG_CLEANCACHE=y
|
|||||||
CONFIG_CMA=y
|
CONFIG_CMA=y
|
||||||
CONFIG_CMA_DEBUGFS=y
|
CONFIG_CMA_DEBUGFS=y
|
||||||
CONFIG_CMA_AREAS=16
|
CONFIG_CMA_AREAS=16
|
||||||
|
CONFIG_ZSMALLOC=m
|
||||||
# CONFIG_ZONE_DMA is not set
|
# CONFIG_ZONE_DMA is not set
|
||||||
CONFIG_ANON_VMA_NAME=y
|
CONFIG_ANON_VMA_NAME=y
|
||||||
CONFIG_LRU_GEN=y
|
CONFIG_LRU_GEN=y
|
||||||
@@ -300,6 +301,7 @@ CONFIG_ARM_SCPI_PROTOCOL=y
|
|||||||
# CONFIG_ARM_SCPI_POWER_DOMAIN is not set
|
# CONFIG_ARM_SCPI_POWER_DOMAIN is not set
|
||||||
# CONFIG_EFI_ARMSTUB_DTB_LOADER is not set
|
# CONFIG_EFI_ARMSTUB_DTB_LOADER is not set
|
||||||
CONFIG_GNSS=y
|
CONFIG_GNSS=y
|
||||||
|
CONFIG_ZRAM=m
|
||||||
CONFIG_BLK_DEV_LOOP=y
|
CONFIG_BLK_DEV_LOOP=y
|
||||||
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
|
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
|
||||||
CONFIG_BLK_DEV_RAM=y
|
CONFIG_BLK_DEV_RAM=y
|
||||||
|
|||||||
Reference in New Issue
Block a user