Commit graph

589927 commits

Author SHA1 Message Date
Jack Pham
65620a280f ARM: dts: msm: Specify vdda33 voltages for QUSB PHY on msm8998
Specify LDO24 voltage as 2.4V for charger detection and 3.088V
for USB data.

Change-Id: I9f365caf89226f1ce0e28b07306906c5d83541fe
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-05-16 15:39:31 -07:00
Olav Haugan
4d5aee4dae defconfig: msm: Remove CONFIG_TIMER_STATS
CONFIG_TIMER_STATS is no longer needed and the kconfig option
will be removed in subsequent commits.

Change-Id: I380f9f925332c594c9d500312a06713170e48505
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-05-16 14:16:43 -07:00
Jack Pham
1974aed829 usb: phy: qusb: Support specifying vdda33 levels from device tree
The specific voltage levels for the vdda33 regulator may vary
depending on the target. Add an optional device tree property to
allow specifying a 3-tuple of voltages for minimum, operating
and maximum voltage levels. The minimum level is used when simply
powering on, whereas the operating level is used when initializing
the PHY.

Change-Id: Ia5d301efdb6964434a01264e7aa19421a41e98ca
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-05-16 14:04:05 -07:00
Vijay Ganti
e3b9125270 soc: qcom: msm_perf: Initialize Array elements
This change initializes the tmp array elements to
ensure no use of uninitialized variable. This was caught
through Static Analysis

Change-Id: Ibc01493e9f0ce1a492579b568fa7362cb3c3b1d7
Signed-off-by: Vijay Ganti <viganti@codeaurora.org>
2017-05-16 11:48:34 -07:00
Xiaoyu Ye
0c53b526c0 ASoC: msm-cpe: Fix range checking in function fw_name_store
The range checking between "WCD_CPE_IMAGE_FNAME_MAX" and
"copy_count" is off-by-one due to the size of array
"core->dyn_fname" is "WCD_CPE_IMAGE_FNAME_MAX". Subtract
one from the range checking to fix this issue.

Change-Id: I87fd55206f79ad7b13c3878f6642bf5579303b17
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-05-16 11:30:43 -07:00
Atul Raut
232eb2beda ARM: dts: msm: Enable support for guest virtual platform
Add device tree to support guest virtual machine on
msm kernel.

CRs-Fixed: 2000645
Change-Id: I4ca06c28c349dd533057b24fe6794a7c11a84cc6
Signed-off-by: Atul Raut <araut@codeaurora.org>
2017-05-16 11:26:20 -07:00
Hemant Kumar
d4d30d3827 usb: policy_engine: Close pd phy after exceeding SINK hard reset count
Exceeding sink hard reset count means no PD session active. Hence vote
to turn off PD phy regulator by closing the PD phy.

Change-Id: I2aaa3c9c7b651aec77e67139e3cdcbbf9437f091
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 11:23:21 -07:00
Mukesh Ojha
9021973bac coresight-remote-etm: Adds missing lock to avoid race condition
We take a lock of drvdata->mutex and further wait on a lock
'drvdata->handle->handle_lock' in below path

remote_etm_disable => qmi_send_req_wait => qmi_encode_and_send_req

So, it is possible that while we wait on a handle lock in above mentioned
path The handle itself gets destroyed via below path

remote_etm_svc_exit => qmi_handle_destroy

and the handle is not valid anymore.

This patch adds lock drvdata->mutex at number of possible cases.

CRs-Fixed: 2045013
Change-Id: I4a5110630b78e551bab1b4f454d23aacd599c000
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2017-05-16 23:50:45 +05:30
Linux Build Service Account
211854c904 Merge "drm/msm: remove mdp node entry" 2017-05-16 06:49:50 -07:00
Linux Build Service Account
6b2b446623 Merge "ath10k: Define structure for copy engine interrupt map for SNOC" 2017-05-16 06:49:49 -07:00
Linux Build Service Account
d4f5120c4c Merge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM660" 2017-05-16 06:49:48 -07:00
Linux Build Service Account
2a1bce6909 Merge "ARM: dts: msm: Update high-speed PHY parameters for QRD SDM630" 2017-05-16 06:49:47 -07:00
Linux Build Service Account
a03b6a8e6e Merge "soc: qcom: Fix checks for QMI response values" 2017-05-16 06:49:46 -07:00
Linux Build Service Account
7cc854b84e Merge "soc: qcom: fix to avoid memory allocation failures" 2017-05-16 06:49:44 -07:00
Linux Build Service Account
cf343cfb0f Merge "ASoC: msm: add support for new ADSP event APIs" 2017-05-16 06:49:43 -07:00
Linux Build Service Account
22ecb82ac2 Merge "defconfig: arm64: Enable UFSHCD_CMD_LOGGING flag" 2017-05-16 06:49:42 -07:00
Linux Build Service Account
e37dfc88a2 Merge "ASoC: msm: remove unused msm-compr-q6-v2" 2017-05-16 06:49:41 -07:00
Linux Build Service Account
fb8be73fa6 Merge "ARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA" 2017-05-16 06:49:40 -07:00
Linux Build Service Account
ed23e3c43b Merge "scsi: ufs-qcom: remove broken hci version quirk" 2017-05-16 06:49:37 -07:00
Linux Build Service Account
ec43abcb48 Merge "msm: mdss: fix display port crash caused by hpd_irq attention event" 2017-05-16 06:49:35 -07:00
Linux Build Service Account
2fdf1c893d Merge "drm/msm: drop return from gpu->submit()" 2017-05-16 06:49:34 -07:00
Linux Build Service Account
df5db93178 Merge "tracing: do not leak kernel addresses" 2017-05-16 06:49:32 -07:00
Linux Build Service Account
b0104407c2 Merge "Prevent heap overflow in uvc driver" 2017-05-16 06:49:31 -07:00
Linux Build Service Account
f7b2efad8d Merge "msm: kgsl: Offload mementry destroy work to separate thread" 2017-05-16 06:49:29 -07:00
Linux Build Service Account
9ed4022de0 Merge "spcom: avoid user commands via /dev/spcom" 2017-05-16 06:49:29 -07:00
Linux Build Service Account
1924110d21 Merge "timer: Clear deferrable_pending while handling timer softirq" 2017-05-16 06:49:28 -07:00
Linux Build Service Account
647e9bf427 Merge "soc: qcom: rpm_master_stat: Fix buffer overflow" 2017-05-16 06:49:27 -07:00
Linux Build Service Account
40e4c19332 Merge "diag: Add proper synchronization checks to msg mask table" 2017-05-16 06:49:26 -07:00
Linux Build Service Account
3715a9458a Merge "msm: ADSPRPC: verify and initialize some variables" 2017-05-16 06:49:25 -07:00
Linux Build Service Account
560c77a760 Merge "ASoC: wcd: Depend on right config option" 2017-05-16 06:49:24 -07:00
Linux Build Service Account
84b6f80cab Merge "memshare: Update the free memory count after allocation" 2017-05-16 06:49:23 -07:00
Linux Build Service Account
3a168d290b Merge "PM/devfreq: bw_hwmon: add mutex lock in polling interval case" 2017-05-16 06:49:22 -07:00
Linux Build Service Account
4939123c90 Merge "qseecom: add bus scaling support for GP operations" 2017-05-16 06:49:21 -07:00
Linux Build Service Account
f74b3846f3 Merge "ARM: dts: msm: move tdm common prop to parent node" 2017-05-16 06:49:18 -07:00
Linux Build Service Account
c46427b57a Merge "ASoC: msm: qdsp6v2: Add TDM master slave select setting" 2017-05-16 06:49:17 -07:00
Tharun Kumar Merugu
7fbbf8a306 msm: ADSPRPC: Copy process name buffer to kernel space
Copy user space process name buffer to kernel space using
copy_from_user.

Change-Id: I5272a42651ac50ddeda3f0f7a4cbd32dbaf495ec
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-05-16 06:09:24 -07:00
Narender Ankam
44868b73bd ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform
Duplicate probing of mdss_mdp device node is now handled
within SDE driver.

Change-Id: I3e4bb5c73c8d43e6fe07ff791ea3815636e50a55
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-05-16 17:37:13 +05:30
Vijayavardhan Vennapusa
325dc282c7 USB: composite: Advertise USB version as 0x200 if max speed is HS
Currently driver is advertising as USB device as 0x210 even if
maximum speed is limited to high speed mode. This is causing throughput
degradation for RNDIS with host machines that enables USB2 LPM. Hence
disable USB2 LPM for device having maximum speed limited to high speed
mode by advertizing as 0x200.

Change-Id: I9d7d62f35284f11faa7e933e755277d24dce1038
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-05-16 17:01:40 +05:30
David Dai
346c7ec716 msm: msm_bus: Add mutex to protect node_list
Static variable node_list list need to be protected with a mutex
to prevent race conditions and use after free cases.

Change-Id: I4790b06712b8a8b401f43418cfcc53b415fb0019
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-05-16 15:49:10 +05:30
Jin Li
54133d0b7d drm/msm: wait fence complete before flip
In async commit case, driver needs to always wait for input fence
before triggering the complete_commit path. Otherwise, there could
be tearing since GPU hasn't finished the composition rendering.

Change-Id: I73a54f5811fdcf8639618ce3cacf4cbaa00b406c
Signed-off-by: Felix Xiong <xayang@codeaurora.org>
Signed-off-by: Jin Li <jinl@codeaurora.org>
Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
2017-05-16 18:09:03 +08:00
Pratham Pratap
1509025cbf USB: f_qc_rndis: Prevent use-after-free for _rndis_qc
Assume that there are two threads, thread1 is setting
value of _rndis_qc variable in rndis_qc_bind_config_vendor
function. Thread2 jumps in and get the value of _rndis_qc
in rndis_qc_open_dev function before it is freed in
rndis_qc_bind_config_vendor function, since rndis_ipa_init
or usb_add_function failed. Use-after-free will happen as
Thread2 is referencing freed objects. To prevent this
spinlock is used where ever it is needed to protect
_rndis_qc variable.

Change-Id: I4da50c125e401e90abec3dc6b4e2c4a504a63ba0
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2017-05-16 01:59:48 -07:00
Vijay kumar Tumati
933316ef88 ARM: dts: msm: Add flash handle to camera1 device on SDM660
Add flash handle to camera1 device in SDM660 sensor
MTP/CDP/QRD platforms to support flash on auxiliary camera.

In dual camera usecase, even the auxiliary sensor uses
flash. So the flash handle should be added to this camera
node as well.

Change-Id: Id7b40e5e86e67aa1e5df95d2094641a50f81286e
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-05-16 01:40:01 -07:00
Ziqi Chen
5187aa6bfc ARM: dts: msm: Update high-speed PHY parameters for QRD SDM660
QRD SDM660 failed on high-speed eye diagram test. Updated
these parameters based on tuning result to pass compliance test.

Change-Id: Ice00698872be4c39c2184dbd5bc2d99af7641b02
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
2017-05-15 23:55:29 -07:00
Ziqi Chen
73c0dce1f5 ARM: dts: msm: Update high-speed PHY parameters for QRD SDM630
QRD SDM630 failed on high-speed eye diagram test. Update these
parameters based on tuning result to pass compliance test.

Change-Id: I34bb4d7808448ba687bdd9495e1573cb9eac6098
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
2017-05-15 23:47:04 -07:00
Sarada Prasanna Garnayak
fa85584489 ath10k: Define structure for copy engine interrupt map for SNOC
The WLAN driver request and free the copy engine interrupt
according to the WLAN host target communication and protocol
in different WLAN context and subsystem state. The ath10k snoc
free/request all copy engine interrupt line during wlan subsystem
recovery due to firmware crash or hardware interface down etc.

To avoid the kernel warning and fault due to redundant copy engine
interrupt request/free in different wlan state. Define structure
for copy engine to maintain the stat of copy engine interrupt list
request/free.

Change-Id: I5cf3de4feecfb3a93a930c4939dc0a80bfc14e55
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-05-15 23:43:45 -07:00
Xiaojun Sang
f485150d69 ASoC: msm: remove unused msm-compr-q6-v2
msm-compr-q6-v2.c and msm-compr-q6-v2.h are no longer used.

CRs-Fixed: 2022953
Change-Id: I856d90a212a3e123a2c8b80092aff003f7c608c7
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-05-15 19:23:40 -07:00
Can Guo
ea86ca8e20 defconfig: arm64: Enable UFSHCD_CMD_LOGGING flag
Enabling SCSI_UFSHCD_CMD_LOGGING flag in defconfig
file. With this feature eanbled, ufs commands send
through ufshcd shall be logged.

Change-Id: Ibc4d1f39221fbcdc926e030d1df08a9fea31d24c
Signed-off-by: Can Guo <cang@codeaurora.org>
2017-05-15 18:04:21 -07:00
Puja Gupta
91747af561 soc: qcom: Fix checks for QMI response values
The return values from QMI could be compared directly and was
incorrectly interpreted in service locator and notifier.

Also initialize structure in service locator so as to not have garbage
values in them.

Change-Id: I7f8f27857706e9508b64289d9263c79494c17a8d
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2017-05-15 13:26:51 -07:00
Hemant Kumar
adce509c28 usb: gadget: f_cdev: Fix NULL pointer dereference in cser_free_inst
If f_cdev_alloc() fails it frees the port context and set_inst_name()
call back returns with error. As a result free_func_inst() call back
is called which is dereferencing port context from f_cdev_opts context
which results into NULL ptr dereference. Fix the issue by adding NULL
check for port context pointer in f_cdev_opts context.

Change-Id: I69828761be0a9f7df714eec34894c13f762dcc43
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-15 12:24:00 -07:00
Nick Desaulniers
ccc9ce7791 tracing: do not leak kernel addresses
This likely breaks tracing tools like trace-cmd.  It logs in the same
format but now addresses are all 0x0.

Bug: 34277115
Change-Id: Ifb0d4d2a184bf0d95726de05b1acee0287a375d9
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 9ad8f2cc1bb73a3e2255dff4ee9c45c909869225
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2017-05-15 10:45:17 -07:00