Commit graph

595136 commits

Author SHA1 Message Date
Linux Build Service Account
02f487d282 Merge "msm: camera: isp: Enable epoch2 interrupt for pipeline 47" 2017-11-23 14:01:16 -08:00
Linux Build Service Account
aa673858c8 Merge "ath10k: Enable WoWLAN for the wcn3990 snoc wlan module" 2017-11-23 14:01:14 -08:00
Linux Build Service Account
0cc98101b4 Merge "scsi: ufs: Get TX and RX fsm state in case of abort" 2017-11-23 14:01:13 -08:00
Linux Build Service Account
349c988a25 Merge "drm/msm: protect register dumps and debugfs with mutex" 2017-11-23 14:01:12 -08:00
Linux Build Service Account
7ef7dfa0e9 Merge "USB: gsi: Ring Doorbell to GSI if check for suspend fails" 2017-11-23 14:01:10 -08:00
Linux Build Service Account
2cd7146bb1 Merge "ARM: dts: msm: update the new HDMI splash address on msm8996" 2017-11-23 05:00:02 -08:00
Lokesh Kumar Aakulu
09a7db6cfa msm: camera: isp: Enable epoch2 interrupt for pipeline 47
Enable epoch2 interrupt and configure the line as asked
by input camif configuration from user library

Change-Id: Id4f623a907b385a17d63c35fc7746117b666d885
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
2017-11-23 14:27:51 +05:30
Sayali Lokhande
8492efd5d8 scsi: ufs: Get TX and RX fsm state in case of abort
If ufshcd_print_fsm_state() is called during UIC
commands failure, mutex lockup issue is observed
for uic_cmd_mutex. To fix this, read TX and RX
FSM states for UFS aborts cases only, for debugging
purpose.

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

CRs-Fixed: 2139961
Change-Id: Ic43414b965aee27564f8bbbe237c706f5262c2e4
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-11-22 21:29:30 +05:30
Sarada Prasanna Garnayak
3a9dadbfd3 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>
2017-11-22 21:17:47 +05:30
Sarada Prasanna Garnayak
1e4bd1242e 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>
2017-11-22 07:06:38 -08:00
Mohammed Javid
086021e076 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>
2017-11-22 11:47:45 +05:30
Mohammed Javid
a0e635c6b8 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>
2017-11-21 21:32:53 -08:00
Subhash Jadavani
d409d57f0e 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>
2017-11-21 21:22:39 -08:00
Rahul Sharma
c5129b317e 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>
2017-11-22 10:52:14 +05:30
jiad
77dc587592 mhi: core: fix sequence for new transfer
sequence for both rddm and fw download are initialized to be 0.
They are incremented by 1 in bhi_probe() and upon real transfer
takes place.

Issue is in SSR case, sequence is incrementing in a way like 1,
3, 5 and etc as observed. The increment in bhi_probe() seems
unnecessay as there's no real transfer.

Fix is to initialize sequence to 1 and increment by 1 when real
transfer takes place in bhi_bhie_transfer().

Change-Id: I210840cd1f7fecc300ecb69da8a50fbb1d200562
Signed-off-by: Jia Ding <jiad@codeaurora.org>
CRs-Fixed: 2147433
2017-11-22 10:16:06 +08:00
Lloyd Atkinson
253b2380e4 drm/msm: protect register dumps and debugfs with mutex
Add a mutex to serialize sde debug register dumps for
back-to-back dumps, as well as any debugfs access.

Change-Id: I7f6186575df021ce48e18ea980f9c2108b756283
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
2017-11-21 20:10:50 -05:00
Alan Kwong
e3f7d2ac8a msm: sde: disable support for v4l2 event subscription
V4l2 event subscription is not used by rotator, and
default implementation on 4.9 is causing failure during
file release. Disable v4l2 event subscription for rotator
to avoid invalid file release.

Change-Id: I486f2eba7112852a1c818efeeb86033f17139b33
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-11-21 10:31:34 -08:00
Linux Build Service Account
f697ab3e51 Merge "msm: ba: avoid system crash in msm_ba_open()" 2017-11-21 06:44:58 -08:00
Linux Build Service Account
f79329e286 Merge "Revert "ais: query field info and pass to user space"" 2017-11-21 06:44:56 -08:00
Linux Build Service Account
c4f4e49994 Merge "Prevent potential double frees in sg driver" 2017-11-21 06:44:55 -08:00
Linux Build Service Account
e4401d0ea1 Merge "audio: ion: switch to msm ion on gvm." 2017-11-21 06:44:54 -08:00
Linux Build Service Account
a0f8e2a9d6 Merge "msm: camera: Add support to reconfig regupdate fail buffer" 2017-11-21 06:44:53 -08:00
Scott Branden
a1185dc1d2 arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE
Add memory-hotplug support for ARM64 platform.

This requires addition of
ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE config options.

MEMORY_PROBE config option is added to support
/sys/devices/system/memory/probe functionality.

In addition architecture specific arch_add_memory and
arch_remove memory management functions are added.

Change-Id: I1fc4e8c93cfe1b9722b2fc8d811390e6cdfa7995
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Patch-mainline: linux-kernel @ 11 Apr 2017, 18:24
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2017-11-21 18:55:04 +05:30
Abhinav Kumar
95c0e89b37 drm/msm: implement HDMI teardown sequence for DRM driver
Currently the teardown sequence in the DRM HDMI driver is
incorrect and it places the HDMI controller in an incorrect
state during cable unplug OR device teardown.
Fix the teardown sequence and follow the hardware programming
sequence correctly to avoid artifacts.

Change-Id: Ifb9ec303fa710409087a74c03435c83823d02763
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-11-20 22:04:55 -08:00
Abhinav Kumar
172ea1ed54 drm/msm: disable HDCP before turning off timing engine
As per the hardware programming sequence, HDCP authentication
process must start after turning ON the timing engine and the
authentication process should be stopped before turning OFF
the timing engine.

Implement this sequence during the HDMI turn OFF sequence.

Also, make sure to wait for one frame before disabling the DDC
while turning OFF the HDCP. This is required to make sure we
receive the HDCP encryption disabled interrupt before disabling
the HW.

Change-Id: I3174f51fe1b6ab578db2d38caaf761444e6ebd8f
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-11-20 21:59:52 -08:00
Sayali Lokhande
db50a405c2 scsi: ufs: Fix off-by-one bug in ufs debugfs driver
When getting string from userspace by simple_write_to_buffer
in ufs_qcom_dbg_testbus_cfg_write() function, null byte may
be written out of bounds of configuration buffer if return
value is same as size of buffer, causing off-by-one bug.
This change passes correct available size of configuration
buffer to simple_write_to_buffer function.

Change-Id: If6085e806aa34622a9a57b02f563869c51011d2f
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-11-21 08:34:42 +05:30
Andy Sun
c884da03cc Revert "ais: query field info and pass to user space"
This reverts commit 3375a292ea.
Need to change the solution and re-implement this feature.

Change-Id: Iabd38bd5c0c062590215c3f22e9383853efa889c
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-11-21 09:23:16 +08:00
Linux Build Service Account
ce488494ce Merge "msm: camera: isp: don't set stripe_rd reload bit during hw reset" 2017-11-20 15:38:48 -08:00
Linux Build Service Account
31eebba21f Merge "USB: core: Add USB_DEVICE_ERROR uevent for enumeration timeout" 2017-11-20 15:38:47 -08:00
Yuanyuan Liu
f5b51b1f49 icnss: Send early modem crash notification to wlan driver
When SSR happending during WLAN interface up, a deadlock will happen
in many places where it waits for FW response. When wlan module starts,
it will hold a rtnl_lock and wait for FW response. If SSR happened at
this point, it will send ssr notification to all the registed modules
one by one. It will send notification to IPA first, which will also
tried to get a hold of rtnl_lock. Since ssr notification is synchronized,
IPA won't be able to return because of failing to acquire the lock and
wlan driver won't release the rtnl_lock until it timeout and crash.
Only graceful to avoid this deadlock is to get early modem
crash notification from platform via a path which does not acquire
RTNL lock and this way once driver has received early crash
notification it can reject interface up.

Modem notification comes to icnss before IPA, hence send
early crash notification in modem SSR handler so that wlan driver
can release RTNL lock as soon as possible.

CRs-Fixed: 2141970
Change-Id: If77c54a2a39ce5cf0e129eb5c6599cd3fd722886
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-11-20 14:25:20 -08:00
Abhijeet Dharmapurikar
1ef211f2cf smb-lib: allow hvdcp if pd is disabled
Currently when pd is disabled, we do not allow hvdcp. To fix that
once hvdcp timeout happens and if pd is disabled, force a pd_active
= 0. This will cause us to run legacy workaround and rerun apsd if
the charger was detected as hvdcp.

Importantly, once legacy bit workaround is run, wait 400mS for
typeC to debounce. Currently we wait for 100mS only and that
causes a removal detection since the CC lines are not settled within
100mS.

Also it may take up to 650mS for the vbus to drop once CC lines are
floated during the workaround. The current wait is just 500mS,
bump it up to a 1 second.

Change-Id: I17a7341e96d6efccde6270bc69d79c3f215b83e4
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-11-20 18:12:20 +05:30
Mohammed Javid
0051521505 msm: ipa: UAPI security code changes
Added code changes for UAPI security code
userspace inputs validation

Change-Id: I5f8b7c9cd27a9d8ca721a98f1cbf05c14588dd85
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-11-20 14:40:19 +05:30
Sriharsha Allenki
8edccf1213 usb: dwc3: Fix incorrect ep0 state on reset
According to the databook ep0 should be in setup
phase during reset. If host issues reset between
control transfers, ep0 will be  in an invalid state.
Fix this my issuing stall and restart on ep0 if it
is not in setup phase.

CRs-Fixed: 2136658
Change-Id: I6dc20c2735a6ce772533ccb5b63ba5d1b01f89d7
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2017-11-19 23:00:17 -08:00
Jingtao Chen
9d40f7f941 msm: ba: avoid system crash in msm_ba_open()
If it failed to get ba device, return NULL in msm_ba_open() to
avoid system crash on some specific board without adv7481 chip.

Change-Id: I5a3af414a683d852027b84b9ba0d64e2ee450e61
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
2017-11-19 18:48:40 -08:00