717956 Commits

Author SHA1 Message Date
Ping Li
1ebf721483 drm/msm/sde: Correct the method to get the QSEED3 offset
The method used to get the QSEED3 offset is incorrect in REG_DMA
path, this change fixes the issue to get the correct QSEED3 offset.

Change-Id: Id0975752d419ab03f745f6a0236c0df03c528e0a
Signed-off-by: Ping Li <pingli@codeaurora.org>
2018-04-09 12:32:04 -07:00
Shrey Vijay
cbbf414d86 defconfig: msm: Enable slimbus driver for QCS405
Enable SLIM-MSM-NGD driver in defconfig for QCS405.

Change-Id: I895fa623e34487d67c1f76394958d2738542d8c8
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2018-04-09 23:32:51 +05:30
Jeevan Shriram
bbb636686a ARM: dts: msm: Enable PSCI enable method for SDMSHRIKE
Enable PSCI enable method for the CPUs for supporting
SMP mode on SDMSHRIKE target.

Change-Id: Idf10fc8c16d3ecf58f0401820bc6ef1fa8ecade0
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2018-04-09 10:50:38 -07:00
Avaneesh Kumar Dwivedi
3ade3f2d99 defconfig: qcs405: Add 32 bit defconfig support for qcs405
Add defconfig support to compile and boot 32 bit kernel for qcs405.

Change-Id: I798242b55d92419eabb0347905c4c3485b3b956f
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2018-04-09 21:58:38 +05:30
Behan Webster
a7f230f47a Kbuild arm: LLVMLinux: Add Kbuild support for building arch arm with Clang
Protect more options for arm with cc-option so that we don't get errors when
using clang instead of gcc.  Add more or different options when using clang as
well.

Change-Id: I766784273a1005abc09820671c8f4c8daacc2879
KernelVersion:
Author: Behan Webster <behanw@converseincode.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Patch-mainline: linux-arm-kernel @ 22/04/14, 06:08
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2018-04-09 21:58:38 +05:30
Liam Mark
fc30e9639c iommu: iommu-debug: Fix dma map bounds check
Fix so that size of map is taken into account.

Change-Id: Id4262525e746b36ef6353c03367ba0c3b187a54c
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2018-04-09 09:14:48 -07:00
Vinayak Menon
002720e74a mm/kmemleak.c: wait for scan completion before disabling free
A crash is observed when kmemleak_scan accesses the object->pointer,
likely due to the following race.

TASK A             TASK B                     TASK C
kmemleak_write
 (with "scan" and
 NOT "scan=on")
kmemleak_scan()
                   create_object
                   kmem_cache_alloc fails
                   kmemleak_disable
                   kmemleak_do_cleanup
                   kmemleak_free_enabled = 0
                                              kfree
                                              kmemleak_free bails out
                                               (kmemleak_free_enabled is 0)
                                              slub frees object->pointer
update_checksum
crash - object->pointer
 freed (DEBUG_PAGEALLOC)

kmemleak_do_cleanup waits for the scan thread to complete, but not for
direct call to kmemleak_scan via kmemleak_write.  So add a wait for
kmemleak_scan completion before disabling kmemleak_free, and while at it
fix the comment on stop_scan_thread.

[vinmenon@codeaurora.org: fix stop_scan_thread comment]
  Link: http://lkml.kernel.org/r/1522219972-22809-1-git-send-email-vinmenon@codeaurora.org
Link: http://lkml.kernel.org/r/1522063429-18992-1-git-send-email-vinmenon@codeaurora.org
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Git-Commit: 5b909d2e92fc6b741b283cb6f34fa6ecd01fba4c
Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Change-Id: Id5ae7f105c70739cc83dd3e4cb3a676410f93632
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2018-04-09 04:52:37 -07:00
Tingwei Zhang
cff3061206 coresight: byte-cntr: Add scatter-gather support for byte-counter
Since we add scatter-gather mode in ETR memory type, add scatter-gather
mode support for byte-counter function as well.

Change-Id: Ibca5113fe09d5de1164a99e891fe0599706954e7
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2018-04-09 19:09:24 +08:00
Tingwei Zhang
af015918bd coresight: tmc: add scatter-gather support for tmc etr
Add support to configure ETR device in scatter-gather mode.
In scatter-gather mode trace buffer can be configured to use bigger
buffer size without need of bigger contiguous memory.

Change-Id: I5d9f37b47c5bdd711161e7482ca3446549709406
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2018-04-09 19:03:14 +08:00
Mukesh Kumar Savaliya
ec2ed419ea defconfig: qcs405: Enable MSM SPI QSD driver
Enable components for MSM SPI QSD driver for QCS405 platform.

Change-Id: I764aece2d53e0cdb6cf4ea323891df46d5efbf9e
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2018-04-09 16:07:27 +05:30
Deepak Kumar
1cb4185e11 msm: kgsl: Use alignment corresponding to max supported page size
As 1MB is the max page size supported by kgsl, use the alignment
corresponding to 1MB page while selecting the page size for a
memory request. This will make sure that higher order pages are
used if possible for a given memory size and will also improve
the usage of higher order kgsl memory pools and general performance.

Change-Id: Ib4a5885a2e2c27c4a9e3f1589ede8290f9edbc9a
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2018-04-08 23:05:14 -07:00
Maya Erez
cfd6c54ce9 wil6210: add support for enhanced DMA structures
In enhanced DMA the vrings are handled internally by the FW
and are not exposed to the driver.
Instead, the driver handles descriptor rings, which are mapped
by the FW to vrings.
The completions of the TX and RX descriptors are notified to
the driver using status rings. Each status ring descriptor
includes information of the completed descriptors and the ring id
of their descriptor ring.

This patch changes struct vring to generic wil_ring to allow
its reuse for enhanced DMA descriptor rings and adds the descriptor
and status rings specific descriptors.

Change-Id: I7c841e0a1a31363c86291393a6197116095842bb
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
2018-04-08 23:25:00 +03:00
Linux Build Service Account
f0a4ec7dbc Merge "drivers: rpmh: disallow active state requests in solver mode." into msm-4.14 2018-04-06 17:07:37 -07:00
Linux Build Service Account
913a0c88c4 Merge "sched: sched_avg: Fix sched_get_nr_running_avg for tri-cluster systems" into msm-4.14 2018-04-06 17:07:35 -07:00
Linux Build Service Account
f5c2e60946 Merge "thermal: tsens: Add calibration support for qcs405" into msm-4.14 2018-04-06 17:07:34 -07:00
Linux Build Service Account
a808412f5f Merge "pinctrl: sdmshrike: Update register size and offset on EAST tile" into msm-4.14 2018-04-06 17:07:32 -07:00
Linux Build Service Account
f6ae639548 Merge "defconfig: sdm855: Enable ICNSS_QMI" into msm-4.14 2018-04-06 17:07:30 -07:00
Linux Build Service Account
4cc57d9780 Merge "msm: kgsl: Use the secure page table" into msm-4.14 2018-04-06 17:07:28 -07:00
Linux Build Service Account
4bd9750d3b Merge changes I5fe8718d,I577a850d,Ia837798e,I93e1b0cc into msm-4.14
* changes:
  ARM: dts: msm: Add thermal zone definition for SDM855
  ARM: dts: msm: Add QMI cooling device for SDM855
  drivers: thermal: qmi-cooling: Update compatible name format
  defconfig: msm: Enable QMI Cooling devices for SDM855
2018-04-06 17:07:27 -07:00
Linux Build Service Account
9f9688df85 Merge "driver: thermal: qmi-cooling: Use New QMI interface" into msm-4.14 2018-04-06 17:07:25 -07:00
Linux Build Service Account
865931412c Merge "qtaguid: Fix return error" into msm-4.14 2018-04-06 17:07:23 -07:00
Linux Build Service Account
c345338e66 Merge "msm: kgsl: Make DCVS vote HFI messages blocking" into msm-4.14 2018-04-06 17:07:21 -07:00
Linux Build Service Account
391b390784 Merge "msm: kgsl: Fix voltage dependency table logic" into msm-4.14 2018-04-06 17:07:18 -07:00
Linux Build Service Account
bc74aa406b Merge "sound: usb: Handle iova map/unmap properly for SMMU stage 1" into msm-4.14 2018-04-06 17:07:16 -07:00
Jack Pham
c6875dd939 usb: gadget: f_mtp: Change the icon to camera for PTP composition
The PTP function currently returns the same Extended Configuration
Descriptor as that of MTP. This results in Windows hosts displaying
a phone icon rather than a camera icon. Update the compatibleID
to correctly indicate the PTP configuration.

Change-Id: If286c5b80874a95be0b5ecc533d0e5c7a14f39d3
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2018-04-06 16:34:00 -07:00
Pratham Pratap
83a3c58f37 usb: gadget: f_mtp: Handle OS descriptors properly
The mtp_ctrl_request function is responding to every os
descriptor sent by host,There by enumerating the device
with mtp composition. Once mtp is disabled, need to clear
the function instances on unbind.

Change-Id: I6679a1c1009df291a85ba8dcc34997d757c320b9
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2018-04-06 16:33:47 -07:00
Tyler Wear
2e82ba6591 qtaguid: Fix return error
Reference net device correctly.

CRs-fixed: 2218668
Change-Id: I86657f8e0a5cab3e96863ab7befccdd8040a71ea
Signed-off-by: Tyler Wear <twear@codeaurora.org>
2018-04-06 13:46:17 -07:00
Hemant Kumar
316b14b5b3 sound: usb: Handle iova map/unmap properly for SMMU stage 1
When SMMU stage 1 is enabled, sg table entry may return different
page size entries for a xfer buffer. Calling uaudio_get_iova()
for each table entry may result into non-contiguous iova address
mapped for one xfer buffer. This results into page fault when
remote entity tries to access unmapped iova hole. Fix this issue
by calling uaudio_get_iova() first to get contiguous iova and then
map entire iova region by going over sg table entry. Also replace
print format %pa to %pK.

Change-Id: I7c74f25e6b76cf994717ca069948ac08631b5cd7
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2018-04-06 13:45:48 -07:00
Yuanyuan Liu
cbc7dd9c43 ARM: dts: msm: Add support for WLAN FW error fatal on sdm855
Add support for smp2p triggered force error fatal request from
WLAN firmware.

CRs-Fixed: 2159316
Change-Id: I1f36dd5496da44758ecafc66798e7c85b46d1cd9
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2018-04-06 13:25:33 -07:00
Ram Chandrasekar
6e5abe67e8 ARM: dts: msm: Add thermal zone definition for SDM855
Add thermal zone configuration to do low temperature voltage restriction
for SDM855.

Change-Id: I5fe8718db5cda033391a2eeb6572ce5d886f8f72
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-06 13:47:39 -06:00
Ram Chandrasekar
f6f1a4c17c ARM: dts: msm: Add QMI cooling device for SDM855
Add QMI cooling devices for SDM855. These cooling devices will be used
to apply cold temperature voltage restriction and other mitigation.

Change-Id: I577a850d91f3da868c9efa550fdef5db13ef5368
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-06 13:47:38 -06:00
Ram Chandrasekar
fcea9b48db drivers: thermal: qmi-cooling: Update compatible name format
Update the compatible name format for qmi cooling devices to use the
right format.

Change-Id: Ia837798ef826c7537809368b0c5e210804b454bf
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-06 13:47:38 -06:00
Ram Chandrasekar
2a51ebab77 driver: thermal: qmi-cooling: Use New QMI interface
Use the New QMI interface to communicate with remote server. The
interface will be used to get the available mitigation device and to
apply mitigation.

Change-Id: If97f521767cc5addea7ee8e2c9a873cb8aaffcdc
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-06 13:47:37 -06:00
Ram Chandrasekar
e2cad664ea defconfig: msm: Enable QMI Cooling devices for SDM855
Enable QMI cooling devices for SDM855. These cooling devices are used to
mitigate remote subsystem for thermal conditions.

Change-Id: I93e1b0cc9e03d9a0b654a1f80442bcbb8bb56f07
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2018-04-06 13:47:37 -06:00
Yuanyuan Liu
f7ec93c28b defconfig: sdm855: Enable ICNSS_QMI
Enable ICNSS_QMI flag so that icnss platform driver could
use QMI framework to communicate with WLAN FW.

CRs-Fixed: 2217794
Change-Id: I37ff3661228b3ab843488fbc06642008a6c7375e
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2018-04-06 12:14:51 -07:00
Siva Kumar Akkireddi
79f5ff3aa3 thermal: tsens: Add calibration support for qcs405
Add efuse reads to compute slope and offset used to convert final
temperature readings. Add all efuse related TSENS reads for 1xxx
controller across different targets in a common file for calibration.

Change-Id: I95ed119377767e518f0fa38720e73a5ce3561b41
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2018-04-06 23:54:36 +05:30
Linux Build Service Account
d3b9791e97 Merge "SPI: spi_qsd: Add snapshot of SPI QSD driver" into msm-4.14 2018-04-06 11:22:40 -07:00
Linux Build Service Account
d5a55a3b1c Merge changes I1c44ded1,Ice9e825b into msm-4.14
* changes:
  of: cache phandle nodes to reduce cost of of_find_node_by_phandle()
  Revert "of: cache phandle nodes to reduce cost of of_find_node_by_phandle()"
2018-04-06 11:22:38 -07:00
Linux Build Service Account
86d0f589c6 Merge "ARM: smp: Remove use of IPI_CALL_FUNC_SINGLE" into msm-4.14 2018-04-06 11:22:34 -07:00
Linux Build Service Account
459def4967 Merge "defconfig: Enable LLCC configuration for sdmshrike" into msm-4.14 2018-04-06 11:22:32 -07:00
Linux Build Service Account
ca58a9f25c Merge "msm: ipa4: halt both q6 channels for IPAv4" into msm-4.14 2018-04-06 11:22:31 -07:00
Linux Build Service Account
e33a1944e9 Merge "msm: ipa4: Enable SSR for IPAv4" into msm-4.14 2018-04-06 11:22:29 -07:00
Linux Build Service Account
e3a36aa413 Merge "cnss_utils: Add support for derived MAC address" into msm-4.14 2018-04-06 11:22:28 -07:00
Linux Build Service Account
64b50f2ea4 Merge changes I46ced825,Idca1c579 into msm-4.14
* changes:
  ARM: dts: msm: change device tree overlay support for SDM855
  scripts: Makefile: Add multi overlay dtbo-base apply verify
2018-04-06 11:22:26 -07:00
Linux Build Service Account
a1547c48ce Merge "ARM: dts: msm: Update CDSP NoC base address for sdm855" into msm-4.14 2018-04-06 11:22:24 -07:00
Linux Build Service Account
fec4952a2f Merge changes I198b272d,Ie2207077 into msm-4.14
* changes:
  ARM: dts: msm: use VDD_CX, VDD_MX, VDD_MMCX regulator phandles on SDMSHRIKE
  ARM: dts: msm: add power grid regulator phandles for SDMSHRIKE
2018-04-06 11:22:22 -07:00
Linux Build Service Account
d68a9ae963 Merge "ARM: msm: Add board config support for 32 bit qcs405" into msm-4.14 2018-04-06 11:22:19 -07:00
Linux Build Service Account
510c9bd51b Merge "drm/msm/sde: allow non-secure cb during secure-ui for sdm855 target" into msm-4.14 2018-04-06 11:22:18 -07:00
Linux Build Service Account
f7add58124 Merge "ARM: dts: msm: Add sdcard support for sdmshrike mtp" into msm-4.14 2018-04-06 11:22:15 -07:00
Linux Build Service Account
72dd4bfd95 Merge "defconfig: msm: Enable I2C and QCOM-SPS-DMA driver for QCS405" into msm-4.14 2018-04-06 11:22:14 -07:00