Commit graph

592464 commits

Author SHA1 Message Date
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
Krishna Manikandan
97e44bbbab msm: mdss: fix the use after free problem in rotator ioctl
Currently the fence fd is installed too early. This can cause a
use after free problem if the fence fd is closed in some other thread.
This change will install the fence fd where it is required and
eliminates the problem.

Change-Id: I5cf585ea87ef75fccae06da6cb5a6c16fc74eff3
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-07-19 10:31:16 +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
Yuan Zhao
2d3b7411ec msm: mdss: recalc pclk for Y420 format
Pixel clock should be 1/2 for Y420 format display.
Add check for Y420 format support and do pclk
calculation accordingly.

CRs-Fixed: 2071321
Change-Id: I49b366dbbf1f36f147afed3b238363f94e612b37
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2017-07-18 16:35:49 +08: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
Zhen Kong
7293d203cf qseecom: update on smcinvoke-aware listeners operations
With the introduction of MinkIPC for TA-to-TA communication,
if a request for blocking a TA (on a busy listener) is received
by qseecom, it may not be originated from the last TA to which
a command (or unblock response) was sent to. So, make change
to use a session_id instead of app_id to uniquely identify this
blocked request and a new cmd ID to support this smcinvoke-aware
listener operation.

Change-Id: I362e9acfa52c055b5759c210bb881da40f4e0776
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-07-17 13:40:31 -07:00
Hemant Kumar
9ffb0179b0 usb: pd: policy_engine: Add support to handle floating charger
There is a possibility of PMI detecting SDP as a floating charger
when connected to a PC. Workaround this issue by starting peripheral
stack for floating charger as well. Stop peripheral stack after 10 sec
in absence of USB device enumeration.

Change-Id: I6effee71affbe0baeb28c54ce799ade79ec4b42a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-07-17 13:26:13 -07:00
Hemant Kumar
ba4eab879d usb: dwc3-msm: Add support to handle floating D+/D- lines
There is a possibility of PMI detecting SDP as a floating charger
when connected to a PC. Workaround this issue by starting peripheral
stack for floating charger as well. After 10 sec check for USB device
enumeration using gadget USB state. If device is indeed connected to
SDP gadget usb state will be USB_STATE_DEFAULT or higher. This change
also helps to start peripheral stack in super speed usb compliance mode
when D+ and D- lines are floating.

Change-Id: Ia6dc668c549dca35e3273ece9a43be52c25d40ad
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-07-17 13:25:48 -07:00
Yue Ma
0894ea1926 cnss2: Send WAKE MSI base data to firmware
Add the support to send WAKE MSI base data to firmware through
HOST_CAP_REQ QMI message so that firmware can use it to wake up
WLAN host driver.

Change-Id: Ief8bfb6c3746bc0bfd833aa3bded09212773244d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-17 10:37:58 -07:00
Yue Ma
5607c6f1d3 cnss2: Update QMI WLFW header files
Add changes for PMIC XO calibration data support. Also Add one
optional field of HOST_CAP_REQ message to indicate the WAKE MSI
base data that driver can support.

Change-Id: I6cdfa3d5e485fd1a772f1a5c465cfba3e28048a7
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-17 10:37:05 -07:00
Yue Ma
f2573341c1 cnss2: Support runtime power on/off WLAN device
WLAN host driver may do runtime mode switch which requires platform
driver to reset device and re-download firmware. Add the changes for
runtime power on/off WLAN device to support runtime mode switch.

Change-Id: I08d3635afbaafb73691fbdf5d25877fb433bae18
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-17 10:36:27 -07:00
Linux Build Service Account
502914e130 Merge "msm: vidc: Free pixel plane handle when map extradata fails" 2017-07-17 05:28:29 -07:00
Linux Build Service Account
586a3ac451 Merge "power: smb-lib: Improve the OTG enable workaround for PM660" 2017-07-17 05:28:28 -07:00
Linux Build Service Account
9875d5f19c Merge "msm: ipa3: fix compatibility with ipa user space" 2017-07-17 05:28:28 -07:00
Linux Build Service Account
0179cf4d43 Merge "mmc: sdhci-msm: Set dll to good phase while sending cmd13 in tuning" 2017-07-17 05:28:27 -07:00
Linux Build Service Account
3767fad4ec Merge "msm:ipa: using rate limit api for ioctl calls" 2017-07-17 05:28:26 -07:00
Sayali Lokhande
cc705faa5b mmc: sdhci: Enable CDR for cmdq mode
From sdm660 onwards, the sdcc core will support
CDR in CMDQ mode, so it needs to be enabled.
This change is to enable CDR for cmdq mode.

Change-Id: I64681a3c94b6bd4191337c5c014171ff32a7d3c1
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-07-17 13:36:58 +05:30
Amir Samuelov
534da7ce1b spcom: ignore CONNECTED notification while closing the channel
The spcom_notify_state() callback, is called by glink driver.
In case of calling glink_open() and shortly after that calling
glink_close(), the glink might notify of channel CONNECTED while
glink_closed() is called.
Avoid updating the glink channel upon CONNECTED event, if in process
of closing the channel.

Change-Id: If5cbec1a7d1653c56b5350afcd3cee61e1ae05fa
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-07-17 00:01:19 -07:00
Mohit Aggarwal
c032cdd08e diag: Add protection while de-initializing clients
Currently, while de-initializing clients, there is
a possibility of using already freed memory. The
patch adds proper protection to fix the issue.

CRs-Fixed: 2068569
Change-Id: I4b397a82e03fa2f1c84cfa8ca912cdb6a51ba08b
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-07-16 23:58:09 -07:00
Anirudh Ghayal
160b3f9169 power: smb-lib: Improve the OTG enable workaround for PM660
There are scenarios where inductive load with higher inrush
current may fail to turn on the OTG. Improve the OTG turn-on
sequence by gradually increasing the current-limit if it
fails to turn-on with a lower current.

CRs-Fixed: 2075050
Change-Id: I41c1e25257a4ee87f00287e07773331b1445b5f2
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-07-17 12:22:42 +05:30
Manish Dewangan
ac162df12c ASoc: msm: qdspv2: Fix latency calculation in pcm offload path
Continuous latency for pcm offload is incorrect as buffer offset
is not getting considered while pattern matching.

Fix this by considering buffer offset while calculating
continuous latency.

CRs-Fixed: 2059729
Change-Id: I943da364f99a4152119d34a98b343e6e1cbad5b8
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2017-07-16 23:19:03 -07:00
Nikhilesh Reddy
1b4ccee624 vfs: Add support to debug umount failures
When umount of a partition fails with EBUSY there is
no indication as to what is keeping the mount point busy.

Add support to print a kernel log showing what files
are open on this mount point.

Also add a new new config option CONFIG_FILE_TABLE_DEBUG to
enable this feature.

Change-Id: Id7a3f5e7291b22ffd0f265848ec0a9757f713561
Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
Signed-off-by: Ankit Jain <ankijain@codeaurora.org>
2017-07-17 11:39:09 +05:30
Sravan Kumar D.V.N
99a3334a22 msm: mdss: Fix possible memory overwrite in pgc config
Possible memory overwrite in pgc get config is fixed by
eliminating direct reference to user data.

Change-Id: I7117848bacb8e69720eb3121d02bbacf02cab13a
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
2017-07-16 22:34:52 -07:00
tharun kumar
da37ca0b1f msm: rdbg: remote debugger support on CDSP
The Remote Debugger driver allows a debugger running
on a host PC to communicate with a remotestub running
on peripheral subsystems.

Change-Id: I3bb02bd784b6b378d707ff8a6422ae9fa912d28d
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-07-16 21:35:41 -07:00
Linux Build Service Account
0ea2b1fc15 Merge "ASoC: msm: Add hwdep node for NOIRQ FE" 2017-07-16 21:04:58 -07:00
Linux Build Service Account
6a8c2e8775 Merge "ASoC: msm: qdsp6v2: Set path type to LIVE_REC in LISTEN passthrough case" 2017-07-16 21:04:57 -07:00
Linux Build Service Account
ca718c036b Merge "ASoC: mbhc: Fix audio mute for special headset" 2017-07-16 21:04:57 -07:00