Commit graph

916,769 commits

Author SHA1 Message Date
Guocheng Wang
a4f0de2f15 typec: Fix COM charging failed when using audio 2-1 adapter
Using Type-C to 3.5mm Headphone 2-in-1 Adapter,COM charging Failed.
Because the devices are in off-mode when usb plug-in,bootup process might
cause some detection delay.
So when DUT power on with typec and the typec vbus is exist,we need to
wait some times for check type-c is connected before call
smb5_typec_attach_detach_irq_handler.

Change-Id: I8ea0e904bc493c13d666a09f81c34d33fdb2663f
Signed-off-by: Guocheng Wang <wanggc6@motorola.com>
Reviewed-on: https://gerrit.mot.com/2752957
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Xiaojun Ji
06f890cf6f Fix KMI break on GKI build
Only add OEM DATA on QGKI and keep the origin struct on GKI
to avoid break KMI.

Change-Id: I6678db4ce211a21c91c5305024cb18b9f5e1265e
Reviewed-on: https://gerrit.mot.com/2749363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Xiaojun Ji
8686f439ac Export some APIs
moto_swap.ko need use this APIs

Change-Id: I98e91d6bfadcd931f493a7dbb4447d8d7e9f0a34
Reviewed-on: https://gerrit.mot.com/2749373
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
huangzq2
f62f91132a Porting hooks from 5.10 and move zram to ko
Change-Id: I576f9dc68a31900b6fbbe629edbb01cf8a723d8d
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2747021
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Liujie Xie
bd004af788 ANDROID: vendor_hooks: add a field in pglist_data
Add a pglist_data field to record additional node parameters.

Bug: 192052083

Mot-CRs-fixed: (CR)

Signed-off-by: Liujie Xie <xieliujie@oppo.com>
Change-Id: I3d764ab298c71ab9aba245867ee529045551aef4
Reviewed-on: https://gerrit.mot.com/2747020
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Liujie Xie
9244f7f6c6 ANDROID: vendor_hooks: add a field in mem_cgroup
Add a field in mem_cgroup to record additional per-cgroup information
for memory policy tuning.

Bug: 192052083

Mot-CRs-fixed: (CR)

Signed-off-by: Liujie Xie <xieliujie@oppo.com>
Change-Id: I28c8bc1c2455d53e68a05555b57b76ded27af98a
Reviewed-on: https://gerrit.mot.com/2747019
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
liuyc20
231e74b255 PD: PowerRole set to SINK when detected the analog_audio plug-in
TYPEC_SINK_AUDIO_ADAPTER ->set current_pr=PR_SINK
->enter_state_snk_startup->typec_set_pwr_role(will sent uevent)
->register and set /sys/class/typec/port0-partner/accessory_mode(analog_audio)

Change-Id: I5aa26c83361739feec6e74a46c1ea23e48b0c0bf
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2734256
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
weiweij
c6ae357961 gpio: fix gpio dump msg missing problem
GPIOLIB_IS_REQUEST() checking only return true when the gpio using request_gpio functions.
So if using pinctrl and subsystem gpio configuration, this checking logic will block.
And we will get lots of following errors:
[  453.757397] gpio25: is not allocated in gpiolib
After removing this logic, we could get the gpio status:
09-07 21:27:55.968     0     0 W gpio25  : in  low  func0 2mA pull down

Change-Id: I2d03e86e3a236bd81a72dfa20cb9e0be41354348
Reviewed-on: https://gerrit.mot.com/2733812
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Liu Yang
3c30b50328 fogos: Power up and init sensor in advance
Open this func for fogos in kernel.

Change-Id: If8458d06fa7358453e43ce48da4f90762ce10a22
Signed-off-by: Liu Yang <liuyang81@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2727777
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: <zhanys2@motorola.com>
Reviewed-by: <mingjw1@motorola.com>
Reviewed-by: Simon C <chenzm8@motorola.com>
Reviewed-by: Zhang Lei <zhangl82@motorola.com>
Reviewed-by: <wuhao38@lenovo.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Xiaojun Ji
7765267e70 arch/arm64: enable CONFIG_MMAP_READAROUND_LIMIT
8pages for < 8G RAM
16pages for >= 8G RAM

Change-Id: I9ab5c9ca3331aa9769db455ec674dad15f620efa
Reviewed-on: https://gerrit.mot.com/2720560
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:19 +08:00
Xiaojun Ji
de7fe8c180 mm: set ra_pages according to ram size
If enable CONFIG_MMAP_READAROUND_LIMIT, set ra_pages according to
ram size

8: < 8G RAM
16: >=8G RAM

Change-Id: I379a451e3ecc8d0552dbc2ead00edd24a934468f
Reviewed-on: https://gerrit.mot.com/2719221
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Zhangqing Huang <huangzq2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
guoyz3
ea0a7de1a6 Fogor: common: mdlog: Enable coresight for modemlog on factory build
Enable minimal coresight configuration for modem qdss log
CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y

Change-Id: Iebe3b5650300dac56c72fe311f743962f29c0d12
Reviewed-on: https://gerrit.mot.com/2722656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Yifu Lin <linyf@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Bruno Oliveira
8b112bfe48 Disable dump registers when suspend for penang
WHAT: Disable the kernel configs related to debug gpio, clock and regulator
        dumping its values for penang
WHY: This is halting penang driver sgm4154x_chg_mmi, because this config will
        eventually make sgm4154x_chg_mmi call msleep inside an atomic operation
        (read the registers that CONFIG_DUMP_* is requiring) and since penang
        has CONFIG_PANIC_ON_SCHED_BUG it will call BUG(), which will panic

Change-Id: I26eb620e832dbf9e94acd4cb22cd87eee444f350
Reviewed-on: https://gerrit.mot.com/2719824
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Gilberto Gambugge Neto <gambugge@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
2024-04-18 14:45:18 +08:00
weiweij
a9cb8e9ca2 gpio: fix compile error for gpio_debug_print_enabled
The error is from https://gerrit.mot.com/#/c/2710381/
Function gpio_debug_print_enabled is implemented under
the control of DEBUG_FS.
But user version do not have this macro definition.
Error message is as following:
ld.lld: error: undefined symbol: gpio_debug_print_enabled
>>> referenced by lpm-levels.c:1124 (/home/weiweij/work/u/fogoNA/main/kernel/msm-5.4/drivers/cpuidle/lpm-levels.c:1124)
>>>               vmlinux.o:(cluster_configure)
make[1]: *** [/home/weiweij/work/u/fogoNA/main/kernel/msm-5.4/Makefile:1197: vmlinux] Error 1

Change-Id: I57ae5a19f43dd4bf59196c8d18919f15acf03d4b
Reviewed-on: https://gerrit.mot.com/2712951
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Wei <weiweij@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
ontim52
ef1ce4231a kernel: add debug-config for debug use
1. gpio status printed before cpu sleep, for debug use.
2. enable dump clk/regulator on suspend for userdebug SW.

Change-Id: Icb45c5bd9300650bba4ab6c8795b492bedaa25de
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2710381
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
ontim52
8d2ad2e01e kernel: show kernel suspend info
1. show kernel suspend info
2. sunch as: PM: suspend entry (deep) state=3(mem)

Change-Id: I031e40f0b88b2a8544bb56c24a55102560a520cf
Signed-off-by: ontim52 <ontim52@motorola.com>
Reviewed-on: https://gerrit.mot.com/2710376
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
liaohj
398970c390 qcom: whitelist: Add necessary api for aw8838 dlkm
add "device_remove_bin_file" white list for aw8838 driver.
    it could be found in the latest abi_gki_aarch64*.xml file.

Change-Id: I1d73efccfd0d6f2e5d412a3e327843b04b62ce2b
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2706089
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
zhu chuanchun
c60b62822d arm64/config: enable UFS HID and disable HPB on fogos
Disable CONFIG_UFSFEATURE will disable SS/Micron HID function.
so need enable it.

Disable HPB function to decrease memory cost.

Change-Id: Icb06d88273de52b49f2cd9cc0afc4767a93a4684
Reviewed-on: https://gerrit.mot.com/2703221
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
liaohj
30443996b3 configs:add aw8838 macro for gogo 5g na
fogo 5g na need to pass HAC test.
so hardware add aw8838 for handset hac output.
add aw8838 macro for gogo 5g na.

Change-Id: I6cf76364f8d702545024403ddf88b928e29dbb36
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2700962
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Alison Venancio
16c8d2ce9e [MIAMI] spi: spi-msm-geni: system suspend support
we are not serving system suspend if spi xfers were in progress, doing
force suspend if spi xfers were completed.

Port of patch spi_geni_fix2.patch provided by qcom in case 06677540

Change-Id: I929031556694abf77e78e573a6f56986dc8667e9
Reviewed-on: https://gerrit.mot.com/2697260
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bruno Oliveira <brunosoe@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Liu Yang
1cefe28d0b Feature: Check power up and initialize early
Check feature -- ENABLE_MOT_PRE_POWERUP_INIT_SENSOR.
  1.Solve a issue for this feature.
  2. This feature does not merge into factory version.

Change-Id: I29b7b4464acf6925a196e57b6a2a8c0dd41fe138
Signed-off-by: Liu Yang <liuyang81@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2693577
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: Simon C <chenzm8@motorola.com>
Reviewed-by: Hualong Zhu <zhuhl11@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <leixu1@motorola.com>
Reviewed-by: <zhanys2@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Franz Wang
33c1286f56 arm64/vendor: ext_config: add board dtb for fogos
fix the error dtb project config

the error will block start-up, the error uart log is as below:

Best Soc Dtb 0x1FB/0x10000/0x0/0x0
Unable to find the Board Dtb
Error: Board Dtbo blob not found
BootLinux() failed: Not Found
Slot _a is not looking good

Change-Id: Id147a84a0beafba097b2915303d9944834e9c550
Signed-off-by: Franz Wang <wangxf14@motorola.com>
Reviewed-on: https://gerrit.mot.com/2684376
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
liaohj
5d49be2fa4 configs:fogo:open aw algo
fogo use aw88261
open aw algo.

Change-Id: I5594444436febe1d1521fe666109ed6a4916c319
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2682285
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Yonghua Yan
f210f91a8a Add HS phy init sequence dtsi for Host
Add HS phy init sequence for Host mode to support configure
the HS phy parameters for Host and Device mode separately
from device tree.

Change-Id: Ia532d638c6e32377be9c4062f63f0cf227d55d2c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2605855
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/2677516
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:18 +08:00
liaohj
a5ae1d0a5a config:fogo:audio bringpu,add related configs
fogo use 4350+aw88261(pri i2s)
add related configs

Change-Id: I0a6873327670b1eb05e882022406aecf00c24aa7
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2677509
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Simon C
5192294959 fogo: Bring up flash[3/3]
Details:
  There is no second flash supplier
  So close this macro

Change-Id: I7f2fd8ed04d3e16ff15cd1ecfc34d9f2710452c6
Signed-off-by: Simon C <chenzm8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2674947
Reviewed-by: <huqian4@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
gaoyx9
c43b6350c3 initial kernel defconfig for fogos
Change-Id: I836e00db2c8b70f0542b5703b38f9ee52b8bf86b
Reviewed-on: https://gerrit.mot.com/2674579
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
2024-04-18 14:45:18 +08:00
xuwei9
3fd5a6de05 FG:improve charger counter accuracy
Improve charger counter report accuracy
for server data collection.

Change-Id: I212961a3db43771a68fc0c2e4b37009f255f2f59
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2675505
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
zhu chuanchun
c9a0ce3cf3 arm64/config: enable UFS HID and disable HPB on fogo NA
Disable CONFIG_UFSFEATURE will disable SS/Micron HID function.
so need enable it.

Disable HPB function to decrease memory cost.

Change-Id: I5cf1d00fc4922b3c6c5dae903289ba3a64779a55
Reviewed-on: https://gerrit.mot.com/2672207
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
zhucc2
6b73bc7b23 arm64/config: enable UFS HID and disable HPB on fogo row
Disable CONFIG_UFSFEATURE will disable SS/Micron HID function.
so need enable it.

Disable HPB function to decrease memory cost.

Change-Id: I405ad02a5d7f22e5604c0148562705670b9f2bea
Reviewed-on: https://gerrit.mot.com/2672202
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:18 +08:00
Lei Chen
9c369fe359 smb5:optimize the pmic irq logs
Frequent input-current-limiting irq logs was
print sometimes. Optimize the pm7250b icl irq logs.

Change-Id: Id60d0749338bdb9d23c1ab3f1ecc69921a6845e8
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2667390
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liaohj
ba9b664158 qcom: whitelist: Add necessary api for fs1815 dlkm
add "snd_soc_add_card_controls" white list for fs1815 driver.
it could be found in the latest abi_gki_aarch64*.xml file.

Change-Id: I3f31e167317f273322858da8bf2188c161c88a3d
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2658776
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liyun zhang
87cc6eac0b arm64/configs: Add Fogo5G NA defconfig
Add initial defconfig for Fogo5G NA(fogo) bringup,
these configs are copied from Fogo5G ROW(fogor)

Change-Id: I35d45642b982aa0daa0a2421b83114431e8e4ad2
Reviewed-on: https://gerrit.mot.com/2658394
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liuzhen
d77a95a225 Open USB log in factory version for bangkk[2/3]
In order to track the usb abnormal disconnect problem,
open some log about usb in factory version recommended
by Qualcomm for bangkk.

Change-Id: I015803505ac6111780ca29f6684a8e3780ae938b
Reviewed-on: https://gerrit.mot.com/2654714
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Lei Chen
77819a1ccc topolygy:fix kansan panic at topology_parse_cpu_capacity
BUG: KASAN: slab-out-of-bounds in topology_parse_cpu_capacity
Write of size 4 at addr ffffffa64515031c by task swapper/0/1
Revert the changes I90055f96c320b15960efac10d8d92c69413eeb6b
Fix the kasan panic.

Change-Id: I7a8701e29a9de82c175e3c4e265a9bf179e32f91
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2649556
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
wangwang
dea5a184f1 bangkok:set mmap readahead upbound limitation as 16 pages
Change-Id: I3fc051ab1b079189018e489c6eb0b90c4a3cd549
Signed-off-by: wangwang <wangwang@motorola.com>
Reviewed-on: https://gerrit.mot.com/2650469
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
wangwang
6a8ae96b36 bangkok:set mmap readahead upbound limitation
vdex/odex file mmap operation actually does random access, the large
read ahead size can harm the performance, use this configuration to
limit the uplimit of read ahead cache size

Change-Id: Ic370e9372803e538b247b69501875018afeba32e
Signed-off-by: wangwang <wangwang@motorola.com>
Reviewed-on: https://gerrit.mot.com/2650468
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Lei Chen
db3567cce0 charge:optimize the cp enable in ESR
Sometimes the cell voltage exceed the max limit when pump
disable/enable. Only allow the pump enable/disable when soc
is lower than 90%.

Change-Id: I775d22ee7491cd25e2a3a53fbbb5472c80cc8fc6
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2647497
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liuzhen
c1faff2cb8 Modify the fake battery spec
1.modify the voltage of fake battery to 4.2V
2.modify the level of fake battery to 10%

Change-Id: I851ea8d5e80c3fa78eb659992446e0b81dbb43b4
Reviewed-on: https://gerrit.mot.com/2646055
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lei Chen <chenl18@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liaohj
e188599cbf config:FOGO ROW:audio:CONFIG_SND_SOC_FS1815
fogo use wcd9370+fs1815
4375 platform.
add CONFIG_SND_SOC_FS1815 to support.

Change-Id: I228eae099cb71b0eb76c43d0dbefde4f05c6e3b2
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2639573
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Liu Yang
0c44b6ea8c bangkk: Powerup and initialize sensor early [4/4]
Powering on and initializing main sensor in camera open instead of
streams configuration to optimize the startup KPI.
  It is a common feature and depends on sensor setting.
  It can save about 30ms.
Porting this func from (CR) and (CR).

mot-cam-category: KPI

Change-Id: I622db10b469c0e3f26619200bebad95836d8ed9f
Signed-off-by: Liu Yang <liuyang81@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2640370
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: <leixu1@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <zhanys2@motorola.com>
Reviewed-by: <wuhao38@lenovo.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: Dongju He <hedj3@motorola.com>
Reviewed-by: <weilt2@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
liyun zhang
246b0b8ca3 arm64/configs: Add Fogo5G defconfig
Add initial defconfig for Fogo5G(fogor) bringup,
these configs are copied from bangkk.

Change-Id: I6266b787f979b4aaa622c897ac960f133f469cff
Reviewed-on: https://gerrit.mot.com/2627354
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Gilberto Gambugge
224f161870 camera_legacy: update camera uapi kernel headers installation
Due to camera legacy, the camera uapi kernel headers installation
routines need to be updated to consider the camera legacy support.
This commit fixes the routines to install kernel headers for
'make headers_install' and also 'qti_generate_kernel_headers_arm'
and 'qti_generate_kernel_headers_arm64'.

Change-Id: Iec98dad164d5efc0acaa8f90c29a9672efbe3142
Reviewed-on: https://gerrit.mot.com/2619497
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Gilberto Gambugge
7b3d315852 techpack: add camera legacy support
Add camera legacy support by checking BOARD_CONFIG_CAMERA_KERNEL_NAME
to decide which folder will be used to compile the camera techpack.

Change-Id: I674bc4531818273881e068e29cd8449443e9afc6
Reviewed-on: https://gerrit.mot.com/2616053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Marcelo Pincinato <mpcinato@motorola.com>
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
2024-04-18 14:45:17 +08:00
huqian4
c70d0886c8 bangkk: support dw9784 af drift
details:
Enable dw9784 af drift.

Change-Id: I0299a0a7109e88f04315be2640042b130cb16297
Signed-off-by: huqian4 <huqian4@motorola.com>
Reviewed-on: https://gerrit.mot.com/2616203
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: <yanglp10@motorola.com>
Reviewed-by: <chenzm8@motorola.com>
Reviewed-by: <leijing1@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
Tony Truong
836e3b0c9a net: qrtr: get svc_id before queueing sk_buff
In qrtr_endpoint_post, getting svc_id based on sk_buff->cb after sk_buff
has been queued to the endpoint leads to a potential use-after-free
scenario. To avoid this race condition, get the service ID via
sk_buff->cb before queueing the sk_buff.

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2022-33292
Bug: 250627197
CRs-Fixed: 3152855

Change-Id: I53205fdffc08fd6dc48fd158c7fe5966f38aa978
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
Signed-off-by: Ashutosh Verma <ashverma@motorola.com>
Reviewed-on: https://gerrit.mot.com/2601336
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
xiewen3
7a7ea6d35b LUR: Revert "BACKPORT: arm64: cpufeature: introduce helper cpu_has_hw_af()"
The LRU function is not compatible with GKI,
causing GKI to fail to start, so revert.

This reverts commit 3b34499f4bbabc44f1e46239024ca4fe07a00461.

Change-Id: I3f9a610dc3f0dbc9e935224956c1a21efc46d33d
Reviewed-on: https://gerrit.mot.com/2609785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
xiewen3
eb19889bf2 LUR: Revert "UPSTREAM: arm64: mm: implement arch_faults_on_old_pte() on arm64"
The LRU function is not compatible with GKI,
causing GKI to fail to start, so revert.

This reverts commit c929eb69b36f01d4920bf516f1fee4be7b4abeec.

Change-Id: I1b29555391999bcdc12195cf5e3d10a21ff1af15
Reviewed-on: https://gerrit.mot.com/2609784
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
xiewen3
1a384eabfe LUR: Revert "UPSTREAM: x86/mm: implement arch_faults_on_old_pte() stub on x86"
The LRU function is not compatible with GKI,
causing GKI to fail to start, so revert.

This reverts commit 0c5ddd0dfcff97eb4546d087c2757cf8d149bd57.

Change-Id: I9bd79de6463879a398a28d5921655e3038ef1320
Reviewed-on: https://gerrit.mot.com/2609783
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
xiewen3
e76cbb48fb LUR: Revert "UPSTREAM: mm: add generic p?d_leaf() macros"
The LRU function is not compatible with GKI,
causing GKI to fail to start, so revert.

This reverts commit 7159dbb11d03d5ed343be00e604b0323389bedc9.

Change-Id: I033fff852c69af310709f76e817801a5e19fbe48
Reviewed-on: https://gerrit.mot.com/2609782
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00