Commit graph

892,914 commits

Author SHA1 Message Date
Jagadeesh Kona
efc155c674 clk: qcom: gpucc-yupik: Update Kconfig of GPUCC for YUPIK
Update Kconfig of GPUCC to auto enable GCC clock driver if
GPUCC is enabled.

Change-Id: I651252f4ec5ccce85d34391c63e1e5fde6d4bb72
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-16 17:35:59 +05:30
Chandana Kishori Chiluveru
2e6480dbe7 USB: composite: Release spinlock before WARN()
if WARN() is called under spinlock, it will lead crash due to
watchdog timeout. Hence fix it by releasing spinlock before calling
WARN(). And also check cdev->config is NULL or not before calling
WARN().

Change-Id: Iebd00932b94164e9f40aa6126a2352437b1141ed
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-15 21:36:37 -08:00
Veera Vegivada
2ff9429f38 icc: dt-bindings: add endpoint IDs for interconnects for SCSHRIKE
Add master and slave ID constants for all Qualcomm Technologies, Inc.
SCSHRIKE interconnect providers which consumers can use to set
bandwidth constraints and find paths in the NoC (Network-On-Chip)
topology.

Change-Id: I69fdeddf756a12aa17868ddf7130243d5852d978
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 10:02:22 +05:30
Veera Vegivada
5eefb9efc4 dt-bindings: clock: Add clock-ids for SM6150
Add the clock-ids for all clock controller drivers for clients to be
able to request for the clocks.

Change-Id: Iab46d027300127185bc7035e8afff35fd97c2e09
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:25 +05:30
Veera Vegivada
df7426de90 dt-bindings: clock: Add dt-bindings for SCSHRIKE
Add the clock-ids for gcc/camera/display clock drivers for clients to be
able to request for the clocks.

Change-Id: I65bc4fa7b45e1be6d4e05cb75c5dd5b270688d7b
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:25 +05:30
Veera Vegivada
817f2e81b8 arm64: defconfig: Enable clock controllers for scshrike
Enable gcc, camcc and dispcc so that clients can use
and also enable debugcc for clk_measure support.

Change-Id: I2cbb349878d0be00555fb6c8ecd3a6a7604051d1
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
2020-12-16 08:05:18 +05:30
Yue Ma
3db21c0a2e cnss2: Make sure the write to remap window register take effect
Since PCIe remap window register access and actual PCIe device
register access may go through different NoCs, read it back after
writing to remap window register to make sure it has taken effect.
This is able to avoid NOC errors when accessing the actual device
register which the remap window value applies to.

Change-Id: I65848758250fb9e6e1cbe513932c64b8303a8e98
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-12-15 17:51:55 -08:00
Anmolpreet Kaur
4130da7ced qcedev : Solve compilation issues
This change solves compilation issues that
came up while enabling qcedev driver in
sdxlemur.

Change-Id: Iaa261681a3cef421dcb21908e1402b146e912a55
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-12-15 23:07:56 +05:30
qctecmdr
a2839ca38b Merge "defconfig: msm: Enable ARCH_YUPIK for genericarmv8" 2020-12-15 09:11:53 -08:00
qctecmdr
b4fabbc028 Merge "interconnect: qcom: Enable real interconnect provider for Yupik" 2020-12-15 09:11:52 -08:00
qctecmdr
9adb2b478a Merge "usb: dwc3-msm: Disable PHY wakeup IRQs on hibernation" 2020-12-15 09:11:52 -08:00
qctecmdr
f40457bbdb Merge "iio: adc: qcom-spmi-adc5: add an unique irq name" 2020-12-15 09:11:52 -08:00
qctecmdr
7827a27eea Merge "drivers: llcc: Add LLCC driver for Yupik" 2020-12-15 09:11:52 -08:00
Rohith Kollalsi
fee2827468 defconfig: Add support for compiling sdxnightjar target
Add defconfig changes from usb to support SDXNIGHTJAR target.

Change-Id: Ie2447eb1320e198b055fc02c5efee386027bbc73
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2020-12-15 22:27:42 +05:30
Anmolpreet Kaur
e55be43040 smcinvoke: implement retry and timeout for CB processing
CB requests are processed by HLOS userspace. It is possible that
userspace never returns with a response. This could cause trusted
environment that initiated CB request to reject processing anymore
non-secure requests. This is not a desirable situation. Hence, adding
timeout functionality along with retry mechanism to send error response
back to trusted env after maximum number of retries are already done and
continue processing requests from non-secure side.

Change-Id: Idbd3048d0b9594c9927d55a24a8ca77e14214746
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-12-15 19:20:18 +05:30
Pavankumar Kondeti
e3a0b52bb2 sched: Improve the scheduler
This change is for general scheduler improvemnts.

Change-Id: I8e6d7afe12387d86f3721c6fd880812ba86d885e
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
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 <pkondeti@codeaurora.org>
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 <pkondeti@codeaurora.org>
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 <pkondeti@codeaurora.org>
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 <parassin@codeaurora.org>
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 <sboyd@kernel.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200227125615.4727-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 7ad18bb5c2c4bd50c8b83d375ee19be992022cf3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-12-15 12:10:04 +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 <deesin@codeaurora.org>
2020-12-15 11:55:55 +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 <andrii@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 09cad07547445bf3a41683e4d3abcd154c123ef5
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
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 <gsantosh@codeaurora.org>
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 <mnalajal@codeaurora.org>
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 <sramana@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
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 <mnalajal@codeaurora.org>
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 <yuem@codeaurora.org>
2020-12-14 11:54:25 -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 <yuem@codeaurora.org>
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 <vvarre@qti.qualcomm.com>
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
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 <ajaya@codeaurora.org>
2020-12-11 10:28:23 -08:00
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 <isaacm@codeaurora.org>
2020-12-11 05:37:05 -08:00
Odelu Kukatla
56a31c4cad interconnect: qcom: Enable real interconnect provider for Yupik
Introduce Qualcomm Yupik specific real provider driver using the
interconnect framework. Also add sync_state for interconenct
provider driver.

Change-Id: Ifd61a5d1d8eb1fb532b865d128b14ae673a1acdf
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-11 04:42:17 -08:00
Akash Asthana
7481a0b168 Platform: msm-geni-se: Geni drivers shouldn't crash without ICC support
Ideally GENI drivers shouldn't fail or crash if ICC entries are missing
from the DT node or CONFIG_INTERCONNECT is disabled. Most of the ICC APIs
returns success in such scenarios.

Since we have maintained our own wrapper for most of the ICC interaction
for ex: rmv_ab_ib/add_ab_ib/resources_init mostly due to QUP core clock
behaviour. So, let's bail out from these APIs if ICC entry is missing
in DT node. In future we can move ICC registration to probe to simplify
more.

Also, remove the obsolete iommu related code.

Change-Id: I48bec3d2a95ad53f2c2008e60be645ed829354ca
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-12-11 17:23:49 +05:30
Odelu Kukatla
ad1d7eb34e arm64: defconfig: Enable interconnect driver for YUPIK
Enable interconnect driver so that consumers are able to
obtain their path handles properly.

Change-Id: I88d34f8d959216b3e8ac412761b76e389a6ee868
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-12-11 17:05:54 +05:30
Kavya Nunna
7ed1c2b05e defconfig: Enable rpm-smd and qti_regulator option for sdxnightjar
Enable rpm-smd regulator and qti_regulator for sdxnightjar,
to support regulators inside pmics which are controlled by the
RPM processor.

Change-Id: I898e8d0984d1322e9f2f120e6fc03b030616f1f3
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2020-12-11 13:31:12 +05:30
Lingutla Chandrasekhar
c4e372d1f3 Revert "topology: Add snapshot of possible sibling cpu mask changes"
Cpu possible sibling cpu mask is only used by WALT for its cluster
population. And WALT is directly getting the cpu possible sibling mask.

So remove this unused cpu mask support by reverting commit:
'6df025a02c49f65("topology: Add snapshot of possible sibling
cpu mask changes")'.

Change-Id: If65842a37cad95e8b52425a1397d12c32a95dc1e
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-12-10 19:22:29 -08:00
qctecmdr
aa860b5b17 Merge "usb: f_gsi: Send zero length packet for MBIM/GPS on cable connect" 2020-12-10 16:11:03 -08:00
qctecmdr
fdf6a38b66 Merge "msm: kgsl: Properly walk the list of timeline signals in a aux command" 2020-12-10 16:11:03 -08:00
Jordan Crouse
a8e0225571 msm: kgsl: Properly walk the list of timeline signals in a aux command
Commit 36b196ce5c ("msm: kgsl: Add software timelines") didn't properly
advance the user source pointer while walking the incoming list of timeline
signals in an aux commmand which resulted in only the first listed timeline
getting signaled.

Fixes: 36b196ce5c ("msm: kgsl: Add software timelines")
Change-Id: Ic0dedbad400f276abea6b368421ccdcef1645b9e
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-12-10 14:06:05 -07:00
qctecmdr
46105a7401 Merge "mtd: msm_qpic_nand: Workaround to get the correct density for JSC part" 2020-12-10 11:38:52 -08:00