Commit graph

595231 commits

Author SHA1 Message Date
Linux Build Service Account
b9b5a66b01 Merge "msm: camera: Prevent use-after-free in v4l2_event_subscribe." 2017-11-25 16:21:07 -08:00
Linux Build Service Account
1aacb888c5 Merge "Bluetooth: Fix for checking proper user-supplied buffers" 2017-11-24 21:53:39 -08:00
Linux Build Service Account
9aaad790a3 Merge "Bluetooth - Fix for checking proper user-supplied buffers" 2017-11-24 21:53:38 -08:00
Linux Build Service Account
3d1779cb8d Merge "msm: msm_bus: Add mutex lock for floor vote data" 2017-11-24 12:07:40 -08:00
Veerabhadrarao Badiganti
e8dce7e56d mmc: card: Requeue the request if it fails during issuing
In the cmdq request issuing path, cq driver invokes ICE driver calls
to get the configuration for encrypting/decrypting the data requests.
The ice driver in-turn makes calls to secure world (TZ) which can
process only single task at a time. If TZ is busy in servicing
something else when ICE driver invokes it, ICE driver would return
-EBUSY to cmdq driver.

The requests which failed due to ice error are neither issued to h/w
nor errored out, so resulting in filesystem corruptions.

We must re-queue the requests which failed with -EBUSY error, so that
it will be re-issued again as very next request.

Change-Id: I4557a5c3aca8dd53740e48e516e6011787df50d8
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-11-24 06:03:15 -08:00
Balvinder Singh
5c5e40bb38 Bluetooth - Fix for checking proper user-supplied buffers
During patch download of devices, size validations & zero alloc
the buffers to ensure values passed are in range

CRs-fixed: 2084692
Change-Id: Ie1cd76fe68766d6d12d7262202e48c18ebe42274
Signed-off-by: Balvinder Singh <bpsingh@codeaurora.org>
2017-11-24 05:59:19 -08:00
Veerabhadrarao Badiganti
48f0cccb8c mmc: core: Return the error if command queue request fails
command-queue request may fail during preparation/issuing in some
cases. In case if it fails, the error code needs to be propagated back
to the function which initiated the request so that the request can be
handled appropriately.

Change-Id: Ia6946c14f0c106fb30bd70ca5c9e600c516fdf55
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-11-24 05:53:17 -08:00
Veerabhadrarao Badiganti
17f54d16a1 mmc: cmdq_hci: Remove runtime PM vote if request issuing fails
Remove the runtime PM vote if command-queue request processing fails.
Otherwise, in case command-queue request preparation fails,
the runtime PM votes go out of sync and sdhc platform device suspend
might get blocked.

Change-Id: Ibe95e1653f7558a7994b606922a1625b429d57f6
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-11-24 19:03:47 +05:30
Balvinder Singh
f75c8a500b Bluetooth: Fix for checking proper user-supplied buffers
During patch download procedure, size validation and zero
allocation of buffers are done to ensure values passed are
in permissible range

CRs-fixed: 2082452
Change-Id: I1c14e30f14af0279258efd0eadd8ab8ed6d8cf55
Signed-off-by: Balvinder Singh <bpsingh@codeaurora.org>
2017-11-24 05:32:41 -08:00
Ajay Agarwal
745e97d518 ARM: dts: msm: Pass usb controller id for 8996
This allows to uniquely identify the multiple controllers
on MSM8996.

Change-Id: I99296cee886119e59af67e2d1a3983a28015b720
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-11-24 14:50:24 +05:30
Hemant Kumar
9730f9cdc0 sound: usb: Provide controller number in QMI response
In order to support tunnel mode on multiple usb conttollers
qmi service needs to provide the controller number in
enable audio stream QMI response so that remote entity
programs appropriate usb controller to initiate data transfer
with USB audio device. Also, update QMI response message data
structure with optional speed_info.

Change-Id: I1d4968c19601a3984bf60e7754a6d88473540166
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-11-24 14:50:24 +05:30
Hemant Kumar
c611d78437 usb: core: Add helper function to return controller id
Function provides controller id used by a remote entity
to identify which usb controller to program to initiate
data transfer.

Change-Id: Ied396f34496104c139a7910ee86844c124e6803f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-11-24 14:50:23 +05:30
Hemant Kumar
97618148ce usb: host: xhci: Add helper function to return controller id
Function provides controller id used by a remote entity
to identify which usb controller to program to initiate
data transfer.

Change-Id: Ie700363c1a4a19aeb6b51305c97298f3b4d6e387
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-11-24 14:50:23 +05:30
Hemant Kumar
03a86f5cb1 usb: host: Add support for usb core indexing
Unique usb core id is used to differentiate between
different usb controllers.

Change-Id: Ibd886f704e7ecedfbf035b8e5adea2852ddf25bf
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-11-24 14:50:11 +05:30
Jishnu Prakash
958acd2989 msm: sps: Restore ipc log destroy commands
Changes got reverted accidentally with commit e498154c09
("msm: sps: Update debug message format specifier")
restoring them again.

Change-Id: I6c2c7b4d636131341139d89ff4d59b608df5da9b
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2017-11-24 13:20:19 +05:30
Linux Build Service Account
00a019336f Merge "msm: wlan: Update regulatory database" 2017-11-23 23:38:12 -08:00
c_mtharu
4222d44cf0 msm: ADSPRPC: Change SSC VMID from 5 to 38
Change Dest VM of SSC from 5 to 38 and it can be unmapped to
HLOS through hyp_assign.

Change-Id: I8e4ace8e9722d4fa79b553ad6b8d29353954f8c5
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-11-24 12:17:28 +05:30
Sarada Prasanna Garnayak
2fde186579 ath10k: add support for wowlan offload for wcn3990 WLAN module
Define data structure and callback for the ARP and NS offload
for the ath10k wcn3990 WLAN module. Configure the ARP offload
parameter and enable ARP offload request flag for each vdev
if the vdev in station mode.

This feature adds support to wakeup the device from sleep state
through wowlan event if the ARP request pattern matched with
pattern configured by WLAN module during wow suspend.

CRs-Fixed: 2146265
Change-Id: I54c3491493ad46a7db2adbf71ae1668cf9a88e51
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-23 22:47:27 -08:00
Odelu Kukatla
40419c3f90 msm: msm_bus: Add mutex lock for floor vote data
Floor vote data needs to be protected with mutex lock to
avoid double free of memory due to race condtion.

Change-Id: Ifaa01a14d273ccba6b9463aff3a41c0038b05f06
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-11-23 22:32:18 -08:00
Ajay Agarwal
7b3d439119 platform: msm: Set USB speed to SUPER before calling notifier
Currently we set the USB speed to SUPER after calling vbus/id
notifier callback. As a part of cable connect, is USB speed
is set to SUPER after connect resume_work is called, then we
do not initialise the SSPHY. So clocks are OFF.
But as part of cable disconnect, if USB speed is set to SUPER
before disconnect resume_work is called, then we try to
suspend SSPHY resulting in unclocked access.

Fix this by mandatorily setting USB speed to SUPER before
queuing VBUS/ID notifier.

Change-Id: Iac4411ddafd87909b1b26c9b5a8eb354a073d268
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-11-24 11:28:52 +05:30
Linux Build Service Account
af5f70355c Merge "msm: vidc: Fix memory leak issue" 2017-11-23 14:01:18 -08:00
Linux Build Service Account
4271fd01cd Merge "msm: vidc: Update extradata address mapping" 2017-11-23 14:01:17 -08:00
Linux Build Service Account
02f487d282 Merge "msm: camera: isp: Enable epoch2 interrupt for pipeline 47" 2017-11-23 14:01:16 -08:00
Linux Build Service Account
aa673858c8 Merge "ath10k: Enable WoWLAN for the wcn3990 snoc wlan module" 2017-11-23 14:01:14 -08:00
Linux Build Service Account
0cc98101b4 Merge "scsi: ufs: Get TX and RX fsm state in case of abort" 2017-11-23 14:01:13 -08:00
Linux Build Service Account
349c988a25 Merge "drm/msm: protect register dumps and debugfs with mutex" 2017-11-23 14:01:12 -08:00
Linux Build Service Account
7ef7dfa0e9 Merge "USB: gsi: Ring Doorbell to GSI if check for suspend fails" 2017-11-23 14:01:10 -08:00
Linux Build Service Account
2cd7146bb1 Merge "ARM: dts: msm: update the new HDMI splash address on msm8996" 2017-11-23 05:00:02 -08:00
Sriharsha Allenki
124b6cc08d defconfig: msm: Enable USB audio QMI service driver for 8996
This allows APPS USB XHCI driver to offload the USB audio
ISOC data transfer to remote processor. USB audio QMI driver
starts a QMI service to communicate with remote processor to
exchange audio stream related information.

Change-Id: If7bcd41eb5e169551f18d8ed64d38fe17fa1df91
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-11-23 17:45:24 +05:30
Dilip Kota
200011cad3 spi: spi_qsd: Add slave support for QUP core
The QUP core can be programmed to operate as an SPI slave. This
change modifies the existing SPI master driver and adds the slave
functionality.

Change-Id: I73189339956e0fd52449391737fb1e616a6e0bb2
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
2017-11-23 17:00:38 +05:30
Rajeev Kumar Sirasanagandla
2fc630bcb7 msm: wlan: Update regulatory database
Remove 160 MHz band-width support for VN as per master sheet

CRs-Fixed: 2145374
Change-Id: Id0cda10bf3343bccda5eea08ae5369754bb40edb
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-11-23 15:00:20 +05:30
Lokesh Kumar Aakulu
09a7db6cfa msm: camera: isp: Enable epoch2 interrupt for pipeline 47
Enable epoch2 interrupt and configure the line as asked
by input camif configuration from user library

Change-Id: Id4f623a907b385a17d63c35fc7746117b666d885
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
2017-11-23 14:27:51 +05:30
Vasanthakumar Thiagarajan
d0ba49498c cfg80211: Make pre-CAC results valid only for ETSI domain
DFS requirement for ETSI domain (section 4.7.1.4 in
ETSI EN 301 893 V1.8.1) is the only one which explicitly
states that once DFS channel is marked as available afer
the CAC, this channel will remain in available state even
moving to a different operating channel. But the same is
not explicitly stated in FCC DFS requirement. Also, Pre-CAC
requriements are not explicitly mentioned in FCC requirement.
Current implementation in keeping DFS channel in available
state is same as described in ETSI domain.

For non-ETSI DFS domain, this patch gives a grace period of 2 seconds
since the completion of successful CAC before moving the channel's
DFS state to 'usable' from 'available' state. The same grace period
is checked against the channel's dfs_state_entered timestamp while
deciding if a DFS channel is available for operation. There is a new
radar event, NL80211_RADAR_PRE_CAC_EXPIRED, reported when DFS channel
is moved from available to usable state after the grace period. Also
make sure the DFS channel state is reset to usable once the beaconing
operation on that channel is brought down (like stop_ap, leave_ibss
and leave_mesh) in non-ETSI domain.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
Git-commit: b35a51c7dd25a823767969e3089542d7478777e9
[svishnoi@codeaurora.org: removed NaN interface type from switch case in net/wireless/chan.c
as NaN interface is not supported]

Change-Id: Iba19513d1e40fe5da129d6251212c33d1361fec3
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
2017-11-23 00:33:51 -08:00
Sayali Lokhande
8492efd5d8 scsi: ufs: Get TX and RX fsm state in case of abort
If ufshcd_print_fsm_state() is called during UIC
commands failure, mutex lockup issue is observed
for uic_cmd_mutex. To fix this, read TX and RX
FSM states for UFS aborts cases only, for debugging
purpose.

Change-Id: I716251ec90ef406d9cff1f8a6aa6bc2f8f46926d
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-11-23 13:37:49 +05:30
Linux Build Service Account
9f4c045a5c Merge "ath10k: configure the vdev listen interval before wow suspend" 2017-11-22 19:51:29 -08:00
Linux Build Service Account
05754cb5cd Merge "msm: ipa: Fix to race condition proxy clock voting" 2017-11-22 19:51:28 -08:00
Linux Build Service Account
446ed8a2e0 Merge "msm: ipa: UAPI security code changes" 2017-11-22 19:51:27 -08:00
Linux Build Service Account
7b7176c9b2 Merge "drm/msm: implement HDMI teardown sequence for DRM driver" 2017-11-22 19:51:25 -08:00
Linux Build Service Account
501dbd9ee7 Merge "mhi: core: fix sequence for new transfer" 2017-11-22 19:51:24 -08:00
Linux Build Service Account
f86c482aa8 Merge "msm: ipa3: Fix IPA aggregation force close call" 2017-11-22 19:51:23 -08:00
Linux Build Service Account
fb37a1b841 Merge "msm: sps: Update debug message format specifier" 2017-11-22 19:51:22 -08:00
Linux Build Service Account
e17b8bfc9c Merge "Revert "scsi: ufshcd: Flush exception event before suspend"" 2017-11-22 19:51:21 -08:00
Linux Build Service Account
de4072553f Merge "scsi: ufs: Fix off-by-one bug in ufs debugfs driver" 2017-11-22 19:51:20 -08:00
Linux Build Service Account
0543cba80c Merge "arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE" 2017-11-22 19:51:19 -08:00
Linux Build Service Account
a618c4e225 Merge "msm: sde: disable support for v4l2 event subscription" 2017-11-22 19:51:16 -08:00
Linux Build Service Account
070ac3c30f Merge "msm: mdss: hdmi: clear deep color bits in the HDMI controller" 2017-11-22 19:51:15 -08:00
Linux Build Service Account
bc51bf2f0c Merge "smb-lib: allow hvdcp if pd is disabled" 2017-11-22 19:51:14 -08:00
Linux Build Service Account
07f371daed Merge "icnss: Send early modem crash notification to wlan driver" 2017-11-22 19:51:13 -08:00
Linux Build Service Account
241229af7f Merge "usb: dwc3: Fix incorrect ep0 state on reset" 2017-11-22 19:51:12 -08:00
Sarada Prasanna Garnayak
8bb3214565 ath10k: Enable WoWLAN for the wcn3990 snoc wlan module
Register snoc bus layer suspend/resume PM ops and configure
the wakeup source for the device to adds support for WOWLAN
feature for the wcn3990 snoc wlan module.

CRs-Fixed: 2139961
Change-Id: Ic43414b965aee27564f8bbbe237c706f5262c2e4
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-22 21:29:30 +05:30