From 1bd1ff5c96fddb1b001a2774daba5bf17cc0e8f9 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Thu, 26 Nov 2020 18:56:33 +0900 Subject: [PATCH 1/6] ANDROID: GKI: update allowed list for Exynosauto SoC This patch adds to update GKI symbol list for Exynosauto SoC since adding some drivers as GKI vendor modules.. To review the allowed list easily, this patch does not include any newly additions of GKI symbols. Bug: 174288561 Signed-off-by: Chanho Park Change-Id: Iac4910d0c43a07e24e5e4069e3d2f1b3378fce2b --- android/abi_gki_aarch64_exynosauto | 93 +++++++++++++++++++++++------- 1 file changed, 72 insertions(+), 21 deletions(-) diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index 084429b560c2..303b7d9b55e9 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -6,6 +6,7 @@ __arch_copy_from_user __arch_copy_to_user arm64_const_caps_ready + __arm_smccc_smc atomic_notifier_call_chain atomic_notifier_chain_register __bitmap_and @@ -41,7 +42,6 @@ cpu_bit_bitmap cpu_hwcap_keys cpu_hwcaps - cpumask_next cpu_number __cpu_online_mask __cpu_possible_mask @@ -78,7 +78,12 @@ devm_phy_get devm_pinctrl_get devm_platform_ioremap_resource + __devm_regmap_init_i2c + devm_regulator_bulk_get + __devm_request_region devm_request_threaded_irq + devm_snd_soc_register_card + devm_snd_soc_register_component devm_usb_get_phy_by_phandle _dev_notice dev_pm_opp_add @@ -193,6 +198,7 @@ init_wait_entry __init_waitqueue_head iomem_resource + iommu_get_domain_for_dev iommu_register_device_fault_handler iommu_unregister_device_fault_handler ion_alloc @@ -306,6 +312,7 @@ of_property_read_variable_u32_array of_property_read_variable_u8_array of_prop_next_string + of_reserved_mem_device_init_by_idx of_reserved_mem_lookup of_root panic @@ -329,6 +336,7 @@ phy_stop physvirt_offset pinctrl_lookup_state + pinctrl_pm_select_default_state pinctrl_pm_select_sleep_state pinctrl_select_state platform_bus_type @@ -354,6 +362,7 @@ __pm_runtime_set_status __pm_runtime_suspend __pm_runtime_use_autosuspend + pm_wakeup_dev_event preempt_schedule preempt_schedule_notrace prepare_to_wait_event @@ -380,6 +389,8 @@ refcount_inc_checked refcount_inc_not_zero_checked __refrigerator + regcache_mark_dirty + regcache_sync register_pm_notifier register_reboot_notifier register_restart_handler @@ -387,6 +398,8 @@ regmap_read regmap_update_bits_base regmap_write + regulator_bulk_disable + regulator_bulk_enable regulator_disable regulator_enable regulator_get_optional @@ -415,6 +428,15 @@ sg_next simple_read_from_buffer simple_strtoul + snd_pcm_format_width + snd_soc_component_update_bits + snd_soc_component_write + snd_soc_dai_set_fmt + snd_soc_info_volsw + snd_soc_of_get_dai_link_codecs + snd_soc_of_get_dai_name + snd_soc_of_parse_audio_routing + snd_soc_pm_ops snprintf sprintf sscanf @@ -429,7 +451,6 @@ strncpy strnlen strstr - subsys_system_register __sw_hweight32 __sw_hweight64 sync_file_create @@ -522,19 +543,13 @@ cec_transmit_attempt_done_ts cec_transmit_done_ts cec_unregister_adapter - __devm_regmap_init_i2c - devm_regulator_bulk_get drm_detect_hdmi_monitor drm_do_get_edid hdmi_avi_infoframe_init hdmi_avi_infoframe_pack i2c_new_ancillary_device - regcache_mark_dirty - regcache_sync regmap_bulk_write regmap_register_patch - regulator_bulk_disable - regulator_bulk_enable # required by bufq.ko kstrndup @@ -563,11 +578,9 @@ of_clk_add_provider of_clk_src_onecell_get -# required by cmupmucal.ko - pm_qos_add_request - # required by dss.ko __alloc_percpu + cpumask_next init_task kstat nr_irqs @@ -674,18 +687,13 @@ # required by exynos-chipid_v2.ko of_find_node_opts_by_path soc_device_register + subsys_system_register # required by exynos-pd.ko of_genpd_add_provider_simple pm_genpd_add_subdomain pm_genpd_init -# required by exynos-pd_el3.ko - __arm_smccc_smc - -# required by exynos-pmu-if.ko - cpu_topology - # required by exynos-reboot.ko pm_power_off @@ -875,7 +883,6 @@ # required by exynos_mfc.ko iommu_dma_reserve_iova - iommu_get_domain_for_dev iommu_map_sg iommu_unmap mutex_lock_interruptible @@ -920,6 +927,10 @@ # required by exynosauto9-itmon.ko atomic_notifier_chain_unregister +# required by exynosauto9-sadk-tas6424.ko + snd_soc_dai_set_tdm_slot + snd_soc_dai_set_tristate + # required by g2d.ko __arch_copy_in_user compat_alloc_user_space @@ -970,7 +981,6 @@ kthread_should_stop list_sort mod_node_page_state - of_reserved_mem_device_init_by_idx of_reserved_mem_device_release register_oom_notifier sched_setscheduler @@ -1212,6 +1222,7 @@ kthread_flush_worker ktime_get_ts64 ktime_get_with_offset + map_vm_area mutex_trylock ns_to_timespec param_ops_string @@ -1290,9 +1301,7 @@ phy_resume phy_start_aneg phy_suspend - pinctrl_pm_select_default_state platform_get_irq_byname - pm_wakeup_dev_event _raw_spin_lock_bh _raw_spin_unlock_bh register_netdev @@ -1345,6 +1354,48 @@ v4l2_ctrl_new_std v4l_bound_align_image +# required by snd-soc-s3c-dma.ko + devm_snd_dmaengine_pcm_register + snd_dmaengine_pcm_prepare_slave_config + +# required by snd-soc-samsung-abox-core.ko + devm_iounmap + devm_kasprintf + devm_kmemdup + __devm_regmap_init + __devm_regmap_init_mmio_clk + dma_mmap_attrs + iommu_attach_device + __platform_register_drivers + platform_unregister_drivers + pm_runtime_no_callbacks + request_firmware_nowait + snd_pcm_hw_constraint_integer + snd_pcm_lib_free_pages + snd_pcm_lib_ioctl + snd_pcm_lib_malloc_pages + snd_pcm_lib_preallocate_free_for_all + snd_pcm_lib_preallocate_pages + snd_pcm_period_elapsed + snd_soc_component_exit_regmap + snd_soc_component_init_regmap + snd_soc_component_read + snd_soc_dapm_add_routes + snd_soc_dapm_get_enum_double + snd_soc_dapm_new_control + snd_soc_dapm_new_controls + snd_soc_dapm_put_enum_double + snd_soc_info_enum_double + snd_soc_register_component + snd_soc_set_runtime_hwparams + snd_soc_unregister_component + +# required by snd-soc-tas6424.ko + _dev_crit + regcache_cache_only + snd_soc_get_volsw + snd_soc_put_volsw + # required by spi-exynosauto.ko loops_per_jiffy __spi_alloc_controller From f25343b5e3e5f17fa63a6c7abdea6421a51b9dec Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Thu, 26 Nov 2020 19:37:27 +0900 Subject: [PATCH 2/6] ANDROID: GKI: add allowed list for Exynosauto SoC This patch adds GKI symbol list for Exynosauto SoC. We need to add below 2 functions to GKI allowed symbol list. snd_pcm_release_substream - It's necessary from suspend/resume callback to clean current pcm stream. unmap_kernel_range - To unmap which are allocated by map_vm_area Leaf changes summary: 2 artifacts changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable 2 Added functions: [A] 'function void snd_pcm_release_substream(snd_pcm_substream*)' [A] 'function void unmap_kernel_range(unsigned long int, unsigned long int)' Bug: 174288561 Signed-off-by: Chanho Park Change-Id: I71058d55bbe10f2ec075e4c2c40291e5357b13a7 --- android/abi_gki_aarch64.xml | 646 ++++++++++++++--------------- android/abi_gki_aarch64_exynosauto | 2 + 2 files changed, 325 insertions(+), 323 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index d543c4c34dd6..bd7143f163ed 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -3515,6 +3515,7 @@ + @@ -3942,6 +3943,7 @@ + @@ -14950,7 +14952,7 @@ - + @@ -15400,6 +15402,11 @@ + + + + + @@ -16231,6 +16238,22 @@ + + + + + + + + + + + + + + + + @@ -37726,14 +37749,6 @@ - - - - - - - - @@ -54717,6 +54732,17 @@ + + + + + + + + + + + @@ -57242,17 +57268,6 @@ - - - - - - - - - - - @@ -68304,7 +68319,7 @@ - + @@ -89430,6 +89445,14 @@ + + + + + + + + @@ -93791,6 +93814,14 @@ + + + + + + + + @@ -105160,22 +105191,6 @@ - - - - - - - - - - - - - - - - @@ -108903,9 +108918,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -109058,7 +109304,18 @@ + + + + + + + + + + + @@ -109247,6 +109504,13 @@ + + + + + + + @@ -109254,6 +109518,10 @@ + + + + @@ -109510,21 +109778,10 @@ - - - - - - - - - - - - + @@ -109691,6 +109948,17 @@ + + + + + + + + + + + @@ -109710,7 +109978,7 @@ - + @@ -110925,7 +111193,7 @@ - + @@ -118241,268 +118509,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -118586,17 +118593,6 @@ - - - - - - - - - - - @@ -127020,6 +127016,10 @@ + + + + diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index 303b7d9b55e9..bff65a71356a 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -1233,6 +1233,7 @@ regulator_is_enabled regulator_set_voltage sched_setscheduler_nocheck + unmap_kernel_range v4l2_device_register_subdev v4l2_device_set_name v4l2_device_unregister_subdev @@ -1377,6 +1378,7 @@ snd_pcm_lib_preallocate_free_for_all snd_pcm_lib_preallocate_pages snd_pcm_period_elapsed + snd_pcm_release_substream snd_soc_component_exit_regmap snd_soc_component_init_regmap snd_soc_component_read From edd53a943b224e52d70fc3e12794a42b57239391 Mon Sep 17 00:00:00 2001 From: Archana Sriram Date: Thu, 26 Nov 2020 12:28:48 +0530 Subject: [PATCH 3/6] ANDROID: ABI: update allowed list for QCOM Update the android/abi_gki_aarch64_qcom with recent symbol additions. Simple change and no need to update the .xml file, as no new symbol addition. Bug: 174275677 Signed-off-by: Archana Sriram Signed-off-by: Kamal Agrawal Change-Id: Ic96fc5d11ab8d21fadbf85658e374e06dde14d0f --- android/abi_gki_aarch64_qcom | 1 + 1 file changed, 1 insertion(+) diff --git a/android/abi_gki_aarch64_qcom b/android/abi_gki_aarch64_qcom index 6b057e26e11e..b63c57b9ca2c 100644 --- a/android/abi_gki_aarch64_qcom +++ b/android/abi_gki_aarch64_qcom @@ -906,6 +906,7 @@ fsl8250_handle_irq fs_kobj fsstack_copy_attr_all + full_name_hash fwnode_connection_find_match fwnode_get_parent fwnode_handle_put From f4f92f0001fac24e6c0398bf1980e0a229d247de Mon Sep 17 00:00:00 2001 From: Narendra Muppalla Date: Mon, 30 Nov 2020 10:55:18 -0800 Subject: [PATCH 4/6] ANDROID: ABI: Update allowed list for QCOM 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 drm_crtc* drm_crtc_from_index(drm_device*, int)' Bug: 174476670 Signed-off-by: Veera Sundaram Sankaran Change-Id: Ice526ba5c386d91b2eccf8b48dadb553b816aaa8 Signed-off-by: Narendra Muppalla --- android/abi_gki_aarch64.xml | 976 +++++++++++++++++++++-------------- android/abi_gki_aarch64_qcom | 2 + 2 files changed, 589 insertions(+), 389 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index bd7143f163ed..53ce71943135 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -1244,6 +1244,7 @@ + @@ -4705,6 +4706,7 @@ + @@ -5149,14 +5151,6 @@ - - - - - - - - @@ -9945,6 +9939,14 @@ + + + + + + + + @@ -23684,6 +23686,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -28709,7 +28731,6 @@ - @@ -31627,6 +31648,11 @@ + + + + + @@ -37749,6 +37775,14 @@ + + + + + + + + @@ -39981,7 +40015,7 @@ - + @@ -40211,6 +40245,7 @@ + @@ -51857,7 +51892,6 @@ - @@ -51930,7 +51964,6 @@ - @@ -60505,6 +60538,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -68319,7 +68513,7 @@ - + @@ -69206,7 +69400,7 @@ - + @@ -76264,14 +76458,6 @@ - - - - - - - - @@ -76305,7 +76491,7 @@ - + @@ -76341,7 +76527,7 @@ - + @@ -76351,10 +76537,10 @@ - + - + @@ -76763,7 +76949,7 @@ - + @@ -76831,7 +77017,7 @@ - + @@ -76841,36 +77027,36 @@ - + - + - + - + - + - + @@ -76925,7 +77111,7 @@ - + @@ -76949,7 +77135,7 @@ - + @@ -76972,7 +77158,7 @@ - + @@ -77014,7 +77200,7 @@ - + @@ -88533,7 +88719,7 @@ - + @@ -89165,7 +89351,7 @@ - + @@ -89445,14 +89631,6 @@ - - - - - - - - @@ -89679,6 +89857,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -90925,42 +91139,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -93716,17 +93894,6 @@ - - - - - - - - - - - @@ -93814,14 +93981,6 @@ - - - - - - - - @@ -94487,7 +94646,7 @@ - + @@ -95348,7 +95507,7 @@ - + @@ -96528,7 +96687,7 @@ - + @@ -96650,7 +96809,7 @@ - + @@ -96689,7 +96848,7 @@ - + @@ -103792,7 +103951,7 @@ - + @@ -103901,6 +104060,7 @@ + @@ -108907,6 +109067,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -108918,240 +109100,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -109304,18 +109255,7 @@ - - - - - - - - - - - @@ -109504,13 +109444,6 @@ - - - - - - - @@ -109518,10 +109451,6 @@ - - - - @@ -109959,20 +109888,6 @@ - - - - - - - - - - - - - - @@ -110271,7 +110186,7 @@ - + @@ -111193,7 +111108,7 @@ - + @@ -118509,15 +118424,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + @@ -118543,7 +118708,7 @@ - + @@ -118560,25 +118725,25 @@ - + - + - + - + @@ -118586,13 +118751,24 @@ - + + + + + + + + + + + + @@ -124913,7 +125089,7 @@ - + @@ -124921,7 +125097,7 @@ - + @@ -125346,6 +125522,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -130913,6 +131111,6 @@ diff --git a/android/abi_gki_aarch64_qcom b/android/abi_gki_aarch64_qcom index b63c57b9ca2c..c8e8f3b1d894 100644 --- a/android/abi_gki_aarch64_qcom +++ b/android/abi_gki_aarch64_qcom @@ -668,9 +668,11 @@ drm_connector_unregister drm_connector_update_edid_property drm_crtc_cleanup + drm_crtc_from_index drm_crtc_handle_vblank drm_crtc_init_with_planes drm_crtc_send_vblank_event + drm_crtc_set_max_vblank_count drm_crtc_vblank_off drm_crtc_vblank_on drm_crtc_vblank_reset From 16d99ebeaf4f97777b0cec57653f739797d2be85 Mon Sep 17 00:00:00 2001 From: Narendra Muppalla Date: Tue, 1 Dec 2020 10:56:28 -0800 Subject: [PATCH 5/6] ANDROID: ABI: Update allowed list for QCOM Leaf changes summary: 0 artifact changed Changed leaf types summary: 0 leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable Bug: 174461333 Change-Id: If0033c24aca5a9cfb755a0f30ee1ca54815f516d Signed-off-by: Narendra Muppalla --- android/abi_gki_aarch64_qcom | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/abi_gki_aarch64_qcom b/android/abi_gki_aarch64_qcom index c8e8f3b1d894..e0f01ecc7aeb 100644 --- a/android/abi_gki_aarch64_qcom +++ b/android/abi_gki_aarch64_qcom @@ -1542,6 +1542,8 @@ of_graph_get_next_endpoint of_graph_get_remote_node of_graph_get_remote_port_parent + of_graph_get_remote_port + of_graph_get_endpoint_by_regs of_graph_parse_endpoint of_hwspin_lock_get_id of_icc_get From 559c23e691b8d0b25b055ecdf4c07f19c8407794 Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Wed, 25 Nov 2020 08:44:09 -0800 Subject: [PATCH 6/6] ANDROID: vmlinux.lds.h: merge compound literal sections After LLVM rG9e33c096476a ("[ELF] Keep orphan section names (.rodata.foo .text.foo) unchanged if !hasSectionsCommand"), LLD splits compound literals to separate sections with -fdata-sections, which it always enables with LTO. Merge these sections to allow LLVM to be upgraded. Bug: 174047799 Change-Id: I858c5fcc48283d5528c1d3e2b2d7a3c72f9e03d6 Link: https://github.com/ClangBuiltLinux/linux/issues/958 Suggested-by: Danny Lin Suggested-by: Fangrui Song Signed-off-by: Sami Tolvanen --- include/asm-generic/vmlinux.lds.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index ef257c136f11..b5c86d85f7b3 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -72,10 +72,10 @@ #if defined(CONFIG_LD_DEAD_CODE_DATA_ELIMINATION) || defined(CONFIG_LTO_CLANG) #define TEXT_MAIN .text .text.[0-9a-zA-Z_]* #define TEXT_CFI_MAIN .text.[0-9a-zA-Z_]*.cfi -#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..LPBX* +#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..L* .data..compoundliteral* #define SDATA_MAIN .sdata .sdata.[0-9a-zA-Z_]* -#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* -#define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* +#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]* .rodata..L* +#define BSS_MAIN .bss .bss.[0-9a-zA-Z_]* .bss..compoundliteral* #define SBSS_MAIN .sbss .sbss.[0-9a-zA-Z_]* #else #define TEXT_MAIN .text