Commit graph

888,382 commits

Author SHA1 Message Date
Jordan Crouse
4e3ff7f6ed msm: kgsl: Don't map DDR as strongly ordered
Don't map DDR memory as strongly ordered because it makes the memory
controller sad. All we really care about is the cache characteristics
and write-combine is the same as far as those are concerned.

Change-Id: Ic0dedbad30785c8d7c24ad3249413139593029f0
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:19 -06:00
Jordan Crouse
9222a3588a msm: kgsl: Don't print pagefault debugging in global space
Don't print pagefault debugging in global space to avoid giving
away buffer addresses.

Change-Id: Ic0dedbad7a66aca1bd5b678aac0ddae6a8612f1c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:18 -06:00
Jordan Crouse
2460bec971 msm: kgsl: Make sure that IB addresses are dword aligned
All IB GPU addresses should be dword aligned. Enforce that in software
to keep invalid addresses from bothering the CP.

Change-Id: Ic0dedbad2298ebbd20ca1b575b8e36dcbf5a1fbe
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:18 -06:00
Jordan Crouse
7b96268e45 msm: kgsl: Add back apriv bit for legacy targets
Commit ef5440e7b8 ("msm: kgsl: Remove nonsense around the a5xx and a6xx
SMMU table update") removed a lot of the cruft around a pagetable update
but unfortunately legacy targets still needed APRIV to write to the
pagetable_desc memory so add that part back in.

Change-Id: Ic0dedbad71544eaaf77efe1d523c9bf533cb4973
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:17 -06:00
Jordan Crouse
b2e689c2c7 msm: kgsl: Limit the HFI error log to 16 characters
The HFI error message has a 16 character error string attached. We should
not trust that the error string is properly formatted with a null
character at the end. Set the string precision to ensure that we only
print up to 16 characters of the payload.

Change-Id: Ic0dedbad1b2aebef1feb3f9f7f531869e96599e6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-07-30 13:15:17 -06:00
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