Commit Graph
821836 Commits
Author SHA1 Message Date
dengwei1 9814b4696e guam: input add touch class support
input add touch
class support

Change-Id: Id5ee7235aeb89f23906ff8fa2af9528dce36447b
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511705
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
zhaoxp3 9ef49dfd65 arm64/config: enable DIAG_OVER_TTY
Moto diag driver built-in or DLKM requires DIAG_OVER_TTY
for both user and userdebug version.

Change-Id: I5f6bec18700f3fd8a5198266625837b8830fa10e
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1510729
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
Ryan Lattrel 1fc1372a3f drivers: tty: add tty diag module
Add tty diag module for tcmd.  Copied from kernel 4.4.

Ported from: https://gerrit.mot.com/#/c/677438/

Change-Id: I124a256ab2f554260d773baccee6d7104bfe2e58
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1180336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com>
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1242980
Reviewed-by: Master Yoda
Reviewed-by: Shengqi Wang <wangsq2@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448862
Reviewed-on: https://gerrit.mot.com/1510728
2023-06-01 00:47:06 -03:00
Ryan Lattrel e062def56e char: diag: add write done sync function
In factory mode the tty_diag module needs a spinlock
eliminated from the diag_usb_write_done call.

Change-Id: Ic7196276e1d07fa9eb5c58b2f7c35d4e24ffa9b6
Reviewed-on: https://gerrit.mot.com/1128708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1180282
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-on: https://gerrit.mot.com/1242985
Reviewed-by: Master Yoda
Reviewed-by: Shengqi Wang <wangsq2@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Reviewed-on: https://gerrit.mot.com/1448855
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1510727
2023-06-01 00:47:06 -03:00
houdz1 b50e45fab9 panel_notify: add api for touch state
Touch driver can call the api to set the touch state.
And panel driver can call the api to get the touch state.
And when the touch state is not 0,
we can not power down panel.

Change-Id: I3cb0dceeb7ff9b0f731c0ce2d9f2fea2e648d223
Signed-off-by: houdz1 <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499392
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
Reviewed-on: https://gerrit.mot.com/1509882
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
tanhua1 22249c0164 guam: defconfig: enable panel notifications
Panel notifications allow to register for display on/off events.
Main purpose is to allow touch driver to arm wakeup gestures
configuration whenever display turns off.

Change-Id: Ia9392e86b3be16b46f126c315fa1bb1936421b23
Signed-off-by: tanhua1 <tanhua1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1509865
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
Jared Suttles ce7d3d8c48 video: Add panel_notifier framework
This is designed to allow other drivers to know about panel events. It
also enables drivers to inject synchronous operations into the panel
state flow, by blocking the panel state changes at various points.

An example of this would be if a driver would l(CR) to know when a panel
is on and do an operation before the video stream to that panel begins.

Signed-off-by: Jared Suttles <jsuttles@motorola.com>
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Patrick Auchter <auchter@motorola.com>
Reviewed-by: Joseph Swantek <jswantek@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Change-Id: I94594c93e2b989ff93271f116e010baaf774c6de
Reviewed-on: https://gerrit.mot.com/1469162
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1470251
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509864
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
houdz1 58c6b1a5eb drm: mipi: disable Elvss dim of HBM for MIPI DSI
Added 3 MIPI commands to set/get the ELVSS setting information from
the MIPI DSI panel.

Port from a5b269d7.

Change-Id: I3aa1612c7afc35247f0db86ee1dd8484bae8d7b4
Signed-off-by: daiss1 <daiss1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1469340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509787
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
Bang Nguyen 722167830b Add new macro MIPI_DSI_MSG_READ
Add a new macro MIPI_DSI_MSG_READ (bit 4) in drm_mipi_dsi.h for
MIPI DSI READ Message

Port from: 3ba3a3b2

Change-Id: Ie3f2b69ed564c155b4637b03d7399f1118b2e95a
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509786
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
Bang Nguyen b255322a18 gpu/drm: Create sysfs to expose panel vendor infor
Create sysfs panelId, panelVer, and panelName in
/sys/class/drm/card0-DSI-1 and /sys/class/drm/card0-DSI-2 to expose
panel_name, panel_id and panel_ver for panel vendor information.

Port from: 5df4be294

Change-Id: If6733e1e64ca61c5576e9db0d7aacf62fb5e54a6
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444418
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509785
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
Bang Nguyen 6ae21ba490 drm: mipi: Disable the MIPI DSI commands 0x2E and 0x3E
For the Secure UI feature, the display feature, which allows host to
read-back its internal memory buffer, should be disable. The MIPI DSI
command 0x2E (read_memory_start) and 0x3E (read_memory_continue) will
be disable.

Port from: bde6847

Change-Id: Ifc2579051e8005de5e915aad1bccd883c681572f
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1444417
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509784
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
Bang Nguyen 988ac19a0c drm/dsi: Implement DCS set disp brightness 2bytes
Provide a small convenience wrapper that set the display 2bytes
brightness

Port from: 4a5c926

Change-Id: Iadfcb1d6cdf4866391f36ee970d79840e109fe9a
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com>
Reviewed-on: https://gerrit.mot.com/1410287
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509783
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
2023-06-01 00:47:06 -03:00
dengwei1 5fd988adff guam: input add drm support
input add drm
support

Change-Id: I2aa124bca2cfa3ccfb2bb415d78f4bb226ff3f19
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1510627
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
zhaoxp3 eb59da91ba defconfig: bengal: enable pstore
Enable pstore config to save dmesg on panic and
watchdog

Change-Id: Ib593b780fcf10059c4e795491756646747528058
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1510456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
haojl2 19d39dcea7 power: Add function to show active wakelocks
tlmm:
Add a function to dump the active wakelocks

Change-Id: I05f4d477ff9e096efe8e0fcdb3a8d5d76c7028ac
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1453711
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509728
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
yangjq f62b4fa286 power: suspend: Save snapshot of gpio, vreg when suspend
Add system node /sys/private/tlmm_before_sleep etc.
Used to check and change the gpio before suspend.
This won't save and change gpio's config only after a read of the node.
Use tlmm_tz to skip those gpios locked by TZ such as 111, 126.

Change-Id: I99810d8659ab8ea4a59029a9cea326f93becefd2
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/960741
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Reviewed-on: https://gerrit.mot.com/1172239
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1340934
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Reviewed-on: https://gerrit.mot.com/1362061
Reviewed-on: https://gerrit.mot.com/1453714
Reviewed-on: https://gerrit.mot.com/1509727
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
Todd Poynor 8d5e39b1f1 PM/Suspend: Print wall time at suspend entry and exit
Cherry pick this commit from defender to print "PM: suspend" with
wall time when enter and exit suspend.

Change-Id: I92f252414c013b018b9a392eae1ee039aa0e89dc
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1477734
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509726
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
Mark Reed 43dd108d1b - Do not unload prov TZ app.
From (CR)
This app manages secure state as set by bootloader. Reloading would
clear the state. This solution is limted by some alternate
way to force unloading our prov TA and then restarting it
outside bootloader.

Change-Id: Idcfc520f457ac081fd63e76a821d047ee9a78d09
Reviewed-on: https://gerrit.mot.com/1284363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Joel Voss <jvoss@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1349396
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1471673
Reviewed-by: Yang Xiao <xiaoy3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509724
2023-06-01 00:47:05 -03:00
xizx 5a7dde555f add system restart warm and panic mode
add two debug interfaces:
1.when set cmdline "sys_restart_mode=warm", the kernel will reset with
WARM way.
2.when set cmdline "sys_restart_mode=panic", the kernel will enter into
ramdump when it normal reset.

Change-Id: Id70063bac7d0951622c6e074c2ba2ec024374022
Signed-off-by: xizx <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1117501
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1345290
Reviewed-on: https://gerrit.mot.com/1406867
Reviewed-on: https://gerrit.mot.com/1463612
Reviewed-on: https://gerrit.mot.com/1509723
2023-06-01 00:47:05 -03:00
Konstantin Makariev 7cf207f870 printk: increase log buffer size to 2k
Kernel command line print statement is truncated, need increase the
buffer size.

Change-Id: I0e353563a138e85de2fb84ca89074e564337967a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1189541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1252557
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-on: https://gerrit.mot.com/1461482
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509722
2023-06-01 00:47:05 -03:00
Ling Jin e5b870ee13 qpnp-power-on: Print system timestamp on Power key event
Print system timestamp on Power key press and release events.
This would make debugging easy

Ported from: https://gerrit.mot.com/#/c/1320467/

Change-Id: I2c810e4b59c2d3bd8a705d407a339d9efe6fad3d
Reviewed-on: https://gerrit.mot.com/1320467
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1456668
Reviewed-on: https://gerrit.mot.com/1509721
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
haojl2 def7cd0482 regulator: core: Add sysfs node for debug
Add sysfs node /sys/private/vreg
Get regulator states for debugging

Change-Id: I783fbcac43994ed39047ea18a1893a6a35032efc
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1453713
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509720
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
haojl2 52c1764960 pinctrl: msm: Add sysfs node for debug
Add sysfs node /sys/private/tlmm
Need skip those gpios without permission from TZ

Change-Id: Ic8d854be6a46ea9ec78c838aad1d4b3f4b6d0ec2
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1453712
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509719
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
Ryan Lattrel c411aad5dc watchdog_v2: export watchdog trigger
Export the function to trigger a watchdog to
facilitate watchdog testing.

Change-Id: Ifcf7af8679bea89c9f1d1dcfd2ac91e0a5842a6f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1249378
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1454260
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509718
2023-06-01 00:47:05 -03:00
Dmitry Ornatsky 4c8d2afa68 pinctrl: pinctrl-msm: do not dump unallocated GPIOs
Do not dump GPIOS that are not allocated by HLOS. This is a temporary
change to avoid TZ exceptions.

Change-Id: I7b231457d186cbdc0a900b153bc8b09e9ccffddd
Signed-off-by: Dmitry Ornatsky <cdo021c@motorola.com>
Reviewed-on: http://gerrit.mot.com/808904
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Reviewed-on: https://gerrit.mot.com/1230533
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaopeng Li <lixp5@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1400180
Reviewed-on: https://gerrit.mot.com/1436604
Reviewed-on: https://gerrit.mot.com/1509717
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
Alexander Filonenko c0bbf0b613 of: conditional status property
Add dynamic aspect to the status property. Conditional status
references another property and changes availability of the device
node based on the value of the referenced property. This allows
to manipulate the device tree at boot. For example, change availability
of certain devices based on a property set by the bootloader under
"/chosen" node. Syntax allows partial match of specified property
value by adding keyword "contains" in front of values list.

Propagation of (CR).

Change-Id: I3a69fe1b95c2e140feff54edb7048a5610a94d0c
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1439246
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509716
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:47:05 -03:00
jixj 5ff82102f6 arm64/dt add kpanic modules
Add pstore, watchdog_cpu_ctx, tzlog_dump, and
mmi_annotate modules to capture data during
panics and watchdogs.

Change-Id: I0c65cb530631f225a1ca0cef1c3f1172f5222fbc
Reviewed-on: https://gerrit.mot.com/1249390
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1459023
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509715
2023-06-01 00:47:05 -03:00
xuwei9 1708491f81 kernel:moto charger/battery driver enable
Enable moto charger battery feature
at gaum

Change-Id: I8ff7240bdb42afd7bfd120ed4d35cbc84803000c
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1509675
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
xuwei9 5a70138322 config:battery 10k ntc enable
Enable battery 10K ntc support
qcom default is 100K

Change-Id: Ic01d34dc64a1b65d6702725611c0ef1bcf1cfb00
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1509707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
dengwei1 cae7001451 guamp: input add touch support
input add touch
support

Change-Id: Iad950fd48bc0e2b6c00f4ccf7327b1552999e8a3
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1509676
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
dengwei1 d1053d95d3 input add touch support
add touch support
for init

Change-Id: I2f1c7c7ca4f8d46c1240503efbe9f3ccb91eb5dc
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1508794
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
xuwei9 314fbd26cd kernel:JK50 NTC 10K report wrong temp
JK50 use abnormal NTC which not supported
at Qcom baseline

Change-Id: I9e1b161de57f37ebf5d594f01263eb6feddfcdc7
Signed-off-by: xuwei9 <xuwei9@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1508772
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 828260111b arm/defconfig: update debug option
update debug option for bengal platform

Change-Id: Ib7e8ff5f605107de02f38a05fe27dd31b133f8f1
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1506879
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 0fd5782cb1 defconfig: enable CONFIG_MEMCG config
CONFIG_MEMCG needs to be enabled for android builds as it's enabled for
android-base.config

Change-Id: Id40467e8d8173c6580c89026f88141c42026c761
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1503837
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 519e32ce97 defconfig: bengal: Add moto defconfigs
Add defconfigs for guam,guam plus, bengal chipset, debug
builds and the factory.

Change-Id: I19cba774e43ec95a11adc7aa84412ab4777a5810
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499585
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 d177ede646 msm-poweroff: Store restart reason
After cold reset is introduced, the phone is cold reset instead of
warm reset, such as panic. In this case, the power up reason saved
in shared memory will be lost. Consequently, the power up reason on
next boot up time will be normal boot instead of correct ones. To
resolve this issue, we can use the two spared pmic registers which
are power lost safe to save the restart reason for these cases.

Motorola definition of AP panic bit set in extra info pmic reg
conflicts with QC definition of Warm reboot bit set in extra info reg
move Mot bit to available position to avoid conflict

Force a cold reboot for the command "adb reboot bootloader"
to avoid the warm boot when user tries to continue boot from boot menu.

For early kernel panic before PMIC is initialized, the function
qpnp_pon_store_extra_reset_info will fail. Need to set IMEM flag
for fail safe in this case.

For post-panic, post-wdt, post-pmicwdt reboot, we do cold reset.
And set the PMIC register accordingly, to nofity BL the special
reboot behavior.

Configure panic as warm restart, so that we have chance to get panic logs.

According to SR 01277290, 0x88D and 0x88E are spare registers for PMIC
where we could store oem specific reset information

Ported from: https://gerrit.mot.com/1446282

Change-Id: I6704c801435c6586dbe64259c214dcdc926b07cf
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499584
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 510a378881 power: pmic-voter: Export Interfaces
Export some pmic-voter interfaces for dlkm usage as well
as create access functions that are exported for dlkm to
manipulate the struct.

ported from https://gerrit.mot.com/1200744

Change-Id: I073a4e976f8cd184fa20b262eba9bc962a4a1bb2
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499583
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 30cf805663 Do not build moto config while building MSI
Moto kernel config does not really take effect during
building MSI.
Set to PRODUCT_SPECIFIC_DEFCONFIGS to KERNEL_DEFCONFIG,
So that MSI build can commonize.
It's for build failure
+++
FAILED: ninja:
'kernel/msm-4.19/arch/arm64/configs/vendor/ext_config/moto-kona.config',
needed by
'out/target/product/msi/obj/kernel/msm-4.19/mapphone_defconfig', missing
and no known rule to make it
ninja failed with: exit status 1
+++

Change-Id: I59710763d8a88a89e6e592dcfde53c7e5486d195
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499582
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 8c9c8c58a5 kernel/config: Add Moto ext_config feature
Add ext_config feature to extend qcom's defconfig
There make files can compose some kconfig files into one

Change-Id: Ic1444100f61300e7ee16a81c73afde3dac81da0a
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499581
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
zhaoxp3 053c068ed6 soc: qcom: kconfig opt to build moto dtbs
Introduce a new configuration MMI_DEVICE_DTBS that will allow the
target to only build Motorola devices.

Ported from: https://gerrit.mot.com/#/c/1066190

Change-Id: I3e787432777c282b63cb3619d47f78a5b93964a5
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1499580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:47:04 -03:00
Mukesh Ojha 5c9bc040ea soc: qcom: socinfo: Add sku sysfs support
Add the support to get the sku information from userspace.

Change-Id: I39b60fcc430308cd75e67fa400ad9515b5ad4b65
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
2023-05-09 05:36:31 -07:00
Mukesh Ojha 55c3ba616d soc: qcom: socinfo: Add revision 16 support in socinfo structure
Below are some new fields are getting updated in socinfo
structure from bootloader under revision 16.
e.g

esku;
nproduct_code;
npartnamemap_offset;
nnum_partname_mapping;

Add the change in socinfo driver to accommodate this.

Change-Id: I11b5182c15af32da61cddbf4bb45d5aef390135a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
2023-05-09 04:40:42 -07:00
Linux Build Service Account 5b412199cc Merge d725757860 on remote branch
Change-Id: I9934c3a8e4d5c9e53b0a99af8c1238d3b6bdc3bf
2023-05-08 05:55:07 -07:00
Vamsi Krishna Gattupalli d725757860 msm: adsprpc: Handle UAF in fastrpc internal munmap
Added reference count for contex map indicate memory under used
in remote call. And, this memory would not removed in internal
unmap to avoid UAF.

Change-Id: Ieb4ff6b298ff9c48953bc5b3539fdfe19a14b442
Acked-by: DEEPAK SANNAPAREDDY <sdeeredd@qti.qualcomm.com>
Signed-off-by: Vamsi Krishna Gattupalli <quic_vgattupa@quicinc.com>
2023-04-25 18:25:53 +05:30
Kamal Agrawal fbca1995ab msm: kgsl: Do not capture DTCM on gmu boot failure
Accessing DTCM can cause NoC error sometimes if GMU is accessing
any of its TCMs at the same time as host.

Change-Id: I3d7a3169620854dbd659f378c216a7b15435c914
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2023-04-21 12:47:55 +05:30
qctecmdr ba55275eef Merge "tap: tap_open(): correctly initialize socket uid" 2023-04-12 12:31:20 -07:00
qctecmdr 27f28bc328 Merge "sched/walt: don't panic for accounting issues" 2023-04-12 08:50:14 -07:00
Srinivasarao Pathipati 7274a6f26b sched/walt: don't panic for accounting issues
walt's accounting issues are not fatal, reset the variables and
raise warning instead of panic.

Change-Id: Id9f8cdbc1bde1539c33c2000590c81567fc5312a
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-04-07 13:06:41 +05:30
qctecmdr 388cd19afe Merge "msm: kgsl: Keep postamble packets in a privileged buffer" 2023-04-04 00:29:52 -07:00
Pietro Borrello b70958e5cf tap: tap_open(): correctly initialize socket uid
sock_init_data() assumes that the `struct socket` passed in input is
contained in a `struct socket_alloc` allocated with sock_alloc().
However, tap_open() passes a `struct socket` embedded in a `struct
tap_queue` allocated with sk_alloc().
This causes a type confusion when issuing a container_of() with
SOCK_INODE() in sock_init_data() which results in assigning a wrong
sk_uid to the `struct sock` in input.
On default configuration, the type confused field overlaps with
padding bytes between `int vnet_hdr_sz` and `struct tap_dev __rcu
*tap` in `struct tap_queue`, which makes the uid of all tap sockets 0,
i.e., the root one.
Fix the assignment by using sock_init_data_uid().

Change-Id: I6337cd5bee057b849a0ddf8205edbcbcd487099b
Fixes: 86741ec254 ("net: core: Add a UID field to struct sock.")
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 66b2c338adce580dfce2199591e65e2bab889cff
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
Signed-off-by: Kaustubh Pandey <quic_kapandey@quicinc.com>
2023-04-03 02:25:47 -07:00