From 81e694dedc419001fefa1a7cc74425185b977516 Mon Sep 17 00:00:00 2001 From: Mayank Grover Date: Wed, 30 Sep 2020 17:56:51 +0530 Subject: [PATCH 1/7] 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: 169739756 Change-Id: I3e992c3ecf4a06eed4b3459cb6343cc5a4f8941d Signed-off-by: Mayank Grover --- 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 1580a6ba2422..9522a5ed5ad1 100644 --- a/android/abi_gki_aarch64_qcom +++ b/android/abi_gki_aarch64_qcom @@ -1834,6 +1834,7 @@ refcount_inc_not_zero_checked __refrigerator regcache_cache_only + regcache_cache_bypass regcache_mark_dirty regcache_sync regcache_sync_region @@ -1866,6 +1867,7 @@ regmap_mmio_detach_clk regmap_raw_read regmap_read + regmap_register_patch regmap_update_bits_base regmap_write regulator_bulk_disable From d240b6929cc1d54e645a049934c13128eb5e82b7 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Tue, 15 Sep 2020 06:44:03 +0000 Subject: [PATCH 2/7] ANDROID: db845c_gki.fragment: Add missing qcom drivers required for cpufreq functionality Some additional drivers are now needed for cpufreq to work, so add them to the db845c_gki.fragment Signed-off-by: John Stultz Change-Id: Ie126f4613b9e5e31c9862d3d4b9c2afb4a5562e6 Bug: 146449535 --- arch/arm64/configs/db845c_gki.fragment | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/db845c_gki.fragment b/arch/arm64/configs/db845c_gki.fragment index f0a3ab0dd7d6..0343192544eb 100644 --- a/arch/arm64/configs/db845c_gki.fragment +++ b/arch/arm64/configs/db845c_gki.fragment @@ -65,3 +65,4 @@ CONFIG_ARM_SMMU=m CONFIG_INCREMENTAL_FS=m CONFIG_PINCTRL_MSM=m CONFIG_QCOM_COMMAND_DB=m +CONFIG_ARM_QCOM_CPUFREQ_HW=m From 2ea974a00c7bdbbee140d68d8867ddcbfb529ecc Mon Sep 17 00:00:00 2001 From: Sangmoon Kim Date: Tue, 29 Sep 2020 10:15:35 +0900 Subject: [PATCH 3/7] ANDROID: workqueue: add vendor hook for wq lockup information - Add the hook to provide additional information like a task scheduling log. Bug: 169374262 Signed-off-by: Sangmoon Kim Change-Id: I203dbc6faa77687ea48769f76658d28b29ef46fd --- drivers/android/vendor_hooks.c | 2 ++ include/trace/hooks/wqlockup.h | 24 ++++++++++++++++++++++++ kernel/workqueue.c | 5 +++++ 3 files changed, 31 insertions(+) create mode 100644 include/trace/hooks/wqlockup.h diff --git a/drivers/android/vendor_hooks.c b/drivers/android/vendor_hooks.c index 4dc0d89c835b..333f9ce7d4e0 100644 --- a/drivers/android/vendor_hooks.c +++ b/drivers/android/vendor_hooks.c @@ -18,6 +18,7 @@ #include #include #include +#include /* * Export tracepoints that act as a bare tracehook (ie: have no trace event @@ -58,3 +59,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_is_fpsimd_save); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ipi_stop); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_printk_store); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_show_regs); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_wq_lockup_pool); diff --git a/include/trace/hooks/wqlockup.h b/include/trace/hooks/wqlockup.h new file mode 100644 index 000000000000..de70eacaa8c8 --- /dev/null +++ b/include/trace/hooks/wqlockup.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM wqlockup +#define TRACE_INCLUDE_PATH trace/hooks + +#if !defined(_TRACE_HOOK_WQLOCKUP_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_HOOK_WQLOCKUP_H +#include +#include +/* + * Following tracepoints are not exported in tracefs and provide a + * mechanism for vendor modules to hook and extend functionality + */ +#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS) +DECLARE_HOOK(android_vh_wq_lockup_pool, + TP_PROTO(int cpu, unsigned long pool_ts), + TP_ARGS(cpu, pool_ts)); +#else +#define trace_android_vh_wq_lockup_pool(cpu, pool_ts) +#endif + +#endif /* _TRACE_HOOK_WQLOCKUP_H */ +/* This part must be outside protection */ +#include diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 81d99906a97c..7791fe0b9399 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -53,6 +53,10 @@ #include "workqueue_internal.h" +#include +/* events/workqueue.h uses default TRACE_INCLUDE_PATH */ +#undef TRACE_INCLUDE_PATH + enum { /* * worker_pool flags @@ -5768,6 +5772,7 @@ static void wq_watchdog_timer_fn(struct timer_list *unused) pr_cont_pool_info(pool); pr_cont(" stuck for %us!\n", jiffies_to_msecs(jiffies - pool_ts) / 1000); + trace_android_vh_wq_lockup_pool(pool->cpu, pool_ts); } } From ebaebc32e58f3eb63a865ef46aa8a01ce197c9e2 Mon Sep 17 00:00:00 2001 From: Jungrae Kim Date: Mon, 5 Oct 2020 19:41:46 +0900 Subject: [PATCH 4/7] ANDROID: ABI: update allowed list for galaxy Leaf changes summary: 28 artifacts changed (1 filtered out) Changed leaf types summary: 0 (1 filtered out) leaf type changed Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 28 Added functions Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable 28 Added functions: [A] 'function vm_struct* __get_vm_area(unsigned long int, unsigned long int, unsigned long int, unsigned long int)' [A] 'function int __kfifo_init(__kfifo*, void*, unsigned int, size_t)' [A] 'function unsigned int __kfifo_out_peek(__kfifo*, void*, unsigned int)' [A] 'function void __kfree_skb(sk_buff*)' [A] 'function void argv_free(char**)' [A] 'function char** argv_split(unsigned int, const char*, int*)' [A] 'function void cfg80211_port_authorized(net_device*, const u8*, gfp_t)' [A] 'function void class_dev_iter_exit(class_dev_iter*)' [A] 'function void class_dev_iter_init(class_dev_iter*, class*, device*, const device_type*)' [A] 'function device* class_dev_iter_next(class_dev_iter*)' [A] 'function unsigned int cpufreq_get(unsigned int)' [A] 'function device* create_function_device(char*)' [A] 'function void emergency_restart()' [A] 'function file* get_mm_exe_file(mm_struct*)' [A] 'function pid* get_task_pid(task_struct*, pid_type)' [A] 'function void gether_get_host_addr_u8(net_device*, u8*)' [A] 'function ktime_t ktime_get_coarse_with_offset(tk_offsets)' [A] 'function task_struct* pid_task(pid*, pid_type)' [A] 'function bool rfkill_set_sw_state(rfkill*, bool)' [A] 'function int send_sig(int, task_struct*, int)' [A] 'function int skb_copy_ubufs(sk_buff*, unsigned int)' [A] 'function void smpboot_unregister_percpu_thread(smp_hotplug_thread*)' [A] 'function __anonymous_struct__ sock_i_uid(sock*)' [A] 'function void sock_wfree(sk_buff*)' [A] 'function unsigned long int strspn(const char*, const char*)' [A] 'function int usb_gadget_connect(usb_gadget*)' [A] 'function int usb_gadget_disconnect(usb_gadget*)' [A] 'function unsigned long int vmalloc_to_pfn(void*)' Bug: 170065985 Signed-off-by: Jungrae Kim Change-Id: Ic14fc4aa42c42b2346e0235f92ee73fb558b2437 Signed-off-by: Jungrae Kim --- android/abi_gki_aarch64.xml | 2744 +++++++++++++++++--------------- android/abi_gki_aarch64_galaxy | 28 + 2 files changed, 1493 insertions(+), 1279 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index 3ca8c00c964d..32a09eba446c 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -93,6 +93,7 @@ + @@ -122,10 +123,13 @@ + + + @@ -323,6 +327,8 @@ + + @@ -535,6 +541,7 @@ + @@ -556,6 +563,9 @@ + + + @@ -665,6 +675,7 @@ + @@ -689,6 +700,7 @@ + @@ -1441,6 +1453,7 @@ + @@ -1569,6 +1582,7 @@ + @@ -1577,6 +1591,7 @@ + @@ -1593,6 +1608,7 @@ + @@ -2135,6 +2151,7 @@ + @@ -2699,6 +2716,7 @@ + @@ -3012,6 +3030,7 @@ + @@ -3164,6 +3183,7 @@ + @@ -3266,6 +3286,7 @@ + @@ -3307,6 +3328,7 @@ + @@ -3485,6 +3507,7 @@ + @@ -3504,6 +3527,7 @@ + @@ -3572,6 +3596,7 @@ + @@ -3893,6 +3918,8 @@ + + @@ -4171,6 +4198,7 @@ + @@ -5696,26 +5724,19 @@ - + - - - - - - - - - - - + + + + @@ -5725,6 +5746,14 @@ + + + + + + + + @@ -6020,7 +6049,7 @@ - + @@ -6777,7 +6806,7 @@ - + @@ -6807,7 +6836,7 @@ - + @@ -6854,7 +6883,7 @@ - + @@ -6866,7 +6895,7 @@ - + @@ -7227,7 +7256,7 @@ - + @@ -7249,7 +7278,7 @@ - + @@ -7355,7 +7384,7 @@ - + @@ -7372,7 +7401,26 @@ - + + + + + + + + + + + + + + + + + + + + @@ -7383,7 +7431,7 @@ - + @@ -7394,6 +7442,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7403,7 +7493,7 @@ - + @@ -7636,13 +7726,13 @@ - + - + @@ -7761,27 +7851,27 @@ - + - + - + - + @@ -7799,7 +7889,7 @@ - + @@ -8424,7 +8514,7 @@ - + @@ -8843,7 +8933,7 @@ - + @@ -8917,7 +9007,7 @@ - + @@ -8937,7 +9027,7 @@ - + @@ -8985,7 +9075,7 @@ - + @@ -9338,7 +9428,7 @@ - + @@ -9357,7 +9447,7 @@ - + @@ -9374,7 +9464,7 @@ - + @@ -9636,7 +9726,7 @@ - + @@ -9666,7 +9756,7 @@ - + @@ -9816,7 +9906,7 @@ - + @@ -9853,7 +9943,7 @@ - + @@ -9861,7 +9951,7 @@ - + @@ -9885,7 +9975,7 @@ - + @@ -9896,7 +9986,7 @@ - + @@ -9914,7 +10004,7 @@ - + @@ -9933,7 +10023,7 @@ - + @@ -9944,7 +10034,7 @@ - + @@ -9952,7 +10042,7 @@ - + @@ -9960,7 +10050,7 @@ - + @@ -9972,7 +10062,7 @@ - + @@ -9994,7 +10084,7 @@ - + @@ -10016,7 +10106,7 @@ - + @@ -10025,6 +10115,14 @@ + + + + + + + + @@ -10148,7 +10246,7 @@ - + @@ -10221,6 +10319,14 @@ + + + + + + + + @@ -10795,7 +10901,7 @@ - + @@ -11175,7 +11281,7 @@ - + @@ -11200,6 +11306,23 @@ + + + + + + + + + + + + + + + + + @@ -11213,7 +11336,7 @@ - + @@ -11534,7 +11657,7 @@ - + @@ -12216,7 +12339,7 @@ - + @@ -12224,7 +12347,7 @@ - + @@ -14168,6 +14291,14 @@ + + + + + + + + @@ -14176,6 +14307,14 @@ + + + + + + + + @@ -14187,23 +14326,6 @@ - - - - - - - - - - - - - - - - - @@ -14220,106 +14342,36 @@ - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -14383,22 +14435,6 @@ - - - - - - - - - - - - - - - - @@ -14547,6 +14583,12 @@ + + + + + + @@ -15249,22 +15291,7 @@ - - - - - - - - - - - - - - - - + @@ -15916,7 +15943,6 @@ - @@ -16051,6 +16077,22 @@ + + + + + + + + + + + + + + + + @@ -16211,8 +16253,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -16232,6 +16319,17 @@ + + + + + + + + + + + @@ -16261,6 +16359,10 @@ + + + + @@ -18710,7 +18812,7 @@ - + @@ -18723,27 +18825,16 @@ - - - - - - - - - - - - - - - - - - + + + + + + + @@ -18759,6 +18850,19 @@ + + + + + + + + + + + + + @@ -18906,7 +19010,7 @@ - + @@ -18944,6 +19048,20 @@ + + + + + + + + + + + + + + @@ -18952,7 +19070,91 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18990,164 +19192,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - + + - - - - - - - - - - + @@ -19162,7 +19217,7 @@ - + @@ -19173,7 +19228,7 @@ - + @@ -19193,7 +19248,7 @@ - + @@ -19201,7 +19256,24 @@ - + + + + + + + + + + + + + + + + + + @@ -19299,7 +19371,7 @@ - + @@ -20094,6 +20166,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -20163,7 +20273,7 @@ - + @@ -20452,7 +20562,7 @@ - + @@ -22281,6 +22391,10 @@ + + + + @@ -22452,31 +22566,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - @@ -22555,9 +22644,7 @@ - - @@ -22644,10 +22731,6 @@ - - - - @@ -26937,7 +27020,7 @@ - + @@ -26948,7 +27031,7 @@ - + @@ -27968,6 +28051,10 @@ + + + + @@ -31495,7 +31582,7 @@ - + @@ -32572,7 +32659,7 @@ - + @@ -33956,7 +34043,7 @@ - + @@ -34217,7 +34304,7 @@ - + @@ -34431,6 +34518,7 @@ + @@ -35222,7 +35310,7 @@ - + @@ -36917,6 +37005,14 @@ + + + + + + + + @@ -37936,7 +38032,6 @@ - @@ -42869,7 +42964,7 @@ - + @@ -42944,7 +43039,7 @@ - + @@ -44646,45 +44741,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -44945,25 +45023,6 @@ - - - - - - - - - - - - - - - - - - - @@ -53884,14 +53943,6 @@ - - - - - - - - @@ -55154,14 +55205,6 @@ - - - - - - - - @@ -55928,36 +55971,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -56102,8 +56115,6 @@ - - @@ -56111,8 +56122,6 @@ - - @@ -56202,11 +56211,11 @@ - + - + @@ -56323,6 +56332,11 @@ + + + + + @@ -58682,6 +58696,9 @@ + + + @@ -58744,7 +58761,7 @@ - + @@ -58981,10 +58998,10 @@ - + - + @@ -59596,7 +59613,7 @@ - + @@ -59608,7 +59625,7 @@ - + @@ -59619,7 +59636,7 @@ - + @@ -59641,7 +59658,7 @@ - + @@ -59815,7 +59832,7 @@ - + @@ -59870,7 +59887,7 @@ - + @@ -60457,7 +60474,7 @@ - + @@ -60664,7 +60681,7 @@ - + @@ -60753,7 +60770,7 @@ - + @@ -60761,7 +60778,7 @@ - + @@ -60769,7 +60786,7 @@ - + @@ -60777,7 +60794,7 @@ - + @@ -60981,7 +60998,7 @@ - + @@ -60995,7 +61012,7 @@ - + @@ -61009,7 +61026,7 @@ - + @@ -61017,7 +61034,7 @@ - + @@ -61051,7 +61068,7 @@ - + @@ -61300,6 +61317,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -62224,28 +62268,21 @@ - + - - - - - - - - - - - + + + + - + @@ -62253,6 +62290,14 @@ + + + + + + + + @@ -62778,7 +62823,7 @@ - + @@ -62909,7 +62954,8 @@ - + + @@ -62933,6 +62979,7 @@ + @@ -62953,12 +63000,16 @@ + + + + @@ -63041,6 +63092,7 @@ + @@ -63052,7 +63104,8 @@ - + + @@ -63066,8 +63119,10 @@ + - + + @@ -63173,7 +63228,7 @@ - + @@ -63268,7 +63323,7 @@ - + @@ -63348,7 +63403,7 @@ - + @@ -63362,7 +63417,7 @@ - + @@ -63427,11 +63482,11 @@ - + - + @@ -63751,7 +63806,7 @@ - + @@ -63843,7 +63898,7 @@ - + @@ -63872,11 +63927,11 @@ - + - + @@ -63981,7 +64036,7 @@ - + @@ -63992,7 +64047,7 @@ - + @@ -64000,7 +64055,7 @@ - + @@ -64016,7 +64071,7 @@ - + @@ -64032,7 +64087,7 @@ - + @@ -64040,7 +64095,7 @@ - + @@ -64054,7 +64109,7 @@ - + @@ -64065,7 +64120,7 @@ - + @@ -64073,7 +64128,7 @@ - + @@ -64081,7 +64136,7 @@ - + @@ -64089,7 +64144,7 @@ - + @@ -64097,7 +64152,7 @@ - + @@ -64116,7 +64171,7 @@ - + @@ -79394,17 +79449,6 @@ - - - - - - - - - - - @@ -81453,6 +81497,10 @@ + + + + @@ -81843,6 +81891,13 @@ + + + + + + + @@ -81889,6 +81944,14 @@ + + + + + + + + @@ -84335,6 +84398,8 @@ + + @@ -86717,7 +86782,7 @@ - + @@ -87101,7 +87166,7 @@ - + @@ -87931,7 +87996,7 @@ - + @@ -88042,11 +88107,11 @@ - + - + @@ -88074,11 +88139,11 @@ - + - + @@ -88543,12 +88608,12 @@ - + - + @@ -88810,7 +88875,7 @@ - + @@ -88832,7 +88897,7 @@ - + @@ -88865,6 +88930,17 @@ + + + + + + + + + + + @@ -89302,6 +89378,23 @@ + + + + + + + + + + + + + + + + + @@ -89372,7 +89465,7 @@ - + @@ -89401,7 +89494,7 @@ - + @@ -90176,23 +90269,6 @@ - - - - - - - - - - - - - - - - - @@ -91096,12 +91172,12 @@ - + - + - + @@ -92087,10 +92163,13 @@ - + + + + @@ -92290,6 +92369,10 @@ + + + + @@ -92298,6 +92381,11 @@ + + + + + @@ -92314,13 +92402,18 @@ - + - + + + + + + @@ -93228,14 +93321,6 @@ - - - - - - - - @@ -93507,6 +93592,9 @@ + + + @@ -93891,6 +93979,7 @@ + @@ -93904,8 +93993,10 @@ + + @@ -98009,7 +98100,7 @@ - + @@ -98351,13 +98442,13 @@ - + - + @@ -98684,7 +98775,7 @@ - + @@ -98762,10 +98853,10 @@ - + - + @@ -101815,7 +101906,7 @@ - + @@ -101854,63 +101945,25 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -101958,6 +102011,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -101986,6 +102065,23 @@ + + + + + + + + + + + + + + + + + @@ -102144,7 +102240,7 @@ - + @@ -102173,7 +102269,7 @@ - + @@ -102181,7 +102277,7 @@ - + @@ -103180,9 +103276,9 @@ - + - + @@ -103266,7 +103362,7 @@ - + @@ -104470,6 +104566,10 @@ + + + + @@ -105156,6 +105256,10 @@ + + + + @@ -105218,7 +105322,7 @@ - + @@ -105228,7 +105332,7 @@ - + @@ -105239,7 +105343,7 @@ - + @@ -105251,7 +105355,7 @@ - + @@ -105264,7 +105368,7 @@ - + @@ -105278,7 +105382,7 @@ - + @@ -105293,7 +105397,7 @@ - + @@ -105908,6 +106012,12 @@ + + + + + + @@ -105915,6 +106025,10 @@ + + + + @@ -106624,12 +106738,25 @@ + + + + + + + + + + + + + @@ -106961,6 +107088,11 @@ + + + + + @@ -107667,7 +107799,7 @@ - + @@ -107677,7 +107809,7 @@ - + @@ -107824,37 +107956,18 @@ - + - - - - - - - - - - - - - - - - - - - - - - - + + + + - + @@ -107876,6 +107989,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -108010,6 +108143,10 @@ + + + + @@ -108030,6 +108167,13 @@ + + + + + + + @@ -108175,7 +108319,7 @@ - + @@ -108195,7 +108339,7 @@ - + @@ -108655,10 +108799,28 @@ - + + + + + + + + + + + + + + + + + + + @@ -108688,17 +108850,6 @@ - - - - - - - - - - - @@ -108848,6 +108999,10 @@ + + + + @@ -108938,12 +109093,26 @@ + + + + + + + + + + + + + + - + @@ -108964,6 +109133,10 @@ + + + + @@ -109243,8 +109416,8 @@ - - + + @@ -109261,7 +109434,7 @@ - + @@ -109386,7 +109559,7 @@ - + @@ -109485,6 +109658,17 @@ + + + + + + + + + + + @@ -110145,7 +110329,7 @@ - + @@ -110154,26 +110338,13 @@ - - - - - - - - - - - - - - - - - + + + + @@ -110183,6 +110354,20 @@ + + + + + + + + + + + + + + @@ -110192,7 +110377,7 @@ - + @@ -111679,7 +111864,7 @@ - + @@ -111694,19 +111879,19 @@ - + - + - + @@ -111714,7 +111899,7 @@ - + @@ -111722,7 +111907,7 @@ - + @@ -111744,7 +111929,7 @@ - + @@ -112278,7 +112463,7 @@ - + @@ -112459,6 +112644,22 @@ + + + + + + + + + + + + + + + + @@ -112889,7 +113090,7 @@ - + @@ -113310,7 +113511,7 @@ - + @@ -113474,7 +113675,7 @@ - + @@ -114358,7 +114559,7 @@ - + @@ -114428,45 +114629,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -114474,7 +114637,7 @@ - + @@ -115384,7 +115547,7 @@ - + @@ -115436,7 +115599,7 @@ - + @@ -115788,6 +115951,8 @@ + + @@ -115797,7 +115962,6 @@ - @@ -115810,6 +115974,7 @@ + @@ -115833,11 +115998,11 @@ - + - + @@ -115949,6 +116114,10 @@ + + + + @@ -116143,7 +116312,7 @@ - + @@ -116224,7 +116393,6 @@ - @@ -116751,6 +116919,11 @@ + + + + + @@ -116774,7 +116947,7 @@ - + @@ -117410,7 +117583,7 @@ - + @@ -117568,7 +117741,7 @@ - + @@ -118242,282 +118415,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -118571,91 +118468,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -118670,6 +118482,24 @@ + + + + + + + + + + + + + + + + + + @@ -118772,6 +118602,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -119042,6 +118895,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -119674,7 +119855,7 @@ - + @@ -120365,7 +120546,7 @@ - + @@ -120637,7 +120818,7 @@ - + @@ -121415,7 +121596,6 @@ - @@ -121441,7 +121621,7 @@ - + @@ -121924,70 +122104,70 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -121995,13 +122175,13 @@ - + - + @@ -122010,13 +122190,13 @@ - + - + @@ -122053,25 +122233,25 @@ - + - + - + - + @@ -122081,7 +122261,7 @@ - + @@ -122161,18 +122341,12 @@ - + - + - - - - - - - + @@ -122884,39 +123058,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -123626,6 +123767,12 @@ + + + + + + @@ -123640,6 +123787,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -123655,6 +123840,7 @@ + @@ -129884,6 +130070,6 @@ diff --git a/android/abi_gki_aarch64_galaxy b/android/abi_gki_aarch64_galaxy index 3e4c50792f6c..64224db2d514 100644 --- a/android/abi_gki_aarch64_galaxy +++ b/android/abi_gki_aarch64_galaxy @@ -58,6 +58,7 @@ __free_pages __get_free_pages __get_task_comm + __get_vm_area __getblk_gfp __hrtimer_get_remaining __hwspin_lock_timeout @@ -75,8 +76,11 @@ __kfifo_alloc __kfifo_free __kfifo_in + __kfifo_init __kfifo_out + __kfifo_out_peek __kfifo_to_user + __kfree_skb __kmalloc __kthread_init_worker __list_add_valid @@ -228,6 +232,8 @@ arch_set_freq_scale arch_setup_dma_ops arch_timer_read_counter + argv_free + argv_split arm64_const_caps_ready atomic_notifier_call_chain atomic_notifier_chain_register @@ -305,6 +311,7 @@ cfg80211_mgmt_tx_status cfg80211_michael_mic_failure cfg80211_new_sta + cfg80211_port_authorized cfg80211_put_bss cfg80211_ready_on_channel cfg80211_remain_on_channel_expired @@ -318,6 +325,9 @@ cfg80211_vendor_cmd_reply class_create_file_ns class_destroy + class_dev_iter_exit + class_dev_iter_init + class_dev_iter_next class_find_device class_interface_unregister class_unregister @@ -411,6 +421,7 @@ cpufreq_frequency_table_verify cpufreq_generic_attr cpufreq_generic_frequency_table_verify + cpufreq_get cpufreq_quick_get cpufreq_quick_get_max cpufreq_register_driver @@ -427,6 +438,7 @@ crc32_le crc8 crc8_populate_msb + create_function_device crypto_alloc_shash crypto_destroy_tfm crypto_register_rngs @@ -914,6 +926,7 @@ dw_pcie_read dw_pcie_setup_rc dw_pcie_write + emergency_restart enable_irq enable_percpu_irq end_buffer_read_sync @@ -994,10 +1007,12 @@ get_cpu_device get_cpu_idle_time get_device + get_mm_exe_file get_options get_pid_task get_random_bytes get_random_u32 + get_task_pid get_thermal_instance get_unmapped_area get_unused_fd_flags @@ -1012,6 +1027,7 @@ gether_get_dev_addr gether_get_host_addr gether_get_host_addr_cdc + gether_get_host_addr_u8 gether_get_ifname gether_get_qmult gether_register_netdev @@ -1356,6 +1372,7 @@ kthread_unpark kthread_worker_fn ktime_get + ktime_get_coarse_with_offset ktime_get_mono_fast_ns ktime_get_raw ktime_get_raw_ts64 @@ -1678,6 +1695,7 @@ phy_reset phy_set_mode_ext physvirt_offset + pid_task pinconf_generic_dt_node_to_map pinctrl_add_gpio_range pinctrl_dev_get_drvdata @@ -1883,6 +1901,7 @@ rfkill_destroy rfkill_init_sw_state rfkill_register + rfkill_set_sw_state rfkill_unregister rndis_deregister rndis_free_response @@ -1969,6 +1988,7 @@ sdhci_set_bus_width sdhci_setup_host sdio_signal_irq + send_sig send_sig_info seq_lseek seq_printf @@ -2018,6 +2038,7 @@ skb_copy_bits skb_copy_datagram_iter skb_copy_expand + skb_copy_ubufs skb_dequeue skb_free_datagram skb_pull @@ -2036,6 +2057,7 @@ smp_call_function_single smp_call_function_single_async smp_call_on_cpu + smpboot_unregister_percpu_thread snd_card_free snd_card_new snd_card_register @@ -2163,6 +2185,7 @@ sock_alloc_send_skb sock_create_kern sock_gettstamp + sock_i_uid sock_init_data sock_no_accept sock_no_getsockopt @@ -2176,6 +2199,7 @@ sock_register sock_release sock_unregister + sock_wfree sort spi_bus_type spi_controller_resume @@ -2231,6 +2255,7 @@ strreplace strscpy strsep + strspn strstr submit_bh subsys_system_register @@ -2428,6 +2453,8 @@ usb_free_urb usb_function_register usb_function_unregister + usb_gadget_connect + usb_gadget_disconnect usb_gadget_giveback_request usb_gadget_map_request_by_dev usb_gadget_set_state @@ -2617,6 +2644,7 @@ vm_unmap_ram vmalloc vmalloc_to_page + vmalloc_to_pfn vmalloc_user vmap vmemmap From c37c28d9aa08bd87247d186e9c2975af2cfe182f Mon Sep 17 00:00:00 2001 From: "rogercl.yang" Date: Wed, 23 Sep 2020 11:32:32 +0800 Subject: [PATCH 5/7] ANDROID: adding __nocfi to cpuidle_enter_state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Background: When CPU is going to idle state, it would inform RCU that current CPU is entering idle through rcu_idle_enter(), and RCU will ignore read-side critical sections of this CPU. However, there is CFI check mechanism inside idle flow and calls rcu_read_lock(), so "rcu_read_lock() used illegally while idle" in rcu_read_lock() will be triggered because rcu_idle_enter() was already called before. Beside, the pointer of rcu_dereference() might be invalid due to the RCU read-side critical sections will be ignoring in this going idle CPU, it might cause problems like: access the wrong data/address, kernel exception... Based on above description: We will add __nocfi to cpuidle_enter_state to avoid “rcu_read_lock() used illegally while idle!” and avoid the usage of invalid pointer of rcu_dereference() in this situation. Bug: 169017431 Change-Id: I8bbe25704e18cfde351a8f4277dd4b44b07421f5 Signed-off-by: rogercl.yang Signed-off-by: Chun-Hung Wu --- drivers/cpuidle/cpuidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 29d2d7a21bd7..4b5ea6d09a68 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -194,7 +194,7 @@ int cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) * @drv: cpuidle driver for this cpu * @index: index into the states table in @drv of the state to enter */ -int cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, +int __nocfi cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { int entered_state; From de198b0f2d391a32b41b5fd6cfab1f6679ed4c03 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 10 Oct 2020 12:10:21 +0200 Subject: [PATCH 6/7] ANDROID: GKI: update Vivo symbol list Update the Vivo symbol list to come up to date with some more modules. No new symbols are exported from the system, so no .xml file change needed. New symbol additions should come in their own, separate commit. Bug: 170441871 Cc: Chenggang Wang Signed-off-by: Greg Kroah-Hartman Change-Id: Ic597312f943fe0dc67199ff1c51cd32ace939abe --- android/abi_gki_aarch64_vivo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/android/abi_gki_aarch64_vivo b/android/abi_gki_aarch64_vivo index b739d3bee3dc..0b239eadbc12 100644 --- a/android/abi_gki_aarch64_vivo +++ b/android/abi_gki_aarch64_vivo @@ -186,6 +186,7 @@ config_ep_by_speed config_group_init_type_name config_item_put + console_printk console_stop console_suspend_enabled __const_udelay @@ -365,6 +366,7 @@ devm_reset_controller_register devm_rtc_device_register devm_snd_soc_register_card + devm_snd_soc_register_component devm_thermal_zone_of_sensor_register devm_usb_get_phy devm_usb_get_phy_by_phandle @@ -720,6 +722,7 @@ find_next_zero_bit find_snd_usb_substream find_vma + find_vpid finish_wait firmware_request_nowarn fixed_phy_register @@ -784,9 +787,11 @@ gether_set_host_addr gether_set_qmult gether_setup_name_default + get_pid_task get_random_bytes get_random_u32 __get_task_comm + get_task_mm get_unmapped_area get_unused_fd_flags get_user_pages @@ -852,6 +857,8 @@ i2c_get_dma_safe_msg_buf i2c_put_dma_safe_msg_buf i2c_register_driver + i2c_smbus_read_byte_data + i2c_smbus_write_byte_data i2c_transfer i2c_transfer_buffer_flags i2c_unregister_device @@ -886,6 +893,7 @@ init_dummy_netdev init_net __init_rwsem + init_task init_timer_key init_uts_ns init_wait_entry @@ -1051,6 +1059,7 @@ kstrtou8 kstrtouint kstrtoull + kstrtoull_from_user kthread_cancel_delayed_work_sync kthread_cancel_work_sync kthread_create_on_node @@ -1147,6 +1156,7 @@ misc_register mmc_of_parse mmc_send_tuning + mmput mod_delayed_work_on mod_node_page_state mod_timer @@ -1400,6 +1410,7 @@ physvirt_offset phy_unregister_fixup_for_uid phy_write_mmd + pid_task pinconf_generic_dt_node_to_map pinctrl_dev_get_drvdata pinctrl_get @@ -1466,8 +1477,10 @@ power_supply_get_drvdata power_supply_get_property power_supply_put + power_supply_register power_supply_reg_notifier power_supply_set_property + power_supply_unregister power_supply_unreg_notifier prandom_u32 preempt_schedule @@ -1647,6 +1660,7 @@ rndis_set_param_vendor rndis_signal_connect rndis_uninit + round_jiffies_relative rpmsg_create_ept rpmsg_destroy_ept rpmsg_poll @@ -1671,6 +1685,7 @@ sched_clock sched_setattr sched_setscheduler + sched_show_task schedule schedule_timeout schedule_timeout_interruptible @@ -2336,7 +2351,9 @@ __wake_up __wake_up_locked wake_up_process + wakeup_source_add wakeup_source_register + wakeup_source_remove wakeup_source_unregister __warn_printk wiphy_free From 42e516f6b23bcef8e7050d064d2c02c1464c201e Mon Sep 17 00:00:00 2001 From: Jeehong Kim Date: Mon, 12 Oct 2020 13:13:30 +0900 Subject: [PATCH 7/7] ANDROID: ABI: update allowed list for galaxy 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 int i2c_bit_add_numbered_bus(i2c_adapter*)' Bug: 170575183 Signed-off-by: Jeehong Kim Change-Id: I300ccb7a97d0671037f3af1fc81f0fa41419e3f0 --- android/abi_gki_aarch64.xml | 1115 ++++++++++++++++---------------- android/abi_gki_aarch64_galaxy | 2 + 2 files changed, 568 insertions(+), 549 deletions(-) diff --git a/android/abi_gki_aarch64.xml b/android/abi_gki_aarch64.xml index 32a09eba446c..1c0b90949bf2 100644 --- a/android/abi_gki_aarch64.xml +++ b/android/abi_gki_aarch64.xml @@ -1710,6 +1710,7 @@ + @@ -15265,7 +15266,6 @@ - @@ -36752,7 +36752,7 @@ - + @@ -36916,7 +36916,7 @@ - + @@ -37604,7 +37604,7 @@ - + @@ -38380,12 +38380,12 @@ - - + + - + @@ -38399,12 +38399,12 @@ - + - + @@ -38424,7 +38424,7 @@ - + @@ -38452,7 +38452,7 @@ - + @@ -38835,7 +38835,7 @@ - + @@ -39710,6 +39710,12 @@ + + + + + + @@ -55205,6 +55211,14 @@ + + + + + + + + @@ -71769,22 +71783,6 @@ - - - - - - - - - - - - - - - - @@ -72363,6 +72361,22 @@ + + + + + + + + + + + + + + + + @@ -74772,7 +74786,7 @@ - + @@ -74902,7 +74916,7 @@ - + @@ -88584,6 +88598,23 @@ + + + + + + + + + + + + + + + + + @@ -89378,23 +89409,6 @@ - - - - - - - - - - - - - - - - - @@ -106041,80 +106055,80 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -106172,113 +106186,113 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -106292,12 +106306,12 @@ - + - + - + @@ -106306,14 +106320,14 @@ - - - - - - - - + + + + + + + + @@ -106321,16 +106335,16 @@ - - + + - - + + - - + + @@ -106342,7 +106356,7 @@ - + @@ -108342,7 +108356,7 @@ - + @@ -108426,7 +108440,7 @@ - + @@ -109310,6 +109324,17 @@ + + + + + + + + + + + @@ -109658,17 +109683,6 @@ - - - - - - - - - - - @@ -112622,7 +112636,15 @@ - + + + + + + + + + @@ -112630,7 +112652,7 @@ - + @@ -112644,7 +112666,7 @@ - + @@ -112652,7 +112674,7 @@ - + @@ -113511,7 +113533,7 @@ - + @@ -113675,7 +113697,7 @@ - + @@ -114559,7 +114581,7 @@ - + @@ -116941,6 +116963,17 @@ + + + + + + + + + + + @@ -118415,6 +118448,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -118468,6 +118777,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -118482,24 +118876,6 @@ - - - - - - - - - - - - - - - - - - @@ -118602,29 +118978,6 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -118895,334 +119248,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -120546,7 +120571,7 @@ - + @@ -120818,7 +120843,7 @@ - + @@ -121596,6 +121621,7 @@ + @@ -121621,7 +121647,7 @@ - + @@ -122104,70 +122130,70 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -122175,13 +122201,13 @@ - + - + @@ -122190,13 +122216,13 @@ - + - + @@ -122233,25 +122259,25 @@ - + - + - + - + @@ -122261,7 +122287,7 @@ - + @@ -122333,14 +122359,6 @@ - - - - - - - - @@ -123840,7 +123858,6 @@ - diff --git a/android/abi_gki_aarch64_galaxy b/android/abi_gki_aarch64_galaxy index 64224db2d514..690d1f72c4b0 100644 --- a/android/abi_gki_aarch64_galaxy +++ b/android/abi_gki_aarch64_galaxy @@ -558,6 +558,7 @@ devm_gpio_request devm_gpio_request_one devm_gpiochip_add_data + devm_gpiod_get devm_gpiod_get_optional devm_iio_channel_get devm_iio_device_alloc @@ -1100,6 +1101,7 @@ i2c_adapter_type i2c_add_adapter i2c_add_numbered_adapter + i2c_bit_add_numbered_bus i2c_bus_type i2c_del_adapter i2c_del_driver