Commit graph

893,100 commits

Author SHA1 Message Date
Deepak Kumar Singh
926e20a4ca arm64: defconfig: Enable minidump for ipc log buffers
This config is used to pass maximum number of ipc logging memory
regions that can be dumped with minidump. This includes ipc log
buffers and memory regions for global context list and ipc log
contexts for which minidump is enabled.

Change-Id: If735ed093ef9efa3f0b0a2225babe2d26a3c79d4
Signed-off-by: Deepak Kumar Singh <[email protected]>
2020-12-15 04:41:54 -08:00
Yuanfang Zhang
f646b2f38e coresight-etm3x: change ETM name to coresight-etm
Change the name of ETM to coresight-etm.

Change-Id: Ia7ce1fb455260c6f5877e3b8b81431d7129de529
Signed-off-by: Yuanfang Zhang <[email protected]>
2020-12-15 19:04:46 +08:00
Pavankumar Kondeti
e3a0b52bb2 sched: Improve the scheduler
This change is for general scheduler improvemnts.

Change-Id: I8e6d7afe12387d86f3721c6fd880812ba86d885e
Signed-off-by: Pavankumar Kondeti <[email protected]>
Signed-off-by: Lingutla Chandrasekhar <[email protected]>
2020-12-15 15:57:04 +05:30
qctecmdr
5175b74fb7 Merge "Revert "netfilter: Unlock xt_table later"" 2020-12-15 01:48:36 -08:00
qctecmdr
45140c666f Merge "firmware: arm_scmi: increase the response timeout" 2020-12-15 01:48:35 -08:00
qctecmdr
da14ef15e2 Merge "defconfig: Enable tzlog driver on sdxlemur" 2020-12-15 01:48:35 -08:00
qctecmdr
29142a00dd Merge "msm: cvp: Fix CVP BW overvoting issue" 2020-12-15 01:48:35 -08:00
qctecmdr
96bb195660 Merge "mm/ksm: Remove reuse_ksm_page()" 2020-12-15 01:48:34 -08:00
qctecmdr
4e8886ba0b Merge "Revert "topology: Add snapshot of possible sibling cpu mask changes"" 2020-12-15 01:48:34 -08:00
qctecmdr
5984d1cd28 Merge "defconfig: Enable gcc/rpm-smd/debugCC clock drivers for sdxnightjar" 2020-12-15 01:48:34 -08:00
qctecmdr
93b3ef7d0e Merge "coresight: csr: update timestamp related registers offset" 2020-12-15 01:48:34 -08:00
qctecmdr
a15fa3b052 Merge "dt-bindings: clock: Add support for clock ids for SDXNIGHTJAR" 2020-12-15 01:48:33 -08:00
Pavankumar Kondeti
862319bb85 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: Id19f38a2b9a67b130876cb8df1e88c6a56aa6aad
Signed-off-by: Pavankumar Kondeti <[email protected]>
2020-12-15 14:58:36 +05:30
Pavankumar Kondeti
5a24ce9de8 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I30b3899e191d880e741f922323d0826b5c292498
Signed-off-by: Pavankumar Kondeti <[email protected]>
2020-12-15 14:58:36 +05:30
Pavankumar Kondeti
dfd45fa093 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I616acbe5bfdb0e1bf88e923d98b4a3d54d26d942
Signed-off-by: Pavankumar Kondeti <[email protected]>
2020-12-15 14:58:36 +05:30
Paras Singh Jain
534d5696ab msm-5.4: net: Compilation issue in nf_conntrack_sip.c
- Made change to fix the compilation error coming due to change
  3362467.

Change-Id: Ia2f91319098dbf2e1dd094cfd74aaea253b167b6
Signed-off-by: Paras Singh Jain <[email protected]>
2020-12-15 14:01:27 +05:30
Sibi Sankar
295e404917 soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled
If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be
seen. Fix this by including the appropriate linux headers.

./include/soc/qcom/cmd-db.h: In function ‘cmd_db_read_aux_data’:
./include/soc/qcom/cmd-db.h: error: implicit declaration of function ‘ERR_PTR’;

Change-Id: I76ed6230b00f88cefbb78e5f2ee4a534316078d7
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Sibi Sankar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Git-commit: 7ad18bb5c2c4bd50c8b83d375ee19be992022cf3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Tushar Nimkar <[email protected]>
2020-12-15 12:10:04 +05:30
Satish Kodishala
08a4bad48f Ignore -106 error while opening channel
Ignore -106 error when channel opened
again without closing.

CRs-Fixed: 2836671
Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911
Signed-off-by: Satish Kodishala <[email protected]>
2020-12-15 11:59:22 +05:30
Deepak Kumar Singh
12190dbdde trace: Add minidump support for ipc log buffers
Enable minidump for ipc log buffers.

Change-Id: Ie890c81783bab22b3ee6d510a045de4c93f9b3f9
Signed-off-by: Deepak Kumar Singh <[email protected]>
2020-12-15 11:55:55 +05:30
Phanindra Babu Pabba
65ec3786aa mmc: host: Fix bootup issue with file encryption with GKI
Export and call crypto APIs from command queue driver to
service file encryption request and program inline crypto
engine to encrypt/decrypt the data.

Change-Id: I8c9c8413e59454605c711a6a5c14308122a751e2
Signed-off-by: Phanindra Babu Pabba <[email protected]>
2020-12-15 11:54:03 +05:30
Andrii Nakryiko
df33f7119a fs: fix NULL dereference due to data race in prepend_path()
Fix data race in prepend_path() with re-reading mnt->mnt_ns twice
without holding the lock.

is_mounted() does check for NULL, but is_anon_ns(mnt->mnt_ns) might
re-read the pointer again which could be NULL already, if in between
reads one of kern_unmount()/kern_unmount_array()/umount_tree() sets
mnt->mnt_ns to NULL.

This is seen in production with the following stack trace:

  BUG: kernel NULL pointer dereference, address: 0000000000000048
  ...
  RIP: 0010:prepend_path.isra.4+0x1ce/0x2e0
  Call Trace:
    d_path+0xe6/0x150
    proc_pid_readlink+0x8f/0x100
    vfs_readlink+0xf8/0x110
    do_readlinkat+0xfd/0x120
    __x64_sys_readlinkat+0x1a/0x20
    do_syscall_64+0x42/0x110
    entry_SYSCALL_64_after_hwframe+0x44/0xa9

Fixes: f2683bd8d5 ("[PATCH] fix d_absolute_path() interplay with fsmount()")
Change-Id: If634d570fb7f37f4a77ae4f10970013dbc0762cb
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Cc: Alexander Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Git-commit: 09cad07547445bf3a41683e4d3abcd154c123ef5
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <[email protected]>
2020-12-15 11:43:16 +05:30
Santosh Mardi
79d123c5eb firmware: arm_scmi: increase the response timeout
For synchronous messages sent from the agent to platform,
agent waits for response for 30 milli seconds (max_rx_timeout)
before timing out if response gets delayed from platform.

Increase the timeout value to 1 second to minimize message
send failures in case of delays.

Change-Id: I72e9ab33a9be675b64301e904e8d43fb8bb89e50
Signed-off-by: Santosh Mardi <[email protected]>
2020-12-14 17:15:41 -08:00
Murali Nalajala
2917f5e88b arm64: defconfig: enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI
Enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI to print epoch values
when the device enter into suspend and resume.

Change-Id: Ia2d54874405cf88f9283cdb1699f67078aa3fcbc
Signed-off-by: Murali Nalajala <[email protected]>
2020-12-14 12:35:02 -08:00
Srinivas Ramana
f121a71abb time: sched_clock: record cycle count in suspend and resume
Record cycle count and kernel time in ns while entering suspend
and while resuming. This will help in matching up the kernel time
with external subsystems and in recording suspend time in cycles.

Change-Id: If22d9880103c7d54087d0faf4c992259e6b97f08
Signed-off-by: Srinivas Ramana <[email protected]>
Signed-off-by: Elliot Berman <[email protected]>
Signed-off-by: Murali Nalajala <[email protected]>
2020-12-14 12:26:18 -08:00
Murali Nalajala
de2adf4656 Kconfig: print epoch values in system suspend and resume cycles
Print epoch values when the device is enter and exit out of suspend
and resume. These epoch values are useful to know how long the device
is in suspend state. These values can be used to synchronize various
subsystem timestamps and have an unique timestamp to correlate
between various subsystems.

Change-Id: Ibe04b914649db1f2ee0ae748f3950ca646323ef1
Signed-off-by: Murali Nalajala <[email protected]>
2020-12-14 12:25:43 -08:00
Yue Ma
7862ff2483 cnss2: Fix a print error in time sync
Print proper values for host time and device time from an error
handling routine during time sync update.

Change-Id: Ib8d9d4fb86d4001b0e2b7d62bc2ae381616f3df6
Signed-off-by: Yue Ma <[email protected]>
2020-12-14 11:54:25 -08:00
Saurabh Sahu
820758896d clk: qcom: debugcc-holi: Remove the gcc_qup clocks
Remove the gcc_qup clocks from debugcc which are
not registered in GCC to avoid the crash because
of parent index in HOLI.

Change-Id: I0189b114024815fde8959c04bd41aa473d4ac4f8
Signed-off-by: Saurabh Sahu <[email protected]>
2020-12-14 19:14:55 +05:30
Srinivasarao P
b70099d409 Merge android11-5.4.61+ (9c7cbdf) into msm-5.4
* refs/heads/tmp-9c7cbdf:
  ANDROID: ABI: add symbols of drm_atomic_helper_setup_commit to unisoc
  ANDROID: ABI: update allowed list for galaxy
  UPSTREAM: HID: core: Correctly handle ReportSize being zero
  UPSTREAM: HID: core: Sanitize event code and type when mapping input
  FROMLIST: scripts: merge_config: add strict mode to fail upon any redefinition

Change-Id: I9ae5aa15a3bcef589ca072743ed5713bf0d0cacb
Signed-off-by: Srinivasarao P <[email protected]>
2020-12-14 17:01:28 +05:30
Rohan Sethi
297883f142 msm: kgsl: Dump HLSQ_DBG_CNTL in snapshot
Add HLSQ_DBG_CNTL to list of a6xx registers dumped in snapshot.

Change-Id: Ib55a2a3694368a2a82037d2164ee1470f3950322
Signed-off-by: Rohan Sethi <[email protected]>
2020-12-14 15:56:09 +05:30
Linyu Yuan
f32272fde3 usb: dwc3: allow get orientation from redriver
call redriver_orientation_get() to get orientation if redriver present.

Change-Id: I1ed69fece1f7577e2c478631920fb1bb3fe93cd1
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 01:37:45 -08:00
Linyu Yuan
efa6204924 usb: misc: nb7vpq904m: add redriver_orientation_get()
provide orientation info for external module.

Change-Id: I5e49e5f8071320beaf9d2f2a0390521d4d9f3b91
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 01:37:11 -08:00
Linyu Yuan
eba0b1fc29 usb: misc: nb7vpq904m: default gpio operation for orientaion
There is possible crash when phy driver which control the same pin,
1. redriver driver read gpio state and start release state,
2. phy driver start request another state,
3. redriver driver finish release state, clear module owner,
4. phy driver string compare of module owner which is NULL to crash,
prepare to fix it by provide orientaion for USB module.

Change-Id: I177691abd702bac4f388fbbc0c375e19008f5adb
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 01:36:53 -08:00
Linyu Yuan
2a55b618e9 usb: phy: qmp: change orientation to default portselect mode
if there are two modules control one same pin,
each module will request and release one state,
there is race when one module request state before
another module complete relase it's state.
revert to commit 87aee0bf55 ("usb: phy: qmp: Perform
DP_COM_SW_RESET during portselect") to allow only one module
control one pin.

Change-Id: Ie6df02f018e58be8bf832b5b3921f5430fadbf53
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 01:36:35 -08:00
Linyu Yuan
44c53ef829 usb: dwc3: control redriver connect/disconnect
control redriver when start/stop host or device mode.

Change-Id: Id2e7af96a20b285292d0799b6ed04365611ba709
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 01:36:21 -08:00
Linyu Yuan
1362aa149f usb: misc: nb7vpq904m: allow USB control connect and disconnect
add redriver_notify_connect() and redriver_notify_disconnect().

Change-Id: I48b2198df2a2257b13946fd8fcd7517f51073d45
Signed-off-by: Linyu Yuan <[email protected]>
2020-12-14 17:17:10 +08:00
Ayush Kumar
854ace0c39 dt-bindings: msm: Add bindings for SHDR and IFE LITE fuse support
- Add SHDR limit fuse macro for supporting SHDR limit fuse feature.
- Add IFE LITE hw fuse macro for supporting limit check on IFE Lite hw.

Change-Id: I8c1e9ab2935ffb1673c64b0593cff6acb4d78d8a
Signed-off-by: Ayush Kumar <[email protected]>
2020-12-14 13:31:41 +05:30
Deepak Kumar Singh
ba05ace82d mailbox: msm_qmp: remove IRQF_NO_SUSPEND while requesting irq
Using IRQF_NO_SUSPEND and enable_irq_wake together can sometime
cause issue in wakeup from suspend and local host may not come
out of suspend on receiving qmp interrupt.

It is sufficient to use enable_irq_wake to mark irq as wakeup
capable.

Change-Id: I714724b31b92d23df0ac6a648f70416a130c9896
Signed-off-by: Deepak Kumar Singh <[email protected]>
2020-12-14 12:06:22 +05:30
Veera Vegivada
0ed7593111 scsi: ufs: Fix IOCTL error checking for input buffer
The check for user buffer != NULL in ufshcd_ioctl() should
only be done at a point when we know we have a valid IOCTL
command.  Move this check inside the UFS_IOCTL_QUERY
handling code.

Change-Id: I10e86b30ae1fdd8c9230db476bb593ccfa94b55c
Signed-off-by: Anjana <[email protected]>
Signed-off-by: Veera Vegivada <[email protected]>
2020-12-12 01:57:11 -08:00
Yue Ma
dd00ce5aa3 cnss2: Fix an issue when MSM SSR feature is not enabled
Commit cd7f415867 ("cnss2: Wait for power up complete during
SSR restart") breaks the compilation when MSM SSR feature is
not enabled. Fix it properly in this change.

Change-Id: I9e16174a4063b037d50f890eccb0983bd68a54a8
Signed-off-by: Yue Ma <[email protected]>
2020-12-11 17:18:17 -08:00
Yue Ma
2e621fdfeb cnss2: Use proper return code for not supported operation
ENOTSUPP is not a SUSV4 error code, use EOPNOTSUPP instead.

Change-Id: I8755486cb47880e52182370ed6939f655424c7d5
Signed-off-by: Yue Ma <[email protected]>
2020-12-11 17:18:17 -08:00
Yue Ma
63c72bd4e9 cnss2: Refactor PCI probe callback
Refactor PCI probe callback so that it will be more clear and
extendable in the future.

Change-Id: I4af5a5d6fcd65b2c79348bb1459888198291f298
Signed-off-by: Yue Ma <[email protected]>
2020-12-11 17:14:00 -08:00
Yue Ma
69f4396451 cnss2: Add fallback support for device specific path loading
Add the logic to fall back to default path if it fails to load
firmware from device specific path.

Change-Id: I0595a3be97b6f803be232b73fb35b8b5b3c52b0e
Signed-off-by: Yue Ma <[email protected]>
2020-12-11 17:13:52 -08:00
Paras Singh Jain
4870530f13 netfilter: contrack: Adding check for SIP/2.0
Packets arriving at SIP port will now be checked for SIP/2.0 before
getting tagged as SIP packet. Added helper functions strnstr and strnstrn
for checking substring in a string in case of non null termination.

Change-Id: Ia7d6a3ac5dd1e5f0ce97ee9f6d0c13f16d9dd7f2
Acked-by: Vinisha Varre <[email protected]>
Signed-off-by: Paras Singh Jain <[email protected]>
2020-12-12 02:36:55 +05:30
Ajay Agarwal
f74b9dbcf4 usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation
There might be spurious HS PHY IRQ after USB bus has gone into
hibernation which leads to dwc3_msm_resume and in_lpm flag
getting cleared. Next when the restore from hibernation happens,
dwc3_msm_resume becomes a no-op but in reality, the HW resources
are all turned off. This leads to an unclocked access from
xhci_resume.
Fix this by disabling PHY wakeup IRQs on hibernation/pm_suspend
for automotive targets.

Change-Id: I753fb3593fca31f12406b9126f73f75520dab1b0
Signed-off-by: Ajay Agarwal <[email protected]>
2020-12-11 10:28:23 -08:00
Vivek Kumar
ffbc2eb801 defconfig: gen3auto: Enable ION & Secure buffer driver
Enable ION and secure buffer driver on gen3auto targets. They
are used to allocate secure & non-secure buffers from various
ION heaps.

Change-Id: I2a9ea7611365a83267a7b396acda8860f58c21d0
Signed-off-by: Vivek Kumar <[email protected]>
2020-12-11 09:44:31 -08:00
Kamal Agrawal
d9b8457ddd msm: kgsl: Log context information on ENOSPC
There can be maximum of 200 contexts per process and 800
contexts in total. Whenever the limit is exhausted, an
-ENOSPC error is returned. With this change, more information
is logged: total number of contexts, number of attached and
detached contexts for all processes.

Change-Id: If714b5375f1d4ce0551fcb8d156ef5129dbafa6c
Signed-off-by: Kamal Agrawal <[email protected]>
2020-12-11 22:02:45 +05:30
Kamal Agrawal
922fd5fe2e msm: kgsl: Update HW CGC settings for A660
Clear cgcCntlCsrMode field in GMUAO_GMU_CGC_MODE_CNTL register.

Change-Id: I62b7eb97fd9536ad03cf398ba1d1e102af38ec70
Signed-off-by: Kamal Agrawal <[email protected]>
2020-12-11 21:44:54 +05:30
Isaac J. Manjarres
48a845e5f6 ion: Use a freezable unbound workqueue for the memory prefetch work items
The prefetch work items currently use the system unbounded
workqueue for prefetching/draining memory for a secure VMID. The
execution of either operation can overlap with system suspend and
can block the later phases of the system suspend flow (e.g. waiting
for all available CPUs to go idle) if these operations take a long
amount of time.

Since the prefetch and drain operations involve manipulating the
S2 page tables and can take a long time based on the amount of memory
that is being hyp assigned, use a freezable unbound workqueue. Using
a freezable workqueue allows for outstanding prefetch works to be
processed at the beginning of the system suspend flow, when workqueues
are being frozen, and subsequent prefetch works are processed after
system resume, when workqueues are thawed. This prevents blocking
the later phases of system suspend, where CPUs should quickly
go to idle.

Change-Id: Iedcee6a565b5c871ceb7173c2b48ec3136aa44e1
Signed-off-by: Isaac J. Manjarres <[email protected]>
2020-12-11 05:37:05 -08:00
Vivek Kumar
c8da086d6b defconfig: gen3auto: Enable SLPI pinctrl driver for SA8155
Enable SLPI pin-control driver for SA8155 chipset.

Change-Id: I403157f3a145a3149e105ea9c21222ddfe5d0475
Signed-off-by: Vivek Kumar <[email protected]>
2020-12-11 18:16:34 +05:30
Vivek Kumar
1f46e62d77 pinctrl: qcom: add pinctrl driver for SLPI
Sensor Low Power Island (SLPI) has a Pin controller which can
support 14 pin configurations, add pinctrl driver to handle
pins of SLPI from APPS. The snapshot of this driver is taken
from msm-4.14 commit "e4483b491ed60".

Change-Id: Id44ccb34f23a285edf0eaccb501ba4d2296a7b87
Signed-off-by: Vivek Kumar <[email protected]>
2020-12-11 18:14:25 +05:30