Commit graph

810451 commits

Author SHA1 Message Date
qctecmdr
8dd1171edc Merge "usb: gsi: Add NULL pointer check" 2020-04-22 12:01:43 -07:00
qctecmdr
be16e2a275 Merge "msm: kgsl: Restart a6xx gpu only once" 2020-04-22 12:01:42 -07:00
qctecmdr
b42fd7b093 Merge "msm: kgsl: Take GMU snapshot on GMU failures" 2020-04-22 12:01:42 -07:00
qctecmdr
334e5c25fd Merge "msm: kgsl: Correctly handle CP_INIT failure" 2020-04-22 12:01:42 -07:00
qctecmdr
f9ea5f717a Merge "msm: kgsl: Correctly handle gmu fault interrupts" 2020-04-22 12:01:41 -07:00
qctecmdr
1532616d36 Merge "power: smb5-lib: Report charger detection status" 2020-04-22 12:01:41 -07:00
qctecmdr
fd0b6a6b50 Merge "smcinvoke : Add locking to shared variables" 2020-04-22 12:01:41 -07:00
qctecmdr
945dfea5ad Merge "msm: adsprpc: store process specific info in GETINFO ioctl call" 2020-04-22 12:01:40 -07:00
Anmolpreet Kaur
6381aa9a60 smcinvoke : Add locking to shared variables
This change adds locking to shared variables to
prevent any data race conditions. cb_reqs_inflight
and server_info should both be protected under locks.

Change-Id: I3475ab3208c2fc91fce2865d64626efdcd404e70
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2020-04-22 17:45:32 +05:30
Anirudh Ghayal
a77887a300 power: smb5-lib: Report charger detection status
Use the CHARGER_STATUS to report the charger-detection status
and INPUT_VOLTAGE_SETTLED to report input voltage, reading them
from SDAM.

While at it, clear the SMB_EN for CP in the shutdown path
to prevent SMB from being enabled in the next boot.

Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-22 16:12:18 +05:30
Edgar Flores
85b5909f71 msm: adsprpc: store process specific info in GETINFO ioctl call
Currently, process specific info like name and PID is being stored
in the internal data structures at the time of device open. But
since the DSP HAL service will now be opening the device node on
behalf of third-party applications, store process specific info in
GETINFO ioctl call which will be the first IOCTL call directly
from the client application.

Change-Id: If05d48123e4ec52c0271a7cb7f3ca790662d9abe
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
Signed-off-by: Himateja Reddy <hmreddy@codeaurora.org>
2020-04-22 12:03:47 +05:30
qctecmdr
e154c6caee Merge "cnss2: Update WLFW QMI messages to latest" 2020-04-21 21:43:57 -07:00
qctecmdr
feda1cb617 Merge "cnss2: update firmware name for QCA6490 rev.2.0" 2020-04-21 21:43:56 -07:00
Yue Ma
0852eba3a6 cnss2: Update WLFW QMI messages to latest
Update WLFW QMI messages to latest to avoid merge conflicts later.

Change-Id: I39460e385fe49c64ee5eca3a910a3e0d1a08b0b2
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-04-21 14:51:14 -07:00
qctecmdr
c71e92bf54 Merge "cnss2: Serialize driver load and unload" 2020-04-21 12:10:43 -07:00
qctecmdr
a3cb4c8d39 Merge "sched: fair: Fix !SCHED_WALT compilation issue" 2020-04-21 12:10:43 -07:00
qctecmdr
fe3a7b3064 Merge "sched/walt: Improve the scheduler" 2020-04-21 12:10:42 -07:00
qctecmdr
296d829202 Merge "serial: msm_geni_serial: Initialize 'ret' with zero" 2020-04-21 12:10:42 -07:00
qctecmdr
ce2130b377 Merge "coresight: tmc: Set flush cti for both etr and etb" 2020-04-21 12:10:42 -07:00
qctecmdr
736202670d Merge "serial: msm_geni_serial: Disable irq only for HSUART usecase" 2020-04-21 12:10:42 -07:00
qctecmdr
7b26d378ea Merge "dwc3-msm: Map IPA GSI channel doorbell register for different UDC core" 2020-04-21 12:10:41 -07:00
qctecmdr
ec41f18a6d Merge "icnss: serialize the driver remove in modem graceful shutdown" 2020-04-21 12:10:40 -07:00
qctecmdr
48eb5610bd Merge "sched: Improve the scheduler" 2020-04-21 12:10:40 -07:00
qctecmdr
c6608064b7 Merge "icnss: Release qmi handle on qmi server exit" 2020-04-21 12:10:40 -07:00
qctecmdr
779c2b7fab Merge "power: power-supply: Add POWER_SUPPLY_PROP_CHARGER_STATUS property" 2020-04-21 12:10:39 -07:00
Mohammed Siddiq
30c9755b87 icnss: Release qmi handle on qmi server exit
This changes release qmi handle and registers again
to qmi service for wlan server notifications.

Change-Id: I0a20622ec308778c9be2d66ff829f4b6ee841e92
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-21 13:41:06 +05:30
Mohammed Siddiq
d7a81cf92e icnss: serialize the driver remove in modem graceful shutdown
Add code to post unregister driver event during modem
graceful shutdown instead of directly calling driver
remove.

Change-Id: Ie8b7699bf4e9e346279feede68022cda20f93a69
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-21 00:23:31 -07:00
Harshdeep Dhatt
58a5eda667 msm: kgsl: Correctly handle CP_INIT failure
A stuck CP means that we will not be able to enter
slumber because gmu to cp interaction is impacted.
Therefore, take a gmu snapshot which also sets gmu
fault. The gmu fault will indicate the clean up
code to force a gmu_suspend() so as to set the
stage for the next submission to start afresh.

Change-Id: Ia90e6c447e9c1c87e04cf9ca3ed87eed5c17b07c
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-04-20 22:34:07 -07:00
Chandana Kishori Chiluveru
104f066d42 serial: msm_geni_serial: Disable irq only for HSUART usecase
This change restricts disabling of core interrupt only for HSUART case
from probe function. Console usecase requires irq to be in enable state
to handle RX data.

Change-Id: I244c68e8e327729734bda42aa1b90a914375e147
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-04-20 22:29:00 -07:00
Pavankumar Kondeti
3656bb5ec6 sched/walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I80606a09c3d09c65b7bcdf3940bee5e155d6318c
Co-developed-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-04-21 09:31:05 +05:30
qctecmdr
d00ddd4541 Merge "ion: Improve ION allocation paths" 2020-04-20 20:23:26 -07:00
qctecmdr
92d70b78ee Merge "HID: qvr: correct typo on mag copy segment" 2020-04-20 20:23:25 -07:00
qctecmdr
f2c9cd038c Merge "Bluetooth:Change EA for HST and HSP before getting LA" 2020-04-20 20:23:25 -07:00
qctecmdr
a291c91c48 Merge "Bluetooth: Disable ASD for HSP" 2020-04-20 20:23:25 -07:00
qctecmdr
3d9ddc9266 Merge "usb: gadget: increase write buffer size" 2020-04-20 20:23:25 -07:00
qctecmdr
0aa66d06f9 Merge "defconfig: bengal: Add support for debug of CPUFREQ HW" 2020-04-20 12:40:05 -07:00
qctecmdr
0369bd0408 Merge "mhi: core: Make sure reg_write_q stores visible to other cores" 2020-04-20 12:40:04 -07:00
qctecmdr
ff2dc21fe2 Merge "power: qpnp-qg: Update a specific SOC scaling condition" 2020-04-20 12:40:04 -07:00
qctecmdr
1b0824e056 Merge "msm_geni_serial: Use the common driver API for dma_alloc" 2020-04-20 12:40:04 -07:00
qctecmdr
28cfaa7d7c Merge "clk: qcom: gcc-scuba: Update sdcc1_apps_clk_src frequency table" 2020-04-20 12:40:03 -07:00
qctecmdr
f58a5e3d02 Merge "msm: kgsl: Poll GDSCR to ensure CX collapse" 2020-04-20 12:40:03 -07:00
qctecmdr
6750a84a9e Merge "smcinvoke: Remove workqueue has sleeper" 2020-04-20 12:40:03 -07:00
qctecmdr
b3686c06e6 Merge "cnss2: Add platform driver code to handle hang event data" 2020-04-20 12:40:03 -07:00
rbandi
7e4869e283 HID: qvr: correct typo on mag copy segment
correcting typo on mag copy segment.

Change-Id: Ia5548f46265580cd1f08d4756550ceb67e0c43de
Signed-off-by: rbandi <rohitbandi@codeaurora.org>
2020-04-20 12:00:29 -07:00
Anirudh Ghayal
40c8e5b7bf power: power-supply: Add POWER_SUPPLY_PROP_CHARGER_STATUS property
CHARGER_STATUS power-supply property reports the charger status.

Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd6
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2020-04-20 22:28:20 +05:30
Harshdeep Dhatt
b8e56acd01 msm: kgsl: Take GMU snapshot on GMU failures
GMU can fail to turn on GX or it can fail the
START HFI. So take snapshot and put GMU in NMI.
When this happens, kgsl will call gmu_stop()
and as GMU is already in fault aka NMI, reset
the GMU and GPU.

Change-Id: Iafc9b34063a7ff2415d3462dd289b52e425fbf3b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2020-04-20 21:21:56 +05:30
Mohammed Siddiq
8e26258c98 cnss2: Add platform driver code to handle hang event data
On SSR, FW writes hang data in the carved out region from
existing DDR memory, the platform driver copies the hang
event data from the fixed offset to local buffer and sends
the buffer and length to host driver via CNSS_HANG_EVENT
event.

Change-Id: I5928821770086547b4fe17c30a967ea059b39394
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-04-20 20:21:23 +05:30
Chandana Kishori Chiluveru
5f16283f64 serial: msm_geni_serial: Initialize 'ret' with zero
Initialize the local variable 'ret' with zero to
prevent un-initialized access. Also fix uninitialized
uport pointers access from msm_geni_serial_probe().

Change-Id: I25198737992f24f7b06e77e68f29ba3263fb0b30
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-04-20 20:00:03 +05:30
AnilKumar Chimata
31041c7eb4 smcinvoke: Remove workqueue has sleeper
If invoke calls are made before any accept threads then
its possible that workqueue has sleeper will return false.
So CB failures are seen during TA loading.

Change-Id: Id3b3a1907456c59bd8d51355dbdcba30a5c1a79a
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-04-20 07:06:50 -07:00
Naveen Yadav
7a987391b7 clk: qcom: gdsc-regulator: Add support to skip GDSC disable
Add check to skip gdsc disable when disable call comes before
the gdsc enable. In case if the gdsc is enabled by entity external
to HLOS then skip disable call.

Change-Id: I14ba8a24fb4403a1805cba23967bb22a82ac6e7f
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-04-20 04:53:32 -07:00