Commit graph

888,359 commits

Author SHA1 Message Date
Neeraja P
45f301e539 msm: kgsl: Fix possible use-after-free while adding context to active list
Consider a scenario where a context is valid when the check is made in
adreno_dispatcher_queue_cmds(), but by the time we reach _track_context(),
context has been detached. We would try to delete the entry from the
active context list as part of detaching the context though the entry is
not added yet. Now in _track_context() the context is actually added. When
the context is finally destroyed, we would be left with invalid entry in
the list. Next time when a context is added, an attempt would be made to
use a freed entry. Fix this by moving the entry deletion part under
drawctxt lock.

Change-Id: Idab7cbf10987598b3e6395b2d50c20d1990d1f02
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: Neeraja P <neerp@codeaurora.org>
2020-07-30 13:39:08 +05:30
qctecmdr
4707ea1d4a Merge "dwc3: trace: Remove unused field with dwc3 request tracing" 2020-07-29 21:16:08 -07:00
qctecmdr
93c278efce Merge "msm: cvp: Dump testbus for CVP debugging" 2020-07-29 21:16:07 -07:00
qctecmdr
30843159b0 Merge "msm: cvp: Relocate CVP HW PC control" 2020-07-29 21:16:07 -07:00
qctecmdr
bd56ef6d33 Merge "msm: kgsl: Enable UCHE dual command queue" 2020-07-29 21:16:07 -07:00
qctecmdr
9e3b2c7077 Merge "haven: ctrl: add nohypuart commandline parameter" 2020-07-29 21:16:06 -07:00
qctecmdr
7fd88fc597 Merge "sched/walt: Improve the scheduler" 2020-07-29 21:16:06 -07:00
qctecmdr
c50bb76a3e Merge "usb: xhci: Replace HCD_RH_RUNNING() check in xhci_stop_endpoint" 2020-07-29 21:16:06 -07:00
qctecmdr
e6f3b6b364 Merge "defconfig: Enable TSENS and cooling device drivers for holi" 2020-07-29 14:20:19 -07:00
qctecmdr
19e02a5480 Merge "usb: gadget: audio: Free requests only after callback" 2020-07-29 14:20:19 -07:00
qctecmdr
d8da30ecb7 Merge "msm: ADSPRPC: Map and FD non-NULL check before dereferencing" 2020-07-29 14:20:18 -07:00
qctecmdr
ccaaf015e0 Merge "msm: kgsl: Enable Preemption on A660 target" 2020-07-29 14:20:18 -07:00
qctecmdr
901b25eef8 Merge "ABI: Sybmol list update" 2020-07-29 06:36:28 -07:00
qctecmdr
53e29d51ae Merge "regulator: rpm-smd: Add support for BOB on PMIC5" 2020-07-29 06:36:28 -07:00
qctecmdr
e8ce38542c Merge "regulator: rpm-smd: Add support for min dropout voltage" 2020-07-29 06:36:27 -07:00
qctecmdr
f56561c451 Merge "regmap: irq: Add support to clear ack registers" 2020-07-29 06:36:27 -07:00
qctecmdr
248e2ba0e3 Merge "usb: f_uac2: Add SS/SSP support to UAC2 function" 2020-07-29 06:36:26 -07:00
qctecmdr
0a652bb3d2 Merge "scsi: ufs: Read device tree to find UFS's Vccq2 voltage level" 2020-07-29 06:36:25 -07:00
qctecmdr
e18fd15a70 Merge "Revert "pinctrl: set gpio 4 and 5 for qup14"" 2020-07-29 06:36:25 -07:00
qctecmdr
fb734243e6 Merge "coresight: tpdm: add integration_test sysfs node" 2020-07-29 04:04:36 -07:00
qctecmdr
ee50062c9f Merge "usb: dwc3: Disable parkmode for Gen1 controllers" 2020-07-29 04:04:35 -07:00
qctecmdr
f3fcedc943 Merge "pinctrl: qcom: function group for qup13_f* instance for holi" 2020-07-29 04:04:35 -07:00
qctecmdr
77f98728c4 Merge "RTC6226: append the valid channel in scan list" 2020-07-29 04:04:35 -07:00
qctecmdr
6f0810def4 Merge "soc: qcom: Add support to enable eud if enabled in xbl" 2020-07-29 04:04:34 -07:00
qctecmdr
7f7057d273 Merge "USB: configfs: Don't send DISCONNECT uevent during unbind" 2020-07-29 04:04:33 -07:00
Manaf Meethalavalappu Pallikunhi
d6e8c8509d defconfig: Enable TSENS and cooling device drivers for holi
Enable TSENS and different cooling device drivers for holi
to monitor junction temperature and handle different mitigations.

Change-Id: I04528379b33532cfc237fc977617aad8c8c022d2
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-07-29 14:04:08 +05:30
qctecmdr
049aae489d Merge "cnss2: Get Bus bandwidth voting table from DT" 2020-07-29 01:14:03 -07:00
qctecmdr
2f7c2d7ed4 Merge "scsi: ufs-qcom: Do not return uninitialized err value" 2020-07-29 01:14:01 -07:00
qctecmdr
dcf553c636 Merge "drm/bridge: LT9611UXC: add LT9611UXC driver for HDK8350" 2020-07-29 01:14:00 -07:00
qctecmdr
ee576fa636 Merge "input: qcom-hv-haptics: update LRA period calculations" 2020-07-29 01:14:00 -07:00
Jack Pham
29974620bd usb: gadget: audio: Free requests only after callback
As per the kernel doc for usb_ep_dequeue(), it states that "this
routine is asynchronous, that is, it may return before the completion
routine runs". And indeed the dwc3 gadget driver recently updated its
behavior to place dequeued requests on to a cancelled list to be
given back later after the endpoint is stopped.

The free_ep() was incorrectly assuming that a request was ready to
be freed after calling dequeue which results in a use-after-free
in dwc3 when it traverses its cancelled list. Fix this by moving
the usb_ep_free_request() call to the callback itself in case the
ep is disabled.

Change-Id: I51751e002ad86b226d9f0d872c66a77e94e8cab7
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-07-28 23:47:03 -07:00
Jack Pham
da731b304a arm64: defconfig: Enable USB_CONFIGFS_F_UAC2 for Lahaina
Enable F_UAC2 USB ConfigFS driver as a GKI module on Lahaina.

Change-Id: I72ba962aa13832091ad78db9404bddf4c29df066
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-07-28 23:47:02 -07:00
Jack Pham
9b107b59ac usb: gadget: Allow USB_CONFIGFS_F_UAC2 to be built as a module
Simply changing bool to tristate should do the trick.

Change-Id: I12916801778c4cc2150f9f2c820095a09b104851
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-07-28 23:47:02 -07:00
Sriharsha Allenki
702dd937d2 usb: f_uac2: Add SS/SSP support to UAC2 function
Add SS/SSP descriptors for the UAC2 function.

Also fix the audio quality issues by increasing the
number of USB_XFERS.

Change-Id: Ie94aee43dd52b0b711778420e485af72730dd28b
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-07-28 23:47:01 -07:00
Hemant Kumar
8c244c5112 usb: gadget: uac2: Change synchronization type of data ep to SYNC
As per the UAC 2.0 specification, ASYNC data endpoint is required
to have feedback data endpoint. Since driver descriptor does not
include feedback data endpoint, change endpoint bmAttributes for
data endpoint to represent as SYNC instead of ASYNC. This allows
device to enumerate on windows 10 PC.

Change-Id: Ied3c2c94a8cd1cc130bb77484641f0d8d5ed642d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-07-28 23:47:01 -07:00
Jack Pham
e336888c91 usb: xhci: Replace HCD_RH_RUNNING() check in xhci_stop_endpoint
This function can be called to stop an endpoint handled by the
secondary execution environment just after the HCD is removed
(e.g. Type-C cable removal), after which the QMI sound driver
proceeds to unmap transfer ring buffers from DMA. However,
although the RH state indicates it is not running, the controller
may not yet be fully halted and may continue to access now
unmapped memory. Replace the HCD_RH_RUNNING(hcd) check with
xhci_check_args() which includes a check for XHCI_STATE_HALTED,
so that a Stop command can still be issued.

Change-Id: Ie17882cdcfeea13fbdf7b1cd1353296d5966c798
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-07-28 23:01:32 -07:00
Siddharth Gupta
7c8832bdb0 ABI: Sybmol list update
Update the symbol list with APIs required by audio drivers.

Change-Id: Iee9bc353834e3384c19406dc0adfa37f75390a39
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-07-28 23:01:14 -07:00
Jishnu Prakash
62a1665784 regulator: rpm-smd: Add support for BOB on PMIC5
Add support to distinguish PMIC4 BOB from PMIC5 BOB using
"qcom,regulator-hw-type" device tree property as the MODE_CTL
settings of PMIC5 BOBs are different from PMIC4 BOBs.

Change-Id: I5162e514487b255c33eb66e75a44a40fe92d50a6
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2020-07-29 10:06:13 +05:30
himta ram
6c61c1b2c7 RTC6226: append the valid channel in scan list
During scan operation some channel are getting scanned
with rssi value less then the rssi threshold value.
Append the channel in scan list if it found with rssi
greater or equal to rssi threshold value.
Tune back to the original tuned frequency when scan
is cancelled in between.

CRs-Fixed: 2734678
Change-Id: Ib431ce70e9c32b2ddf3f991b41abc0c23c74e820
Signed-off-by: himta ram <hram@codeaurora.org>
2020-07-28 20:02:09 -07:00
Chris Lew
b99d6355b2 net: qrtr: ns: Increase socket recvbuf
Increase the socket recvbuf for the ns so control packets are not
dropped in heavy traffic situations like ssr. This change will not
actually set the recvbuf to INT_MAX but to the system defined rmem_max
for sockets.

Change-Id: If56eac164a7ea3f0857170d3966c3c174a7460ae
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-07-28 19:23:08 -07:00
Manikandan Mohan
f818cb9034 cnss2: Get Bus bandwidth voting table from DT
Update cnss platform driver to use bus bandwidth voting
data as configured in device tree file.

Change-Id: I327c41613a6ca1d53550cf6d266db90b46f7bc77
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-07-28 17:46:35 -07:00
Ajay Agarwal
1b2e48eeaf usb: dwc3: Disable parkmode for Gen1 controllers
Disable parkmode for Gen1 controllers to fix the data stall issue
in host mode.

Change-Id: I28694a533543b14f752e195b722aafcb83cc4f1d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-07-29 04:42:50 +05:30
George Shen
b61ace1ebe msm: cvp: Dump testbus for CVP debugging
Testbus registers provide valuable information for
debugging potential CVP hardware issue.

Change-Id: I228c18cf0ec1b9cf4ffbe4f07c3fa9a388231680
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-07-28 14:42:31 -07:00
Vijayavardhan Vennapusa
f7f3dfda59 USB: configfs: Don't send DISCONNECT uevent during unbind
while testing composition switch from UI, composite driver sending
disconnect event to userspace from function unbind path or from the
bus reset. As per the none composition rules in init.msm.usb.configfs.rc
unbind should happen first and sending the disconnect event to userspace.
Userspace code will starts 1 sec timer for enumeration.

In some cases where adbd is enabled, adbd taking more than 1sec to restart
and causing delay in next composition enumeration. Another case is in RNDIS
composition switch. Where rndis function is taking more time in unbind path
and causing delay for next composition switch.

This results in userpsace timeout (1 second) causing actual composition
enumeration failure and falls back to default composition.

Workaround the issue by not sending disconnect event to userspace on
composition switch from unbind path. Instead send the disconnect event
from USB bus reset so that userspace enable timer starts from bus reset.

Change-Id: I2d1fcaa0704e369204fbba4eceb8ba9b1c525b41
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-07-28 14:34:40 -07:00
Edgar Flores
7dd7c6a789 msm: ADSPRPC: Map and FD non-NULL check before dereferencing
When fd is zero, we set context fds to NULL. This will avoid
calling map create for context. Proper check is required
to avoid dereferencing of map and fd.

Change-Id: Id8d4b93d7d999e14ac1ebd8291137f799a73cf1a
Acked-by: Ekansh Gupta <ekangupt@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Signed-off-by: Edgar Flores <edgarf@codeaurora.org>
2020-07-28 14:09:11 -07:00
Mayank Rana
ae63d25cfd dwc3: trace: Remove unused field with dwc3 request tracing
Commit 0bd0f6d201 ("usb: dwc3: gadget: remove allocated/queued request
tracking") removed  usage of allocated/queued request functionality but
didn't remove allocated/queued field which are now not used and being
initialized. Hence remove those unused fields.

Change-Id: I3ca6b94acddfe2bd790ea229e86c6d777f268538
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-07-28 14:07:56 -07:00
qctecmdr
197f1cc98f Merge "RTC6226: send the hardware error event when tune/seek timed out" 2020-07-28 12:00:53 -07:00
qctecmdr
5cd502198c Merge "ABI: symbols: Update symbol list" 2020-07-28 12:00:53 -07:00
qctecmdr
490ee01dc6 Merge "msm: cvp: Avoid reset CVP clock during power off" 2020-07-28 12:00:53 -07:00
qctecmdr
74dea4a42e Merge "msm: kgsl: Allow state transition to nap from valid states" 2020-07-28 09:28:33 -07:00