Commit graph

899,738 commits

Author SHA1 Message Date
qctecmdr
17cfb60189 Merge "defconfig: sdxnightjar: disable panic on oom on sdxnightjar" 2021-09-24 10:09:44 -07:00
qctecmdr
aa5852b099 Merge "mm: reap tasks that are killed by prekill" 2021-09-24 05:19:03 -07:00
qctecmdr
d54b4c3701 Merge "msm: kgsl: Fix out of bound write in adreno_profile_submit_time" 2021-09-24 05:19:02 -07:00
Vijayanand Jitta
81eea5271c defconfig: sdxnightjar: disable panic on oom on sdxnightjar
sdx targets rely on oom killer to kill the processes as there is
no lmk. so, disable panic_on_oom on sdxnightjar.

Change-Id: I67f055ec9e7412495360cdc5f1aa2350a4e3fab9
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2021-09-24 03:42:11 -07:00
Kamal Agrawal
ad5c168053 msm: kgsl: Fix out of bound write in adreno_profile_submit_time
Make sure there is enough room in the memory descriptor to store the
entire profiling buffer object.

Change-Id: I1e1c73097bb2bba9645b0a3c66fdbbc71d8ba8fa
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-09-24 12:37:19 +05:30
qctecmdr
58992ee3c2 Merge "rpmsg: glink: Change error logging to avoid throttling" 2021-09-23 21:23:24 -07:00
Kamal Agrawal
80e82cf4fb msm: kgsl: Avoid parsing IBs during atomic snapshot
During IB parse, vmalloc is called which can sleep and
should not be called from atomic context. Since IBs are not
dumped during atomic snapshot, there is no need to parse it.

Change-Id: I116d095958d99a8caeafb24dc45684ead01c961d
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
2021-09-23 07:16:11 -07:00
Srinivasarao P
fc6b78b376 mm: reap tasks that are killed by prekill
Reap tasks that are killed by PreKillActionT.

Change-Id: I367e803848121d071d8143952eaa9b7195ae04d6
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-09-22 19:02:42 +05:30
Sarannya S
39d2f49e03 rpmsg: glink: Change error logging to avoid throttling
Avoid printing error when ENODEV is returned from glink callback
and use dev_err_ratelimited so that throttling will not happen
due to excessive logging.

Change-Id: I9369046c2f907ecd38416c8927764c7a8b7c1ca4
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
2021-09-22 04:13:53 -07:00
qctecmdr
2a0102449d Merge "cnss2: Fix the pbl log sram start address for QCA6490" 2021-09-21 19:20:50 -07:00
qctecmdr
d4f4116092 Merge "cnss2: Dump PCIE SOC scratch registers along with mhi reg dumps" 2021-09-21 19:20:49 -07:00
qctecmdr
d2e56b0026 Merge "msm: mhi_dev: Process the PM_RST_DEAST event in the caller context" 2021-09-21 19:20:49 -07:00
qctecmdr
6f420e10da Merge "i2c: i2c-msm-geni: Do i2c transfer if GENI IOS in proper state" 2021-09-21 09:42:13 -07:00
qctecmdr
c8ece5af7b Merge "msm: kgsl: Add support for A643 GPU" 2021-09-21 09:42:12 -07:00
qctecmdr
fe45705041 Merge "soc: qcom: qmi_interface: allocate high priority work queue" 2021-09-21 04:50:57 -07:00
Mukesh Kumar Savaliya
5ad2f9de06 i2c: i2c-msm-geni: Do i2c transfer if GENI IOS in proper state
This change ensures the IOS lines are in protocol default state before
starting the data transfer. This ensures the slave is properly powered
up and also protocol lines are in IDLE High state.

We can prevent any further try to send data which can be failed due to
lines not in proper state.

Change-Id: Ibd9a6109133dd776f86a841f8bde305d08d2c187
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2021-09-21 03:43:30 -07:00
Veerabhadrarao Badiganti
04e87d8bc7 msm: mhi_dev: Process the PM_RST_DEAST event in the caller context
With the commit <37ea867103f2>("msm: ep-pcie: Use threaded irq for
PERST de-assertion handling"), PCIe driver notifies the PM_RST_DEAST
event in threadedIRQ context. Process this event in the same
context so that we can finish link initialization and training as
quickly as possible.

Change-Id: If920fd9b653d6ae82cea599effb2d912a9b08174
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2021-09-21 15:30:38 +05:30
Veerabhadrarao Badiganti
3143451298 msm: ep-pcie: Use threaded irq for PERST de-assertion handling
When the host de-asserts the PERST, ep-pcie driver needs to bring-up
the link as quickly as possible (within 150ms). Otherwise, the host
may fail to detect the link.

In our current design, we are doing the link initialization and
link training in a kworker thread context. In some scenarios
this context is incurring context switches and scheduling  delays
which is resulting in issues like the host fails to detect the link.

To fix this, perform the link initialization and training in the
highest possible priority (threaedIRQ). With this change, PCIe driver
notifies clients in threadedIRQ context and the clients (Eg MHI)
supposed to invoke the link training in the same context.

Change-Id: I04de4a1dfb3a145b947a2824c6961da70215944b
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2021-09-21 15:30:31 +05:30
qctecmdr
b8bf0ad232 Merge "soc: qcom: hab: Fix potential memory leak when receiving msg" 2021-09-20 03:39:36 -07:00
qctecmdr
86bc9bf101 Merge "msm: mhi_dev: Ensure the flush list is empty for a stopped channel" 2021-09-19 23:38:34 -07:00
qctecmdr
9bf32d7027 Merge "Revert "icnss2: Enable PHY processor SSR along with WPSS SSR"" 2021-09-19 07:09:27 -07:00
qctecmdr
aa07adacf1 Merge "input: qcom-hv-haptics: Update "get_fifo_length_us" with T_LRA_X" 2021-09-17 16:15:25 -07:00
Naman Padhiar
c06d158bdb Revert "icnss2: Enable PHY processor SSR along with WPSS SSR"
This reverts commit 047f485e92.

Change-Id: I2125637403cd445066a849a8913d02e4897b2a8f
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-09-17 12:58:43 +05:30
lixiang
f510918743 soc: qcom: hab: Fix potential memory leak when receiving msg
Fix potential memory leak situation when receiving a message of type
HAB_PAYLOAD_TYPE_EXPORT_ACK. Add kfree() to free ack_recvd.

Change-Id: Iaa5cb10af694b20647f2f04f3c030bfa2ba59a3d
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-09-16 20:09:28 -07:00
Kiran Gunda
3cb186f032 input: qcom-hv-haptics: Update "get_fifo_length_us" with T_LRA_X
Update "get_fifo_length_us" function to support the T_LRA_X_2/4/8
periods. So that the FIFO mode can work for all T_LRA periods.

Change-Id: I5d6b2c95eff66cddcec9388082c4d540493f2c86
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2021-09-16 05:53:27 -07:00
qctecmdr
adc03f0e9a Merge "usb: dwc3: Don't perform pm rt sync operations in atomic context" 2021-09-16 04:04:07 -07:00
qctecmdr
15d558c6d7 Merge "USB: u_ether: Prevent unclocked access when running rndis interface down" 2021-09-15 16:23:47 -07:00
qctecmdr
c7c6e9717f Merge "arm64: defconfig: lahaina_QGKI: Enable CONFIG_PRINTK_CALLER" 2021-09-15 16:23:46 -07:00
Rohith Kollalsi
b269576798 usb: dwc3: Don't perform pm rt sync operations in atomic context
For mass storage function driver ep_disable will be called in worker
thread context. Making sure controller is active and then calling
ep_disable and then putting controller back to lpm is very difficult
to achieve in mass storage driver. The reason is that fsg_disable
raises an exception which actaully waits for the completion
callback to come from gadget driver and if for some reason (like
command timeout error) if it doesn't, then do_set_iterface will
not be called which will do put_sync. This can prevent controller
from going to lpm.

To solve above problem, commit ad8d260c33 ("usb: dwc3: gadget: Check
controller status with endpoint enable/disable") moved pm_runtime_sync
operations from mass storage driver to gadget driver. But there is a
chance that pm_runtime get_sync and put sync operations in gadget
driver can be called in atomic context (taking spin_lock in function
driver and then calling) and lead to crash. Adding in_lpm check and
performing these operations only if controller is in lpm will ensure
that these operations will be done only for mass storage driver and
not be done in atomic context. For other function drivers where
ep_disable will be called in atomic context, there is no chance that
ep_disable will be called when controller is in lpm as bh_work or
resume work will be called and will ensure controller to be out of
LPM before ep_disable is called.

Change-Id: I37635fd75e44a67deadbd4796b757d85d604aed4
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-09-15 09:25:14 -07:00
Rohith Kollalsi
da0ce57aed USB: u_ether: Prevent unclocked access when running rndis interface down
When in rndis composition, if device is disabled in device manager,
usb enters low power mode. Then if rndis interface is put down,
ep_disable is called leading to crash due to unclocked access as
clocks are turned off when usb enters lpm. Fix this by waking up
the controller, then performing ep_disable operation and then
putting controller back to lpm.

Change-Id: I45d29ef2e2678a3d6383d3fdd5550c8b8e156875
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-09-15 09:22:37 -07:00
Manu Gautam
7b0acdb1b0 USB: f_fs: Disable USB LPM on bus_suspend with ADB
ADB function is mainly used for debugging, hence it is
not expected to allow USB LPM followed by system suspend
in device bus suspend. Driver also doesn't handle
usb_ep_dequeue failure in LPM when adbd is interrupted
by signal as buffer is left queued to the hardware after
usb_ep_dequeue failure and can cause memory corruption.

In addition to above comments, when controller is in lpm
there is a chance that ffs_ioctl can issue clear halt as
a part of which send_gadget_ep_cmd will be called where
registers are accessed with clock's turned off leading
to crash due to unclocked access. Hence do not allow usb
lpm with adb.

Change-Id: Ib89c80318dcdd0dbb35d122a2ab77fb61f83518e
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
2021-09-15 09:22:02 -07:00
Veerabhadrarao Badiganti
4b3ca62138 msm: mhi_dev: Ensure the flush list is empty for a stopped channel
If a channel gets stopped, while there are some outstanding requests/
transfers with IPA, then we simply ignore the completion from IPA.
But we must have already added the transfer-completion-event to the
flush list before submitting the transfer to IPA.

There is a possibility that we flush these stale events along with new
flush events (for new requests) when the channel gets re-started.
This un-intentional completion event can lead to out-of-sequence
events at the host.

So while stopping a channel, ensure all elements in the flush list
of that channel are discarded and the flush list is empty.

Change-Id: I04445b1f9f4d2d4fce0b8a96277517de14481ead
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2021-09-15 06:00:14 -07:00
Mohammed Siddiq
404f28d635 cnss2: Dump PCIE SOC scratch registers along with mhi reg dumps
Add code to dump PCIE SOC scratch registers along with mhi reg
dumps to enhance debug info.

Change-Id: I65fc8324a8cccac6f5ffe73f6fc9513a561ee32e
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-09-15 17:54:10 +05:30
Vivek Pernamitta
130b3b8d8f msm: pci: Release spinlock before notifying client
Release spinlock before notifying client driver and acquire
spinlock once done because once host notifies client driver with
an event, client can schedule an recovery in same context before
returning and expects an new event which could cause an race
condition if spinlock is acquired.
Also use list_for_each_entry_safe() while travesing the list of
registered clients for notification.

Change-Id: I6ae55032acdb1a5b14f473eadacb7a009a8df753
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-09-15 16:06:21 +05:30
satyanarayan kamasali
26248c0b87 arm64: defconfig: lahaina_QGKI: Enable CONFIG_PRINTK_CALLER
Enablig CONFIG_PRINTK_CALLER, causes printk to add a caller "thread id"
or a caller "processor id" to the  message.

Change-Id: Ifd0a2a151df71156d57344d819ce3d5583c60e53
Signed-off-by: satyanarayan kamasali <kamasali@codeaurora.org>
2021-09-15 11:29:12 +05:30
Prakruthi Deepak Heragu
8bbe418836 qcom_wdt_core: Validate the input parameters of qcom_wdt_register
Ensure that the input parameters of qcom_wdt_register is checked before
proceeding as this could cause NULL pointer dereferences.

Change-Id: I29e7eee946fb9fe0ba7fe75b96acedff7deab4bd
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2021-09-14 01:22:30 -07:00
qctecmdr
2c5e9303bf Merge "Sched: Improve the scheduler" 2021-09-13 18:03:27 -07:00
qctecmdr
e4e6533cb4 Merge "haven: hh_rm_iface: Avoid integer overflow for req_payload_size calculation" 2021-09-13 18:03:26 -07:00
Prakruthi Deepak Heragu
b59a9f3479 haven: hh_rm_iface: Avoid integer overflow for req_payload_size calculation
There is a possibility for the calculation to overflow when size is large
enough to overflow when added to the size of payload. Ensure that this
overflow is caught early.

Change-Id: I876fbaa704ba51dc4a9e4eb4d3f7f0eaa749e06d
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2021-09-13 09:57:03 -07:00
qctecmdr
07005fd0c6 Merge "icnss2: Improve IPC logging" 2021-09-13 08:48:11 -07:00
Lingutla Chandrasekhar
3282382a54 Sched: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: I78a13f15f7b95d7b6583222fbc68b828e651b802
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2021-09-13 05:53:43 -07:00
Mohammed Siddiq
ea4e19c280 cnss2: Send host reset req when mhi_force_rddm_mode fails
Add code to send host reset request when mhi_force_rddm_mode fails.

Change-Id: I47c94e009c9c21415bcf859de2fab887f1414b71
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-09-13 02:40:12 -07:00
Naman Padhiar
d867e28bf4 icnss2: Improve IPC logging
Changed “icnss_long1” to “icnss_smp2p” as it contain
only SMP2P logs. Created “icnss_soc_wake” IPC to separate
SOC_WAKE logs from “icnss”.

Change-Id: I073868e4954903fbb780bec44d8172bbf7e4393c
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-09-13 11:27:28 +05:30
qctecmdr
b4f4115eae Merge "msm: mhi: Provide an API to perform host reset request" 2021-09-12 21:56:49 -07:00
qctecmdr
9ab39a992d Merge "cnss2: return -EBUSY in cnss_pci_link_down if link already down" 2021-09-12 15:41:27 -07:00
qctecmdr
cd9b565ed5 Merge "haven: hh_rm_core: Correct copyright year marking" 2021-09-11 05:15:35 -07:00
qctecmdr
0299e8adad Merge "defconfig: Enable USB link layer tests on sdxlemur" 2021-09-11 05:15:35 -07:00
qctecmdr
06e0a08cf9 Merge "msm: ipa: Add change to support 32 clients for Mac based filtering" 2021-09-11 05:15:34 -07:00
qctecmdr
16c10b79ca Merge "usb: xhci: Avoid NULL pointer access of sec event ring" 2021-09-11 05:15:34 -07:00
qctecmdr
869d6b0ba8 Merge "uapi: Add UAPI headers for slatecom_interface driver" 2021-09-11 05:15:34 -07:00