OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "platform: msm: Set USB speed to SUPER before calling notifier"
Linux Build Service Account [Tue, 28 Nov 2017 21:00:57 +0000 (13:00 -0800)]
Merge "platform: msm: Set USB speed to SUPER before calling notifier"

6 years agomsm: ipa: dynamic memory leak fix
Michael Adisumarta [Thu, 2 Nov 2017 01:16:48 +0000 (18:16 -0700)]
msm: ipa: dynamic memory leak fix

This is a fix for dynamic memory leak seen with incorrectly
allocating memory of a different size than with intended
size.

Change-Id: I821442ee6728ea90ceab7644e194f4e06369333a
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
6 years agodrm/msm: Save buffer iova's for rd-dump
Sharat Masetty [Tue, 28 Nov 2017 12:04:01 +0000 (17:34 +0530)]
drm/msm: Save buffer iova's for rd-dump

rd-dump needs the buffer iova's captured in the submit path. This helps
the offline parser construct the relocs correctly. Save the buffer
iova's for the buffers which were not mapped yet and then call the API
to rd-dump the submission.

Change-Id: Ic771f3e76d8b3b943300e69fd62320f387c2d4c0
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
6 years agodrm/msm: Add API support for getting GPU hang timeout
Sharat Masetty [Mon, 13 Nov 2017 13:18:22 +0000 (18:48 +0530)]
drm/msm: Add API support for getting GPU hang timeout

Userspace needs to know the GPU timeout value to support Khronos robust
GPU timeout extension. The timeout value is returned to the user in
millisecond resolution.

Change-Id: Iba2ff43fce6d21da240356b392afa7a6e7a618ad
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
6 years agoMerge "defconfig: msm: Enable SPI slave framework on 8996 Auto"
Linux Build Service Account [Tue, 28 Nov 2017 11:16:33 +0000 (03:16 -0800)]
Merge "defconfig: msm: Enable SPI slave framework on 8996 Auto"

6 years agoMerge "defconfig: msm: enable memory hotplug support"
Linux Build Service Account [Tue, 28 Nov 2017 11:16:29 +0000 (03:16 -0800)]
Merge "defconfig: msm: enable memory hotplug support"

6 years agoMerge "arm64: Honor limits set by bootloader"
Linux Build Service Account [Tue, 28 Nov 2017 11:16:28 +0000 (03:16 -0800)]
Merge "arm64: Honor limits set by bootloader"

6 years agoMerge "arm64: Add "remove" probe driver for memory hot-remove"
Linux Build Service Account [Tue, 28 Nov 2017 11:16:27 +0000 (03:16 -0800)]
Merge "arm64: Add "remove" probe driver for memory hot-remove"

6 years agoMerge "arm64: Hot-remove implementation for arm64"
Linux Build Service Account [Tue, 28 Nov 2017 11:16:26 +0000 (03:16 -0800)]
Merge "arm64: Hot-remove implementation for arm64"

6 years agomsm: ADSPRPC: validate context pointer with magic number
c_mtharu [Fri, 24 Nov 2017 13:54:44 +0000 (19:24 +0530)]
msm: ADSPRPC: validate context pointer with magic number

Validate context pointer using magic number instead of searching
through context list. It removes the usage of spin lock in interrupt
handler for avoiding deadlock and reducing latency.

Change-Id: I2492a7984a8d6545618a9cfb7a2d239d03ddd5a2
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agodefconfig: msm: Enable SPI slave framework on 8996 Auto
Dilip Kota [Tue, 28 Nov 2017 04:31:48 +0000 (10:01 +0530)]
defconfig: msm: Enable SPI slave framework on 8996 Auto

Enable SPI slave protocol handlers.

Change-Id: I9458d6445db5f78a08cff9796d4f2e7afbc2909c
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
6 years agoMerge "msm: sps: Restore ipc log destroy commands"
Linux Build Service Account [Tue, 28 Nov 2017 00:06:01 +0000 (16:06 -0800)]
Merge "msm: sps: Restore ipc log destroy commands"

6 years agoMerge "defconfig: msm: Compile ADV7481 as a module"
Linux Build Service Account [Tue, 28 Nov 2017 00:05:59 +0000 (16:05 -0800)]
Merge "defconfig: msm: Compile ADV7481 as a module"

6 years agoMerge "msm: ADSPRPC: Change SSC VMID from 5 to 38"
Linux Build Service Account [Tue, 28 Nov 2017 00:05:58 +0000 (16:05 -0800)]
Merge "msm: ADSPRPC: Change SSC VMID from 5 to 38"

6 years agoMerge "ARM: dts: msm: Remove useless DSI panel commands for adv7533"
Linux Build Service Account [Tue, 28 Nov 2017 00:05:57 +0000 (16:05 -0800)]
Merge "ARM: dts: msm: Remove useless DSI panel commands for adv7533"

6 years agoMerge "mmc: card: Requeue the request if it fails during issuing"
Linux Build Service Account [Tue, 28 Nov 2017 00:05:55 +0000 (16:05 -0800)]
Merge "mmc: card: Requeue the request if it fails during issuing"

6 years agoDRM: SDE: Update the hdmi bridge to handle HPD clock
Camus Wong [Thu, 23 Nov 2017 23:03:21 +0000 (18:03 -0500)]
DRM: SDE: Update the hdmi bridge to handle HPD clock

For non-pluggable display, it should not enable HPD.  Instead, the
bridge should handle all the clocks for HDMI.  Also the scrambler
should be activated after the HDMI has power on the clock.

Change-Id: I9162a49b8f314de4d30b0d82c7867a639ddf05a6
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agodefconfig: msm: Compile ADV7481 as a module
Rahul Sharma [Mon, 30 Oct 2017 18:42:53 +0000 (00:12 +0530)]
defconfig: msm: Compile ADV7481 as a module

Compile ADV7481 as a module, as part of kernel modularization
requirement.

Change-Id: Ie3e9669d05646503de6ddd3468cbd6da4ee4eae4
Suggested-by: Resmi Rajendran <resmir@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoMerge "msm: mdss: hdmi: reset hdmi max supported TMDS clock"
Linux Build Service Account [Mon, 27 Nov 2017 12:36:18 +0000 (04:36 -0800)]
Merge "msm: mdss: hdmi: reset hdmi max supported TMDS clock"

6 years agoMerge "mmc: core: Return the error if command queue request fails"
Linux Build Service Account [Mon, 27 Nov 2017 12:36:17 +0000 (04:36 -0800)]
Merge "mmc: core: Return the error if command queue request fails"

6 years agoMerge "ARM: dts: msm: add psci for msm8996 auto virtual platform"
Linux Build Service Account [Mon, 27 Nov 2017 12:36:15 +0000 (04:36 -0800)]
Merge "ARM: dts: msm: add psci for msm8996 auto virtual platform"

6 years agosmb1351: Fix parallel ICL configuration
Ashay Jaiswal [Mon, 27 Nov 2017 07:11:02 +0000 (12:41 +0530)]
smb1351: Fix parallel ICL configuration

In slave configuration "POWER_SUPPLY_PROP_CURRENT_MAX" fails to
suspend USB input path for 0/2mA current request. Fix this by
separately handling 0/2mA request to suspend input.

CRs-Fixed: 2148379
Change-Id: Id9b7887c4f2f924d9e4c8484947d74baa96eb8a3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
6 years agobattery: fix ordering of ICL/FCC configuration
Ashay Jaiswal [Thu, 16 Nov 2017 08:32:20 +0000 (14:02 +0530)]
battery: fix ordering of ICL/FCC configuration

Current parallel design has fixed order of configuring
ICL/FCC between main and parallel charger, this could
lead to a situation where total(main + parallel) ICL/FCC
goes beyond maximum configured value.
Fix this by dynamic ordering of ICL/FCC between main and
parallel based on AICL change.

CRs-Fixed: 2148379
Change-Id: Ia1ff7093d1de9205ce8072760c80ba0a58638462
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
6 years agoARM: dts: msm: Remove useless DSI panel commands for adv7533
Daocai [Thu, 23 Nov 2017 07:27:21 +0000 (15:27 +0800)]
ARM: dts: msm: Remove useless DSI panel commands for adv7533

Remove "qcom,mdss-dsi-on-command" and "mdss-dsi-off command"
commands for boot up performance optimization.
The two commands are for native DSI panels without a bridge
chip. However,AUTO platform has adv7533 bridge chip,which
is controlled by I2C instead of the above two commands.
In addition,the two command will cause extra wait for about
210ms in dsi_panel_tx_cmd_set() for dsi_display_enbale().
This make drmAtomicCommit() in libdrm a little slower,
so total boot time will be longer.

Change-Id: I848d189d4055b5626eadd809fc5da7c9c4ecbcce
Signed-off-by: Daocai <daocai@codeaurora.org>
6 years agomsm: mdss: hdmi: reset hdmi max supported TMDS clock
Narender Ankam [Tue, 17 Oct 2017 08:01:11 +0000 (13:31 +0530)]
msm: mdss: hdmi: reset hdmi max supported TMDS clock

In current HDMI driver, SVDs and DTDs derived from EDID
of a DS HDMI sink are checked for supportness based
on previous connection's max TMDS clock.
Always reset the max TMDS clock supported by source
before reading EDID from DS HDMI device.

Change-Id: If5f58562f186634b1ed066fdebfc9fa6b55c6e8a
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
6 years agoARM: dts: msm: add psci for msm8996 auto virtual platform
Yimin Peng [Tue, 14 Nov 2017 13:10:02 +0000 (21:10 +0800)]
ARM: dts: msm: add psci for msm8996 auto virtual platform

Hypervisor supports psci-1.0 not 0.1 and new function IDs
have been defined in psci driver.

Change-Id: Id257dd264f9ffc812879997c0b227e53f84c86a2
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoMerge "spi: spi_qsd: Add slave support for QUP core"
Linux Build Service Account [Mon, 27 Nov 2017 03:28:15 +0000 (19:28 -0800)]
Merge "spi: spi_qsd: Add slave support for QUP core"

6 years agoMerge "ARM: msm: dts: Enable support for audio tunneling mode for msm8996"
Linux Build Service Account [Mon, 27 Nov 2017 03:28:14 +0000 (19:28 -0800)]
Merge "ARM: msm: dts: Enable support for audio tunneling mode for msm8996"

6 years agoMerge "ath10k: add support for wowlan offload for wcn3990 WLAN module"
Linux Build Service Account [Sun, 26 Nov 2017 09:55:10 +0000 (01:55 -0800)]
Merge "ath10k: add support for wowlan offload for wcn3990 WLAN module"

6 years agoMerge "cfg80211: Make pre-CAC results valid only for ETSI domain"
Linux Build Service Account [Sun, 26 Nov 2017 09:55:07 +0000 (01:55 -0800)]
Merge "cfg80211: Make pre-CAC results valid only for ETSI domain"

6 years agoMerge "msm: camera: Prevent use-after-free in v4l2_event_subscribe."
Linux Build Service Account [Sun, 26 Nov 2017 00:21:07 +0000 (16:21 -0800)]
Merge "msm: camera: Prevent use-after-free in v4l2_event_subscribe."

6 years agoMerge "Bluetooth: Fix for checking proper user-supplied buffers"
Linux Build Service Account [Sat, 25 Nov 2017 05:53:39 +0000 (21:53 -0800)]
Merge "Bluetooth: Fix for checking proper user-supplied buffers"

6 years agoMerge "Bluetooth - Fix for checking proper user-supplied buffers"
Linux Build Service Account [Sat, 25 Nov 2017 05:53:38 +0000 (21:53 -0800)]
Merge "Bluetooth - Fix for checking proper user-supplied buffers"

6 years agoMerge "msm: msm_bus: Add mutex lock for floor vote data"
Linux Build Service Account [Fri, 24 Nov 2017 20:07:41 +0000 (12:07 -0800)]
Merge "msm: msm_bus: Add mutex lock for floor vote data"

6 years agommc: card: Requeue the request if it fails during issuing
Veerabhadrarao Badiganti [Mon, 9 Oct 2017 15:55:05 +0000 (21:25 +0530)]
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>
6 years agoBluetooth - Fix for checking proper user-supplied buffers
Balvinder Singh [Mon, 6 Nov 2017 06:20:46 +0000 (11:50 +0530)]
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>
6 years agommc: core: Return the error if command queue request fails
Veerabhadrarao Badiganti [Mon, 9 Oct 2017 14:43:45 +0000 (20:13 +0530)]
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>
6 years agommc: cmdq_hci: Remove runtime PM vote if request issuing fails
Veerabhadrarao Badiganti [Mon, 9 Oct 2017 14:21:46 +0000 (19:51 +0530)]
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>
6 years agoBluetooth: Fix for checking proper user-supplied buffers
Balvinder Singh [Mon, 6 Nov 2017 06:25:30 +0000 (11:55 +0530)]
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>
6 years agosound: usb: Update QMI indication message
Hemant Kumar [Fri, 6 Oct 2017 18:25:25 +0000 (11:25 -0700)]
sound: usb: Update QMI indication message

Following updates required to sync with remote client QMI
messaging for audio service:-

1) Add usb core id in disconnect indication to support multi
instance of remote client. Update uaudio_disconnect_cb() to send
usb core id.
3) Add USB_AUDIO_DEVICE_SPEED_SUPER_PLUS_V01 in to usb device
speed enum list. Update get_speed_info() API to reflect the same.

Change-Id: I2501c037e519454a4f84ec3c1ab9e423eb771544
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agousb: host: xhci: Remove helper API retuning dcba dma address
Hemant Kumar [Fri, 22 Sep 2017 21:03:22 +0000 (14:03 -0700)]
usb: host: xhci: Remove helper API retuning dcba dma address

Since dcba dma address is not required by class driver
therefore remove the API definition.

Change-Id: I6851729f1ad4254bbfaf179755d9afa7870e8e01
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agousb: core: Remove helper APIs returning dcba dma address
Hemant Kumar [Fri, 22 Sep 2017 20:56:04 +0000 (13:56 -0700)]
usb: core: Remove helper APIs returning dcba dma address

Since dcba dma address is not required by class driver
therefore remove the API definitions.

Change-Id: I2623cf3bf406ca0d47ea2549b5163d9e9b7351a1
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agosound: usb: Pass device speed instead of dcba information
Hemant Kumar [Fri, 22 Sep 2017 19:34:52 +0000 (12:34 -0700)]
sound: usb: Pass device speed instead of dcba information

dcba information passed to remote entity was only used to
get device speed. Instead of mapping dcba memory simply pass
enumerated device speed information in QMI response.

Change-Id: I5246b18ec1c5bfa1940b506d1de461f78eb14c6a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
6 years agoARM: dts: msm: Pass usb controller id for 8996
Ajay Agarwal [Thu, 23 Nov 2017 05:33:06 +0000 (11:03 +0530)]
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>
6 years agosound: usb: Provide controller number in QMI response
Hemant Kumar [Fri, 18 Aug 2017 00:34:05 +0000 (17:34 -0700)]
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>
6 years agousb: core: Add helper function to return controller id
Hemant Kumar [Fri, 18 Aug 2017 00:01:00 +0000 (17:01 -0700)]
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>
6 years agousb: host: xhci: Add helper function to return controller id
Hemant Kumar [Fri, 18 Aug 2017 23:59:33 +0000 (16:59 -0700)]
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>
6 years agousb: host: Add support for usb core indexing
Hemant Kumar [Fri, 18 Aug 2017 23:40:58 +0000 (16:40 -0700)]
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>
6 years agomsm: sps: Restore ipc log destroy commands
Jishnu Prakash [Fri, 24 Nov 2017 07:50:19 +0000 (13:20 +0530)]
msm: sps: Restore ipc log destroy commands

Changes got reverted accidentally with commit e498154c0976
("msm: sps: Update debug message format specifier")
restoring them again.

Change-Id: I6c2c7b4d636131341139d89ff4d59b608df5da9b
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
6 years agoMerge "msm: wlan: Update regulatory database"
Linux Build Service Account [Fri, 24 Nov 2017 07:38:13 +0000 (23:38 -0800)]
Merge "msm: wlan: Update regulatory database"

6 years agomsm: ADSPRPC: Change SSC VMID from 5 to 38
c_mtharu [Fri, 24 Nov 2017 06:47:28 +0000 (12:17 +0530)]
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>
6 years agoath10k: add support for wowlan offload for wcn3990 WLAN module
Sarada Prasanna Garnayak [Thu, 23 Nov 2017 11:04:45 +0000 (16:34 +0530)]
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>
6 years agomsm: msm_bus: Add mutex lock for floor vote data
Odelu Kukatla [Thu, 23 Nov 2017 17:06:03 +0000 (22:36 +0530)]
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>
6 years agoplatform: msm: Set USB speed to SUPER before calling notifier
Ajay Agarwal [Thu, 23 Nov 2017 16:30:00 +0000 (22:00 +0530)]
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>
6 years agoMerge "msm: vidc: Fix memory leak issue"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:19 +0000 (14:01 -0800)]
Merge "msm: vidc: Fix memory leak issue"

6 years agoMerge "msm: vidc: Update extradata address mapping"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:17 +0000 (14:01 -0800)]
Merge "msm: vidc: Update extradata address mapping"

6 years agoMerge "msm: camera: isp: Enable epoch2 interrupt for pipeline 47"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:16 +0000 (14:01 -0800)]
Merge "msm: camera: isp: Enable epoch2 interrupt for pipeline 47"

6 years agoMerge "ath10k: Enable WoWLAN for the wcn3990 snoc wlan module"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:14 +0000 (14:01 -0800)]
Merge "ath10k: Enable WoWLAN for the wcn3990 snoc wlan module"

6 years agoMerge "scsi: ufs: Get TX and RX fsm state in case of abort"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:13 +0000 (14:01 -0800)]
Merge "scsi: ufs: Get TX and RX fsm state in case of abort"

6 years agoMerge "drm/msm: protect register dumps and debugfs with mutex"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:12 +0000 (14:01 -0800)]
Merge "drm/msm: protect register dumps and debugfs with mutex"

6 years agoMerge "USB: gsi: Ring Doorbell to GSI if check for suspend fails"
Linux Build Service Account [Thu, 23 Nov 2017 22:01:11 +0000 (14:01 -0800)]
Merge "USB: gsi: Ring Doorbell to GSI if check for suspend fails"

6 years agoMerge "ARM: dts: msm: update the new HDMI splash address on msm8996"
Linux Build Service Account [Thu, 23 Nov 2017 13:00:02 +0000 (05:00 -0800)]
Merge "ARM: dts: msm: update the new HDMI splash address on msm8996"

6 years agodefconfig: msm: Enable USB audio QMI service driver for 8996
Sriharsha Allenki [Thu, 23 Nov 2017 11:45:18 +0000 (17:15 +0530)]
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>
6 years agospi: spi_qsd: Add slave support for QUP core
Dilip Kota [Thu, 27 Oct 2016 22:14:28 +0000 (16:14 -0600)]
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>
6 years agomsm: wlan: Update regulatory database
Rajeev Kumar Sirasanagandla [Thu, 23 Nov 2017 08:50:01 +0000 (14:20 +0530)]
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>
6 years agomsm: camera: isp: Enable epoch2 interrupt for pipeline 47
Lokesh Kumar Aakulu [Thu, 28 Sep 2017 10:58:19 +0000 (16:28 +0530)]
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>
6 years agocfg80211: Make pre-CAC results valid only for ETSI domain
Vasanthakumar Thiagarajan [Fri, 10 Nov 2017 10:05:46 +0000 (15:35 +0530)]
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>
6 years agoscsi: ufs: Get TX and RX fsm state in case of abort
Sayali Lokhande [Wed, 15 Nov 2017 10:24:33 +0000 (15:54 +0530)]
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>
6 years agoMerge "ath10k: configure the vdev listen interval before wow suspend"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:29 +0000 (19:51 -0800)]
Merge "ath10k: configure the vdev listen interval before wow suspend"

6 years agoMerge "msm: ipa: Fix to race condition proxy clock voting"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:28 +0000 (19:51 -0800)]
Merge "msm: ipa: Fix to race condition proxy clock voting"

6 years agoMerge "msm: ipa: UAPI security code changes"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:27 +0000 (19:51 -0800)]
Merge "msm: ipa: UAPI security code changes"

6 years agoMerge "drm/msm: implement HDMI teardown sequence for DRM driver"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:25 +0000 (19:51 -0800)]
Merge "drm/msm: implement HDMI teardown sequence for DRM driver"

6 years agoMerge "mhi: core: fix sequence for new transfer"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:24 +0000 (19:51 -0800)]
Merge "mhi: core: fix sequence for new transfer"

6 years agoMerge "msm: ipa3: Fix IPA aggregation force close call"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:23 +0000 (19:51 -0800)]
Merge "msm: ipa3: Fix IPA aggregation force close call"

6 years agoMerge "msm: sps: Update debug message format specifier"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:22 +0000 (19:51 -0800)]
Merge "msm: sps: Update debug message format specifier"

6 years agoMerge "Revert "scsi: ufshcd: Flush exception event before suspend""
Linux Build Service Account [Thu, 23 Nov 2017 03:51:21 +0000 (19:51 -0800)]
Merge "Revert "scsi: ufshcd: Flush exception event before suspend""

6 years agoMerge "scsi: ufs: Fix off-by-one bug in ufs debugfs driver"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:20 +0000 (19:51 -0800)]
Merge "scsi: ufs: Fix off-by-one bug in ufs debugfs driver"

6 years agoMerge "arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:19 +0000 (19:51 -0800)]
Merge "arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE"

6 years agoMerge "msm: sde: disable support for v4l2 event subscription"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:17 +0000 (19:51 -0800)]
Merge "msm: sde: disable support for v4l2 event subscription"

6 years agoMerge "msm: mdss: hdmi: clear deep color bits in the HDMI controller"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:16 +0000 (19:51 -0800)]
Merge "msm: mdss: hdmi: clear deep color bits in the HDMI controller"

6 years agoMerge "smb-lib: allow hvdcp if pd is disabled"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:14 +0000 (19:51 -0800)]
Merge "smb-lib: allow hvdcp if pd is disabled"

6 years agoMerge "icnss: Send early modem crash notification to wlan driver"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:13 +0000 (19:51 -0800)]
Merge "icnss: Send early modem crash notification to wlan driver"

6 years agoMerge "usb: dwc3: Fix incorrect ep0 state on reset"
Linux Build Service Account [Thu, 23 Nov 2017 03:51:12 +0000 (19:51 -0800)]
Merge "usb: dwc3: Fix incorrect ep0 state on reset"

6 years agoath10k: Enable WoWLAN for the wcn3990 snoc wlan module
Sarada Prasanna Garnayak [Fri, 6 Oct 2017 10:59:41 +0000 (16:29 +0530)]
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>
6 years agonet: update rdev suspend method for the wowlan suspend/resume
Sarada Prasanna Garnayak [Wed, 22 Nov 2017 15:15:22 +0000 (20:45 +0530)]
net: update rdev suspend method for the wowlan suspend/resume

Pass wowlan configuration data as parameter in the rdev
suspend. The userspace wlan utility (iw, wpa_supplicant etc.)
configured the wow pattern and event through nl80211 cmd.

During the wlan system suspend the wlan device configured the
wakeup source and event as per the configuration data passed
by the wlan utility to wkae up the device from the sleep state
on wow pattern or event match.

CRs-Fixed: 2147919
Change-Id: Iaca21724e8dd5a9c18e104c44ee6fe73752594e6
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoath10k: configure the vdev listen interval before wow suspend
Sarada Prasanna Garnayak [Sat, 11 Nov 2017 08:37:04 +0000 (14:07 +0530)]
ath10k: configure the vdev listen interval before wow suspend

During the WLAN WOWLAN mode the default listen interval needs
to be configured for each vdev to receive and process the WLAN
WOW pattern match found by the WLAN firmware.

Improper listen interval configuration for the vdev leads to WOW
pattern match missing by the WLAN module and a result WLAN module
failed to wakeup the target as per the WOW pattern configured
during WOWLAN suspend method.

CRs-Fixed: 2141933
Change-Id: I4b4e03c134ecea328bbda55748b1dd633697167a
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agodefconfig: msm: enable memory hotplug support
Arun KS [Wed, 20 Sep 2017 09:51:08 +0000 (15:21 +0530)]
defconfig: msm: enable memory hotplug support

Enable memory hotplug  for msm8996 on automotive targets.

Change-Id: I3cc52027e7d41384b9bfa24e858e3cf14c8940e3
Signed-off-by: Arun KS <arunks@codeaurora.org>
6 years agoarm64: Add fallback option during memory hot add
Arun KS [Mon, 9 Oct 2017 11:09:57 +0000 (16:39 +0530)]
arm64: Add fallback option during memory hot add

Section mapping is good for TLB. But sometimes, when
system is low on physically continuous memory, this can
cause memory allocation failures. Add a fallback option to
allocate vmemmap pages from discontinuous pages.

Change-Id: Ide921c36c1e8980a8af047e2c991310405804858
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agoarm64: Honor limits set by bootloader
Arun KS [Fri, 15 Sep 2017 08:22:00 +0000 (13:52 +0530)]
arm64: Honor limits set by bootloader

Introduce a varible to save bootloader enforced memory limits and
restricts adding beyond this boundary during a memory hotplug.

Change-Id: I28c100644b7287ec4625c4c018b5fffc865e2e72
Signed-off-by: Arun KS <arunks@codeaurora.org>
6 years agousb: gadget: f_fs: Fix kernel panic if use_os_string not set
Jim Lin [Fri, 13 May 2016 12:32:16 +0000 (20:32 +0800)]
usb: gadget: f_fs: Fix kernel panic if use_os_string not set

If c->cdev->use_os_string flag is not set,
don't need to invoke ffs_do_os_descs() in _ffs_func_bind.
So uninitialized ext_compat_id pointer won't be accessed by
__ffs_func_bind_do_os_desc to cause kernel panic.

Change-Id: I7a08d683bb068c8015675a0676c4a092272e5e0b
Signed-off-by: Jim Lin <jilin@nvidia.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: c6010c8b4d2c6e75853ca63c602c9af56fcbead5
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sai Krishna Juturi <jsaikrishna@codeaurora.org>
6 years agodefconfig: msm: Enable CONFIG_ESOC_DRV for msm8996 auto
Gustavo Solaira [Wed, 15 Nov 2017 05:27:05 +0000 (21:27 -0800)]
defconfig: msm: Enable CONFIG_ESOC_DRV for msm8996 auto

Enable the CONFIG_ESOC_DRV for msm8996 auto to support SSR
for external MDM modems connected via PCIe.

Change-Id: I03026351ef521e7b85af2bb47f85ff91842fe405
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoesoc: Bring mdm9x55 in sync with mdm9x45 functionality
Gustavo Solaira [Sat, 18 Nov 2017 01:48:28 +0000 (17:48 -0800)]
esoc: Bring mdm9x55 in sync with mdm9x45 functionality

Some options available for mdm9x45 esocs were missing from
the mdm9x55 setup hardware function. Add those to bring them
in sync. The way a power down is performed on mdm9x55 is also
changed to be similar to mdm9x45.

Change-Id: I14b0e77d08cb319581cfd02304eba8351c378306
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agomsm: ipa: Fix to race condition proxy clock voting
Mohammed Javid [Mon, 13 Nov 2017 18:13:27 +0000 (23:43 +0530)]
msm: ipa: Fix to race condition proxy clock voting

Added code changes to fix the race condition during
proxy clock voating in IPA.

Change-Id: I1fee17836bf58d25f461643ea1e60bcd06182372
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agomsm: ipa3: Fix IPA aggregation force close call
Mohammed Javid [Mon, 6 Nov 2017 12:19:56 +0000 (17:49 +0530)]
msm: ipa3: Fix IPA aggregation force close call

In IPA driver uninitialized structure causing some
garbage values result into IPA data stall.
Added code changes to reset zero uninitialized structure.

Change-Id: I3b98041f8a96ea1d571eeaa60fc84457f6309d45
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoRevert "scsi: ufshcd: Flush exception event before suspend"
Subhash Jadavani [Thu, 16 Nov 2017 22:32:28 +0000 (14:32 -0800)]
Revert "scsi: ufshcd: Flush exception event before suspend"

This reverts commit de406d12ef760a7536a486e19016e8e38251f1bc.

In case of a background operations exception, there could be a deadlock:
-000|__switch_to()
-001|context_switch(inline)
-001|__schedule()
-002|schedule()
-003|schedule_timeout()
-004|do_wait_for_common(inline)
-004|__wait_for_common(inline)
-004|wait_for_common()
-005|wait_for_completion()
-006|destroy_work_on_stack(inline)
-006|flush_work()
-007|ufshcd_suspend()
-008|ufshcd_runtime_suspend()
-009|ufshcd_pltfrm_runtime_suspend()
-010|pm_generic_runtime_suspend()
-011|__rpm_callback(inline)
-011|rpm_callback()
-012|rpm_suspend()
-013|rpm_idle()
-014|__pm_runtime_idle()
-015|ufshcd_exception_event_handler()
-016|__read_once_size(inline)
-016|static_key_count(inline)
-016|static_key_false(inline)
-016|trace_workqueue_execute_end(inline)
-016|process_one_work()
-017|__read_once_size(inline)
-017|list_empty(inline)
-017|worker_thread()
-018|kthread()
-019|ret_from_fork(asm)

Exception handler tried to suspend UFS synchronously and suspend tries to
flush the currently running exception handler work which results into
deadlock. Revert this change until we find proper fix for this.

Change-Id: I2b8efdf583d08a276b987914c1037619eb8b25f7
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
6 years agoARM: dts: msm: update the new HDMI splash address on msm8996
Rahul Sharma [Tue, 21 Nov 2017 15:36:18 +0000 (21:06 +0530)]
ARM: dts: msm: update the new HDMI splash address on msm8996

HDMI continuous splash memory addrerss has been changed in bootloader.
This change updates the splash memory address to support the smooth
LK to kernel handoff.

Change-Id: If9c8f20b8215a4ea835b0e070feb2b51364772e6
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomm/Kconfig: Enable MEMORY_HOTPLUG for arm64
Arun KS [Wed, 20 Sep 2017 07:50:41 +0000 (13:20 +0530)]
mm/Kconfig: Enable MEMORY_HOTPLUG for arm64

Add arm64 to the list of architectures which supports
memory hotplug.

Change-Id: Iefeb8294bf06eaebb17a3b3aa8b33bb3b7133099
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
6 years agoarm64: Add "remove" probe driver for memory hot-remove
Andrea Reale [Fri, 28 Apr 2017 08:50:16 +0000 (14:20 +0530)]
arm64: Add "remove" probe driver for memory hot-remove

Allows to remove sections of memory that have been previously offlined
from userspace.

This is symmetric to the "memory probe" interface, as described in
Documentation/memory-hotplug.txt. It can be used to manually notify the
OS that one memory section has been removed.

Please, remind that a memory section can only be removed after it has
been logically off-lined; trying to remove a section which has not been
previously off-lined is not supported and will have undefined (but most
likely very bad) behaviour.

To offline a section one can:

To use the remove interface to remove the section:

where 0xYYYYYY is the physical address of the memory section to remove.

Change-Id: I1ab2fafe17b2697a5c667feae25c4ac0655f394e
Signed-off-by: Andrea Reale <ar@linux.vnet.ibm.com>
Signed-off-by: Maciej Bielski <m.bielski@virtualopensystems.com>
Patch-mainline: linux-kernel @ 11 Apr 2017, 18:25
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
6 years agoarm64: Hot-remove implementation for arm64
Andrea Reale [Fri, 28 Apr 2017 08:48:26 +0000 (14:18 +0530)]
arm64: Hot-remove implementation for arm64

- arch_remove_memory interface
- kernel page tables cleanup
- vmemmap_free implementation for arm64

Change-Id: I8945b6b91ed7012abc1478de266302427ebeb639
Signed-off-by: Andrea Reale <ar@linux.vnet.ibm.com>
Signed-off-by: Maciej Bielski <m.bielski@virtualopensystems.com>
Patch-mainline: linux-kernel @ 11 Apr 2017, 18:25
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Arun KS <arunks@codeaurora.org>
6 years agoarm64: Memory hotplug support for arm64 platform
Maciej Bielski [Fri, 28 Apr 2017 08:44:14 +0000 (14:14 +0530)]
arm64: Memory hotplug support for arm64 platform

This is a second and improved version of the patch previously released
in [3].

It builds on the work by Scott Branden [2] and, henceforth,
it needs to be applied on top of Scott's patches [2].
Comments are very welcome.

Changes from the original patchset and known issues:

- Compared to Scott's original patchset, this work adds the mapping of
  the new hotplugged pages into the kernel page tables. This is done by
  copying the old swapper_pg_dir over a new page, adding the new mappings,
  and then switching to the newly built pg_dir (see `hotplug_paging` in
  arch/arm64/mmu.c). There might be better ways to to this: suggestions
  are more than welcome.

- The stub function for `arch_remove_memory` has been removed for now; we
  are working in parallel on memory hot remove, and we plan to contribute
  it as a separate patch.

- Corresponding Kconfig flags have been added;

- Note that this patch does not work when NUMA is enabled; in fact,
  the function `memory_add_physaddr_to_nid` does not have an
  implementation when the NUMA flag is on: this function is supposed to
  return the nid the hotplugged memory should be associated with. However
  it is not really clear to us  yet what the semantics of this function
  in the context of a NUMA system should be. A quick and dirty fix would
  be to always attach to the first available NUMA node.

- In arch/arm64/mm/init.c `arch_add_memory`, we are doing a hack with the
  nomap memory block flags to satisfy preconditions and postconditions of
  `__add_pages` and postconditions of `arch_add_memory`. Compared to
  memory hotplug implementation for other architectures, the "issue"
  seems to be in the implemenation of `pfn_valid`. Suggestions on how
  to cleanly avoid this hack are welcome.

This patchset can be tested by starting the kernel with the `mem=X` flag, where
X is less than the total available physical memory and has to be multiple of
MIN_MEMORY_BLOCK_SIZE. We also tested it on a customised version of QEMU
capable to emulate physical hotplug on arm64 platform.

To enable the feature the CONFIG_MEMORY_HOTPLUG compilation flag
needs to be set to true. Then, after memory is physically hotplugged,
the standard two steps to make it available (as also documented in
Documentation/memory-hotplug.txt) are:

(1) Notify memory hot-add
  echo '0xYY000000' > /sys/devices/system/memory/probe

where 0xYY000000 is the first physical address of the new memory section.

(2) Online new memory block(s)
    echo online > /sys/devices/system/memory/memoryXXX/state
    -- or --
    echo online_movable > /sys/devices/system/memory/memoryXXX/state

where XXX corresponds to the ids of newly added blocks.

Onlining can optionally be automatic at hot-add notification by enabling
the global flag:
echo online > /sys/devices/system/memory/auto_online_blocks
or by setting the corresponding config flag in the kernel build.

Again, any comment is highly appreciated.

[1] https://lkml.org/lkml/2016/11/17/49
[2] https://lkml.org/lkml/2016/12/1/811
[3] https://lkml.org/lkml/2016/12/14/188

Change-Id: I545807e3121c159aaa2f917ea914ee98f38fb296
Signed-off-by: Maciej Bielski <m.bielski@virtualopensystems.com>
Signed-off-by: Andrea Reale <ar@linux.vnet.ibm.com>
Patch-mainline: linux-kernel @ 11 Apr 2017, 18:25
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
[arunks@codeaurora.org: fix to pass checker test]
Signed-off-by: Arun KS <arunks@codeaurora.org>