Commit graph

590157 commits

Author SHA1 Message Date
Linux Build Service Account
40b99c3fae Merge "msm: mink: Avoid handling output params if TZ op returns an err" 2017-05-16 16:08:14 -07:00
Linux Build Service Account
b80accca68 Merge "defconfig: msm: Remove CONFIG_TIMER_STATS" 2017-05-16 16:08:13 -07:00
Linux Build Service Account
c9c69ae5d8 Merge "usb: phy: qusb: Support specifying vdda33 levels from device tree" 2017-05-16 16:08:12 -07:00
Linux Build Service Account
d4d28cb0ef Merge "ARM: dts: msm: Enable support for guest virtual platform" 2017-05-16 16:08:11 -07:00
Linux Build Service Account
0d8007824b Merge "ARM: dts: msm: always enable mdss_mdp node for msm8998 based MOB3 platform" 2017-05-16 16:08:08 -07:00
Linux Build Service Account
60b854cbaa Merge "msm: msm_bus: Add mutex to protect node_list" 2017-05-16 16:08:07 -07:00
Linux Build Service Account
05a7ad9638 Merge "msm_11ad: add support to PCIe D3hot in system suspend" 2017-05-16 16:08:05 -07:00
Hemant Kumar
29e527349b usb: phy-msm-qusb-v2: Add support for reference counting of regulators
Upon cable disconnect PMI calls qusb_phy_update_dpdm() to turn off phy
regulators before notifying vbus off to usb. As a result phy power down
sequence is executed with phy regulators turned off. This may result into
improper phy line state.  Fix this issue by adding a reference counter to
keep track of all regulator enable and disable requests and only disable
regulator when ref count becomes zero. Also add a mutex in
qusb_phy_enable_power() API to prevent any race condition in enabling and
disabling phy regulators between the callers i.e. PMI and phy driver.

Change-Id: I620f2b8cbf4f9271db81d5a517f1ee2a13c57f27
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 15:40:09 -07:00
Hemant Kumar
1fb7012ac6 USB: phy: qusb: Turn on vdd along with 1p8/3p3 LDOs when PMI requests
QUSB PHY requires VDD, 1p8 and 3p1 regulators to remove any unwanted
pull downs on DP/DM lines. These pull downs may result in incorrect charger
detection by PMI. Avoid incorrect charger detection by turning on VDD,
1p8 and 3p1 whenever PMI requests DP/DM to be floating.

Change-Id: I27e68d5ebf2f49fb6571ad777318483f9c123407
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-16 15:40:08 -07:00
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
Kees Cook
be814112fd time: Remove CONFIG_TIMER_STATS
Currently CONFIG_TIMER_STATS exposes process information across namespaces:

kernel/time/timer_list.c print_timer():

        SEQ_printf(m, ", %s/%d", tmp, timer->start_pid);

/proc/timer_list:

 #11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570

Given that the tracer can give the same information, this patch entirely
removes CONFIG_TIMER_STATS.

Change-Id: I66e06ae2d6e32c309824310d3d9bf54d1047eab1
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: linux-doc@vger.kernel.org
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Xing Gao <xgao01@email.wm.edu>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Jessica Frazelle <me@jessfraz.com>
Cc: kernel-hardening@lists.openwall.com
Cc: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Michal Marek <mmarek@suse.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-api@vger.kernel.org
Cc: Arjan van de Ven <arjan@linux.intel.com>
Link: http://lkml.kernel.org/r/20170208192659.GA32582@beast
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Git-commit: dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[ohaugan@codeaurora.org: Fixed merge conflicts]
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2017-05-16 14:16:43 -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
Rajkumar Subbiah
ef8e3cd458 msm: mdss: Fix potential dereferencing of null pointer
During atomic commit on a writeback panel, there is a possibility
of deferencing a NULL pointer if the configuration changes before
the commit. This change adds a NULL pointer check to avoid it.

Change-Id: I56d0efad40992b6f87c81e5eab93cf0f24f6f524
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2017-05-16 03:11:13 -07:00