From ed5c049cade042d2c4f45a98399317fd513e53a7 Mon Sep 17 00:00:00 2001 From: "J. Avila" Date: Mon, 14 Dec 2020 17:08:37 +0000 Subject: [PATCH 1/7] ANDROID: sched: Export sched_setattr_nocheck This symbol is needed for certain vendor modules which cannot rely on only the sysfs interface for uclamp alone. Bug: 170697030 Signed-off-by: J. Avila Change-Id: Ic904ade83a45d259cfc95501e6b81e6c5a0e90a0 (cherry picked from commit 0edac9cb95fb2fa292a4b25ac77b125cde28b674) --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 26b519579120..499d17de8dd1 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5087,6 +5087,7 @@ int sched_setattr_nocheck(struct task_struct *p, const struct sched_attr *attr) { return __sched_setscheduler(p, attr, false, true); } +EXPORT_SYMBOL_GPL(sched_setattr_nocheck); /** * sched_setscheduler_nocheck - change the scheduling policy and/or RT priority of a thread from kernelspace. From ae8d097e36c485322c6af86a3ddce62b64e28d78 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Thu, 10 Dec 2020 21:31:00 +0900 Subject: [PATCH 2/7] ANDROID: ABI: update allowed list for exynosauto SoC This patch is for updating GKI allowed symbol list without adding a new symbol. Next patch will introduce newly added symbols for Exynosauto SoC GKI vendor modules. Bug: 175289068 Signed-off-by: Chanho Park Change-Id: I035373ee8f980cd5c03c967d5d2b684150e7fc74 --- android/abi_gki_aarch64_exynosauto | 107 ++++++++++++++++++----------- 1 file changed, 66 insertions(+), 41 deletions(-) diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index bff65a71356a..0b6c92db5b78 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -1,6 +1,7 @@ [abi_symbol_list] # commonly used symbols add_timer + add_wait_queue __alloc_pages_nodemask alloc_workqueue __arch_copy_from_user @@ -9,6 +10,7 @@ __arm_smccc_smc atomic_notifier_call_chain atomic_notifier_chain_register + atomic_notifier_chain_unregister __bitmap_and __bitmap_andnot blocking_notifier_call_chain @@ -32,16 +34,20 @@ clk_enable clk_get clk_get_rate + __clk_is_enabled clk_prepare clk_put + clk_register clk_set_rate clk_unprepare + clk_unregister complete complete_all __const_udelay cpu_bit_bitmap cpu_hwcap_keys cpu_hwcaps + cpumask_next cpu_number __cpu_online_mask __cpu_possible_mask @@ -63,6 +69,7 @@ device_property_read_u32_array device_remove_file _dev_info + __dev_kfree_skb_any devm_add_action devm_clk_get devm_free_irq @@ -152,6 +159,7 @@ drm_mode_vrefresh drm_panel_detach enable_irq + eth_type_trans event_triggers_call fd_install find_next_bit @@ -163,6 +171,7 @@ fput frame_vector_to_pages free_irq + free_netdev __free_pages free_pages freezing_slow_path @@ -231,6 +240,7 @@ kmem_cache_free kmemdup kobject_create_and_add + kobject_put krealloc kstrdup kstrtobool @@ -241,6 +251,7 @@ kthread_create_on_node __kthread_init_worker kthread_queue_work + kthread_should_stop kthread_stop kthread_worker_fn ktime_get @@ -273,14 +284,21 @@ __mutex_init mutex_is_locked mutex_lock + mutex_lock_interruptible mutex_unlock names_cachep + __netdev_alloc_skb netif_carrier_off + netif_carrier_on + netif_tx_wake_queue no_llseek + nonseekable_open nr_cpu_ids __num_online_cpus of_address_to_resource of_alias_get_id + of_clk_add_provider + of_clk_del_provider of_clk_get of_device_get_match_data of_device_is_available @@ -290,6 +308,7 @@ of_find_matching_node_and_match of_find_mipi_dsi_host_by_node of_find_node_by_name + of_find_node_opts_by_path of_find_property of_get_child_by_name of_get_display_timings @@ -320,6 +339,7 @@ param_ops_bool param_ops_int param_ops_uint + PDE_DATA perf_trace_buf_alloc perf_trace_run_bpf_submit pfn_valid @@ -351,6 +371,7 @@ platform_get_irq platform_get_resource platform_get_resource_byname + pm_power_off pm_qos_update_request pm_runtime_allow __pm_runtime_disable @@ -363,11 +384,13 @@ __pm_runtime_suspend __pm_runtime_use_autosuspend pm_wakeup_dev_event + pm_wakeup_ws_event preempt_schedule preempt_schedule_notrace prepare_to_wait_event print_hex_dump printk + proc_create_data put_device __put_page __put_task_struct @@ -391,6 +414,8 @@ __refrigerator regcache_mark_dirty regcache_sync + __register_chrdev + register_netdev register_pm_notifier register_reboot_notifier register_restart_handler @@ -410,6 +435,7 @@ regulator_unregister release_firmware __release_region + remove_proc_entry request_firmware __request_region request_threaded_irq @@ -418,7 +444,9 @@ schedule schedule_timeout scnprintf + seq_lseek seq_printf + seq_read set_cpus_allowed_ptr set_page_dirty_lock sg_alloc_table @@ -428,6 +456,9 @@ sg_next simple_read_from_buffer simple_strtoul + single_open + single_release + skb_put snd_pcm_format_width snd_soc_component_update_bits snd_soc_component_write @@ -445,6 +476,7 @@ strcasecmp strcmp strcpy + strcspn strlcpy strlen strncmp @@ -478,8 +510,11 @@ trace_raw_output_prep trace_seq_printf __udelay + __unregister_chrdev unregister_chrdev_region + unregister_netdev unregister_pm_notifier + unregister_reboot_notifier up up_read usb_add_hcd @@ -522,6 +557,7 @@ vmalloc_to_page vmap vmemmap + vscnprintf vsnprintf vunmap vzalloc @@ -530,6 +566,8 @@ wait_for_completion_timeout __wake_up wake_up_process + wakeup_source_register + wakeup_source_unregister __warn_printk work_busy @@ -563,7 +601,6 @@ clk_hw_unregister_gate clk_hw_unregister_mux of_clk_add_hw_provider - of_clk_del_provider of_clk_hw_onecell_get pm_runtime_force_resume pm_runtime_force_suspend @@ -571,16 +608,13 @@ # required by clk_exynos.ko __clk_get_hw clk_hw_get_parent - clk_register clk_register_clkdev clk_register_fixed_factor clk_register_fixed_rate - of_clk_add_provider of_clk_src_onecell_get # required by dss.ko __alloc_percpu - cpumask_next init_task kstat nr_irqs @@ -655,14 +689,6 @@ usb_otg_state_string usb_role_switch_register usb_role_switch_unregister - wakeup_source_register - wakeup_source_unregister - -# required by ect_parser.ko - seq_lseek - seq_read - single_open - single_release # required by exynos-acme.ko bitmap_parselist @@ -685,7 +711,6 @@ system_state # required by exynos-chipid_v2.ko - of_find_node_opts_by_path soc_device_register subsys_system_register @@ -694,11 +719,7 @@ pm_genpd_add_subdomain pm_genpd_init -# required by exynos-reboot.ko - pm_power_off - # required by exynos9drm.ko - add_wait_queue bus_find_device component_add component_bind_all @@ -878,14 +899,12 @@ dev_pm_opp_disable dev_pm_opp_get_freq dev_pm_opp_put - unregister_reboot_notifier update_devfreq # required by exynos_mfc.ko iommu_dma_reserve_iova iommu_map_sg iommu_unmap - mutex_lock_interruptible ns_to_timeval # required by exynos_pm_qos.ko @@ -924,9 +943,6 @@ uart_update_timeout uart_write_wakeup -# 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 @@ -978,7 +994,6 @@ ion_heap_map_kernel ion_heap_map_user ion_heap_unmap_kernel - kthread_should_stop list_sort mod_node_page_state of_reserved_mem_device_release @@ -992,7 +1007,6 @@ bpf_trace_run5 cache_line_size clear_page - __clk_is_enabled __close_fd dev_pm_opp_of_add_table dev_pm_opp_of_remove_table @@ -1011,7 +1025,6 @@ hrtimer_init hrtimer_start_range_ns kfree_call_rcu - kobject_put ktime_get_raw __mmdrop module_put @@ -1028,7 +1041,6 @@ remap_vmalloc_range static_key_slow_dec static_key_slow_inc - strcspn strncasecmp synchronize_rcu sysfs_remove_file_ns @@ -1143,7 +1155,6 @@ gpiod_get_value_cansleep gpiod_put netdev_printk - netif_carrier_on of_phy_attach phy_attach_direct phy_detach @@ -1175,6 +1186,7 @@ pinctrl_add_gpio_range pinctrl_dev_get_drvdata pinctrl_remove_gpio_range + pin_get_name # required by pl330.ko amba_driver_register @@ -1191,9 +1203,6 @@ # required by rtc-s2vps01.ko devm_rtc_device_register - pm_wakeup_ws_event - rtc_time64_to_tm - rtc_tm_to_time64 rtc_update_irq rtc_valid_tm @@ -1217,6 +1226,7 @@ get_task_pid i2c_new_device jiffies_to_msecs + kobject_del kstrtou16 kthread_flush_work kthread_flush_worker @@ -1238,7 +1248,6 @@ v4l2_device_set_name v4l2_device_unregister_subdev v4l2_subdev_call_wrappers - vscnprintf # required by samsung-iommu-group.ko iommu_group_alloc @@ -1251,15 +1260,12 @@ dev_close device_set_wakeup_capable device_set_wakeup_enable - __dev_kfree_skb_any dev_open dql_completed dql_reset eth_mac_addr ethtool_op_get_link ethtool_op_get_ts_info - eth_type_trans - free_netdev in4_pton in6_pton jiffies_to_usecs @@ -1275,7 +1281,6 @@ __napi_schedule_irqoff napi_schedule_prep netdev_alert - __netdev_alloc_skb netdev_err netdev_info netdev_update_features @@ -1287,7 +1292,6 @@ netif_schedule_queue netif_set_real_num_rx_queues netif_set_real_num_tx_queues - netif_tx_wake_queue net_ratelimit ns_to_timespec64 of_get_mac_address @@ -1305,13 +1309,10 @@ platform_get_irq_byname _raw_spin_lock_bh _raw_spin_unlock_bh - register_netdev rtnl_lock rtnl_unlock skb_pull - skb_put skb_tstamp_tx - unregister_netdev # required by samsung_iommu.ko bus_set_iommu @@ -1410,12 +1411,10 @@ # required by spidev.ko driver_unregister find_next_zero_bit - __register_chrdev __spi_register_driver spi_setup spi_sync stream_open - __unregister_chrdev # required by ufs-exynos-core.ko ufshcd_config_pwr_mode @@ -1442,6 +1441,15 @@ vb2_expbuf vb2_request_object_is_buffer +# required by vdriver-lib-module.ko + kobject_get + kset_create_and_add + +# required by veth2-module.ko + alloc_netdev_mqs + ether_setup + netif_rx + # required by videobuf2-dma-sg.ko kvfree kvmalloc_node @@ -1453,6 +1461,23 @@ vm_map_ram vm_unmap_ram +# required by vlx-clk-ctrl-common-module.ko + kobject_init_and_add + +# required by vlx-hyp-module.ko + irq_create_of_mapping + irq_dispose_mapping + irq_find_matching_fwspec + of_irq_find_parent + proc_mkdir + +# required by vlx-last-kmsg-module.ko + proc_set_size + +# required by vlx-vmq-module.ko + default_wake_function + remove_wait_queue + # required by xhci-hcd.ko dma_pool_alloc dma_pool_create From be72a6b8eeb8d4cda8c195f011893521d998d6c8 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Thu, 10 Dec 2020 21:36:36 +0900 Subject: [PATCH 3/7] ANDROID: ABI: add allowed list for Exynosauto SoC This patch is the first trial to upload GKI symbol list for running android as VM on type1 hypervisor. Unlike traditional device driver, para-virtualized drivers for hypervisor tend to use more core symbols. - ioremap_cache: to skip cached mapping for io remap 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* ioremap_cache(long long unsigned int, unsigned long int)' Bug: 175289068 Signed-off-by: Chanho Park Change-Id: Ia3f0073065ad2da481cce10dd882d7de093b1de3 --- android/abi_gki_aarch64.xml | 418 ++++++++++++++++------------- android/abi_gki_aarch64_exynosauto | 1 + 2 files changed, 235 insertions(+), 184 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index 77fd73d8c10c..6b95c840677f 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -2012,6 +2012,7 @@ + @@ -4711,7 +4712,6 @@ - @@ -11891,6 +11891,17 @@ + + + + + + + + + + + @@ -14584,17 +14595,6 @@ - - - - - - - - - - - @@ -14763,6 +14763,13 @@ + + + + + + + @@ -16009,7 +16016,7 @@ - + @@ -16079,18 +16086,18 @@ - + - + - + @@ -16098,7 +16105,7 @@ - + @@ -23688,6 +23695,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -29096,55 +29123,55 @@ - - - + + + - - - - - + + + + + - - - + + + - - - - - + + + + + - - - + + + - - - - + + + + - - - - + + + + - - - + + + - - - + + + @@ -33074,7 +33101,7 @@ - + @@ -34458,7 +34485,7 @@ - + @@ -34719,7 +34746,7 @@ - + @@ -35730,7 +35757,7 @@ - + @@ -37763,8 +37790,17 @@ + + + + + + + + + @@ -45536,32 +45572,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -68325,7 +68335,7 @@ - + @@ -89462,6 +89472,20 @@ + + + + + + + + + + + + + + @@ -93714,17 +93738,28 @@ - - - + + + + + + - - + + - - + + - + + + + + + + + + @@ -93812,14 +93847,6 @@ - - - - - - - - @@ -94306,11 +94333,11 @@ - + - - + + @@ -94485,7 +94512,7 @@ - + @@ -95346,7 +95373,7 @@ - + @@ -103790,7 +103817,7 @@ - + @@ -108240,8 +108267,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -108919,6 +108972,14 @@ + + + + + + + + @@ -109693,26 +109754,12 @@ - - - - - - - - - - - - - - - + @@ -110005,7 +110052,7 @@ - + @@ -110187,43 +110234,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -112499,6 +112509,14 @@ + + + + + + + + @@ -112679,7 +112697,7 @@ - + @@ -112687,22 +112705,6 @@ - - - - - - - - - - - - - - - - @@ -113065,7 +113067,7 @@ - + @@ -113108,6 +113110,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -113200,6 +113238,7 @@ + @@ -113230,7 +113269,7 @@ - + @@ -113287,7 +113326,7 @@ - + @@ -117843,6 +117882,17 @@ + + + + + + + + + + + @@ -118015,7 +118065,7 @@ - + @@ -118054,7 +118104,7 @@ - + @@ -118136,7 +118186,7 @@ - + @@ -118151,7 +118201,7 @@ - + @@ -118163,7 +118213,7 @@ - + @@ -118172,7 +118222,7 @@ - + @@ -130935,6 +130985,6 @@ diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index 0b6c92db5b78..c981b860389b 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -1465,6 +1465,7 @@ kobject_init_and_add # required by vlx-hyp-module.ko + ioremap_cache irq_create_of_mapping irq_dispose_mapping irq_find_matching_fwspec From 9885e7fec0d417ff45d2db755f096ab2ed327e89 Mon Sep 17 00:00:00 2001 From: Macpaul Lin Date: Fri, 18 Dec 2020 17:43:10 +0800 Subject: [PATCH 4/7] ANDROID: usb: gadget: f_accessory: fix CTS test stuck f_accessory: fix CTS test stuck since CTS 9.0. - Refine acc_read() process. The data length that user (test program) wants to read is different from they really requested. This will cause the test flow stuck on the 2nd or the 3rd transfers in accessory test. (By connecting 2 phones with CtsVerifier.apk and CtsVerifierUSBCompanion.apk installed.) Bug: 174729307 Change-Id: I5367c8075ed37534e8bed94b60cc79135ae5aebc Signed-off-by: Macpaul Lin --- drivers/usb/gadget/function/f_accessory.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index 7aa2656a2328..3e0b8b5d7d14 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c @@ -568,6 +568,7 @@ static ssize_t acc_read(struct file *fp, char __user *buf, struct acc_dev *dev = fp->private_data; struct usb_request *req; ssize_t r = count; + ssize_t data_length; unsigned xfer; int ret = 0; @@ -589,6 +590,15 @@ static ssize_t acc_read(struct file *fp, char __user *buf, goto done; } + /* + * Calculate the data length by considering termination character. + * Then compansite the difference of rounding up to + * integer multiple of maxpacket size. + */ + data_length = count; + data_length += dev->ep_out->maxpacket - 1; + data_length -= data_length % dev->ep_out->maxpacket; + if (dev->rx_done) { // last req cancelled. try to get it. req = dev->rx_req[0]; @@ -598,7 +608,7 @@ static ssize_t acc_read(struct file *fp, char __user *buf, requeue_req: /* queue a request */ req = dev->rx_req[0]; - req->length = count; + req->length = data_length; dev->rx_done = 0; ret = usb_ep_queue(dev->ep_out, req, GFP_KERNEL); if (ret < 0) { From cf6a51d18ba555107b54a08268081b70457d8193 Mon Sep 17 00:00:00 2001 From: "jian.gong" Date: Tue, 22 Dec 2020 15:05:59 +0800 Subject: [PATCH 5/7] ANDROID: ABI: add symbols of gpiod_get to unisoc Add symbols of gpiod_get to unisoc, and updates the ABI representation accordingly. 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 gpio_desc* gpiod_get(device*, const char*, gpiod_flags)' Bug: 160255258 Change-Id: I899fc91f196d8c31a2fa9adeb626ba08478bf39c Signed-off-by: jian.gong --- android/abi_gki_aarch64.xml | 348 ++++++++++++++++----------------- android/abi_gki_aarch64_unisoc | 2 + 2 files changed, 167 insertions(+), 183 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index 6b95c840677f..c9dc61b290de 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -1706,6 +1706,7 @@ + @@ -4712,6 +4713,7 @@ + @@ -4733,7 +4735,6 @@ - @@ -11891,17 +11892,6 @@ - - - - - - - - - - - @@ -14595,6 +14585,17 @@ + + + + + + + + + + + @@ -14963,7 +14964,7 @@ - + @@ -23695,26 +23696,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -27302,7 +27283,6 @@ - @@ -27342,7 +27322,7 @@ - + @@ -27399,6 +27379,7 @@ + @@ -30858,6 +30839,12 @@ + + + + + + @@ -45572,6 +45559,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -56033,14 +56046,6 @@ - - - - - - - - @@ -68335,7 +68340,7 @@ - + @@ -89406,6 +89411,14 @@ + + + + + + + + @@ -89472,20 +89485,6 @@ - - - - - - - - - - - - - - @@ -89511,14 +89510,6 @@ - - - - - - - - @@ -89557,6 +89548,14 @@ + + + + + + + + @@ -93738,28 +93737,17 @@ - - - - - - + + + - - + + - - + + - - - - - - - - - + @@ -94512,7 +94500,7 @@ - + @@ -95373,7 +95361,7 @@ - + @@ -103817,7 +103805,7 @@ - + @@ -108267,34 +108255,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -108972,14 +108934,6 @@ - - - - - - - - @@ -109754,12 +109708,26 @@ + + + + + + + + + + + + + + - + @@ -110052,7 +110020,7 @@ - + @@ -110234,6 +110202,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -112509,14 +112503,6 @@ - - - - - - - - @@ -112697,7 +112683,7 @@ - + @@ -112705,6 +112691,22 @@ + + + + + + + + + + + + + + + + @@ -113067,7 +113069,7 @@ - + @@ -113110,42 +113112,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -113238,7 +113204,6 @@ - @@ -113269,7 +113234,7 @@ - + @@ -113326,7 +113291,7 @@ - + @@ -115479,7 +115444,7 @@ - + @@ -118065,7 +118030,7 @@ - + @@ -118104,7 +118069,7 @@ - + @@ -118186,7 +118151,7 @@ - + @@ -118201,7 +118166,7 @@ - + @@ -118213,7 +118178,7 @@ - + @@ -118222,7 +118187,7 @@ - + @@ -123304,6 +123269,25 @@ + + + + + + + + + + + + + + + + + + + @@ -126874,8 +126858,6 @@ - - diff --git a/android/abi_gki_aarch64_unisoc b/android/abi_gki_aarch64_unisoc index 5b300379d79e..0f3c2df59e3b 100644 --- a/android/abi_gki_aarch64_unisoc +++ b/android/abi_gki_aarch64_unisoc @@ -225,6 +225,7 @@ gpiochip_line_is_irq gpiod_direction_input gpiod_direction_output_raw + gpiod_get gpiod_get_raw_value gpiod_set_raw_value gpiod_set_raw_value_cansleep @@ -2026,6 +2027,7 @@ sg_nents_for_len # required by wcn_bsp.ko + gpiod_set_value memdup_user pci_disable_device pci_disable_msi From 64eade86ae6cb7a4132fd4633cb27af3d4faf972 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Tue, 22 Dec 2020 15:56:08 +0900 Subject: [PATCH 6/7] ANDROID: ABI: update allowed list for exynosauto SoC This patch is for updating GKI allowed symbol list without adding any new symbol. Next patch will introduce newly added symbols for Exynosauto SoC GKI vendor modules. To avoid unnecessary symbols, this patch also adds "preserved by --additions-only" even though we don't need them anymore. Bug: 176138611 Signed-off-by: Chanho Park Change-Id: I9fa9eb313ef1e2aeb8c853bae1c8cde18cdd9188 --- android/abi_gki_aarch64_exynosauto | 94 ++++++++++++++++++++---------- 1 file changed, 64 insertions(+), 30 deletions(-) diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index c981b860389b..1f8c085a3dba 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -6,6 +6,7 @@ alloc_workqueue __arch_copy_from_user __arch_copy_to_user + arch_setup_dma_ops arm64_const_caps_ready __arm_smccc_smc atomic_notifier_call_chain @@ -43,6 +44,7 @@ clk_unregister complete complete_all + complete_and_exit __const_udelay cpu_bit_bitmap cpu_hwcap_keys @@ -134,9 +136,8 @@ dma_request_slave_channel dma_set_coherent_mask dma_set_mask - down + down_interruptible down_read - down_trylock drm_add_edid_modes drm_atomic_helper_connector_destroy_state drm_atomic_helper_connector_duplicate_state @@ -162,6 +163,7 @@ eth_type_trans event_triggers_call fd_install + filp_open find_next_bit find_vma finish_wait @@ -211,6 +213,8 @@ iommu_register_device_fault_handler iommu_unregister_device_fault_handler ion_alloc + __ion_device_add_heap + ion_device_remove_heap ion_query_heaps_kernel __ioremap iounmap @@ -240,6 +244,7 @@ kmem_cache_free kmemdup kobject_create_and_add + kobject_init_and_add kobject_put krealloc kstrdup @@ -279,10 +284,10 @@ mod_delayed_work_on mod_timer module_layout + module_put __msecs_to_jiffies msleep __mutex_init - mutex_is_locked mutex_lock mutex_lock_interruptible mutex_unlock @@ -397,6 +402,10 @@ put_unused_fd queue_delayed_work_on queue_work_on + radix_tree_delete + radix_tree_insert + radix_tree_lookup + radix_tree_next_chunk ___ratelimit _raw_spin_lock _raw_spin_lock_irq @@ -467,6 +476,7 @@ snd_soc_of_get_dai_link_codecs snd_soc_of_get_dai_name snd_soc_of_parse_audio_routing + snd_soc_of_put_dai_link_codecs snd_soc_pm_ops snprintf sprintf @@ -557,7 +567,6 @@ vmalloc_to_page vmap vmemmap - vscnprintf vsnprintf vunmap vzalloc @@ -730,7 +739,6 @@ console_trylock console_unlock device_rename - drm_atomic_helper_async_check drm_atomic_helper_check drm_atomic_helper_cleanup_planes drm_atomic_helper_commit @@ -872,9 +880,9 @@ drm_vblank_init mipi_dsi_host_register mipi_dsi_host_unregister + mutex_is_locked of_drm_find_bridge of_drm_find_panel - of_get_next_available_child of_graph_get_endpoint_by_regs of_graph_get_endpoint_count of_graph_get_next_endpoint @@ -882,10 +890,8 @@ of_graph_get_remote_port of_graph_get_remote_port_parent of_graph_parse_endpoint - of_io_request_and_map - of_platform_device_create - of_platform_device_destroy - of_property_match_string + of_phandle_iterator_init + of_phandle_iterator_next strlcat videomode_from_timings @@ -947,6 +953,9 @@ snd_soc_dai_set_tdm_slot snd_soc_dai_set_tristate +# required by fmp-core.ko + bcmp + # required by g2d.ko __arch_copy_in_user compat_alloc_user_space @@ -976,7 +985,6 @@ # required by ion_exynos_mod.ko adjust_managed_page_count - arch_setup_dma_ops cma_alloc cma_get_name cma_release @@ -988,8 +996,6 @@ gen_pool_free_owner ion_buffer_prep_noncached ion_buffer_zero - __ion_device_add_heap - ion_device_remove_heap ion_free ion_heap_map_kernel ion_heap_map_user @@ -1013,7 +1019,9 @@ dev_pm_opp_put_regulators dev_pm_opp_set_regulators dma_fence_get_status + down downgrade_write + down_trylock down_write dump_stack __get_task_comm @@ -1027,7 +1035,6 @@ kfree_call_rcu ktime_get_raw __mmdrop - module_put of_machine_is_compatible param_ops_byte rb_erase @@ -1219,21 +1226,14 @@ v4l2_i2c_subdev_init # required by sam-is.ko - down_interruptible - filp_close - filp_open - get_random_u32 get_task_pid i2c_new_device jiffies_to_msecs kobject_del kstrtou16 kthread_flush_work - kthread_flush_worker ktime_get_ts64 ktime_get_with_offset - map_vm_area - mutex_trylock ns_to_timespec param_ops_string phy_configure @@ -1243,7 +1243,6 @@ regulator_is_enabled regulator_set_voltage sched_setscheduler_nocheck - unmap_kernel_range v4l2_device_register_subdev v4l2_device_set_name v4l2_device_unregister_subdev @@ -1335,7 +1334,6 @@ iommu_group_get iommu_group_get_for_dev iommu_group_get_iommudata - iommu_group_put iommu_group_remove_device iommu_group_set_iommudata iommu_put_dma_cookie @@ -1367,7 +1365,6 @@ __devm_regmap_init __devm_regmap_init_mmio_clk dma_mmap_attrs - iommu_attach_device __platform_register_drivers platform_unregister_drivers pm_runtime_no_callbacks @@ -1380,7 +1377,6 @@ 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 snd_soc_dapm_add_routes @@ -1389,7 +1385,6 @@ 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 @@ -1417,6 +1412,8 @@ stream_open # required by ufs-exynos-core.ko + bio_crypt_should_process + keyslot_manager_create_passthrough ufshcd_config_pwr_mode ufshcd_dme_get_attr ufshcd_dme_set_attr @@ -1441,6 +1438,10 @@ vb2_expbuf vb2_request_object_is_buffer +# required by vbufq-be-module.ko + drain_workqueue + filp_close + # required by vdriver-lib-module.ko kobject_get kset_create_and_add @@ -1462,7 +1463,7 @@ vm_unmap_ram # required by vlx-clk-ctrl-common-module.ko - kobject_init_and_add + vscnprintf # required by vlx-hyp-module.ko ioremap_cache @@ -1475,6 +1476,25 @@ # required by vlx-last-kmsg-module.ko proc_set_size +# required by vlx-prop-module.ko + kobject_uevent + kset_unregister + sysfs_create_bin_file + sysfs_remove_bin_file + +# required by vlx-vion-module.ko + dma_buf_fd + idr_alloc_cyclic + idr_find + idr_remove + __module_get + platform_device_register_full + __platform_driver_probe + radix_tree_iter_delete + refcount_dec_and_mutex_lock + uuid_gen + __vmalloc + # required by vlx-vmq-module.ko default_wake_function remove_wait_queue @@ -1488,9 +1508,6 @@ pci_alloc_irq_vectors_affinity pci_free_irq_vectors pci_irq_vector - radix_tree_delete - radix_tree_insert - radix_tree_lookup radix_tree_maybe_preload schedule_timeout_uninterruptible sg_pcopy_from_buffer @@ -1539,3 +1556,20 @@ pci_bus_type __usb_create_hcd usb_hcd_platform_shutdown + +# preserved by --additions-only + drm_atomic_helper_async_check + get_random_u32 + iommu_attach_device + iommu_group_put + kthread_flush_worker + map_vm_area + mutex_trylock + of_get_next_available_child + of_io_request_and_map + of_platform_device_create + of_platform_device_destroy + of_property_match_string + snd_soc_component_exit_regmap + snd_soc_register_component + unmap_kernel_range From 662e2b3ab8fbee830d2aabe7b8de5349c4b59571 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Tue, 22 Dec 2020 16:41:10 +0900 Subject: [PATCH 7/7] ANDROID: ABI: add allowed GKI symbol for Exynosauto SoC This patch adds below two symbols to GKI allowed symbol list. - pcie_get_mps: get PCI Express maximum payload size for PCIe EP and RC - platform_find_device_by_driver: To find a platform device which are matched with exynos DRM driver 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 int pcie_get_mps(pci_dev*)' [A] 'function device* platform_find_device_by_driver(device*, const device_driver*)' Bug: 176138611 Signed-off-by: Chanho Park Change-Id: Ib06675b7431f247071f873fa8e44a7e5b90e764a --- android/abi_gki_aarch64.xml | 157 ++++++++++++++++------------- android/abi_gki_aarch64_exynosauto | 2 + 2 files changed, 87 insertions(+), 72 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index c9dc61b290de..541fa1afd553 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -2758,6 +2758,7 @@ + @@ -2870,6 +2871,7 @@ + @@ -15484,6 +15486,20 @@ + + + + + + + + + + + + + + @@ -23202,6 +23218,8 @@ + + @@ -23257,6 +23275,11 @@ + + + + + @@ -33088,7 +33111,7 @@ - + @@ -34472,7 +34495,7 @@ - + @@ -34733,7 +34756,7 @@ - + @@ -35744,7 +35767,7 @@ - + @@ -37777,14 +37800,6 @@ - - - - - - - - @@ -54274,6 +54289,7 @@ + @@ -54361,8 +54377,6 @@ - - @@ -54545,6 +54559,7 @@ + @@ -67765,6 +67780,10 @@ + + + + @@ -72195,6 +72214,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -82071,6 +82114,17 @@ + + + + + + + + + + + @@ -82364,17 +82418,6 @@ - - - - - - - - - - - @@ -93835,6 +93878,14 @@ + + + + + + + + @@ -100735,13 +100786,13 @@ - + - + - + @@ -100783,7 +100834,7 @@ - + @@ -104946,7 +104997,7 @@ - + @@ -104962,7 +105013,7 @@ - + @@ -104970,7 +105021,7 @@ - + @@ -104984,7 +105035,7 @@ - + @@ -124763,44 +124814,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -130967,6 +130980,6 @@ diff --git a/android/abi_gki_aarch64_exynosauto b/android/abi_gki_aarch64_exynosauto index 1f8c085a3dba..7dc2d76ffe84 100644 --- a/android/abi_gki_aarch64_exynosauto +++ b/android/abi_gki_aarch64_exynosauto @@ -892,6 +892,7 @@ of_graph_parse_endpoint of_phandle_iterator_init of_phandle_iterator_next + platform_find_device_by_driver strlcat videomode_from_timings @@ -1137,6 +1138,7 @@ irq_domain_get_irq_data irq_domain_set_info irq_domain_update_bus_token + pcie_get_mps pcie_set_mps pci_find_bus pci_get_device