Commit graph

592282 commits

Author SHA1 Message Date
Linux Build Service Account
68284fc997 Merge "ASoC: msm8998: modify quat mi2s clock id in slave mode" 2017-07-20 02:56:44 -07:00
Sarangdhar Joshi
62f99e7cea soc: qcom: watchdog_v2: update last_pet variable during resume
The last_pet variable is set in suspend callback and during
pet_watchdog() and is printed when watchdog bark handler gets
called. This variable does not represent exact last pet time in
cases where non secure bark occurs before system could pet the
watchdog upon wakeup event from low power mode. Reset the
watchdog during msm_watchdog_resume() and update last_pet
variable so that watchdog bark messages will represent latest
info.

This commit also adds memory barrier after resetting watchdog in
msm_watchdog_suspend(). This will make sure watchdog writes are
complete before proceeding further.

Change-Id: I44492a947bc3664b7d14cfae9e877ebe0dc32836
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-07-20 13:10:04 +05:30
John Youn
17d959e46b usb: dwc3: gadget: don't send extra ZLP
If the request->length is zero, a ZLP should already be sent due to that
and another ZLP is not needed to terminate the transfer.

Fixes: 04c03d10e507 ("usb: dwc3: gadget: handle request->zero")
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Change-Id: I747a9fd710d90986c7befd3d5ee5a1a5fceeaaed
Git-commit: d9261898a4b2c143c28568dc686a1becfc637a99
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-20 12:28:40 +05:30
Felipe Balbi
7f2ea4fd0c usb: dwc3: gadget: handle request->zero
So far, dwc3 has always missed request->zero
handling for every endpoint. Let's implement
that so we can handle cases where transfer must
be finished with a ZLP.

Note that dwc3 is a little special. Even though
we're dealing with a ZLP, we still need a buffer
of wMaxPacketSize bytes; to hide that detail from
every gadget driver, we have a preallocated buffer
of 1024 bytes (biggest bulk size) to use (and
share) among all endpoints.

Reported-by: Ravi B <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Change-Id: Ib4cb734bdb90ea142ced0d3b5299ee37ffce0352
Git-commit: 04c03d10e507052cfce6910ddf34091196e79e1c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[vvreddy@codeaurora.org: resolved merge conflicts]
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-20 12:27:19 +05:30
Rahul Sharma
22ec4f5399 msm: ais: cpp changes to validate ioctl input
When the Camera application exercises the  V4L2  ioctl operations, CPP
driver would attempt to the copy  user space buffer  contents into the
internal kernel buffer.  If an invalid length of the user space buffer
is passed onto the driver, it could trigger buffer overflow condition.
Thus, fix this by copying user space buffer contents into kernel space
buffer of the  driver for further processing, only after checking for
proper length of user space buffer.

Change-Id: I0386d0f84a8d7015bfe6bbb1e9472fa8934df83a
CRs-Fixed: 2025367
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-07-19 23:22:51 -07:00
Srikanth Uyyala
3b0328c5a5 msm: isp: fix the invalid type conversion
stream_idx cannot take negative value and wrongly type casted to int.
Use uint32_t to fix this issue.

Change-Id: I7f306d3a24fc8f73aae91c0514b3747592466404
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2017-07-20 09:59:23 +05:30
Linux Build Service Account
347dbf7277 Merge "msm: ipa3: Add spinlock to avoid deleting already deleted list" 2017-07-19 17:20:49 -07:00
Surajit Podder
e7a609b031 msm: vidc: retain clock rate across power suspend/resume
Power collapse should be transparent to vidc layer, so
clock rate should be retained across suspend resume.

Add change to save clock rate during suspend, and restore
clock rate during resume.

Change-Id: I7e01ddcfc5b2f7d02f76512e1cbaf1a75bacdb03
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-07-19 16:17:14 -07:00
Abhinav Kumar
033b9198d0 drm/msm: add support for HDR playback control sequence
HDR playback needs metadata to be sent to the sink
while the playback is ongoing and needs a proper
teardown sequence when the playback has ended with respect
to the infoframe being sent to the sink.

This needs a state machine to synchronize start/stop of
the playback with sending the right metadata along with
resetting the infoframe HDMI registers.

Add support for this HDR playback control state machine.

Change-Id: I229183531f7ccb48579e74d02e0a1dea1cb945ff
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-07-19 13:05:55 -07:00
Hemant Kumar
a6e27c659a usb: gadget: Disable USB2 LPM Support
USB device is failing to initiate L1 remote wakeup for following
scenarios:-

1) When USB host initiates L1 between control transfers
(Setup and Status Phase).
2)In case of BULK only composition when USB host initiates L1 after
PING retries on OUT endpoint. Device fails to initiate L1 remote
wakeup when SW issues start transfer.
3) When bus is suspended and Start transfer is issued on IN TRB

Hence disable high speed link power management support by advertising
bcdUSB as 2.0 in high speed mode.

Change-Id: I83124d5e3821ba979be4772bc04e41f05dc7492c
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-07-19 12:21:47 -07:00
Linux Build Service Account
8a9f65f16a Merge "msm: vdec: Updating DCVS buf count if thumbnail mode is enabled" 2017-07-19 09:10:37 -07:00
Linux Build Service Account
1882097f98 Merge "msm: vidc: Fix issue in cache operation range" 2017-07-19 09:10:36 -07:00
Linux Build Service Account
dce705e421 Merge "ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996" 2017-07-19 09:10:35 -07:00
Linux Build Service Account
cfbf44c503 Merge "usb: dwc3-msm: Add sysfs node to enable SS host compliance" 2017-07-19 09:10:34 -07:00
Linux Build Service Account
56b24afda6 Merge "diag: Add protection while de-initializing clients" 2017-07-19 09:10:33 -07:00
Linux Build Service Account
cb08d85f02 Merge "usb: gadget: f_qdss: Add support for mdm qdss channel" 2017-07-19 09:10:32 -07:00
Linux Build Service Account
333b2311aa Merge "msm: mdss: Fix possible memory overwrite in pgc config" 2017-07-19 09:10:30 -07:00
Linux Build Service Account
e4fd571dd3 Merge "security: pfe: Synchronize the file key usage" 2017-07-19 09:10:29 -07:00
Linux Build Service Account
f40ff25a8f Merge "msm: ipa: fix to incorrect structure access" 2017-07-19 09:10:28 -07:00
Linux Build Service Account
8ee12d5cb2 Merge "msm: ADSPRPC: avoid sending new requests to dsp while device_release" 2017-07-19 09:10:27 -07:00
Linux Build Service Account
42029fbe8c Merge "msm: mdss: dp: fix watchdog reset with DP connected in AOD mode" 2017-07-19 09:10:27 -07:00
Manoj Prabhu B
6e6b233c47 diag: Synchronize msg mask read and write on a peripheral
The patch synchronizes msg mask read and write on a peripheral
by proper protection of mask_info and msg_mask_table_count.

CRs-Fixed: 2042362, 2055291
Change-Id: If136012855834b0b8cba91eb66bf711750e8f372
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-07-19 20:51:10 +05:30
Animesh Kishore
330e834b2b msm: mdss: Remove check to cap requested mdp clock
Invalidate layers with requested mdp clock greater
than max supported.

Change-Id: Ic44787e6c0ad1cce105074533c1b6fd21c79da38
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
2017-07-19 18:12:37 +05:30
Vijay kumar Tumati
daca2e77e5 ARM: dts: msm: Add support for TOF sensor on msm8998 QVR
Add device tree entries to support depth sensor.

Change-Id: I7b2219b95e69b44a4048a4f163b1b079a55050e1
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-07-19 05:07:59 -07:00
Tharun Kumar Merugu
8048977b41 msm: ADSPRPC: Add exec permission for hyp_assign_phys
Add execute permission for hyp_assign_phys for adsp shared
memory region to allow for the memory to be reused by other user
space processes when this is not used by the remote processor.

Change-Id: I4f593584f332f8dc775afb68e6bfae1ea8f803fa
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-07-19 00:56:19 -07:00
Mohammed Javid
b10627f358 msm: ipa3: Add spinlock to avoid deleting already deleted list
There is a chance of deleting, already deleted list
in ipa_cleanup_wlan_rx_common_cache API.

Protect the wlan_comm_desc_list,
with the spinlock to avoid this deletion.

Change-Id: I10161f71b92d6d5fe06af62b65bf3d92d0d4512a
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-07-19 00:53:47 -07:00
Manoj Prabhu B
36bc4d8a53 diag: Process glink buffers in workqueue context
The patch initializes the glink buffers only to peripherals
supporting it and moves the handling of processing the data
received on glink buffers to process context.

CRs-Fixed: 2042362
Change-Id: I24522489ec5e499ff4ef97be0fef356a1671ec62
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-07-19 00:18:46 -07:00
Vijayavardhan Vennapusa
a5eddc1f77 USB: f_accessory: Check for length before updating accessory string
It is possible that host sends SEND_STRING control request with zero
length and in that case, driver ends up setting string as NULL. This
results in CTS failure for accessory test. Hence add check for length
and update string only if length is nonzero.

Change-Id: I4594a46f830f45fc49f80a74ec6042383edf007d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-07-19 11:20:48 +05:30
Jayant Shekhar
04ef55a74c Revert "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer"
This reverts commit 7d6f012ed1.
Traffic shaper is not required for 60fps 4k video. OT settings
will take care of this.

Change-Id: Id6e65da102c7fa43cf215129643c7a54e6a72085
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2017-07-19 10:38:22 +05:30
Yue Ma
33978c4cc4 ARM: dts: msm: Add fixed regulator for WLAN_EN pin in MSM8996
Since the PMIC GPIO runtime configuration is not feasible using
pinctrl framework, add it as fixed regulator for WLAN_EN pin.

Signed-off-by: Yue Ma <yuem@codeaurora.org>
CRs-fixed: 2071634
Change-Id: Ifd08bac34388389c6aced7e450cbf5c6ae37b36d
2017-07-18 12:44:34 -07:00
Linux Build Service Account
8069e32933 Merge "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer" 2017-07-18 11:51:43 -07:00
Linux Build Service Account
d2783f3e57 Merge "msm: ais: Fix NULL pointer dereference in msm.c." 2017-07-18 11:51:42 -07:00
Linux Build Service Account
cd8e767d77 Merge "msm: ais: fix crash during dumping io register" 2017-07-18 11:51:41 -07:00
Linux Build Service Account
ae8ba0547c Merge "msm: camera: sensor:validating the flash initialization parameters" 2017-07-18 11:51:40 -07:00
Linux Build Service Account
95cc997128 Merge "msm: camera: sensor: Fix a bug in CCI with I2C write" 2017-07-18 11:51:39 -07:00
Linux Build Service Account
32c410413b Merge "msm: camera: isp: Store the user ahb vote" 2017-07-18 11:51:38 -07:00
Neeraj Soni
2b364203d6 security: pfe: Synchronize the file key usage
Reference count is maintained to track the usage
of file key. This is required to avoid invalidate
operation while a file key is in active usage.

Change-Id: I8f6f562ec9a006e585503413c2196685535a5098
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2017-07-18 16:33:31 +05:30
Linux Build Service Account
95dbfdb0a5 Merge "msm: sensor: actuator: add conditional check for ioctl" 2017-07-18 03:06:57 -07:00
Linux Build Service Account
1f14d5b785 Merge "usb: pd: policy_engine: Add support to handle floating charger" 2017-07-18 03:06:55 -07:00
Linux Build Service Account
b52f6435ab Merge "qseecom: update on smcinvoke-aware listeners operations" 2017-07-18 03:06:54 -07:00
tharun kumar
86ad5044c3 msm: ADSPRPC: avoid sending new requests to dsp while device_release
When fastrpc_device_release is in progress, don't send any new
requets to DSP

Change-Id: I4d9e2f06485cde6dbd3d7aef402e3e853e0be998
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-07-18 02:47:45 -07:00
Mohammed Javid
17ecb3776a msm: ipa: fix to incorrect structure access
Accessing of incorrect structure pointer is causing
memory out of bound access, fixed issue by accessing
the correct structure pointer.Missed changes in previous
commit I3c2f5f7a97ca ("msm:ipa: Fix to incorrect structure access")
for proc header table cookie variable.Added missing changes.

Change-Id: I9260b8a4d4db0e76eb3849f64174e33e075d3736
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-07-18 12:01:26 +05:30
kaiwang
379e41427b msm: camera: sensor:validating the flash initialization parameters
Copying the flash initialization parameters from userspace memory to
kernel memory and in turn checking for the validity of the flash
initialization parameters pointer sent from userspace

CRs-Fixed: 2059812
Change-Id: I957c10959108eb08b263d439a9a449b90338b6db
Signed-off-by: kaiwang <kaiwang@codeaurora.org>
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2017-07-17 23:14:14 -07:00
Anirudh Ghayal
149a773bd2 power: qcom-step-chg: Add a new file for step-charging
Add a new file which manages the step charging solution.
It supports 2 sources for step-charging - VBATT and SOC.
The solution samples the VBATT/SOC periodically and
applies the FCC from a static look-up table.

Change-Id: I82f560df5a6a8ad0cd46e989f9944d93cb5529d7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-07-18 10:48:38 +05:30
Linux Build Service Account
b1b3c5a65e Merge "Revert "sched: Remove synchronize rcu/sched calls from _cpu_down"" 2017-07-17 18:40:08 -07:00
Linux Build Service Account
70ca4f11d0 Merge "drm/msm: fix Y420CMDB EDID block parsing" 2017-07-17 18:40:07 -07:00
Linux Build Service Account
047c607928 Merge "msm: rdbg: remote debugger support on CDSP" 2017-07-17 18:40:06 -07:00
Linux Build Service Account
89df4df1c0 Merge "cnss2: Send WAKE MSI base data to firmware" 2017-07-17 18:40:05 -07:00
Linux Build Service Account
a1dcf33ce1 Merge "Perf: arm64: avoid use of uninitialized variable" 2017-07-17 18:40:04 -07:00
Hemant Kumar
167d045c3d usb: gadget: f_qdss: Add support for mdm qdss channel
Driver needs to pass qdss data received from mdm qdss
bridge driver to host PC. This requires a software data
path using IN endpoint. Bridge driver needs to open
qdss_mdm channel and use exported write() API to pass
the qdss data received from mdm. Driver calls the notify
call back upon write completion.

Change-Id: I4d8ceaed0bf9c85aa17d3f49503cd690917cc117
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-07-17 15:39:54 -07:00