Commit graph

888,377 commits

Author SHA1 Message Date
Urvashi Agrawal
cd2e264ddf msm: kgsl: Initialize CP engine before loading the zap shader
If CP is not initialized and zap shader loading fails the GMU IFPC state
machine is uninitialized which causes unwanted mess. Reverse the order
of CP_INIT and zap to handle the situation gracefully.

Change-Id: I062e4c7febd8ee11099bae1b58c579851a43e8bd
Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:16 -06:00
Jordan Crouse
8e84207644 msm: kgsl: Detect missing per-process pagetable support and fallback
Per-process pagetable support might be disabled in the arm-smmu driver for
any number of reasons but we won't know it until we try to create our
first dynamic domain. If enabling the dynamic domain returns -EOPNOTSUPP
then disable per-process pagetables and fall back to global pagetables.

Also, demote a WARN to a log-once message when the arm-smmu driver doesn't
support the system cache no-write-allocate tag.

Change-Id: Ic0dedbadb66fc862eeb9cd585ade9edc1d178c77
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:16 -06:00
qctecmdr
87ff01a781 Merge "msm: kgsl: Unbind adreno from component device for nogmu" 2020-07-30 08:24:43 -07:00
qctecmdr
a63267620c Merge "spi: spi-msm-geni: Add support in SPI driver for Trusted VM" 2020-07-30 08:24:43 -07:00
qctecmdr
df78d1100b Merge "defconfig: Enable TouchScreen for QRD holi target" 2020-07-30 08:24:42 -07:00
qctecmdr
9644a106b1 Merge "dma-mapping-fast: Fix sg-list length calculation in fast_smmu_unmap_sg()" 2020-07-30 02:34:56 -07:00
qctecmdr
dc03d0a5f7 Merge "qseecom: Check error when allocating coherent buffer" 2020-07-30 02:34:56 -07:00
qctecmdr
68196a8c6a Merge "leds: qti-flash: Allow dynamic symmetry current redistribution" 2020-07-30 02:34:55 -07:00
qctecmdr
230b741679 Merge "firmware: qcom: Remove garbage characters from qsee log" 2020-07-30 02:34:55 -07:00
qctecmdr
10d419bbd1 Merge "driver: pinctrl: Add reserved GPIOs for Holi" 2020-07-30 02:34:55 -07:00
Fei Mao
20ac668cf8 defconfig: Enable TouchScreen for QRD holi target
This change enables TouchScreen config for QRD holi target.

Change-Id: Ie56f53cbfe858c5b74502dc419bda57b060f767d
Signed-off-by: Fei Mao <feim1@codeaurora.org>
2020-07-29 23:56:18 -07:00
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
Mayank Grover
9aa1399eba driver: pinctrl: Add reserved GPIOs for Holi
Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: I07807f37adfd6d90e7b1bdc72b2106520f378b02
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
2020-07-29 19:38:54 -07:00
AnilKumar Chimata
0ee960d80e firmware: qcom: Remove garbage characters from qsee log
Send proper buffer size to fix the garbage characters
appearing on qsee logs.

Change-Id: Ia472b6d0478399e4df81803151c4bd757266ad7d
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-07-29 18:28:33 -07:00
AnilKumar Chimata
547cc33976 qseecom: Check error when allocating coherent buffer
Add check to verify whether memory is allocated properly or not
and return error if its failed to allocate coherent buffer.

Change-Id: I234a637d20228d047f6fc11d374b6f13f28fed03
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2020-07-29 18:28:29 -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