Commit graph

916,414 commits

Author SHA1 Message Date
wangxf14
c6852b254e drivers: rtc: add debug log into rtc module
According to the guideline from Qualcomm support, I add RTC log
in kernel so that we can trace the issue from unexpected RTC reset

Change-Id: Ia26f18ecebcf7627df167dd146582717c8e3414c
Signed-off-by: wangxf14 <wangxf14@motorola.com>
Reviewed-on: https://gerrit.mot.com/1824238
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:01 +08:00
Yonghui Jia
1ed2acbc2c Revert "(CR): Ibiza remove kernel config for PASR"
Remove PASR will impact GKI
  So revert the changes

This reverts commit 8cd7ac5016d01623b92c01e2485640c155938330.

Change-Id: I587650c4b5fdb7474c98fa0754e51d4fa917b24f
Reviewed-on: https://gerrit.mot.com/1823952
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:01 +08:00
Yonghui Jia
9f2edd3674 Revert "(CR): Denver remove kernel config for PASR"
Remove PASR will impact GKI
  So revert the changes

This reverts commit 5e0fa830adf5aa819732004a1e30dfd31e024c42.

Change-Id: Ie06043ef33418c59daf881cc2296522b57f9b824
Reviewed-on: https://gerrit.mot.com/1823951
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:01 +08:00
liuyc20
4a8c8cd617 Revert "(CR): configure cfi permissve for user build"
This reverts commit f371f58ee5306333560fb67bfdec51145059087a.
correct usb_ether_xmit API return value type

Mot-CRs-fixed:(CR)

Change-Id: Ifa420b2e0a3ef17d1900be1b45790c9d8599a160
Reviewed-on: https://gerrit.mot.com/1818887
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
zhucc2
cc220ff68a arm64/config: enlarge kernel log buffer size.
CONFIG_LOG_BUF_SHIFT is default set as 17 =>128KB, however,
for sm4350, 128KB is not enough, after bringup, early bringup kermel
log is overwrite, we have to enlarge the valuse to 18=>256KB, to make
kernel bringup log complete.

Change-Id: Icae1058520b73fc0b979efa5977b5bdce73604a0
Reviewed-on: https://gerrit.mot.com/1817725
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:00 +08:00
mahj8
4100bb2c01 gki: add orderly_poweroff api for mmi-smbcharger-iio
add orderly_poweroff api for mmi-smbcharger-iio
LKM

Change-Id: I65873ce599f651cce2350131606166fa8427f39b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1817449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
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:00 +08:00
mahj8
1fbec1a378 arch/config: disable CONFIG_STATIC_USERMODEHELPER
disable CONFIG_STATIC_USERMODEHELPER in userdebug
and factory version for orderly_poweroff api can work.

Change-Id: Ic71a8471cfd4228d32556f898eaecbbc6ec40b17
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1817533
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
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:00 +08:00
liuwang2
5b298f511c ion: dmabuf improve debugfs
Improvements made to ION to add an additional debugfs file
to display allocation/reference information for all ION buffers.

rb tree was deleted becaused of unused, add it back to track
ion buffer alloc.

Migrated from (CR):
https://gerrit.mot.com/#/c/1535657/
https://gerrit.mot.com/#/c/1535658/

Change-Id: I1e42d3dac61d4fc856ba8d749cfd2123e40529d9
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1811670
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhilong Wang <wangzl30@motorola.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Zilong Zhang <zhangzl7@lenovo.com>
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
jixj
c1649eb8f9 power/reset: Fix "hw_warmreset" can't be set
Fix https://gerrit.mot.com/1778586 propagation error.
The "reason" is default PON_RESTART_REASON_UNKNOWN (0),
At the end, QC will set restart reg with "reason" so this reg
will be override to 0

Change-Id: I3a0092edb6a29a1d3edd9fa79428115b7c590ffb
Reviewed-on: https://gerrit.mot.com/1808858
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:00 +08:00
jixj
5e978368a5 power/reset: store extra reset info in panic_prep_restart()
On sm4350 R,the priority of do_msm_restart is 200,the priority of
restart_wdog_handler is 255. when kernel panic happens,
restart_wdog_handler will be invoked first and trigger a watchdog,
but do_msm_restart will not be invoked so bootloader can not read
reset info.
The panic notifier (panic_prep_restart) still invoke, so store the extra
reset info for kernel panic

Change-Id: Ia263ebfb2eda4424555ddb937239325048ea846f
Reviewed-on: https://gerrit.mot.com/1809656
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:00 +08:00
liuyc20
4630d35724 configure cfi permissve for user build
As CFI will panic at moto_usbnet module in user build,
so configure CFI permissive for moto_usbnet in factory mode.

<4>[   36.691491] Workqueue: ipv6_addrconf addrconf_dad_work
<4>[   36.696653] pstate: 80c00005 (Nzcv daif +PAN +UAO)
<4>[   36.701478] pc : __cfi_check_fail+0x14/0x18 [moto_f_usbnet]
<4>[   36.707080] lr : __cfi_check+0x340/0x390 [moto_f_usbnet]

Change-Id: I66990320048ee2150afb03f0b97a61806a908224
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1808698
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:00 +08:00
zhucc2
3b09b35036 arm64/config: remove some configs on debug version
For improve debug verison performance, remove some unnessary configs.
If some guys need debug the special issue, need enable them at local.

Change-Id: I120b4fdbd03fc72d61825c708897b90d2ef38b2e
Reviewed-on: https://gerrit.mot.com/1807723
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
zhucc2
55237e2db5 arm64/config: remove slub debug configs on debug version.
For kernel usage is higher if enbale slub debug configs, we remove them
to improve the debug performance.

Change-Id: I45543d406ef24c324a5ae9ba768ad809b3e23542
Reviewed-on: https://gerrit.mot.com/1805306
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
mahj8
5aa83849c7 smb5: add dcp max current config by dts
some product all sku inbox charger is 10W, so don't
need config usb_dcp in vhw.xml.
add dcp max current by dts to config all sku.
some product which don't have 10W charger in all sku
can overlay dts by mmi,usb_dcp in vhw.xml

Change-Id: Ie9ddb6c47d42b039d6bfe306e1263168688dac36
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1804249
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:00 +08:00
chenyb1
71fbd43f47 Thermal: Fix Thermal Compiling Error.
Add " thermal_zone_device_unregister" to fix compling error.
Specific for user build

Change-Id: I6a872ea85ce6bb856a73b5e40dd34c72d3abb016
Reviewed-on: https://gerrit.mot.com/1804395
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
mahj8
e9b26c8a46 pd: fix vbus can't reach 9V with PD charger
fix vbus can't reach 9V with PD charger
the return value of pd_get_pdo is 0

Change-Id: I811a94d8d81e2e09df440e04cf8c78b60e34cb16
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1803288
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:00 +08:00
jiayh2
b5163438f3 Ibiza remove kernel config for PASR
kernel configs enabled to support PASR which can hotplug RAM banks
we don't have multiple RAM slots in devices, disable this feature
to avoid potential performance penalty

Change-Id: Ibd1d5d3837a39a1d0ce90da49b40861f128aeb2a
Signed-off-by: jiayh2 <jiayh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1801914
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Bingqian Yang <yangbq1@lenovo.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
jiayh2
da25847246 Denver remove kernel config for PASR
kernel configs enabled to support PASR which can hotplug RAM banks
we don't have multiple RAM slots in devices, disable this feature
to avoid potential performance penalty

Change-Id: I399b0e45001679c7650715600cdbbc9fb8f75476
Signed-off-by: jiayh2 <jiayh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1786864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Bingqian Yang <yangbq1@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
wengjun1
864ead901f Revert "(CR): workaround for the error of "__symbol_put " undefined"
Now we don't use touchscreen_mmi in br-4350,
so this change is not necessary for us.

This reverts commit 899bedf4ac94d0c1b3769787d779226d107655f6.

Change-Id: I59f0ec8474350f2a796f9446c5cb9b1d77e9df9e
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1799286
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
wengjun1
34153b6226 Update qcom whitelist for chipone touchscreen
The "rt_mutex_lock"  and "rt_mutex_unlock" functions can
be found in the latest google whitelist, so update the qcom
whitelist for chipone touchscreen.

Change-Id: I01c538b544d130b7c0dfe6999219c9af7fd8836f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1797282
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
mahj8
cc019a95ff qpnp-qg: Add CHARGE_NOW psy property in qpnp-qg
Add charger_now property into bms psy for battery health
test

Change-Id: If51f2396d06cdb13c75f306c6869ead12dd11e62
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1797305
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:00 +08:00
mahj8
31762154d1 bcl: enable charger bcl feature
When SOC < 10% will mitigate CPU.For improved performance,
at turbo charging scene. will not mitigate CPU.

Change-Id: I593542e735c11227192367327d8aeaf51a03a06d
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1795816
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:00 +08:00
liaohj
076ab2592b qcom: whitelist: Add necessary api for aw882xx dlkm
add "flip_open/filp_close" white list for aw882xx
All of them could be found in the latest abi_gki_aarch64*.xml file.

Change-Id: Ia89d6371a7c097dee12fa78dd9d5acb72e2f581b
Signed-off-by: liaohj <liaohj@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1794660
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:00 +08:00
Haijian Ma
b6a7ab72bd spi: disable_depth > 0 when pm runtime get sync
Port the spi changes from bq-6125.
    when unit suspend, pm_runtime_disalbe() would be called. And
    then dev.power.disable_depth number will +1. And its value
    will be -1 when pm_runtime_enable() is called.
    And if spi bus want to work as soon as system resume, it will call
    pm_runtime_get_sync(), which would check the value of
    disable_depth. If its value is not 0, spi operation will fail.
    The sequence is as following:

    runtime_suspend
    pm_runtime_disable()-> disable_depth +1
    rumtime_resume
    pm_runtime_eanble() -> disable_depth -1
    spi_sync()
    pm_runtime_get_sync -> check the value of disable_depth

    But for sometimes, spi operation will earlier than pm_runtime_enable()
    called. Then spi_sync() will fail duel to non-zero disable_depth value.
    So we add a checking logic before pm_runtime_get_sync() to make sure
    disable_depth is 0.

Change-Id: I673363bfd861402b5c54874137b12700ef2df14d
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1793166
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
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:44:59 +08:00
Wei Wei
e008ef1062 Revert "(CR): arm64/config: support UAS of usb storage"
This reverts commit 23cf0cbef716d48c3cc0a8f8382da9c0e9e586eb.

Change-Id: Ia984f65f4a69503041c0d75fb20843d16cfe38f1
Reviewed-on: https://gerrit.mot.com/1792953
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:59 +08:00
wuwl10
ae26b5ff07 nfc: support tcmd test
TCMD use 32bit system, we need to add new
ioctl to make sure tcmd test pass

Change-Id: I255862644691755fb91727c5c0b856a3a80d3670
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1791777
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:44:59 +08:00
wengjun1
35917e1679 Denver: arch/configs: Cleanup touch unused config
- Since some touch configurations are unused by Denver,
so cleanup these items.

Change-Id: Ifaf0e1eb2b62886ee1c5799f64523d4978b57510
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1790692
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:44:59 +08:00
zhucc2
46ee4c2d3a arm64/config: remove EDAC_KRYO_ARM64_PANIC_ON_CE on debug version.
for EDAC will cause some unuseful panics on debug version, we have to
disable these configs on debug verison, which have been disable on user
version as default.

Change-Id: Ic34b9fb3a516911dfed41eaf38ad29466fdf65bb
Reviewed-on: https://gerrit.mot.com/1790701
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:44:59 +08:00
weiweij
e33628008f i2c: i2c-qcom-geni: Add support for noise cancellation on I2C lines
Add support for noise cancellation on I2C lines.

CRs-fixed: (CR)

Change-Id: Icd35ab460ae56e951128efdefeb21f121bfc39a1
Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
Reviewed-on: https://gerrit.mot.com/1497524
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1780418
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:44:59 +08:00
wangyq13
8df86193da wled: enable cabc before set brightness when adjust bl
As https://gerrit.mot.com/#/c/1743071/ do, if enable cabc after setting
brightness when adjust brightness, may cause backlight flicker. So move
cabc enable before setting brightness when adjust brightness.
But still enable cabc after setting brihtness if phone screen on to
avoid peak current.

Change-Id: I625f6cdc8cd6c30e049c13994850932b9653dde9
Reviewed-on: https://gerrit.mot.com/1782873
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:59 +08:00
wuwl10
633ebc419c qcom: Update qcom whitelist for chipone fps
The "wakeup_source_add" and "wakeup_source_remove" functions
can be found in the latest google whitelist, so update the qcom
whitelist for chipone fps.

Change-Id: I5332205b17b5228927f482ac991cd1fe893f72fd
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1789294
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:44:59 +08:00
liuwang2
018eb758fb ibiza: add some api to qcom whitelist
[detail]
These api exists in google whitelist abi_gki_aarch64.xml.

Change-Id: I3dbc41b216fc71e341901ab4ff5e133fd25859dc
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1789286
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:59 +08:00
jixj
29f34870c1 qcom/gki-whitelist: add "remove_proc_subtree" for utags.ko
This abi is used in utags.ko and it has been added to GKI whitelist so add
it to qcom whitelist

Change-Id: I32d9122e5e685ed6390b9f574a57a216e914065e
Reviewed-on: https://gerrit.mot.com/1788243
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:44:59 +08:00
guhong
c620ee51e4 expose ssr_reason to ss_ramdump
expose ssr_reason to ss_ramdump so that
bug2go can show it in their record.

Change-Id: Id8fdaa1b5aa279f6a70a42c278c324007b27e758
Reviewed-on: https://gerrit.mot.com/1786969
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yifu Lin <linyf@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:59 +08:00
quebs2
076032ea2e Remove CONFIG_CONSOLE_UNHASHED_POINTERS on userdebug.
Remove the CONFIG_CONSOLE_UNHASHED_POINTERS to address STS case
in CVE_2016_6752 on userdebug build.

Propagated from: (CR).

Change-Id: I6881210947fec60689894411d84a4865aea70df4
Signed-off-by: quebs2 <quebs2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1786973
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:44:59 +08:00
mahj8
07453b7c34 power: qpnp-smb5: Change Power supply
Move "battery" to "qcom_battery" and change type from
BATTERY to MAIN.

This will allow another driver to control "battery" and
the system will passthrough it to get the information.

Change-Id: I5409be01d769805065a64d05fb5b1666c81fed6b
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1786691
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:59 +08:00
jixj
ac9e62a015 Revert "(CR): defconfig: lito: turn off pstore compress"
No need it on kernel5.4.
Use ZLIB compression, bootloader also can dump kernel panic log.

This reverts commit 2fc22e11d2fd8c99a306e0d0d41a9ec5e716ff77.

Change-Id: I77323996b0bad2348a121a64d4b46c5c1987747c
Reviewed-on: https://gerrit.mot.com/1786966
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:44:59 +08:00
zhucc2
9ce7a731ed : denver/ibiza: perf:optimize the debug perf.
Refer to:https://gerrit.mot.com/#/c/1479008/

Propogated from (CR)

Change-Id: I392a97d85a28f03f47483c80227d923ee23a0159
Reviewed-on: https://gerrit.mot.com/1784673
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:44:59 +08:00
Bo He
6de14ba6a9 sb: dwc3: gadget: synchronize_irq dwc irq in suspend
[ Upstream commit 01c10880d2 ]

We see dwc3 endpoint stopped by unwanted irq during
suspend resume test, which is caused dwc3 ep can't be started
with error "No Resource".

Here, add synchronize_irq before suspend to sync the
pending IRQ handlers complete.

origin-CRs: (CR)

Change-Id: Ice15ecc8286f417a95935ad3bf3368f2a71ae736
Signed-off-by: Bo He <bo.he@intel.com>
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Reviewed-on: https://gerrit.mot.com/1373264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1379348
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449150
Reviewed-on: https://gerrit.mot.com/1751270
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-on: https://gerrit.mot.com/1785340
2024-04-18 14:44:59 +08:00
weiweij
b329f69c46 config: add usb-video driver
PROPAGATED from (CR)

CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y

Change-Id: I9322e4de815faf477cffdde8efa912ab74031d23
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Robert Cabral <robertc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1715152
Reviewed-on: https://gerrit.mot.com/1786699
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
2024-04-18 14:44:59 +08:00
weiweij
d1e0d1354b arm64/config: support UAS of usb storage
With UAS (USB Attached SCSI), the tested Samsung SSD read and write
speed gets 3x and 2x respectively on Nash.

Testing results for Samsung 256GB Portable SSD T5:
Seq. read:  244 MB/s v.s. 84 MB/s
Seq. write: 161 MB/s v.s. 94 MB/s

Port of (CR) on kernel 4.4.

Change-Id: Idf5d5445dcc599c21bedda64c7eff62f860ff05b
Reviewed-on: https://gerrit.mot.com/1278853
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1471644
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1786700
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
2024-04-18 14:44:59 +08:00
Kenny Kessler
81e4c889aa usb/dwc3: msm: Enable all Debug Logs
Force all logs to print.
origin-CR: (CR)
The USB DWC3 is very important and tracking dmesg
is much easier when everything is ON.

Port-of: https://gerrit.mot.com/1307019

Change-Id: Iebde3d9feadde8a3e92acb10baeb97c5ba7e07cf
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1332192
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1391225
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449174
Reviewed-on: https://gerrit.mot.com/1786719
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
2024-04-18 14:44:59 +08:00
Ravi Vembu
c209226dea usb: configfs: Reset the use_os_desc flag
os_desc support can be turned off via userspace. Kernel also
needs to correspondingly reset its state if userspace has changed
it. Otherwise this cause os descs to be advertised on drivers that
have no os desc support.

Change-Id: Iee760ba45ceea1f26f4e33b4e52c06be7fd20e44
Moto-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1750957
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1785336
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:44:58 +08:00
weimh1
99d798170e kernel/config: Enable RTB log on factory version
Enable RTB log on factory version.
  Some crash issues need RTB log to get more information.

Change-Id: I274d94d73221516f6cff55bb68ceaeca6b9a6291
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1786711
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:44:58 +08:00
Ravi Vembu
5d7a7200a4 usb: configfs: Implement secure attribute
Implement the secure attribute for locking USB access
from the gadget driver.

echo 1 > /sys/class/android_usb/android0/secure
will lock USB access and disable USB enumeration.

Change-Id: I9c7bcb27cfd4ce4f28520d938c604607ec6c2431
Moto-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1750996
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1785337
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:44:58 +08:00
Ravikumar Vembu
d19025e7dd usb: mass_storage: Add support for SC_REBOOT
Add support for a vendor specific SCSI pass through command to
trigger reboot.

SC_REBOOT (0xd7) - triggers reboot into fastboot mode
SC_REBOOT_1 (0xd8) - triggers reboot into normal mode.

Propagated from (CR)

Change-Id: I4fc4839968135a63c594dca69b1dc93699e4a9bc
Reviewed-on: https://gerrit.mot.com/1750946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1785335
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:44:58 +08:00
weimh1
28c524fc00 kernel/config: Enable kernel configs for Android Enterprise
From Igor's review with Google, Google requires us to add the following
    kernel configs for customer build to enhance the security:

   CONFIG_SLUB_DEBUG=y
   # CONFIG_SLUB_DEBUG_ON is not set
   # CONFIG_SLUB_DEBUG_PANIC_ON is not set
   CONFIG_BUG_ON_DATA_CORRUPTION=y
   CONFIG_SCHED_STACK_END_CHECK=y

Change-Id: Ibccec957ebc66f31c77fddff1419b5bcb6c8f635
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1785753
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:44:58 +08:00
chenyb1
82b81ff810 therm: Disable THERMAL_STATISTICS
It cause (CR) if cooling device have many levels.
There are NOT any processes to use thermal statistics and it
occupy about 6.7K memory, so disable it, also see this CR.

Change-Id: Ie37378c0a45cb6573be49e6c18b6af18f39f1d74
Reviewed-on: https://gerrit.mot.com/1784457
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:58 +08:00
chenyb1
c5c976211d Showing CPU freq
The command "kpitrace --stdout --interval=1 --freq --no-proc-cpu"
is not showing freq for each CPU for Racer_turbo (kernel msm-4.19).

It happens because the following file is not present in device
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state.

To get cpu power stats, CONFIG_CPU_FREQ_STAT should be enabled
in kernel config file.

Change-Id: I6929322cf7ef86a7b8beb19727251f2aa3df1e57
Reviewed-on: https://gerrit.mot.com/1784458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:44:58 +08:00
liuyc20
b4bf1d6d54 gadget: bcdUSB version back to 2.0 when not SuperSpeed
Some of PC USB3.0 port don't support bcdUSB 2.1 version.
But the phone bcdUSB will focus on bcdUSB 2.1.then USB gadget will
reset continually.Change bcdUSB to 2.0 to compat all PC USB port type.

07-02 08:05:34.853 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.182 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.415 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.647 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:44.171 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt

origin-CR: (CR)
Change-Id: Icb46a95226caecc9778c6889a85654f97fa85012
Signed-off-by: liuyc20 <liuyc20@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1383246
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1449152
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-on: https://gerrit.mot.com/1751275
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1785341
2024-04-18 14:44:58 +08:00