Commit graph

595532 commits

Author SHA1 Message Date
Ashay Jaiswal
379e518573 power: smb-lib: fix OTG enable error handling
Fix OTG enable error path and drop stale votes
on USB_ICL votable.

Change-Id: Ia0fce0ef75bb83ece72cc6a5a8f294b2500a0166
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-12-11 00:35:47 -08:00
Swetha Chikkaboraiah
59bea78942 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>
2017-12-10 06:31:30 -08:00
Yasir Malik
5823aba1e3 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>
2017-12-08 15:41:25 -05:00
Jack Pham
37800a3576 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>
2017-12-08 11:03:08 -08:00
Linux Build Service Account
aaf4841e27 Merge "defconfig: Add android-verity support for system" 2017-12-08 02:17:02 -08:00
Linux Build Service Account
31db7c5faa Merge "ARM: dts: msm: Add NTN_CLK_SYNC pin for msm8996 agave and auto cdp board" 2017-12-08 02:17:01 -08:00
Linux Build Service Account
4d55e87218 Merge "ARM: dts: msm: Disable PCIe L1 and L1ss for msm8996 CV2X" 2017-12-08 02:17:00 -08:00
Linux Build Service Account
4611ba9cda Merge "diag: Free the memory in diagfwd_peripheral_exit()" 2017-12-08 02:16:59 -08:00
Zhiqiang Tu
292371d2c1 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>
2017-12-08 15:14:17 +08:00
Jack Pham
4739afbe49 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>
2017-12-07 22:40:02 -08:00
Jack Pham
37d3ef23d6 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>
2017-12-07 22:39:30 -08:00
Jack Pham
e5f8604fdb 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>
2017-12-07 22:38:23 -08:00
Binoy Jayan
7c1908b242 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>
2017-12-07 20:23:58 -08:00
Manaf Meethalavalappu Pallikunhi
c92c942292 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>
2017-12-08 06:22:35 +05:30
Alex Yakavenka
e6b1de7b75 ARM: dts: msm: Change rh850 interrupt to gpio_122 on auto cdp boards
rh850_2_apq interrupt is connected to gpio_122 on auto cdp boards

CRs-Fixed: 2009305
Change-Id: Id60ec07a7bc4757050ad2a1c39123ec561581082
Signed-off-by: Alex Yakavenka <ayakav@codeaurora.org>
2017-12-07 14:19:46 -08:00
Poddar, Siddarth
5deec16a13 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>
2017-12-07 05:01:34 -08:00
Zou Shunxiang
92d3ea4649 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>
2017-12-07 01:15:41 -08:00
Linux Build Service Account
7099c46a66 Merge "wcnss: fix the potential buffer overflow in wlan ctrl data process" 2017-12-06 07:00:32 -08:00
Linux Build Service Account
69aa4ae8d7 Merge "icnss: Reject driver reinit request when FW is down" 2017-12-06 07:00:31 -08:00
Linux Build Service Account
cd655d0854 Merge "Revert "DRM: SDE: Update the hdmi bridge to handle HPD clock"" 2017-12-06 07:00:30 -08:00
Linux Build Service Account
99c39f9b50 Merge "ath10k: enable gtk offload for the wcn3990 wlan module" 2017-12-06 07:00:29 -08:00
Linux Build Service Account
152bcf351e Merge "ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug" 2017-12-06 07:00:28 -08:00
Linux Build Service Account
8bec3c2383 Merge "drm/msm: Add API support for getting GPU hang timeout" 2017-12-06 07:00:27 -08:00
Linux Build Service Account
e70f1f9a5c Merge "drm/msm: Save buffer iova's for rd-dump" 2017-12-06 07:00:26 -08:00
Sreelakshmi Gownipalli
aed8e81ec6 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>
2017-12-05 23:36:47 -08:00
Gustavo Solaira
b455f181be 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>
2017-12-05 21:36:16 -08:00
Gustavo Solaira
18d2bfed45 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>
2017-12-05 21:28:11 -08:00
Gustavo Solaira
a026858db0 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>
2017-12-05 21:28:06 -08:00
Linux Build Service Account
2289a63276 Merge "defconfig: msm: add touchscreen config for gvm" 2017-12-05 18:52:34 -08:00
Yuanyuan Liu
8a23ecb418 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>
2017-12-05 10:19:25 -08:00
Linux Build Service Account
4f8f073776 Merge "USB: CCID: Select TPDU level exchanges for CCID communication" 2017-12-05 09:35:14 -08:00
Linux Build Service Account
912c88baa7 Merge "power: smb1351-charger: Fix the float voltage unit passed to its set method" 2017-12-05 09:35:12 -08:00
Rahul Sharma
4bdd420c4c Revert "DRM: SDE: Update the hdmi bridge to handle HPD clock"
This reverts commit b31584ba68.

Change-Id: I8c58fb3124b946224028df75e4963f9331ac2ec3
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-12-05 09:27:37 -08:00
Sarada Prasanna Garnayak
b36f40c0d8 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>
2017-12-05 15:40:00 +05:30
Sarada Prasanna Garnayak
f0e1c2d499 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>
2017-12-05 00:44:46 -08:00
Ritesh Harjani
3b15dc0f3c 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>
2017-12-05 13:32:16 +05:30
Yimin Peng
83062409e9 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>
2017-12-04 23:43:49 -08:00
Vijayavardhan Vennapusa
048d29e723 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>
2017-12-04 20:48:05 -08:00
Kai Liu
a08f02e190 net: cnss2: restore pci config space before enable device
When loading wlan driver, driver will check if chip is initialized
by reading pci io FW_IND_INITIALIZED status. While timeout occurred
when wait for above status randomly in multi load-unload process.

Restore pci config space before enable device during resume pci link.

Change-Id: Ib10f739b2321c7cb0e71ad40db571075a56ae48a
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
2017-12-05 11:45:53 +08:00
Linux Build Service Account
06b749683b Merge "icnss: Reject register_driver request when WLAN FW is down" 2017-12-04 15:19:50 -08:00
Linux Build Service Account
aae9190964 Merge "ARM: dts: msm: mount system & vendor partitions in early init for 8996" 2017-12-04 15:19:48 -08:00
Linux Build Service Account
bb863df68a Merge "msm: ADSPRPC: use access_ok to validate pointers" 2017-12-04 15:19:47 -08:00
Linux Build Service Account
d033c287ec Merge "msm: ipa3: Fix to set QMB on USB ep" 2017-12-04 15:19:46 -08:00
Liam Mark
2b808936b4 ion: ensure CMO target is valid
Cleanup ION cache maintenance code to properly validate the target of
userspace cache maintenance requests.

Change-Id: I55b8e3584c59634f95250bc7c0bce5d8d70e6a13
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2017-12-04 13:22:18 -08:00
Yuanyuan Liu
554899595c 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>
2017-12-04 11:18:42 -08:00
Linux Build Service Account
9d94fcc769 Merge "ARM: dts: msm: Remove adv7533 power commands for 600p DSI panel" 2017-12-04 06:17:02 -08:00
Linux Build Service Account
bcc6bc7c9d Merge "usb: gadget: f_fs: Fix kernel panic if use_os_string not set" 2017-12-04 06:17:01 -08:00
Linux Build Service Account
541f2b13c3 Merge "msm: ADSPRPC: validate context pointer with magic number" 2017-12-04 06:17:00 -08:00
Mohammed Javid
211e211e71 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>
2017-12-04 02:36:55 -08:00
c_mtharu
b3c277dac5 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>
2017-12-04 02:34:54 -08:00