OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "soc: qcom: pil: NULL check before pil_memset_io"
Linux Build Service Account [Wed, 13 Dec 2017 03:00:50 +0000 (19:00 -0800)]
Merge "soc: qcom: pil: NULL check before pil_memset_io"

6 years agoMerge "drivers: lmh_dcvsh: Defer cluster cooling register until core comes online"
Linux Build Service Account [Wed, 13 Dec 2017 03:00:48 +0000 (19:00 -0800)]
Merge "drivers: lmh_dcvsh: Defer cluster cooling register until core comes online"

6 years agoMerge "usb: pd: qpnp-pdphy: move RX handling to hard IRQ"
Linux Build Service Account [Wed, 13 Dec 2017 03:00:46 +0000 (19:00 -0800)]
Merge "usb: pd: qpnp-pdphy: move RX handling to hard IRQ"

6 years agoMerge "usb: pd: qpnp-pdphy: Remove rx_busy flag"
Linux Build Service Account [Wed, 13 Dec 2017 03:00:45 +0000 (19:00 -0800)]
Merge "usb: pd: qpnp-pdphy: Remove rx_busy flag"

6 years agoMerge "defconfig: msm: Enable CONFIG_INET_LRO"
Linux Build Service Account [Wed, 13 Dec 2017 03:00:44 +0000 (19:00 -0800)]
Merge "defconfig: msm: Enable CONFIG_INET_LRO"

6 years agoMerge "ARM: dts: msm: Set values for MDM shutdown and reset on msm8996 CV2X"
Linux Build Service Account [Tue, 12 Dec 2017 06:33:57 +0000 (22:33 -0800)]
Merge "ARM: dts: msm: Set values for MDM shutdown and reset on msm8996 CV2X"

6 years agoMerge "defconfig: arm64: fsm: Modify configs for FSM"
Linux Build Service Account [Tue, 12 Dec 2017 06:33:56 +0000 (22:33 -0800)]
Merge "defconfig: arm64: fsm: Modify configs for FSM"

6 years agoMerge "pwm: pwm-qpnp: Enable glitch removal after PWM enabled"
Linux Build Service Account [Tue, 12 Dec 2017 06:33:55 +0000 (22:33 -0800)]
Merge "pwm: pwm-qpnp: Enable glitch removal after PWM enabled"

6 years agoMerge "clk: msm: Add virtual clock frontend driver"
Linux Build Service Account [Tue, 12 Dec 2017 06:33:54 +0000 (22:33 -0800)]
Merge "clk: msm: Add virtual clock frontend driver"

6 years agoMerge "usb: pd: Send pending VDM message upon entering SNK/SRC_Ready"
Linux Build Service Account [Tue, 12 Dec 2017 06:33:52 +0000 (22:33 -0800)]
Merge "usb: pd: Send pending VDM message upon entering SNK/SRC_Ready"

6 years agosoc: qcom: pil: NULL check before pil_memset_io
Swetha Chikkaboraiah [Wed, 20 Sep 2017 07:12:45 +0000 (12:42 +0530)]
soc: qcom: pil: NULL check before pil_memset_io

In existing implementation if vmap fails device panics for
NULL pointer access while doing pil_memset_io.
Instead check for the NULL pointer.

Change-Id: I1b9fd084a8c168b70f6e01134e4122445e4873b4
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
6 years agodefconfig: arm64: fsm: Modify configs for FSM
Yasir Malik [Fri, 8 Dec 2017 20:41:25 +0000 (15:41 -0500)]
defconfig: arm64: fsm: Modify configs for FSM

* Enable POSIX message queues
* Disable ANDROID_PARANOID_NETWORK
* Disable IPC_ROUTER_SECURITY
* Disable unnecessary drivers:
  - Graphics
  - Sound
  - Bluetooth
  - Wireless LAN
  - Most input devices

Change-Id: I134e94ad21ed2d9c8f247b5c1523510cdd9ecb0a
CRs-Fixed: 2130054
Acked-by: Jennifer L. Zenner <jzenner@qti.qualcomm.com>
Signed-off-by: Yasir Malik <ymalik@codeaurora.org>
6 years agousb: pd: qpnp-pdphy: move RX handling to hard IRQ
Jack Pham [Thu, 2 Nov 2017 17:51:48 +0000 (10:51 -0700)]
usb: pd: qpnp-pdphy: move RX handling to hard IRQ

For improved performance, move RX handling from a thread to
a hard IRQ handler. This helps to decrease the chance of missing
incoming back-to-back messages (e.g. Accept -> PS_Ready following
a successful power request) due to the pending RX token in case
the IRQ thread is delayed due to high system load. policy_engine
needs to perform the buffer allocation with the GFP_ATOMIC flag.

Change-Id: Iacb2623280f1ac4de9f483a8abbf5dc055041be7
Signed-off-by: Jack Pham <jackp@codeaurora.org>
6 years agoMerge "defconfig: Add android-verity support for system"
Linux Build Service Account [Fri, 8 Dec 2017 10:17:03 +0000 (02:17 -0800)]
Merge "defconfig: Add android-verity support for system"

6 years agoMerge "ARM: dts: msm: Add NTN_CLK_SYNC pin for msm8996 agave and auto cdp board"
Linux Build Service Account [Fri, 8 Dec 2017 10:17:02 +0000 (02:17 -0800)]
Merge "ARM: dts: msm: Add NTN_CLK_SYNC pin for msm8996 agave and auto cdp board"

6 years agoMerge "ARM: dts: msm: Disable PCIe L1 and L1ss for msm8996 CV2X"
Linux Build Service Account [Fri, 8 Dec 2017 10:17:00 +0000 (02:17 -0800)]
Merge "ARM: dts: msm: Disable PCIe L1 and L1ss for msm8996 CV2X"

6 years agoMerge "diag: Free the memory in diagfwd_peripheral_exit()"
Linux Build Service Account [Fri, 8 Dec 2017 10:16:59 +0000 (02:16 -0800)]
Merge "diag: Free the memory in diagfwd_peripheral_exit()"

6 years agoclk: msm: Add virtual clock frontend driver
Zhiqiang Tu [Tue, 7 Nov 2017 02:23:37 +0000 (10:23 +0800)]
clk: msm: Add virtual clock frontend driver

It is virtual clock frontend driver which communicates
with host backend clock service/driver over HABMM. It
only supports msm8996 virtual platform currently.

Change-Id: Icfee28c301fa4a583b45e5d364432535643eb9b7
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agousb: pd: qpnp-pdphy: Remove rx_busy flag
Jack Pham [Thu, 12 Oct 2017 16:41:51 +0000 (09:41 -0700)]
usb: pd: qpnp-pdphy: Remove rx_busy flag

Having this flag was causing PD TX messages to incorrectly
get blocked in the case where the policy engine state machine
worker got scheduled to run in the RX IRQ, but before the
handler exits and clears the flag. This caused false errors
that an RX message is pending. Remove usage of this flag as
it was doing more harm than good.

Change-Id: Iffccfc9ffafac6017192d86d8d97d5534890c7b5
Signed-off-by: Jack Pham <jackp@codeaurora.org>
6 years agousb: pd: Avoid blocking wait in SRC_TRANSITION_TO_DEFAULT
Jack Pham [Tue, 10 Oct 2017 23:59:32 +0000 (16:59 -0700)]
usb: pd: Avoid blocking wait in SRC_TRANSITION_TO_DEFAULT

When sending/receiving a hard reset in source mode, the
PE_SRC_TRANSITION_TO_DEFAULT state turns off VBUS/VCONN and
sleeps for 750ms. During this fairly long period any Type-C
event such as cable disconnect or reconnect won't get
processed as the workqueue is blocked by this wait condition.
This can lead to incorrect state handling, for example when
a sink is removed and a source is attached; the state machine
will think a sink is still attached. Fix this by removing
the msleep() and set a timer to restart the state machine
to PE_UNKNOWN which will turn VBUS/VCONN back on and start
again in PE_SRC_STARTUP. This frees up the workqueue to
process any potential incoming events in the meantime.

Change-Id: I282551a58252a672f319d1559eac9f4ad4c3ca8a
Signed-off-by: Jack Pham <jackp@codeaurora.org>
6 years agousb: pd: Send pending VDM message upon entering SNK/SRC_Ready
Jack Pham [Thu, 5 Oct 2017 19:51:26 +0000 (12:51 -0700)]
usb: pd: Send pending VDM message upon entering SNK/SRC_Ready

Entering SNK_Ready or SRC_Ready state from usbpd_set_state()
is somewhat terminal as it is the end state of a contract
negotiation. If there was a previous pending VDM message
waiting to be sent, for example the start of a Discovery which
was queued prior to a PR Swap, it would not get sent. Check for
this and enqueue usbpd_sm once again so that it could be sent
out. Otherwise, start the Discovery process in case we are
in DFP mode, and do that for SNK_Ready as well.

Change-Id: I4516ccb0deec8cdabdb62d539d7d2b66dc23f1ee
Signed-off-by: Jack Pham <jackp@codeaurora.org>
6 years agodefconfig: Add android-verity support for system
Binoy Jayan [Thu, 9 Nov 2017 10:20:17 +0000 (15:50 +0530)]
defconfig: Add android-verity support for system

Add android-verity support so that the system image is verified by
the kernel during the boot time. Also set the x509 key file to be
used for verification.

Change-Id: I17ffc2944ef9af556d9fdc05d62734de384dc27c
Signed-off-by: Binoy Jayan <bjayan@codeaurora.org>
6 years agodrivers: lmh_dcvsh: Defer cluster cooling register until core comes online
Manaf Meethalavalappu Pallikunhi [Tue, 5 Dec 2017 01:53:04 +0000 (07:23 +0530)]
drivers: lmh_dcvsh: Defer cluster cooling register until core comes online

If all cores for a cluster are offline or not brought up during
lmh dcvsh probe, it fails to register cooling device and it leads
to probe failure. If later these cores come online, lmh dcvsh doesn't
re-probe it and eventually that cluster lmh dcvsh is broken.

Register for cpu online notification and register cpu cooling device
in cpu online notification callback context. It makes sure that
both lmh dcvsh probing and cooling device register are proper.

Change-Id: Id5345a578aab920d12bd9d9e2ccf1d5059582de9
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agodefconfig: msm: Enable CONFIG_INET_LRO
Poddar, Siddarth [Thu, 7 Dec 2017 06:04:21 +0000 (11:34 +0530)]
defconfig: msm: Enable CONFIG_INET_LRO

WLAN module supports LRO, so enable CONFIG_INET_LRO for SDM660.
Remove it from defconfig to enable as Kconfig has default set to enable.

Change-Id: I5681c47caa18931ab1a3ea2b09c3a1f9abc38777
CRs-Fixed: 2144533
Signed-off-by: Poddar Siddarth <siddpodd@codeaurora.org>
6 years agoARM: dts: msm: Add NTN_CLK_SYNC pin for msm8996 agave and auto cdp board
Zou Shunxiang [Tue, 5 Dec 2017 01:39:29 +0000 (09:39 +0800)]
ARM: dts: msm: Add NTN_CLK_SYNC pin for msm8996 agave and auto cdp board

NTN_CLK_SYNC line should be set low before bringing Neutrino out
of reset for msm8996 agave board and auto CDP board.

Change-Id: I7b213a7dad2dbdedd3fe42a88972dc36cbf2e5b5
Signed-off-by: Zou Shunxiang <shunxian@codeaurora.org>
6 years agoMerge "wcnss: fix the potential buffer overflow in wlan ctrl data process"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:32 +0000 (07:00 -0800)]
Merge "wcnss: fix the potential buffer overflow in wlan ctrl data process"

6 years agoMerge "icnss: Reject driver reinit request when FW is down"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:31 +0000 (07:00 -0800)]
Merge "icnss: Reject driver reinit request when FW is down"

6 years agoMerge "Revert "DRM: SDE: Update the hdmi bridge to handle HPD clock""
Linux Build Service Account [Wed, 6 Dec 2017 15:00:30 +0000 (07:00 -0800)]
Merge "Revert "DRM: SDE: Update the hdmi bridge to handle HPD clock""

6 years agoMerge "ath10k: enable gtk offload for the wcn3990 wlan module"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:29 +0000 (07:00 -0800)]
Merge "ath10k: enable gtk offload for the wcn3990 wlan module"

6 years agoMerge "ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:28 +0000 (07:00 -0800)]
Merge "ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug"

6 years agoMerge "drm/msm: Add API support for getting GPU hang timeout"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:27 +0000 (07:00 -0800)]
Merge "drm/msm: Add API support for getting GPU hang timeout"

6 years agoMerge "drm/msm: Save buffer iova's for rd-dump"
Linux Build Service Account [Wed, 6 Dec 2017 15:00:26 +0000 (07:00 -0800)]
Merge "drm/msm: Save buffer iova's for rd-dump"

6 years agodiag: Free the memory in diagfwd_peripheral_exit()
Sreelakshmi Gownipalli [Mon, 18 Sep 2017 19:41:47 +0000 (12:41 -0700)]
diag: Free the memory in diagfwd_peripheral_exit()

In diagfwd_peripheral_exit() free the memory associated with
early_init_info.

Change-Id: I862b6d806d67dad38316f1608827a4bf6f5a691f
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
6 years agoARM: dts: msm: Disable PCIe L1 and L1ss for msm8996 CV2X
Gustavo Solaira [Tue, 5 Dec 2017 19:44:02 +0000 (11:44 -0800)]
ARM: dts: msm: Disable PCIe L1 and L1ss for msm8996 CV2X

Disable L1 and L1ss PCIe low power modes for msm8996 CV2X
since it causes problems with WLAN (RC0) and not supported
by Neutrino Ethernet (RC1).

Change-Id: I7d9358a2cb5921f5e5d5da858faec553197063ee
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoARM: dts: msm: Set values for MDM shutdown and reset on msm8996 CV2X
Gustavo Solaira [Tue, 5 Dec 2017 23:25:03 +0000 (15:25 -0800)]
ARM: dts: msm: Set values for MDM shutdown and reset on msm8996 CV2X

Set properties of the esoc driver for MDM shutdown and reset
time intervals for msm8996 CV2X.

Change-Id: Ic86f6b441b369a3ea4845425930724d5e6fed149
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoesoc: Convert timeout for reset and shutdown to device tree option
Gustavo Solaira [Tue, 5 Dec 2017 23:22:54 +0000 (15:22 -0800)]
esoc: Convert timeout for reset and shutdown to device tree option

Convert the timeout and shutdown intervals to be read from
the device tree and set default values in case no option is
provided.

Change-Id: I90efb5910ddf1667db5cde79f46a4a94da1668ec
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoMerge "defconfig: msm: add touchscreen config for gvm"
Linux Build Service Account [Wed, 6 Dec 2017 02:52:34 +0000 (18:52 -0800)]
Merge "defconfig: msm: add touchscreen config for gvm"

6 years agoicnss: Reject driver reinit request when FW is down
Yuanyuan Liu [Tue, 5 Dec 2017 00:01:31 +0000 (16:01 -0800)]
icnss: Reject driver reinit request when FW is down

Reject driver reinit request when WLAN FW is down as FW
is in a bad state and can't communicate with host driver.

CRs-Fixed: 2153375
Change-Id: Id16cbfc05984091d61b18c98f7397baa871f82b4
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
6 years agoMerge "USB: CCID: Select TPDU level exchanges for CCID communication"
Linux Build Service Account [Tue, 5 Dec 2017 17:35:14 +0000 (09:35 -0800)]
Merge "USB: CCID: Select TPDU level exchanges for CCID communication"

6 years agoMerge "power: smb1351-charger: Fix the float voltage unit passed to its set method"
Linux Build Service Account [Tue, 5 Dec 2017 17:35:13 +0000 (09:35 -0800)]
Merge "power: smb1351-charger: Fix the float voltage unit passed to its set method"

6 years agoRevert "DRM: SDE: Update the hdmi bridge to handle HPD clock"
Rahul Sharma [Tue, 5 Dec 2017 07:13:40 +0000 (12:43 +0530)]
Revert "DRM: SDE: Update the hdmi bridge to handle HPD clock"

This reverts commit b31584ba6835d6b3c5e0c59df4faf5f93a0b00d2.

Change-Id: I8c58fb3124b946224028df75e4963f9331ac2ec3
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoath10k: enable gtk offload for the wcn3990 wlan module
Sarada Prasanna Garnayak [Fri, 24 Nov 2017 09:57:46 +0000 (15:27 +0530)]
ath10k: enable gtk offload for the wcn3990 wlan module

Register ops to store the gtk rekey data from the wlan
utility(wpa_supplicant) and configure the GTK offload
during wow suspend.

If the wlan module in suspend state with wowlan mode
this feature adds support to prevent the device to wakeup
from sleep state on gtk rekey failure in wlan firmware.

CRs-Fixed: 2150959
Change-Id: I968acfe65bd082d37c855f89d4460a09c055ffd8
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agowcnss: fix the potential buffer overflow in wlan ctrl data process
Sarada Prasanna Garnayak [Fri, 1 Dec 2017 09:59:54 +0000 (15:29 +0530)]
wcnss: fix the potential buffer overflow in wlan ctrl data process

Validate the userspace wlan control cmd data, info and length
before copy into wcnss driver buffer. Avoid unnecessary string
manipulation and use kernel defined format specifier to print
wlan MAC address.

CRs-Fixed: 2149331
Change-Id: Ib59fdcc0e6b84cdd73972dcb62b2c05e4741f5f7
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
Ritesh Harjani [Tue, 5 Dec 2017 07:07:43 +0000 (12:37 +0530)]
ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug

With WARN_RATELIMIT lot of warning messages are
sometimes causing watchdog bite or spinlock lockup
(due to continuous logging). Thus change it to
pr_debug.

Change-Id: I2f0670bd20a39d289c105f9896e6fc509fb87de6
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
6 years agodefconfig: msm: add touchscreen config for gvm
Yimin Peng [Wed, 22 Nov 2017 04:07:37 +0000 (12:07 +0800)]
defconfig: msm: add touchscreen config for gvm

With USB Host pass through, touchscreen is available on gvm.

Change-Id: I129f2cc65e5d11a6d69e7afde13356a3bee98df6
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoUSB: CCID: Select TPDU level exchanges for CCID communication
Vijayavardhan Vennapusa [Thu, 2 Nov 2017 10:27:28 +0000 (15:57 +0530)]
USB: CCID: Select TPDU level exchanges for CCID communication

Current CCID daemon is supporting TPDU level exhanges for CCID
communication. Hence report same in dwFeatures field of CCID class
descriptor.

Change-Id: If66a54bd74c76ccb417b202b224de5c79e9dfa05
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoMerge "icnss: Reject register_driver request when WLAN FW is down"
Linux Build Service Account [Mon, 4 Dec 2017 23:19:50 +0000 (15:19 -0800)]
Merge "icnss: Reject register_driver request when WLAN FW is down"

6 years agoMerge "ARM: dts: msm: mount system & vendor partitions in early init for 8996"
Linux Build Service Account [Mon, 4 Dec 2017 23:19:49 +0000 (15:19 -0800)]
Merge "ARM: dts: msm: mount system & vendor partitions in early init for 8996"

6 years agoMerge "msm: ADSPRPC: use access_ok to validate pointers"
Linux Build Service Account [Mon, 4 Dec 2017 23:19:48 +0000 (15:19 -0800)]
Merge "msm: ADSPRPC: use access_ok to validate pointers"

6 years agoMerge "msm: ipa3: Fix to set QMB on USB ep"
Linux Build Service Account [Mon, 4 Dec 2017 23:19:46 +0000 (15:19 -0800)]
Merge "msm: ipa3: Fix to set QMB on USB ep"

6 years agoicnss: Reject register_driver request when WLAN FW is down
Yuanyuan Liu [Thu, 30 Nov 2017 19:11:42 +0000 (11:11 -0800)]
icnss: Reject register_driver request when WLAN FW is down

Reject regsiter_driver request when WLAN FW is already down as
WLAN FW is in a bad state and can't communicate with host driver.

Change-Id: I57ba839101f5c0a361e74060b18b45f87c71634c
CRs-Fixed: 2151726
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Remove adv7533 power commands for 600p DSI panel"
Linux Build Service Account [Mon, 4 Dec 2017 14:17:02 +0000 (06:17 -0800)]
Merge "ARM: dts: msm: Remove adv7533 power commands for 600p DSI panel"

6 years agoMerge "usb: gadget: f_fs: Fix kernel panic if use_os_string not set"
Linux Build Service Account [Mon, 4 Dec 2017 14:17:01 +0000 (06:17 -0800)]
Merge "usb: gadget: f_fs: Fix kernel panic if use_os_string not set"

6 years agoMerge "msm: ADSPRPC: validate context pointer with magic number"
Linux Build Service Account [Mon, 4 Dec 2017 14:17:00 +0000 (06:17 -0800)]
Merge "msm: ADSPRPC: validate context pointer with magic number"

6 years agomsm: ipa3: Fix to set QMB on USB ep
Mohammed Javid [Wed, 22 Nov 2017 10:44:10 +0000 (16:14 +0530)]
msm: ipa3: Fix to set QMB on USB ep

Fix to config USB end point with QMB.

Change-Id: I2d4691024aa4fc9856c9c4213491a76a1033ae04
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agomsm: ADSPRPC: use access_ok to validate pointers
c_mtharu [Mon, 27 Nov 2017 14:43:28 +0000 (20:13 +0530)]
msm: ADSPRPC: use access_ok to validate pointers

Check the validity of the pointer in user space that you intend to
access. access_ok function simply checks that the address is likely
in user space, not in the kernel.

Change-Id: I936f73a2c2029f9e7ca12cc8fc06d0698e6710c0
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agoARM: dts: msm: mount system & vendor partitions in early init for 8996
Satya Durga Srinivasu Prabhala [Tue, 19 Sep 2017 23:18:41 +0000 (16:18 -0700)]
ARM: dts: msm: mount system & vendor partitions in early init for 8996

Add support to mount system & vendor partitions during early init
on msm8996.

Change-Id: I6b05edb8d17f192e1d8d9d5e1c0c33a3d1a7c441
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
6 years agoMerge "qseecom: fix a race condition when TA is blocked"
Linux Build Service Account [Sun, 3 Dec 2017 17:32:21 +0000 (09:32 -0800)]
Merge "qseecom: fix a race condition when TA is blocked"

6 years agoMerge "qseecom: fix a common lib loading issue"
Linux Build Service Account [Sun, 3 Dec 2017 17:32:20 +0000 (09:32 -0800)]
Merge "qseecom: fix a common lib loading issue"

6 years agoqseecom: fix a race condition when TA is blocked
Zhen Kong [Mon, 13 Nov 2017 23:13:31 +0000 (15:13 -0800)]
qseecom: fix a race condition when TA is blocked

When the thread processing blocked TA wakes up when listener
becames available, the listener may be unavailable again before
this thread grabs the global mutex, so make change to add a
while loop to check if listener available after wake up and hold
mutex.

Change-Id: Ib386faca7a44325142da1dc54e19a99f3173ec86
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoqseecom: fix a common lib loading issue
Zhen Kong [Wed, 18 Oct 2017 17:27:20 +0000 (10:27 -0700)]
qseecom: fix a common lib loading issue

cmnlib_ion_handle is only used within qseecom_load_commonlib_image()
and is not a shared resource, so change it to a local variable and
avoid potential reuse or free by another thread in case of reentrancy.

Change-Id: I9e1f25cd024a19a7379b7409bdc6521bcd8bcae5
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoqseecom: fix an app unloading issue when the app is blocked
Zhen Kong [Fri, 13 Oct 2017 21:01:48 +0000 (14:01 -0700)]
qseecom: fix an app unloading issue when the app is blocked

Reset app_crash flag to make sure app entry is not freed when
there is another client still being blocked on the same app.

Change-Id: I25d236abc97e60fe8a4abbbc8c086291c764a9c1
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoMerge "msm: kgsl: Capture all the shader data in the snapshot"
Linux Build Service Account [Fri, 1 Dec 2017 21:29:13 +0000 (13:29 -0800)]
Merge "msm: kgsl: Capture all the shader data in the snapshot"

6 years agomsm: kgsl: Capture all the shader data in the snapshot
Lynus Vaz [Wed, 22 Nov 2017 05:55:04 +0000 (11:25 +0530)]
msm: kgsl: Capture all the shader data in the snapshot

The shader block size is in dwords. Make sure we copy out all the
bytes that we want.

Change-Id: I42364350ee6314b4830ed11cc06e61d854122543
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
6 years agoMerge "msm: ipa3: Remove ep_delay on disconnect sequence"
Linux Build Service Account [Fri, 1 Dec 2017 12:19:57 +0000 (04:19 -0800)]
Merge "msm: ipa3: Remove ep_delay on disconnect sequence"

6 years agoMerge "cnss2: Add a debug option to skip any kind of recovery"
Linux Build Service Account [Fri, 1 Dec 2017 12:19:56 +0000 (04:19 -0800)]
Merge "cnss2: Add a debug option to skip any kind of recovery"

6 years agoARM: dts: msm: Remove adv7533 power commands for 600p DSI panel
Daocai [Fri, 1 Dec 2017 07:06:52 +0000 (15:06 +0800)]
ARM: dts: msm: Remove adv7533 power commands for 600p DSI panel

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: I1c95456b1734acb05cf2f38bb4c95441343bffab
Signed-off-by: Daocai <daocai@codeaurora.org>
6 years agomsm: ipa3: Remove ep_delay on disconnect sequence
Mohammed Javid [Wed, 22 Nov 2017 14:10:38 +0000 (19:40 +0530)]
msm: ipa3: Remove ep_delay on disconnect sequence

When device in Low Power Mode, usb driver invokes
suspend and then disconnect upon cable disconnection.
Remove the ep_delay if it is set.

Change-Id: I203d57d70e8c189a2f3bc7f7830392fac98cfbb1
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agocnss2: Add a debug option to skip any kind of recovery
Yue Ma [Wed, 22 Nov 2017 22:12:52 +0000 (14:12 -0800)]
cnss2: Add a debug option to skip any kind of recovery

After firmware crashes, driver will try to recover the device by
resetting hardware and reloading firmware. Add a debug quirk option
to skip the recovery so that WLAN device can still remain the status
after crash for live debugging.

Change-Id: Ifff26df9ae5ab4c25573ca84e29eed73a79c6525
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoMerge "sound: usb: Update QMI indication message"
Linux Build Service Account [Thu, 30 Nov 2017 22:02:16 +0000 (14:02 -0800)]
Merge "sound: usb: Update QMI indication message"

6 years agoMerge "usb: host: xhci: Remove helper API retuning dcba dma address"
Linux Build Service Account [Thu, 30 Nov 2017 22:02:16 +0000 (14:02 -0800)]
Merge "usb: host: xhci: Remove helper API retuning dcba dma address"

6 years agoMerge "soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals"
Linux Build Service Account [Thu, 30 Nov 2017 22:02:15 +0000 (14:02 -0800)]
Merge "soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals"

6 years agoMerge "msm: kgsl: Fix the process sysfs refcounting"
Linux Build Service Account [Thu, 30 Nov 2017 22:02:14 +0000 (14:02 -0800)]
Merge "msm: kgsl: Fix the process sysfs refcounting"

6 years agoMerge "scsi: ufs: Add counter for hibernate and gear switch"
Linux Build Service Account [Thu, 30 Nov 2017 22:02:13 +0000 (14:02 -0800)]
Merge "scsi: ufs: Add counter for hibernate and gear switch"

6 years agomsm: kgsl: Fix the process sysfs refcounting
Lynus Vaz [Wed, 15 Nov 2017 14:25:01 +0000 (19:55 +0530)]
msm: kgsl: Fix the process sysfs refcounting

The kobject used for the process's sysfs node did not provide a
release function, so it did not correctly implement the refcounting.
Add a release callback so that we keep the process structure valid
as long as the kobject is alive.

Change-Id: I6db54092ed29ecd4d2f157188a4f1a5fc70f1edf
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agosoc: qcom: glink_pkt: Modify conversion of CTS/DTR signals
Dhoat Harpal [Mon, 20 Nov 2017 11:06:27 +0000 (16:36 +0530)]
soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals

SMD_DTR_SIG and SMD_CTS_SIG signals are converted to TIOCM_DTR
and TIOCM_RTS respectively, for client notification. This is
incorrect conversion.

SMD_DTR_SIG and SMD_CTS_SIG signals conversion is modified to
TIOCM_DSR and TIOCM_CTS respectively.

CRs-Fixed: 2148119
Change-Id: I7cd61afe4639fc7c5fd993f4047fad3ff04c53a7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Pass usb controller id for 8996"
Linux Build Service Account [Thu, 30 Nov 2017 11:23:40 +0000 (03:23 -0800)]
Merge "ARM: dts: msm: Pass usb controller id for 8996"

6 years agoMerge "smb1351: Fix parallel ICL configuration"
Linux Build Service Account [Thu, 30 Nov 2017 11:23:39 +0000 (03:23 -0800)]
Merge "smb1351: Fix parallel ICL configuration"

6 years agoMerge "battery: fix ordering of ICL/FCC configuration"
Linux Build Service Account [Thu, 30 Nov 2017 11:23:38 +0000 (03:23 -0800)]
Merge "battery: fix ordering of ICL/FCC configuration"

6 years agoMerge "leds: qpnp-wled: Fix the check to disable AUTO_PFM"
Linux Build Service Account [Thu, 30 Nov 2017 11:23:37 +0000 (03:23 -0800)]
Merge "leds: qpnp-wled: Fix the check to disable AUTO_PFM"

6 years agoMerge "ath10k: Add phyerr event changes for HL1.0"
Linux Build Service Account [Thu, 30 Nov 2017 11:23:36 +0000 (03:23 -0800)]
Merge "ath10k: Add phyerr event changes for HL1.0"

6 years agoMerge "mmc: core: Return card status if sdr104_wa is not present"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:44 +0000 (15:24 -0800)]
Merge "mmc: core: Return card status if sdr104_wa is not present"

6 years agoMerge "ARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:43 +0000 (15:24 -0800)]
Merge "ARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP"

6 years agoMerge "ath10k: fix the potential buffer overflow in wow offload"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:42 +0000 (15:24 -0800)]
Merge "ath10k: fix the potential buffer overflow in wow offload"

6 years agoMerge "icnss: Add dev to all export APIs in ICNSS"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:41 +0000 (15:24 -0800)]
Merge "icnss: Add dev to all export APIs in ICNSS"

6 years agoMerge "msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:40 +0000 (15:24 -0800)]
Merge "msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c"

6 years agoMerge "defconfig: msm: Enable CONFIG_ESOC_DRV for msm8996 auto"
Linux Build Service Account [Wed, 29 Nov 2017 23:24:37 +0000 (15:24 -0800)]
Merge "defconfig: msm: Enable CONFIG_ESOC_DRV for msm8996 auto"

6 years agoMerge "DRM: SDE: Update the hdmi bridge to handle HPD clock"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:12 +0000 (04:26 -0800)]
Merge "DRM: SDE: Update the hdmi bridge to handle HPD clock"

6 years agoMerge "defconfig: msm: Enable USB audio QMI service driver for 8996"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:11 +0000 (04:26 -0800)]
Merge "defconfig: msm: Enable USB audio QMI service driver for 8996"

6 years agoMerge "mmc: core: add power on to SD card detect"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:09 +0000 (04:26 -0800)]
Merge "mmc: core: add power on to SD card detect"

6 years agoMerge "msm: ipa: dynamic memory leak fix"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:08 +0000 (04:26 -0800)]
Merge "msm: ipa: dynamic memory leak fix"

6 years agoMerge "sound: usb: Provide controller number in QMI response"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:06 +0000 (04:26 -0800)]
Merge "sound: usb: Provide controller number in QMI response"

6 years agoMerge "usb: core: Add helper function to return controller id"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:05 +0000 (04:26 -0800)]
Merge "usb: core: Add helper function to return controller id"

6 years agoMerge "icnss: Remove MSA0 permission only when modem is crashed"
Linux Build Service Account [Wed, 29 Nov 2017 12:26:04 +0000 (04:26 -0800)]
Merge "icnss: Remove MSA0 permission only when modem is crashed"

6 years agoARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP
Rahul Sharma [Fri, 10 Nov 2017 11:21:04 +0000 (16:51 +0530)]
ARM: dts: msm: modify HDMI configuration for msm8996 auto ADP/CDP

Automotive use case requirement is to have HDMI display as non-pluggable.
This change also set a custom mode as 1920x1080p@60Hz.

Change-Id: Ic2baec180d51dc6a91eaf72c44df1da066f04d2e
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoath10k: fix the potential buffer overflow in wow offload
Sarada Prasanna Garnayak [Tue, 28 Nov 2017 06:54:39 +0000 (12:24 +0530)]
ath10k: fix the potential buffer overflow in wow offload

Update the arp and ns tuple for arp-ns tlv cmd and pass
the size of IP address and wlan net dev name during mem
copy and comparison.

CRs-Fixed: 2149966
Change-Id: I9457af4578c70f876c3a58e3d8c655dcaa476e07
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoicnss: Add dev to all export APIs in ICNSS
Sarada Prasanna Garnayak [Mon, 16 Oct 2017 10:11:25 +0000 (15:41 +0530)]
icnss: Add dev to all export APIs in ICNSS

Add device pointer in all export symbol to
add support for numerous WLAN module.

CRs-Fixed: 2138446
Change-Id: I981155c165e4e5c2794b778afe647f8a588dd860
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agomsm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c
Trishansh Bhardwaj [Wed, 22 Nov 2017 09:25:32 +0000 (14:55 +0530)]
msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c

If same event is unsubscribed before v4l2_event_subscribe returned,
Then function v4l2_event_subscribe have possibility use-after-free.

Serialize msm_subscribe_event and msm_unsubscribe_event to
prevent parallel invocation of v4l2_event_subscribe and
v4l2_event_unsubscribe.

Change-Id: Ia28cfb9d46550d58221f157337a1468f524753e3
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
6 years agoath10k: Add phyerr event changes for HL1.0
Rakesh Pillai [Fri, 24 Nov 2017 11:36:44 +0000 (17:06 +0530)]
ath10k: Add phyerr event changes for HL1.0

HL1.0 firmware sends phyerr_mask in the phyerr
event, which needs to be used to determine the
type of phyerr.

Add the phyerr_mask parameters for HL1.0 in the
phyerr wmi event.

CRs-Fixed: 2150566
Change-Id: Ib2d5286fbf45d41229e68d817d65714d18811a4e
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agoscsi: ufs: Add counter for hibernate and gear switch
Sayali Lokhande [Wed, 20 Sep 2017 14:09:18 +0000 (19:39 +0530)]
scsi: ufs: Add counter for hibernate and gear switch

This change adds few more debugfs entries to capture
statistics regarding the ufs driver.
This information include:
1. ufs hibernate exit count
2. ufs power mode change count
usage : cat /sys/kernel/debug/ufshcd0/show_hba

Change-Id: I75ac694c1f7e98d527392372300d16ad911ac512
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>