Commit graph

810451 commits

Author SHA1 Message Date
Harshdeep Dhatt
726671cb2f msm: kgsl: Correctly handle gmu fault interrupts
Send NMI to gmu so that we don't lose critical gmu state.
We do not want to trigger dispatcher because we don't know
whether the gpu was active or not. The best course of action
is to wait for the next kgsl -> GMU interaction to timeout
thus triggering GMU snapshot and appropriate recovery steps
based on whether gpu was active or not.

Change-Id: I17b4245f4e0113bfc902d7dae46bb24d0bc2b65d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-04-20 14:56:18 +05:30
Zhenhua Huang
bf4f47f81f ion: Improve ION allocation paths
Clean up some of the ION heap interfaces so that they are
more inline/uniform with respect to each other.

Change-Id: I4edabc2c8ccb533898540ceda1fd6aacc2e2e56a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2020-04-20 15:17:29 +08:00
Lingutla Chandrasekhar
1cb5e2e828 sched: fair: Fix !SCHED_WALT compilation issue
If CONFIG_SCHED_WALT disabled, compilation fails, fix it.

Change-Id: I1c254417fa75a35aa1b6dcf4ccc206a02054f810
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2020-04-20 11:54:43 +05:30
qctecmdr
eef2a94ca7 Merge "cpufreq: qcom-cpufreq-hw: Add support for Debug for CPUFREQ HW" 2020-04-19 21:00:54 -07:00
qctecmdr
a19df26a7e Merge "msm_geni_serial: Correct the DMA RX interrupt logic" 2020-04-19 07:58:05 -07:00
qctecmdr
d795abd389 Merge "msm: kgsl: Use milliseconds in Snapshot OS data" 2020-04-19 07:58:04 -07:00
Pavankumar Kondeti
c49e3c8bf7 sched: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I3a220142f08a9664845b4d0e9918ec7c48bb11f7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-04-19 15:52:07 +05:30
qctecmdr
1f3ade280c Merge "power: qpnp-smblite: Add support for OTG IRQ" 2020-04-19 00:11:46 -07:00
qctecmdr
9674f66855 Merge "rpmsg: glink: Send READ_NOTIFY command in FIFO full case" 2020-04-19 00:11:45 -07:00
qctecmdr
fd39a7c563 Merge "msm: ipa3: Update holb config on WLAN & USB CONS ep" 2020-04-19 00:11:45 -07:00
Anirudh Ghayal
30ab6ed2a5 power: qpnp-qg: Update a specific SOC scaling condition
Allow the SOC to scale to a higher value in a specific
condition (msoc = 0), even if USB is present and we are
discharging. This typically occurs during boot-up with
charger connected at 0% SOC.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6107
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-19 10:34:41 +05:30
Anirudh Ghayal
6fc905b6c1 power: smblite/smb5-lib.c: Report the correct battery status at SOC=0
Userspace initiates a shutdown if battery_status != charging
and SOC = 0, this is to prevent a deep-discharge of the battery
when the discharge current is higher than the charge current
at SOC = 0. Report this status from the kernel driver.

Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6101
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-19 10:16:58 +05:30
qctecmdr
aea17a6a74 Merge "tracing: Remove unnecessary DEBUG_FS dependency" 2020-04-18 11:25:49 -07:00
qctecmdr
0e02e14b74 Merge "ufs: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-18 11:25:49 -07:00
qctecmdr
6c3cf4446d Merge "HID: qvr: axis orientation correction" 2020-04-18 11:25:48 -07:00
qctecmdr
7329a8a014 Merge "sched/core_ctl: Improve the scheduler" 2020-04-18 11:25:48 -07:00
qctecmdr
0a9e26c880 Merge "crypto: msm: change clock operation in qcedev driver" 2020-04-18 11:25:48 -07:00
qctecmdr
a8f4a2f1be Merge "i2c: i2c-qcom-geni: Correct the IEOB/IEOT sequence for I2C GSI tres" 2020-04-18 11:25:47 -07:00
Mahesh Sharma
384aea722a Bluetooth: Disable ASD for HSP
Keep ASD commonly enabled by default and disable it
on Hastings prime.

Change-Id: I42c2c37ea3c1910da2b3bdd417efb261cad53974
Signed-off-by: Mahesh Sharma <smahesh@codeaurora.org>
2020-04-18 08:03:53 -07:00
Satish Kodishala
ff9692b3d9 Bluetooth:Change EA for HST and HSP before getting LA
-Change EA for HSP before getting LA based
 on the soc type queried from BT power driver.

-By default, HSP's Slimbus EA is added in DTSI file.
 Update HST's Slimbus slave EA address based on HST chip ver.

Change-Id: I49e06e2e43025797e6110bf55304c7b3f0616c8e
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2020-04-18 08:02:40 -07:00
qctecmdr
2e1d73ca3c Merge "icnss: Avoid wlan driver unload if driver is not probed" 2020-04-18 05:01:13 -07:00
qctecmdr
a0c52ad452 Merge "msm: npu: Send IPCC irq directly while apps crashes" 2020-04-18 05:01:12 -07:00
qctecmdr
c395447a1d Merge "defconfig: add Maxim Fan controller" 2020-04-18 05:01:12 -07:00
qctecmdr
dddc424e79 Merge "scsi: ufs: Configure Vccq/Vccq2 with supplied load in LPM" 2020-04-18 05:01:11 -07:00
qctecmdr
9367139254 Merge "gsi: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-18 05:01:11 -07:00
qctecmdr
8280d7bde8 Merge "icnss: Add code to send hang event data in pd down" 2020-04-17 20:34:48 -07:00
qctecmdr
4b9cb0c192 Merge "clk: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-17 20:34:48 -07:00
qctecmdr
05a4f01d19 Merge "mhi: fix compilation when CONFIG_DEBUG_FS is disabled" 2020-04-17 20:34:48 -07:00
qctecmdr
80d20206e9 Merge "uapi: sound: add new meta key to set TTP offset" 2020-04-17 20:34:47 -07:00
qctecmdr
21109cea8f Merge "msm: sps: Fix the SPS_DBG macro definitions" 2020-04-17 20:34:47 -07:00
qctecmdr
01066ca4a5 Merge "tcp: Reset tcp connections in SYN-SENT state" 2020-04-17 20:34:47 -07:00
qctecmdr
fcf4814487 Merge "cnss2: Fix a issue for WLFW QMI files" 2020-04-17 20:34:47 -07:00
qctecmdr
df227ad90b Merge "usb: gadget: f_qdss: Add ipc logging for qdss driver" 2020-04-17 20:34:46 -07:00
qctecmdr
98f2923560 Merge "msm: kgsl: Disable stall on fault for GMU context bank" 2020-04-17 20:34:46 -07:00
qctecmdr
c8a6a7968c Merge "msm: kgsl: Add CP_APRIV_CNTL and CP_SMMU_STREAM_ID regs to snapshot" 2020-04-17 20:34:46 -07:00
Hemant Kumar
4fce748184 mhi: core: Make sure reg_write_q stores visible to other cores
mhi_reg_write_enqueue API stores reg, val and valid which can go
out of order. In case valid is set to true before val is set,
offload worker running on another core ends up writing stale value
to register. Another possibility is valid being set to true but not
visible to other cores. When offload worker gets a chance to run,
this results into skipping register write. Fix these issues by
adding smp_wmb() between stores of val and valid and another after
valid is set.

Change-Id: I3b930e7fad4252d34386de525491f94997b34f36
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-04-17 17:28:05 -07:00
Anirudh Ghayal
2d6766fb6c power: qpnp-smblite: Add support for OTG IRQ
PM2250 does not have a USB_ID detection logic. Add support
for handling the ID detection over a dedicated GPIO. This
is enabled only for uUSB interface.

Change-Id: I938b135443d66b9451cead35d508bad9a4f685f4
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-18 00:23:42 +05:30
Aditya Raut
911e763696 usb: gadget: increase write buffer size
Increasing the write buffer size from 2k to 50k.

Change-Id: Ifac500581404467b08b06de0d9b8cd90c4afd0e5
Signed-off-by: Aditya Raut <aditraut@codeaurora.org>
2020-04-17 10:55:22 -07:00
Sandeep Singh
80bc7a10c6 icnss: Avoid wlan driver unload if driver is not probed
Avoid wlan host driver unload if wlan host driver is not
probed.

Change-Id: I60b5486654b42e0b4431c8fc96d956aa749c44b3
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
2020-04-17 21:18:07 +05:30
Taniya Das
933499ab22 defconfig: bengal: Add support for debug of CPUFREQ HW
This would enable the debugfs for cpufreq hardware registers to be
dumped.

Change-Id: Ifa265299ddc5bea03db6238f11ab1a1fb6d68400
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-17 17:17:28 +05:30
Taniya Das
aadcc4e488 cpufreq: qcom-cpufreq-hw: Add support for Debug for CPUFREQ HW
Add the new compatible to allow the debugfs to be created and list the
required cpufreq hardware registers.

Change-Id: I87073bb4a9c334d8c8077ddfd807c08325ee3394
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2020-04-17 17:14:58 +05:30
Arun Kumar Neelakantam
dd148d022d rpmsg: glink: Send READ_NOTIFY command in FIFO full case
The current design sleeps unconditionally in TX FIFO full case and
wakeup only after sleep timer expires which adds random delays in
clients TX path.

Avoid sleep and use READ_NOTIFY command so that writer can be woken up
when remote notifies about read completion by sending IRQ.

Change-Id: I1b44df0ec437d4e76aff181470fcf4cafbdd098a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2020-04-17 04:01:42 -07:00
Prateek Sood
3eed8718b8 ufs: fix compilation when CONFIG_DEBUG_FS is disabled
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.

Change-Id: Ic105bbb1db77c70f1b30d66eff87e0c515708756
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-04-17 03:38:41 -07:00
Kusanagi Kouichi
f4516d5e3d tracing: Remove unnecessary DEBUG_FS dependency
Tracing replaced debugfs with tracefs.

Change-Id: Ib48c47f19654569d76aa1c9b9389e3573870953c
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20191120104350753.EWCT.12796.ppp.dion.ne.jp@dmta0009.auone-net.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 0e4a459f56c32d3e52ae69a4b447db2f48a65f44
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[prsood@codeaurora.org: keep CONFIG_DEBUG_FS enabled in perf for bengal(32 bit), kona, kona-iot]
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-04-17 02:05:47 -07:00
Pavankumar Kondeti
b30b268d7a sched/core_ctl: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I94c0491dc737ae9c52bf7c6f00b130d99d1b8812
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-04-17 14:09:16 +05:30
Pratham Pratap
127473bd50 usb: gsi: Add NULL pointer check
Static code analysis tool is detecting a possible NULL pointer
dereference for gsi->d_port.in_ep in the error handling path.
This change adds a NULL pointer check to avoid this issue.

Change-Id: I4adf03e933cece0698cd3761c8758f4bd98925f4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-04-17 13:03:01 +05:30
Harshdeep Dhatt
6d8a06d9a7 msm: kgsl: Restart a6xx gpu only once
Currently, as part of fault recovery, we try to
restart the a6xx gpu five times. This loop is
for legacy reasons for a hardware condition that
existed on a4xx. That doesn’t exist for a6xx so
remove the loop.

Change-Id: Ib6f7437bab2b424c4f632efca459ff8c3fd064e4
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-04-17 12:58:36 +05:30
Prateek Sood
36a01017c9 gsi: fix compilation when CONFIG_DEBUG_FS is disabled
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.

Change-Id: If6bdcfa99da84cad15495b757b7d2f5474147a29
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-04-17 00:17:31 -07:00
Prateek Sood
e093150493 wil6210: fix compilation when CONFIG_DEBUG_FS is disabled
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.

Change-Id: I91adfc7cfd611db3a4dfb60cc9cff85113b4885d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-04-16 23:37:17 -07:00
Surendar Karka
a05456aa3d uapi: sound: add new meta key to set TTP offset
Add meta key to set TTP offset in capture path.

Change-Id: Ieebab5eefb339a3b067a5cd95934828c4c9c150e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-04-16 22:41:16 -07:00