Commit Graph

178 Commits

Author SHA1 Message Date
Yifan Hong
52b9f943fb ANDROID: Update symbol list for virtual device.
This is updated by
  tools/bazel run //common-modules/virtual-device:virtual_device_aarch64_abi_update_symbol_list

Test: TH
Bug: 267694690
Change-Id: I876704cc5d0aa84647f3dbf1e30c08dd5136286a
Signed-off-by: Yifan Hong <elsk@google.com>
2023-02-10 17:25:07 +00:00
Ulises Mendez Martinez
24886bc4db ANDROID: rockpi4: Add ABI targets & symbol list
* This is the initial symbol list for
rockpi4 target.

Bug: 261782070
Change-Id: I76f8924f5e40c6ecfb91a5291b86a9d4fd9badb0
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2023-01-24 20:19:05 +00:00
Will McVicker
544ef44837 ANDROID: Update the ABI symbol list
Adding the following symbols:
  - android_debug_symbol
  - arch_freq_scale
  - bio_add_page
  - bio_alloc_bioset
  - bio_associate_blkg
  - bio_chain
  - bio_endio
  - bio_end_io_acct_remapped
  - bio_init
  - bio_put
  - bio_start_io_acct
  - __bitmap_andnot
  - bitmap_find_next_zero_area_off
  - __bitmap_or
  - __bitmap_set
  - __bitmap_xor
  - __blk_alloc_disk
  - blk_check_plugged
  - blk_cleanup_disk
  - blkdev_get_by_dev
  - blkdev_put
  - 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
  - blk_status_to_errno
  - __cfg80211_alloc_event_skb
  - __cfg80211_alloc_reply_skb
  - cfg80211_chandef_create
  - cfg80211_ch_switch_notify
  - cfg80211_connect_done
  - cfg80211_del_sta_sinfo
  - cfg80211_disconnected
  - cfg80211_external_auth_request
  - cfg80211_find_elem_match
  - cfg80211_get_bss
  - cfg80211_ibss_joined
  - cfg80211_inform_bss_frame_data
  - cfg80211_mgmt_tx_status_ext
  - cfg80211_michael_mic_failure
  - cfg80211_new_sta
  - cfg80211_port_authorized
  - cfg80211_put_bss
  - cfg80211_ready_on_channel
  - cfg80211_register_netdevice
  - cfg80211_remain_on_channel_expired
  - cfg80211_roamed
  - cfg80211_rx_mgmt_ext
  - cfg80211_scan_done
  - cfg80211_sched_scan_results
  - cfg80211_sched_scan_stopped_locked
  - __cfg80211_send_event_skb
  - cfg80211_unlink_bss
  - cfg80211_unregister_wdev
  - cfg80211_update_owe_info_event
  - cfg80211_vendor_cmd_reply
  - cpufreq_get_policy
  - cpufreq_table_index_unsorted
  - cpu_hotplug_disable
  - cpu_hotplug_enable
  - cpumask_local_spread
  - crypto_alloc_base
  - crypto_comp_compress
  - crypto_comp_decompress
  - del_gendisk
  - dev_get_stats
  - device_add_disk
  - device_get_child_node_count
  - device_get_match_data
  - device_get_next_child_node
  - devm_input_allocate_device
  - __devm_irq_alloc_descs
  - devm_krealloc
  - __devm_regmap_init_spmi_ext
  - disk_end_io_acct
  - disk_start_io_acct
  - drm_dsc_pps_payload_pack
  - file_path
  - filp_close
  - filp_open_block
  - flush_dcache_page
  - fs_bio_set
  - fsnotify
  - __fsnotify_parent
  - fsync_bdev
  - fwnode_property_read_string
  - fwnode_property_read_u32_array
  - gether_cleanup
  - gether_connect
  - gether_disconnect
  - gether_get_dev_addr
  - gether_get_host_addr
  - gether_get_host_addr_u8
  - gether_get_ifname
  - gether_get_qmult
  - gether_register_netdev
  - gether_set_dev_addr
  - gether_set_gadget
  - gether_set_host_addr
  - gether_set_ifname
  - gether_set_qmult
  - gether_setup_name_default
  - get_task_cred
  - ida_destroy
  - ieee80211_channel_to_freq_khz
  - ieee80211_freq_khz_to_channel
  - ieee80211_get_channel_khz
  - input_alloc_absinfo
  - input_ff_create
  - interval_tree_insert
  - interval_tree_iter_first
  - interval_tree_iter_next
  - interval_tree_remove
  - int_pow
  - iommu_dma_enable_best_fit_algo
  - irq_domain_get_irq_data
  - irq_domain_set_info
  - irq_force_affinity
  - irq_to_desc
  - kfree_skb_reason
  - memchr
  - memset64
  - __memset_io
  - __mmap_lock_do_trace_acquire_returned
  - __mmap_lock_do_trace_released
  - __mmap_lock_do_trace_start_locking
  - ns_capable
  - of_find_node_with_property
  - of_platform_device_create
  - of_platform_device_destroy
  - page_endio
  - pci_msi_mask_irq
  - pci_msi_unmask_irq
  - pkvm_iommu_s2mpu_init
  - pkvm_iommu_s2mpu_register
  - platform_get_irq_optional
  - pm_runtime_get_if_active
  - proc_set_size
  - __put_cred
  - reboot_mode
  - __register_blkdev
  - regulatory_hint
  - regulatory_set_wiphy_regd
  - regulatory_set_wiphy_regd_sync
  - rtnl_trylock
  - sched_set_fifo
  - sched_set_normal
  - set_blocksize
  - set_capacity
  - set_capacity_and_notify
  - set_user_nice
  - spmi_controller_add
  - spmi_controller_alloc
  - spmi_controller_remove
  - __spmi_driver_register
  - submit_bio
  - submit_bio_wait
  - suspend_set_ops
  - __tasklet_hi_schedule
  - __traceiter_android_rvh_arm64_serror_panic
  - __traceiter_android_rvh_cgroup_force_kthread_migration
  - __traceiter_android_rvh_die_kernel_fault
  - __traceiter_android_rvh_do_mem_abort
  - __traceiter_android_rvh_do_ptrauth_fault
  - __traceiter_android_rvh_do_sea
  - __traceiter_android_rvh_do_sp_pc_abort
  - __traceiter_android_rvh_do_undefinstr
  - __traceiter_android_rvh_enqueue_task
  - __traceiter_android_rvh_panic_unhandled
  - __traceiter_android_rvh_select_task_rq_fair
  - __traceiter_android_rvh_set_cpus_allowed_by_task
  - __traceiter_android_rvh_set_task_cpu
  - __traceiter_android_rvh_typec_tcpci_get_vbus
  - __traceiter_android_rvh_ufs_complete_init
  - __traceiter_android_rvh_ufs_reprogram_all_keys
  - __traceiter_android_rvh_update_rt_rq_load_avg
  - __traceiter_android_vh_binder_restore_priority
  - __traceiter_android_vh_binder_set_priority
  - __traceiter_android_vh_dump_throttled_rt_tasks
  - __traceiter_android_vh_dup_task_struct
  - __traceiter_android_vh_enable_thermal_genl_check
  - __traceiter_android_vh_typec_store_partner_src_caps
  - __traceiter_android_vh_typec_tcpci_override_toggling
  - __traceiter_android_vh_typec_tcpm_get_timer
  - __traceiter_android_vh_typec_tcpm_log
  - __traceiter_android_vh_ufs_update_sdev
  - __traceiter_mmap_lock_acquire_returned
  - __traceiter_mmap_lock_released
  - __traceiter_mmap_lock_start_locking
  - __tracepoint_android_rvh_arm64_serror_panic
  - __tracepoint_android_rvh_cgroup_force_kthread_migration
  - __tracepoint_android_rvh_die_kernel_fault
  - __tracepoint_android_rvh_do_mem_abort
  - __tracepoint_android_rvh_do_ptrauth_fault
  - __tracepoint_android_rvh_do_sea
  - __tracepoint_android_rvh_do_sp_pc_abort
  - __tracepoint_android_rvh_do_undefinstr
  - __tracepoint_android_rvh_enqueue_task
  - __tracepoint_android_rvh_panic_unhandled
  - __tracepoint_android_rvh_select_task_rq_fair
  - __tracepoint_android_rvh_set_cpus_allowed_by_task
  - __tracepoint_android_rvh_set_task_cpu
  - __tracepoint_android_rvh_typec_tcpci_get_vbus
  - __tracepoint_android_rvh_ufs_complete_init
  - __tracepoint_android_rvh_ufs_reprogram_all_keys
  - __tracepoint_android_rvh_update_rt_rq_load_avg
  - __tracepoint_android_vh_binder_restore_priority
  - __tracepoint_android_vh_binder_set_priority
  - __tracepoint_android_vh_dump_throttled_rt_tasks
  - __tracepoint_android_vh_dup_task_struct
  - __tracepoint_android_vh_enable_thermal_genl_check
  - __tracepoint_android_vh_typec_store_partner_src_caps
  - __tracepoint_android_vh_typec_tcpci_override_toggling
  - __tracepoint_android_vh_typec_tcpm_get_timer
  - __tracepoint_android_vh_typec_tcpm_log
  - __tracepoint_android_vh_ufs_update_sdev
  - __tracepoint_mmap_lock_acquire_returned
  - __tracepoint_mmap_lock_released
  - __tracepoint_mmap_lock_start_locking
  - ufshcd_auto_hibern8_update
  - unregister_blkdev
  - ___update_load_avg
  - ___update_load_sum
  - usb_assign_descriptors
  - usb_ep_alloc_request
  - usb_ep_disable
  - usb_ep_enable
  - usb_ep_free_request
  - usb_ep_queue
  - usb_free_all_descriptors
  - usb_gadget_activate
  - usb_gadget_deactivate
  - usb_gstrings_attach
  - usb_os_desc_prepare_interf_dir
  - vprintk_emit
  - wiphy_free
  - wiphy_new_nm
  - wiphy_register
  - wiphy_unregister
  - 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

Bug: 259083761
Change-Id: I81e1d7274faaf4f6b8f9d000e353269ee5182ae8
Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-01-18 20:01:08 +00:00
davidchiang
b804aea45a ANDROID: Update the ABI symbol list
Add symbols find_vm_area to android/abi_gki_aarch64_pixel.

1 function symbol(s) added
  'struct vm_struct * find_vm_area(void *)'

Bug: 263839332
Change-Id: Ib3af0cfa2b70f9fe0218d0006ea23b94d265522f
Signed-off-by: davidchiang <davidchiang@google.com>
2023-01-11 19:07:28 +00:00
Mostafa Saleh
09b9571931 ANDROID: arm64: kvm: iommu: Export IOMMU register and init functions.
As S2MPU driver was moved to an EL2 module, we need to export init
and register functions to be used from the module.

Bug: 261857213
Change-Id: I819dff0e6164051c464533d80eb68ea003b34b21
Signed-off-by: Mostafa Saleh <smostafa@google.com>
2023-01-06 19:32:46 +00:00
Mostafa Saleh
3f06d93b21 ANDROID: Remove S2MPU symbols
As S2MPU driver is removed from common kernel, remove it's symbols.

Bug: 261857213
Change-Id: I7c70f656ffe9c8555fba1085dae29ac8c5de0f5e
Signed-off-by: Mostafa Saleh <smostafa@google.com>
2023-01-06 19:32:46 +00:00
Greg Kroah-Hartman
a12422f8c9 Revert "ANDROID: Update the ABI representation"
This reverts commit 8a57e65659.

Reason for revert: This symbol "PageMovable" should not be used by
any driver and is being removed from upstream.

Bug: 264353898
Bug: 261718474
Cc: Jörg Wagner <jorwag@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I368f30bd4ab1f28480ee37e3ee10df9dbb2f5744
2023-01-06 14:57:16 +00:00
Jörg Wagner
8a57e65659 ANDROID: Update the ABI representation
1 function symbol(s) added
  'int PageMovable(struct page *)'

Bug: 264353898
Bug: 261718474

Signed-off-by: Jörg Wagner <jorwag@google.com>
Change-Id: I33d4ff94006b42c650b72825353d6eafe101d612
(cherry picked from commit f714a01629b9da755252ff53f1825a2362bfa551)
2023-01-05 19:05:16 +00:00
Will McVicker
bc36689351 ANDROID: Update the ABI symbol list
Adding the following symbols:
  - devm_memremap
  - devm_memunmap
  - vm_iomap_memory

Bug: 236259002
Change-Id: I998c8593e35ca8a4c9f56825a4de5336fb39f668
Signed-off-by: Will McVicker <willmcvicker@google.com>
2022-12-20 20:17:19 +00:00
Ramji Jiyani
16c63232db ANDROID: GKI: Update GKI modules protected exports
Update protected export symbols list with exports
from list of protected modules at
android/gki_protected_modules.

It includes symbols from every GKI modules except
zram & zsmalloc; and serves as a baseline.

Bug: 232430739
Test: TH
Change-Id: Iec33dfe093b4e9e0281b910b2b3bf998cef55394
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-12-19 16:16:00 +00:00
Ramji Jiyani
90ff743687 ANDROID: GKI: Add list of protected GKI modules
android/gki_protected_modules serves as a running
list of protected GKI modules. This list is being
used as an input to generate list of protected
GKI modules exports at android/abi_gki_protected_exports

All GKI modules are protected except zram.ko & zsmalloc.ko
as baseline in this list.

Bug: 232430739
Test: TH
Change-Id: I0c993769b9d07543755fd056199b0e4d10d27f77
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-12-16 17:32:15 +00:00
Ramji Jiyani
fd1e768866 ANDROID: GKI: Protect exports of protected GKI modules
Implement support for protecting the exported symbols of
protected GKI modules.

Only signed GKI modules are permitted to export symbols
listed in the android/abi_gki_protected_exports file.
Attempting to export these symbols from an unsigned module
will result in the module failing to load, with a
'Permission denied' error message.

Bug: 232430739
Test: TH
Change-Id: I3e8b330938e116bb2e022d356ac0d55108a84a01
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-12-16 16:44:54 +00:00
Vincent Donnefort
ebc746230d ANDROID: Add __pkvm_register_el2_call to symbol list
In order to allow the registration of dynamic HVCs by pKVM modules, let's
expose the __pkvm_register_el2_call() function in the GKI ABI.

Bug: 244543039
Bug: 244373730
Change-Id: Iae1d0f94776f8c097410a6cf6527c825fee30184
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
2022-12-07 14:35:27 +00:00
Quentin Perret
979197016b ANDROID: Add __pkvm_load_el2_module to symbol list
In order to allow loading el2 modules from kernel modules, let's expose
the __pkvm_load_el2_module() function in the GKI ABI.

Bug: 244543039
Bug: 244373730
Change-Id: I65410a02c67178427d4e0c115a24de1584f1adc7
Signed-off-by: Quentin Perret <qperret@google.com>
2022-12-07 14:35:27 +00:00
Ramji Jiyani
b7a3937703 ANDROID: ABI: Update virtual_device arm64 symbols
Change f3a376d35d83 ("Revert "Add CFG80211 and MAC80211 as modules"")
Removed cfg80211.ko and mac80211.ko as vendor modules to use GKI
versions for virtual_device arm64 builds.

Remove symbols required for these modules from the symbol list;
so they stay protected for everyone until there is a proper case
for overriding these modules is required.

Bug: 232431151
Test: TH
Change-Id: Id858a2105990a533ab8557ba49fcd47db674b31f
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-12-06 16:40:52 +00:00
Ulises Mendez Martinez
4f4395c2d4 ANDROID: virtual_device: Update symbol list
Bug: 260913198
Change-Id: Ie46846138f4c2f545dc9d129b6e3d09f0ebc11bb
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
2022-12-05 23:21:16 +00:00
Mostafa Saleh
169b62bbdf ANDROID: Add pkvm_iommu_s2mpu_init to pixel ABI
Add pkvm_iommu_s2mpu_init symbol to the aarch64 pixel kernel ABI.
It is called from vendor modules to init IOMMU with specific version
in pKVM.

Bug: 255731794
Change-Id: I7bbf2e930cdf0ff864d8f180ff9979b5cf918fe7
Signed-off-by: Mostafa Saleh <smostafa@google.com>
2022-12-05 18:59:28 +00:00
Yongqin Liu
4a881d76d4 ANDROID: db845c: enable abi build and update KMI list
update the KMI symbol list after enabled
the bazel abi build method by running commands like this:
    $ tools/bazel run //common:db845c_abi_dist
    $ tools/bazel run //common:db845c_abi_update_symbol_list

Bug: 246861677
Test: run the db845c_dist, db845c_abi_dist, db845c_abi_update_symbol_list
      and the build could boot to homescreen

Change-Id: Ibe628880c0556f20594b581bda6e7e0733b3f121
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2022-12-02 18:55:48 +00:00
Ramji Jiyani
7d08da22b3 ANDROID: GKI: Add virtual_device arm64 symbollist
It was removed as part of http://aosp/2225442 being
out dated; but need to restore it until kleaf supports
to generate new one for the virtual_device. This
will allow virtual_device modules depending on GKI
modules symbols to load.

This will serve as baseline as of now.

Test: TH
Bug: 248334110
Change-Id: I6bbe8d4544b2f8759ed844a672dd9304e9c091cb
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-12-01 16:48:57 +00:00
David Brazdil
91fabda765 ANDROID: Add pkvm_iommu_* symbols to aarch64 ABI
Add three new symbols to the aarch64 kernel ABI. These are to be
called from vendor modules to register an IOMMU with pKVM and
notify the hypervisor about its PM events.

New symbols:
  - pkvm_iommu_s2mpu_register
  - pkvm_iommu_suspend
  - pkvm_iommu_resume

Bug: 190463801
Change-Id: I7a6d4b7b10eb56e5c21e91ddaa3f9cce5c7ba63e
Signed-off-by: David Brazdil <dbrazdil@google.com>
(cherry picked from commit 1b8ccf0263957b52649c42fa81a9f19cce308d0d)
Signed-off-by: Mostafa Saleh <smostafa@google.com>
2022-11-24 12:41:32 +00:00
Ramji Jiyani
01d9b23ec3 ANDROID: GKI: Convert Net PPP Protocol as module
Converts networking Point to Point Protocol drivers as GKI modules.

CONFIG_PPP: PPP (point-to-point protocol) support
CONFIG_PPP_BSDCOMP: PPP BSD-Compress compression
CONFIG_PPP_DEFLATE: PPP Deflate compression
CONFIG_PPP_MPPE: PPP MPPE compression (encryption); selects CRYPTO_LIB_ARC4=m
CONFIG_PPTP: PPP over IPv4 (PPTP)

Bug: 232431151
Test: TH
Change-Id: Id6ef00a4cda0433d375554a965835d6d59d2d473
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-17 20:18:16 +00:00
Ramji Jiyani
7070a0ef92 ANDROID: GKI: Convert L2TP as modules
Converts L2TP and PPP over L2TP as GKI modules.
CONFIG_L2TP: Layer Two Tunneling Protocol (L2TP)
CONFIG_PPOL2TP: PPP over L2TP

Makes CONFIG_NETFILTER_XT_MATCH_L2TP visible in the savedefconfig.

Bug: 232431151
Test: TH
Change-Id: I0e1cbd8f04f97f172f8b1551eade21cf303b24ed
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-17 01:12:56 +00:00
Ramji Jiyani
e0f43e20ef ANDROID: GKI: Convert 802.15.4 support as module
Converts IEEE 802.15.4 Protocol, Socket & MAC drivers
as GKI modules.

CONFIG_IEEE802154: IEEE Std 802.15.4 Low-Rate Wireless PANs support
CONFIG_IEEE802154_SOCKET: IEEE 802.15.4 socket interface
CONFIG_MAC802154: Generic IEEE 802.15.4 Soft Networking Stack

CONFIG_MAC802154=m makes following configs visible in savedefconfig:
CONFIG_CRC_CCITT & CONFIG_CRYPTO_CCM

Bug: 232431151
Test: TH
Change-Id: Iec93faf73e2955054474e482c1d25ad3df822659
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-16 23:49:29 +00:00
Ramji Jiyani
6647fadd21 ANDROID: GKI: Convert CAN Bus Subsystem as module
Sets CONFIG_CAN=m to conver CAN Bus subsystem as
GKI module.

Bug: 232431151
Test: TH
Change-Id: Ia90fcc7a30edb994a8e47dea617050836356729d
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-16 22:14:52 +00:00
Ramji Jiyani
f2bd02a9aa ANDROID: GKI: Convert 6LoWPAN Support as module
Converts IPv6 6LoWPAN as GKI modules.

CONFIG_6LOWPAN: 6LoWPAN Support
IPv6 over Low power Wireless Personal Area Network -
"6LoWPAN" which is supported by IEEE 802.15.4 or Bluetooth stacks.

CONFIG_IEEE802154_6LOWPAN: 6lowpan support over IEEE 802.15.4

Bug: 232431151
Test: TH
Change-Id: I4257cedfd499e1e01faba966e17c3d9dbf4dcbb7
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-16 19:43:15 +00:00
Ramji Jiyani
6a0f9b1a5a ANDROID: GKI: Convert RF switch subsys as module
Convert RF swithc subsys as GKI module.

CONFIG_RFKILL: RF switch subsystem support
To have control over RF switches found on
many WiFi and Bluetooth cards.

Bug: 232431151
Test: TH
Change-Id: I6fb84f82d7a65b3d4f17261d361be1c44c6b77bb
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-16 18:27:05 +00:00
Ramji Jiyani
0ff7ad6adc ANDROID: GKI: Convert Bluetooth Support as module
Converts CONFIG_BT: Bluetooth subsystem support as
GKI modules.

CRYPTO_CMAC & CRYPTO_ECDH are being added as
CONFIG_BT is selecting them i.e. they were
enabled but not visibile in savedefconfig when
BT was an in-built feature and becomes visible
in savedefconfig when BT is a module.

Bug: 232431151
Test: TH
Change-Id: I624939d007fadbf852ad53c4404df12ac769fcd8
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-16 18:27:05 +00:00
Ramji Jiyani
78a20156d1 ANDROID: GKI: Convert BT HCI sdio & uart as modules
Converts BT host controller sdio & uart interface drivers
as modules:

CONFIG_BT_HCIBTSDIO: HCI SDIO driver
CONFIG_BT_HCIUART: HCI UART driver

Converts HCI uart dependent protocol drivers as modules
due to dependency on the CONFIG_BT_HCIUART.

CONFIG_BT_HCIUART_QCA: Qualcomm Atheros protocol support
CONFIG_BT_HCIUART_BCM: Broadcom protocol support

Bug: 232431151
Test: TH
Change-Id: I3a3a7ae03140774a78a56ac306b8aef1042b1ceb
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-15 21:51:01 +00:00
Ramji Jiyani
4747c631a4 ANDROID: GKI: Covnert Bluetooth HIDP as module
CONFIG_BT_HIDP: HIDP protocol support

HIDP (Human Interface Device Protocol) is a transport
layer for HID reports. HIDP is required for the Bluetooth
Human Interface Device Profile.

Bug: 232431151
Test: TH
Change-Id: Ibe9ed98370ecc9c9825c3a735070817d16254138
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-15 19:33:44 +00:00
Ramji Jiyani
264b55ef9b ANDROID: GKI: Convert Bluetooth RFCOMM as module
CONFIG_BT_RFCOMM: RFCOMM protocol support

RFCOMM provides connection oriented stream transport.
RFCOMM support is required for Dialup Networking,
OBEX and other Bluetooth applications.

Bug: 232431151
Test: TH
Change-Id: I573d8c7a1eff02b1554b5d6793b5c3c06fb35931
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-15 18:49:13 +00:00
Ramji Jiyani
595b8764fb ANDROID: GKI: Convert NFC support as GKI module
CONFIG_NFC: NFC subsystem support

Bug: 232431151
Test: TH
Change-Id: Idc4d8c6656a8c4e36a695d9c9eb18fe20793bc76
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-15 18:08:35 +00:00
Ramji Jiyani
d100f8e9a1 ANDROID: GKI: Convert VLAN 8021Q as gki module
Sets following feature to module:
CONFIG_VLAN_8021Q: Create 8021Q vlan interfaces.

Bug: 232431151
Test: TH
Change-Id: I4728f03b04bb49f65838564c96f88d232cbf21e8
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-15 01:21:38 +00:00
Ramji Jiyani
e516a098e2 ANDROID: GKI: Convert TIPC to gki modules
Converts following networking features to modules:

CONFIG_TIPC: The Transparent Inter Process Communication (TIPC) protocol.
CONFIG_TIPC_DIAG: TIPC: socket monitoring interface

Bug: 232431151
Test: TH
Change-Id: I370cc7a34f67222b619107d773cc4a13edd6b538
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-14 22:38:45 +00:00
Ramji Jiyani
1383c8eae9 ANDROID: GKI: Add USB serial and ftdi sio modules
CONFIG_USB_SERIAL: USB Serial Converter support
CONFIG_USB_FTDI_SIO: FTDI SIO single port USB to
serial converter device.

Bug: 232431151
Test: TH
Change-Id: I1522a9beb0f70740fdce11d1c50b606d81ddf6c6
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-10 00:37:17 +00:00
Ramji Jiyani
d0bdbdcadf ANDROID: GKI: Convert USB ACM as GKI module
CONFIG_USB_ACM:

This driver supports USB modems and ISDN adapters
which support the Communication Device Class
Abstract Control Model interface.

Bug: 232431151
Test: TH
Change-Id: I15e07607121546eee4e6fa6b8bd8a8fd510a02d9
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-09 23:31:43 +00:00
Ramji Jiyani
cfbff2d199 ANDROID: GKI: Add CAN adapters as GKI modules
Add CAN related non bus drivers as GKI modules.

Bug: 229934827
Bug: 232431151
Test: TH
Change-Id: I5d876363a0ea3007e5a83bbca53dcaae1e09e707
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-02 17:43:55 +00:00
Ramji Jiyani
0c4345d2e7 ANDROID: GKI: Sort system_dlkm modules list
Clean up:
List modules in android/gki_system_dlkm_modules
in a sorted order. List of modules are not order
dependent in this file. Initially it was meant to
keep same as android/gki_aarch64_modules which has
order dependencies due to being used as MODULE_ORDER
if building using build.sh. kleaf doesn't use
android/gki_aarch64_modules and it should be deleted
as part of final switch to kleaf.

Bug: 232431411
Test: TH
Change-Id: I8a5ce0f3466d4322ed956a4cb3d2f9c8ef075a86
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
2022-11-02 16:06:36 +00:00
Ramji Jiyani
5659cc62f1 ANDROID: GKI: Convert cfg/mac80211 as modules
Bug: 232431151
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I46dd381c9eb0d758e9808865692415651626941e
2022-10-27 17:44:55 +00:00
Ramji Jiyani
316cffd398 ANDROID: GKI: Convert zram & zsmalloc as protected
Remove zram & zsmalloc symbols from  abi_gki_aarch64.
This makes these modules as protected until some partner
adds these symbols in their symbol list to override them.

This also cleans up the generic symbol list as per the
GKI modules symbol handling i.e. GKI modules don't contribute
to the KMIs until they are being override by the partners.

Bug: 232431151
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I30fb0a46f306d1efdc7e174725066dcc86040e80
2022-10-27 01:15:59 +00:00
Ramji Jiyani
734319f979 Revert "ANDROID: GKI: Add module load time protected symbol lookup"
This reverts commit f8bd6cf70d.

Reason for revert: Part of old protected/unprotected module implemenation.
It is being replaced by a new design listed as option 2A at
go/gki-modules-build-integration

Bug: 232430739
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I0fbb4e4aede5f94c3454ea4be1735c837cae5118
2022-09-30 17:41:39 +00:00
Ramji Jiyani
44e8479df1 ANDROID: GKI: Remove unused symbol lists
Symbol lists which are not updated after the fork
from the 13-5.15 kernel are deleted to force
regeneration of those lists when needed.

Remove stale symbols from the remaining lists.
Stale symbols (exported in 13-5.15 but not in 14-5.15):
- kfree_skb
- tty_schedule_flip

Bug: 248334110
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Icc5ef9feb9f5268ac19a84979951c3e15afc2af5
2022-09-22 22:22:26 +00:00
Sumit Semwal
e56ab90450 ANDROID: GKI: db845c: Update symbols list and ABI
android14-5.15 is broken on Dragonboard 845c because of recently added symbols.

So updated the symbols list by running:
   BUILD_CONFIG=common/build.config.db845c build/build_abi.sh -s

And updated the abi_gki_aarch64 ABI by running:
  "BUILD_CONFIG=common/build.config.gki.aarch64 \
    ABI_DEFINITION=abi_gki_aarch64.xml build/build_abi.sh \
      --update --print-report"

Due to no published ABI reference with android14-5.15, the leaf report is not
printed; the symbol causing the problem seems to be:

    msm: Unknown symbol drm_bridge_detect (err -2)

Fixes: 6411d0c458 ("drm/msm/hdmi: switch to drm_bridge_connector")
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Change-Id: Idff4a3cd86f941b22224121e11a75001dd73d17d
2022-08-09 12:07:13 +00:00
Will Deacon
b8ba6dcba1 ANDROID: Remove stale symbols from symbol lists
The following symbols no longer exist after reverting the out-of-tree
pKVM patches inherited from android13-5.15:

 - pkvm_iommu_finalize
 - pkvm_iommu_resume
 - pkvm_iommu_s2mpu_register
 - pkvm_iommu_suspend
 - pkvm_iommu_sysmmu_sync_register

Additionally, mem_encrypt_active does not make sense outside of a pKVM
guest (as it will always return 0).

Remove references to these symbols from the symbol lists so that we can
get presubmit working again before re-introducing the symbols in a newer
version of the pKVM series.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I1413e12e5e0f078fc7c7dfdbcac74c0078dadafd
2022-08-04 13:03:53 +00:00
Ramji Jiyani
b519faae30 ANDROID: ABI: gki_defconfig: disable cfg80211 and mac80211
Remove CONFIG_CFG80211 and CONFIG_MAC80211 from gki_defconfig
to allow vendors to incorporate features that lands upstream
after KMI freeze.

Also need to update symbol lists since the related 80211
symbols are no longer exported from the core kernel.

Bug: 227176212
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: Ia680c2b38d5f13263e318f8c5eaa42f591385736
(cherry picked from commit b24cd8be89)
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2022-07-19 12:47:39 +00:00
Stanley Chu
0f825a1e77 FROMLIST: scsi: ufs: Export regulator functions
Export below regulator functions to allow vendors to
customize regulator configuration in their own platforms.

int ufshcd_populate_vreg(struct device *dev, const char *name,
			 struct ufs_vreg **out_vreg);
int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg);

Bug: 235550312
Link: https://lore.kernel.org/linux-scsi/20220614141655.14409-10-stanley.chu@mediatek.com/
Change-Id: I9990d2e5eb580f160b0c8b4a95b687d754d0767b
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
2022-07-19 12:47:36 +00:00
Chris Lew
a16c2ea0df ANDROID: abi_gki_aarch64_qcom: Add rproc and rpmsg helpers
Add symbols to use added features to rproc and rpmsg:
 - Introduction of the rpmsg ctrl interface from upstream
 - Introduction of rpmsg_rx_done
 - Helpers to remove rproc_mem_entries from an rproc

Bug: 235577039
Change-Id: Ic04c7f911b88a58d44622ccacd4115541da7c17f
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-07-19 12:47:32 +00:00
Capone Huang
c1a58dad6d ANDROID: Update symbol list for mtk
Leaf changes summary: 1 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added functions:

  [A] 'function int iterate_dir(file*, dir_context*)'

Bug: 236208914
Signed-off-by: Capone Huang <capone.huang@mediatek.corp-partner.google.com>
Change-Id: Ibea71fa232eb8d149b83bd8d2fdcb4e46c63f8b8
2022-07-19 12:47:27 +00:00
huang dezhi
ea1c621b81 ANDROID: GKI: add symbol list file for honor
add abi_gki_aarch64_honor

Leaf changes summary: 10 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 5 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 5 Added variables

5 Added functions:

  [A] 'function int __traceiter_android_vh_alter_mutex_list_add(void*, mutex*, mutex_waiter*, list_head*, bool*)'
  [A] 'function int __traceiter_android_vh_mutex_init(void*, mutex*)'
  [A] 'function int __traceiter_android_vh_mutex_unlock_slowpath(void*, mutex*)'
  [A] 'function int __traceiter_android_vh_mutex_wait_finish(void*, mutex*)'
  [A] 'function int __traceiter_android_vh_mutex_wait_start(void*, mutex*)'

5 Added variables:

  [A] 'tracepoint __tracepoint_android_vh_alter_mutex_list_add'
  [A] 'tracepoint __tracepoint_android_vh_mutex_init'
  [A] 'tracepoint __tracepoint_android_vh_mutex_unlock_slowpath'
  [A] 'tracepoint __tracepoint_android_vh_mutex_wait_finish'
  [A] 'tracepoint __tracepoint_android_vh_mutex_wait_start'

Bug: 231527236
Change-Id: Id3125e93696d91b3daed2ff74c17edb0235c3aa2
Signed-off-by: huang dezhi <huangdezhi@hihonor.com>
2022-07-19 12:47:27 +00:00
Xuewen Yan
aad764985c ANDROID: ABI: Update symbols to unisoc whitelist for the scheduler 4st
Update whitelist for the symbols used by the unisoc device and
update the ABI representation accordingly

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 __traceiter_android_rvh_account_irq_end(void*, task_struct*, int, s64)'
  [A] 'function int __traceiter_android_rvh_account_irq_start(void*, task_struct*, int, s64)'

Bug: 235909063
Change-Id: Idfce8f81fbe6ed11d974dbcf6f04e768af54d0ca
Signed-off-by: Xuewen Yan <xuewen.yan@unisoc.com>
2022-07-19 12:47:27 +00:00
Peifeng Li
28f031bf96 ANDROID: GKI: Update symbols to symbol list
Leaf changes summary: 9 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 5 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 4 Added variables

5 Added functions:

  [A] 'function int __traceiter_android_vh_cma_drain_all_pages_bypass(void*, unsigned int, bool*)'
  [A] 'function int __traceiter_android_vh_drain_all_pages_bypass(void*, gfp_t, unsigned int, unsigned long int, int, unsigned long int, bool*)'
  [A] 'function int __traceiter_android_vh_page_referenced_check_bypass(void*, page*, unsigned long int, int, bool*)'
  [A] 'function int __traceiter_android_vh_pcplist_add_cma_pages_bypass(void*, int, bool*)'
  [A] 'function unsigned long int shrink_slab(gfp_t, int, mem_cgroup*, int)'

4 Added variables:

  [A] 'tracepoint __tracepoint_android_vh_cma_drain_all_pages_bypass'
  [A] 'tracepoint __tracepoint_android_vh_drain_all_pages_bypass'
  [A] 'tracepoint __tracepoint_android_vh_page_referenced_check_bypass'
  [A] 'tracepoint __tracepoint_android_vh_pcplist_add_cma_pages_bypass'

Bug: 234405962
Signed-off-by: Peifeng Li <lipeifeng@oppo.com>
Change-Id: Ie38bd63282c8ab0ec8f837e06bd5e9e6ab272ba6
2022-07-19 12:47:26 +00:00