Commit graph

889,574 commits

Author SHA1 Message Date
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
Harshitha Sai Neelati
16776a2709 msm: kgsl: Update pagefault policy when KGSL_STATE_ACTIVE
Currently ft_pagefault_policy_store sets the pagefault policy
based on ADRENO_DEVICE_STARTED. This check always fails for
GMU based targets. Update the policy based on KGSL_STATE_ACTIVE.

Change-Id: Ice7f225615c2c1bacb1d7d2ed613c37910ee5138
Signed-off-by: Harshitha Sai Neelati <hsaine@codeaurora.org>
2020-07-29 12:02:56 +05:30
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
Linyu Yuan
c3355f3b32 usb: misc: nb7vpq904m: support 4 lanes display
change to DP only mode when display is 4 lanes.

Change-Id: I5bd383ccc44afc2d60fff7068f0c52f45a3a93a5
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
2020-07-29 09:08:51 +08:00
Manikandan Mohan
53a4d69436 cnss2: Update QMI header file for PCIE gen switch and bdf data
Update QMI header files used for communication between host platform
driver and FW for PCIE gen switch requirement and for getting BDF
config data that host is interested.

Change-Id: I6882d73d7670769180118d7eb04277dd52c95ac7
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-07-28 17:56:58 -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
Isaac J. Manjarres
962bad7d0a dma-mapping-fast: Fix sg-list length calculation in fast_smmu_unmap_sg()
The length of an IOVA mapped to an sg-list in fast_smmu_unmap_sg() is
determined using the DMA length of the data in the sg-list. Using the
DMA length of the entries in the sg-list may result in incorrectly
calculating the length of the IOVA range that needs to be freed, as
the buffers are mapped at an IOMMU granule.

Thus, align the IOVA length to the IOMMU granule when unmapping IOVAs
in fast_smmu_unmap_sg().

Change-Id: I7dbe88ed2db46b1c9b278f92c2a23a9ebc2d503a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-28 14:18:03 -07:00
Isaac J. Manjarres
6ebd8dac2c dma-mapping-fast: Add tracepoints for sg-list mapping functions
Add tracepoints for fast_smmu_[map/unmap]_sg().

Change-Id: Id973840b3ccac52ff15e46d6973eb6bc7a7a8731
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-07-28 14:17:59 -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
Manikandan Mohan
e61e6037bf cnss2: Add additional PBL registers to debug dumps
Add additional PBL registers to debug dumps.

Change-Id: Id45f545840a66519152a3c0b813da6eee435fcc2
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
2020-07-28 12:03:20 -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
Will McVicker
9af7526757 ANDROID: build: update ABI definitions
Update these defines to be inclusive:
* KMI_WHITELIST -> KMI_SYMBOL_LIST
* ADDITIONAL_KMI_WHITELISTS -> ADDITIONAL_KMI_SYMBOL_LISTS
* KMI_WHITELIST_STRICT_MODE -> KMI_SYMBOL_LIST_STRICT_MODE

Change-Id: Ie247fb7a1ef9ff27c06003ab0861fc9a790b10c6
Signed-off-by: Will McVicker <willmcvicker@google.com>
Bug: 161912438
2020-07-28 17:39:34 +00:00
Elliot Berman
07ca642011 arm64: defconfig: Enabled download/reboot reason drivers for Lahaina
Enable download mode and reboot reason drivers for Lahaina.

Change-Id: I341b5094c157e934e9a87392a5b56fe5c5a2314b
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:37 -07:00
Elliot Berman
147254f01d firmware: qcom_scm: Add SCM call to perform warm reboot
An SCM call can be made instead of using PSCI SYS_RESET2. Use this SCM
call instead as PSCI driver does not have support to do vendor reset
types.

Change-Id: I07ccdcb408df0ef8a6a6c09f744ccff6345f0dea
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:37 -07:00
Elliot Berman
d85a226423 firmware: qcom_scm: Disable SDI during shutdown
Disable SDI WDOG during shutdown.

Change-Id: I7c642aa4fc6bb7187bcdc3e5ab42b3e7efa90984
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:36 -07:00
Elliot Berman
ad4ce8c7d2 soc: qcom: Add watchdog bite in panic
Add watchdog bite in panic by registering a restart handler. Also add
support for an earlier watchdog bite in the panic handler itself, which
should provide a better context for post-mortem analysis.

Change-Id: Ib6530fa754b78fd26a9f7d5a348b1e7ceb3c1f96
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:36 -07:00
Elliot Berman
205d6619be power: reset: Add qcom reboot reason driver
Add support for setting reboot reason on Qualcomm boards. This driver
uses reboot notifier chain to support commands such as "reboot
bootloader" to boot board to fastboot mode.

Change-Id: I3ccaa926dc92df9d0acd4261c79ff7f3c9e1c438
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:35 -07:00
Elliot Berman
ca85f9919c power: reset: qcom-dload-mode: Add support for changing dump mode
Beyond full dump download mode, there is also a minidump download mode
and a dump mode which includes full dump and minidump. Add support for
changing dump mode with /sys/kernel/dload/dload_mode sysfs entry and for
toggling whether a download dump mode is used with msm_enable_dump_mode.

Change-Id: I20248df51e8df55c30c0c4f9c46291697cee189b
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:34 -07:00
Elliot Berman
a54b8a7d7d power: reset: qcom-dload-mode: Store KASLR offset when available
Store KASLR offset in imem property when requested by devicetree.

Change-Id: I4f5f359fadab413db6bc5e80799a445218251872
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:34 -07:00
Elliot Berman
f9dc3d38cf power: reset: qcom-dload-mode: Add support for setting emmc dload mode
Add support for setting emmc download mode with
/sys/kernel/dload/emmc_dload sysfs entry.

Change-Id: I3ce51ce7a88d52733cdfec982fbbf90991bebd74
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:33 -07:00
Elliot Berman
bc6815ab64 power: reset: Add qcom-dload-mode driver
Add a driver to manage download mode for Qualcomm SoCs. The driver can
force SoC to restart into a dump collection mode when panicking for
post-morten analysis, as controlled by
CONFIG_POWER_RESET_MSM_DOWNLOAD_MODE_DEFAULT. The driver also can reboot
into "emergency download mode," which restarts SoC into mode which
permits re-flashing storage via Qualcomm Sahara protocol.

Change-Id: I30c83bf020715b7a80c00faa19280aec7f708435
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-07-28 09:37:33 -07:00
qctecmdr
74dea4a42e Merge "msm: kgsl: Allow state transition to nap from valid states" 2020-07-28 09:28:33 -07:00
Tony Truong
e2ad355498 defconfig: sdxlemur: enable QCOM PCIe drivers
Enable PCIe root complex driver to establish communication
between sdxlemur and external peripherals through PCIe ports and
interfaces.

Enable PCIe MSI driver to provide PCIe clients MSI/MSI-X
support. With MSI/MSI-X, external peripherals connected to PCIe
can interrupt sdxlemur.

Change-Id: Ic2aa16206daf7076dd02a0f07477560a6a368828
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-07-28 09:12:30 -07:00
Tony Truong
1ea7b1815a msm: pcie: remove legacy arm32 IRQ support
Specific arm32 support for PCIe INTX interrupts is now legacy
and no longer exists. Therefore remove all arm32 IRQ support from
PCIe driver.

Change-Id: I92df6084184d2d4310a6903dda12e3b27e840a79
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-07-28 09:12:27 -07:00
Tony Truong
01363fc77e msm: pcie: check return value when enabling PCIe GDSC
When enabling GDSC, it is required to check the return value of
the API. Add a proper check and print for the return value.

Change-Id: I4d5a1a660bed6a7f6d72a5d728c36fc54fec7c68
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-07-28 09:12:24 -07:00
Tony Truong
24d13e9751 ARM: qcom: enable PCI for sdxlemur
Enable PCI by selecting HAVE_PCI and PCI for sdxlemur.

Change-Id: I3b10df842e774e1347c9edde54d6719dfe5897cb
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-07-28 09:12:21 -07:00
himta ram
82820c6049 RTC6226: send the hardware error event when tune/seek timed out
During the scan operation there is no interrupt received at
rtc6226 driver for both tune and seek and time out happened.
Scan operation is not terminated when tune or seek time out happened.
This leads to a tune time out at FM App and command time out pop is
displayed. Send the hardware error event when tune/seek timed out.
So that FM app will be reset and subsequent FM functionality can
work normally.

CRs-Fixed: 2727531
Change-Id: Ia1395744b069f4e968deb09210baa748bb94c47b
Signed-off-by: himta ram <hram@codeaurora.org>
2020-07-28 07:43:10 -07:00
Can Guo
9a0eadf4e9 scsi: ufs-qcom: Do not return uninitialized err value
In func ufs_qcom_unvote_qos_all, err may be returned without being
initialized, so give it an initial value to avoid such case.

Change-Id: I56425601ae38d322a03af0916760ef2f166c2807
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-07-28 22:02:46 +08:00
qctecmdr
bb2aff7663 Merge "iommu-debug: Remove calls to iommu_enable_config_clocks" 2020-07-28 06:52:59 -07:00
qctecmdr
68a30a6319 Merge "dt-bindings: Add macros for defining USB QMP PHY registers" 2020-07-28 06:52:58 -07:00
qctecmdr
dec9718790 Merge "usb: phy: Add snapshot of QUSB-V2 PHY driver" 2020-07-28 06:52:58 -07:00
qctecmdr
728b584330 Merge "clk: qcom: debugcc: Move the initcall for HOLI" 2020-07-28 06:52:58 -07:00
Hareesh Gundu
9255ec34c5 msm: kgsl: Unbind adreno from component device for nogmu
In absence of GMU adreno can’t bind it as component. So invoke
adreno_bind/unbind() calls manually to succeed probe.

Change-Id: I7a16ea4ca381dc9466e5827ef3f8b98a2aaf39fa
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-07-28 19:17:31 +05:30
Pavankumar Kondeti
3c0be5df55 sched/walt: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: I4da8fd848f9cd43d510ac2ae63605f051e723775
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-07-28 17:34:13 +05:30
Pankaj Gupta
efea1729a5 msm: kgsl: Allow state transition to nap from valid states
Currently transitions to nap state from active, slumber or aware
are not permitted. This fix allows transition from active or slumber
to nap state.

Change-Id: I889c050fb7042fefcab40ea4fa84efabef2149e8
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2020-07-28 04:53:21 -07:00
Komal Bajaj
b16a703556 soc: qcom: Add support to enable eud if enabled in xbl
If eud driver is enabled in xbl, there was a explicit need
to enable eud from hlos side also. This change enables eud
if eud_mode_manager2 register is set.

Change-Id: I72a8560a7fd8dfa4eaed7895bb423a867ab90e91
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
2020-07-28 04:00:56 -07:00
qctecmdr
22bb415ac9 Merge "cpufreq: qcom-cpufreq-hw: Add support for CPUFreq hardware debug" 2020-07-28 03:50:32 -07:00
qctecmdr
70535c9241 Merge "clk: Add support to provide OPP tables for clocks" 2020-07-28 03:50:32 -07:00
qctecmdr
36c1222b0b Merge "arm64: defconfig: Enable interconnect driver for Holi" 2020-07-28 03:50:31 -07:00
qctecmdr
1d735e10ea Merge "soc: qcom: socinfo: Add the soc-id for Lahaina ATP" 2020-07-28 03:50:31 -07:00