Commit graph

595372 commits

Author SHA1 Message Date
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
Satya Durga Srinivasu Prabhala
d88361c224 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>
2017-12-04 00:27:16 -08:00
Linux Build Service Account
501a8de7b6 Merge "qseecom: fix a race condition when TA is blocked" 2017-12-03 09:32:20 -08:00
Linux Build Service Account
96081867a4 Merge "qseecom: fix a common lib loading issue" 2017-12-03 09:32:19 -08:00
Zhen Kong
69fb586ddb 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>
2017-12-02 08:25:16 -08:00
Zhen Kong
6fadad98bf 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>
2017-12-02 08:17:10 -08:00
Zhen Kong
db3336d536 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>
2017-12-02 08:02:10 -08:00
Linux Build Service Account
55cbbe6873 Merge "msm: kgsl: Capture all the shader data in the snapshot" 2017-12-01 13:29:13 -08:00
Lynus Vaz
dec0aecf7f 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>
2017-12-01 17:55:08 +05:30
Linux Build Service Account
d580be2b5d Merge "msm: ipa3: Remove ep_delay on disconnect sequence" 2017-12-01 04:19:57 -08:00
Linux Build Service Account
9a65cf65cd Merge "cnss2: Add a debug option to skip any kind of recovery" 2017-12-01 04:19:56 -08:00
Daocai
5394b5a5a6 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>
2017-12-01 15:06:52 +08:00
Mohammed Javid
e0f095e420 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>
2017-12-01 10:55:48 +05:30
Yue Ma
081d3dfb37 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>
2017-11-30 16:34:22 -08:00
Linux Build Service Account
511b3b485d Merge "sound: usb: Update QMI indication message" 2017-11-30 14:02:16 -08:00
Linux Build Service Account
63dbbf58d1 Merge "usb: host: xhci: Remove helper API retuning dcba dma address" 2017-11-30 14:02:16 -08:00
Linux Build Service Account
b3b6467d66 Merge "soc: qcom: glink_pkt: Modify conversion of CTS/DTR signals" 2017-11-30 14:02:14 -08:00
Linux Build Service Account
9123b63f98 Merge "msm: kgsl: Fix the process sysfs refcounting" 2017-11-30 14:02:13 -08:00
Linux Build Service Account
dc25cb3595 Merge "scsi: ufs: Add counter for hibernate and gear switch" 2017-11-30 14:02:12 -08:00
Lynus Vaz
d8475cbda7 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>
2017-11-30 06:42:01 -08:00
Dhoat Harpal
3946f6ea3f 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>
2017-11-30 17:27:52 +05:30
Linux Build Service Account
fca788d095 Merge "ARM: dts: msm: Pass usb controller id for 8996" 2017-11-30 03:23:40 -08:00