OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
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 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 agomhi: core: fix sequence for new transfer
jiad [Tue, 21 Nov 2017 04:35:01 +0000 (12:35 +0800)]
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

6 years agomsm: sde: disable support for v4l2 event subscription
Alan Kwong [Thu, 12 Oct 2017 15:49:55 +0000 (11:49 -0400)]
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>
6 years agoMerge "msm: ba: avoid system crash in msm_ba_open()"
Linux Build Service Account [Tue, 21 Nov 2017 14:44:58 +0000 (06:44 -0800)]
Merge "msm: ba: avoid system crash in msm_ba_open()"

6 years agoMerge "Revert "ais: query field info and pass to user space""
Linux Build Service Account [Tue, 21 Nov 2017 14:44:57 +0000 (06:44 -0800)]
Merge "Revert "ais: query field info and pass to user space""

6 years agoMerge "Prevent potential double frees in sg driver"
Linux Build Service Account [Tue, 21 Nov 2017 14:44:56 +0000 (06:44 -0800)]
Merge "Prevent potential double frees in sg driver"

6 years agoMerge "audio: ion: switch to msm ion on gvm."
Linux Build Service Account [Tue, 21 Nov 2017 14:44:55 +0000 (06:44 -0800)]
Merge "audio: ion: switch to msm ion on gvm."

6 years agoMerge "msm: camera: Add support to reconfig regupdate fail buffer"
Linux Build Service Account [Tue, 21 Nov 2017 14:44:53 +0000 (06:44 -0800)]
Merge "msm: camera: Add support to reconfig regupdate fail buffer"

6 years agoarm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE
Scott Branden [Fri, 28 Apr 2017 08:39:53 +0000 (14:09 +0530)]
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>
6 years agodrm/msm: implement HDMI teardown sequence for DRM driver
Abhinav Kumar [Sat, 18 Nov 2017 03:53:39 +0000 (19:53 -0800)]
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>
6 years agodrm/msm: disable HDCP before turning off timing engine
Abhinav Kumar [Tue, 21 Nov 2017 05:49:04 +0000 (21:49 -0800)]
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>
6 years agoscsi: ufs: Fix off-by-one bug in ufs debugfs driver
Sayali Lokhande [Fri, 17 Nov 2017 04:57:18 +0000 (10:27 +0530)]
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>
6 years agoRevert "ais: query field info and pass to user space"
Andy Sun [Mon, 20 Nov 2017 06:10:53 +0000 (14:10 +0800)]
Revert "ais: query field info and pass to user space"

This reverts commit 3375a292eaf2230a2ad3b90dfc16c9c3ad1f9ce7.
Need to change the solution and re-implement this feature.

Change-Id: Iabd38bd5c0c062590215c3f22e9383853efa889c
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agoMerge "msm: camera: isp: don't set stripe_rd reload bit during hw reset"
Linux Build Service Account [Mon, 20 Nov 2017 23:38:49 +0000 (15:38 -0800)]
Merge "msm: camera: isp: don't set stripe_rd reload bit during hw reset"

6 years agoMerge "USB: core: Add USB_DEVICE_ERROR uevent for enumeration timeout"
Linux Build Service Account [Mon, 20 Nov 2017 23:38:48 +0000 (15:38 -0800)]
Merge "USB: core: Add USB_DEVICE_ERROR uevent for enumeration timeout"

6 years agoicnss: Send early modem crash notification to wlan driver
Yuanyuan Liu [Fri, 10 Nov 2017 20:12:17 +0000 (12:12 -0800)]
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>
6 years agosmb-lib: allow hvdcp if pd is disabled
Abhijeet Dharmapurikar [Fri, 25 Aug 2017 21:23:09 +0000 (14:23 -0700)]
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>
6 years agomsm: ipa: UAPI security code changes
Mohammed Javid [Mon, 7 Aug 2017 17:45:48 +0000 (23:15 +0530)]
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>
6 years agousb: dwc3: Fix incorrect ep0 state on reset
Sriharsha Allenki [Thu, 16 Nov 2017 11:30:09 +0000 (17:00 +0530)]
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>
6 years agomsm: ba: avoid system crash in msm_ba_open()
Jingtao Chen [Fri, 17 Nov 2017 09:14:41 +0000 (17:14 +0800)]
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>
6 years agomsm: mdss: hdmi: clear deep color bits in the HDMI controller
Yuan Zhao [Tue, 24 Oct 2017 08:21:42 +0000 (16:21 +0800)]
msm: mdss: hdmi: clear deep color bits in the HDMI controller

Clear the deep color bits in the HDMI controller in case
the mode does not need OR support deep color.

Change-Id: I77a5cd74bc90c249d8902437a7b87a07259a2c35
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
6 years agoMerge "cnss2: fix PCIe D3hot when suspending link"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:23 +0000 (07:45 -0800)]
Merge "cnss2: fix PCIe D3hot when suspending link"

6 years agoMerge "FROMLIST: binder: fix proc->files use-after-free"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:22 +0000 (07:45 -0800)]
Merge "FROMLIST: binder: fix proc->files use-after-free"

6 years agoMerge "ais: query field info and pass to user space"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:21 +0000 (07:45 -0800)]
Merge "ais: query field info and pass to user space"

6 years agoMerge "msm: kgsl: Update the dispatcher timer properly"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:20 +0000 (07:45 -0800)]
Merge "msm: kgsl: Update the dispatcher timer properly"

6 years agoMerge "clk: qcom: mdss: fix the divider programming for DisplayPort PLL"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:19 +0000 (07:45 -0800)]
Merge "clk: qcom: mdss: fix the divider programming for DisplayPort PLL"

6 years agoMerge "msm: camera: Version changes for new csid on msm8953"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:18 +0000 (07:45 -0800)]
Merge "msm: camera: Version changes for new csid on msm8953"

6 years agoMerge "msm: camera: Changing return condition after NULL check"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:17 +0000 (07:45 -0800)]
Merge "msm: camera: Changing return condition after NULL check"

6 years agoMerge "msm: vidc: Fix instance formats initialization issue"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:16 +0000 (07:45 -0800)]
Merge "msm: vidc: Fix instance formats initialization issue"

6 years agoMerge "msm: mdss: dp: fix programming of DisplayPort SDP registers"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:15 +0000 (07:45 -0800)]
Merge "msm: mdss: dp: fix programming of DisplayPort SDP registers"

6 years agoMerge "msm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:13 +0000 (07:45 -0800)]
Merge "msm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order"

6 years agoMerge "msm: kgsl: Use the bind lock when dumping entries"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:12 +0000 (07:45 -0800)]
Merge "msm: kgsl: Use the bind lock when dumping entries"

6 years agoMerge "msm: ais: sensor: actuator: avoid accessing out of bound memory"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:11 +0000 (07:45 -0800)]
Merge "msm: ais: sensor: actuator: avoid accessing out of bound memory"

6 years agoMerge "drivers: qdsp6v2: Add mutex unlock to properly release lock"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:10 +0000 (07:45 -0800)]
Merge "drivers: qdsp6v2: Add mutex unlock to properly release lock"

6 years agoMerge "security: pfe: Return proper error code"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:09 +0000 (07:45 -0800)]
Merge "security: pfe: Return proper error code"

6 years agoMerge "ARM: dts: msm: Fix tavil codec reset issue on sdm660"
Linux Build Service Account [Sun, 19 Nov 2017 15:45:08 +0000 (07:45 -0800)]
Merge "ARM: dts: msm: Fix tavil codec reset issue on sdm660"

6 years agomsm: sps: Update debug message format specifier
Jishnu Prakash [Tue, 14 Nov 2017 13:29:34 +0000 (18:59 +0530)]
msm: sps: Update debug message format specifier

Restrict printing of kernel virtual addresses in SPS driver.
In debug code, %p is used to print virtual addresses of
kernel objects, which can be exploited by attackers. It is
replaced with %pK, which hides these values if kptr_restrict
is set (default on Android).

Change-Id: I57585fa655abc01b2e8d694c8f31b7617bbf4ec7
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
6 years agoMerge "ath10k: check the pipe credit update enabled flag before set"
Linux Build Service Account [Sat, 18 Nov 2017 08:35:27 +0000 (00:35 -0800)]
Merge "ath10k: check the pipe credit update enabled flag before set"

6 years agoMerge "power: qpnp-fg-gen3: update battery profile based on Rconn configuration"
Linux Build Service Account [Sat, 18 Nov 2017 08:35:25 +0000 (00:35 -0800)]
Merge "power: qpnp-fg-gen3: update battery profile based on Rconn configuration"

6 years agoMerge "DRM: SDE: Fix the spelling in DTS parser"
Linux Build Service Account [Sat, 18 Nov 2017 00:00:55 +0000 (16:00 -0800)]
Merge "DRM: SDE: Fix the spelling in DTS parser"

6 years agoMerge "ARM: dts: msm: Add support for MSM8996 Mizar platform"
Linux Build Service Account [Sat, 18 Nov 2017 00:00:54 +0000 (16:00 -0800)]
Merge "ARM: dts: msm: Add support for MSM8996 Mizar platform"

6 years agoath10k: check the pipe credit update enabled flag before set
Sarada Prasanna Garnayak [Sat, 11 Nov 2017 07:24:50 +0000 (12:54 +0530)]
ath10k: check the pipe credit update enabled flag before set

Check the credit update flag has enabled for the pipe
before setting the flag for credit report update request
on the wcn3990 WLAN module.

CRs-Fixed: 2141924
Change-Id: Ic628fa49934c110b7abccefb45a2a354dc462791
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoFROMLIST: binder: fix proc->files use-after-free
Todd Kjos [Fri, 10 Nov 2017 23:30:27 +0000 (15:30 -0800)]
FROMLIST: binder: fix proc->files use-after-free

(from https://patchwork.kernel.org/patch/10058587/)

proc->files cleanup is initiated by binder_vma_close. Therefore
a reference on the binder_proc is not enough to prevent the
files_struct from being released while the binder_proc still has
a reference. This can lead to an attempt to dereference the
stale pointer obtained from proc->files prior to proc->files
cleanup. This has been seen once in task_get_unused_fd_flags()
when __alloc_fd() is called with a stale "files".

The fix is to always use get_files_struct() to obtain struct_files
so that the refcount on the files_struct is used to prevent
a premature free. proc->files is removed since we get it every
time.

Bug: 69164715
Change-Id: I6431027d3d569e76913935c21885201505627982
Signed-off-by: Todd Kjos <tkjos@google.com>
Git-commit: 1d6b43334b45144beb0dc8236f9eb3b6cf3b2995
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agoMerge "msm: camera: Enable (2+1) lane csiphy combo mode"
Linux Build Service Account [Fri, 17 Nov 2017 03:11:13 +0000 (19:11 -0800)]
Merge "msm: camera: Enable (2+1) lane csiphy combo mode"

6 years agocnss2: fix PCIe D3hot when suspending link
jiad [Thu, 16 Nov 2017 08:54:09 +0000 (16:54 +0800)]
cnss2: fix PCIe D3hot when suspending link

When doing WLAN SSR tests on Rome PCIe platform, system hang
is observed. After debugging, setting D3hot to PCIe link when
suspending leads to the hang.

Setting D3hot is a new change, which is added for Napier platform.
But this code path shares with legacy Rome platform. In previous
implementations for Rome PCIe platforms, setting D3hot to link
is not needed.

Fix is to set D3hot for Napier specific platforms.

Change-Id: Ia6bcb1b898204c0a8fd63355dd1f0808021182c4
CRs-Fixed: 2145090
Signed-off-by: Jia Ding <jiad@codeaurora.org>
6 years agoDRM: SDE: Fix the spelling in DTS parser
Camus Wong [Mon, 13 Nov 2017 21:20:02 +0000 (16:20 -0500)]
DRM: SDE: Fix the spelling in DTS parser

Fix one of the mode properties' spelling error.

Change-Id: I6cb0f31aa62b825773b97099fcac3da8a2b94af6
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoclk: qcom: mdss: fix the divider programming for DisplayPort PLL
Padmanabhan Komanduru [Wed, 15 Nov 2017 13:21:05 +0000 (18:51 +0530)]
clk: qcom: mdss: fix the divider programming for DisplayPort PLL

Fix the divider programming of DisplayPort PLL with the correct
value. Without this, display doesn't up fine with certain
resolutions on some sinks when link rate is 5.4 GHz.

Change-Id: I7c5a452a9df757240a1c6c3d371bd46a16f98efd
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
6 years agomsm: camera: Version changes for new csid on msm8953
Shankar Ravi [Thu, 17 Dec 2015 09:22:12 +0000 (14:52 +0530)]
msm: camera: Version changes for new csid on msm8953

msm8953 uses a new version of csid. Adding new
configuration file and making necessary driver changes.

Change-Id: I5c0ce7f43a4ccd55bd18461bc910e4dcb0c23bb0
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
6 years agomsm: camera: Changing return condition after NULL check
Samyukta Mogily [Wed, 12 Oct 2016 12:43:50 +0000 (18:13 +0530)]
msm: camera: Changing return condition after NULL check

If return is inside the if condition, rc value is returned
only for that case. Hence shifting the return rc statement
outside the if loop, to return the value of rc for all cases.

Change-Id: I2f96cd0d301f580c0e7019746bade4e125661a36
CRs-Fixed: 1076948
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
6 years agoSDE: Fix the minimum value in display property
Camus Wong [Sat, 11 Nov 2017 05:41:10 +0000 (00:41 -0500)]
SDE: Fix the minimum value in display property

The minium value of u32 is zero instead of -1.  -1 will become the
largest value in u32.

Change-Id: I20fcab7d5912d6da7c4afe1ec7a86333767b0bf1
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agomsm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order
Benjamin Chan [Tue, 14 Nov 2017 05:27:17 +0000 (00:27 -0500)]
msm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order

Parameter mdss_mdp_plane_sizes must be cleared to 0 before returning
under an error condition, otherwise caller function will use the
uninitialized mdss_mdp_plane_sizes values and caused incorrect
operation.

Change-Id: I856b17ce9e917cc450040463ec34b7309d34b9b5
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
6 years agoARM: dts: msm: Add support for MSM8996 Mizar platform
Bharathraj Nagaraju [Wed, 2 Aug 2017 17:02:01 +0000 (10:02 -0700)]
ARM: dts: msm: Add support for MSM8996 Mizar platform

Add device tree files needed to support MSM8996 based
mizar platform.

Change-Id: Ife6c6659b981b37c6b9d9cbb0a0c106488f1e07f
Signed-off-by: Bharathraj Nagaraju <snbraj@codeaurora.org>
6 years agoUSB: core: Add USB_DEVICE_ERROR uevent for enumeration timeout
Chandana Kishori Chiluveru [Tue, 17 May 2016 06:13:54 +0000 (11:43 +0530)]
USB: core: Add USB_DEVICE_ERROR uevent for enumeration timeout

Some userspace modules expect USB driver to send event to userspace, when
usb device enumeration failure with device descriptor read errors.
Add USB_DEVICE_ERROR uevent in the USB driver to explicitly send the ERROR
uevent for such case.

Change-Id: I7128869ff0700ab90d4c949de24cd03c5c90e22e
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
6 years agoais: query field info and pass to user space
Andy Sun [Mon, 25 Sep 2017 02:08:42 +0000 (10:08 +0800)]
ais: query field info and pass to user space

Current path to query field info: SOF ISR -> tasklet -> query thread
with high priority -> ba driver -> adv7481.

Pass field type to user space if they are valid after verification.

Change-Id: Id9926236389200446092dc9abb688ee1f83ab0c3
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agomsm: camera: Add support to reconfig regupdate fail buffer
Lokesh Kumar Aakulu [Mon, 9 Oct 2017 09:05:59 +0000 (14:35 +0530)]
msm: camera: Add support to reconfig regupdate fail buffer

When reg update isn't issued for given settings current
buffer is marked as drop buffer. To avoid such drop bu-
ffers, reconfigure same buffer to next SOF and propaga-
te that error to MCT and IFACE modules and make sure
request frame is delayed by one SOF Frame.

Change-Id: Iaec5eef3f26f941cc54825d40815c047ccebb3bc
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
6 years agomsm: camera: isp: don't set stripe_rd reload bit during hw reset
Gaoxiang Chen [Tue, 31 Oct 2017 02:57:06 +0000 (10:57 +0800)]
msm: camera: isp: don't set stripe_rd reload bit during hw reset

During reset isp HW, don't set stripe_rd reload bit, otherwise
it might cause iommu page fault, which actually is a fasle alarm.

CRs-Fixed: 2135311
Change-Id: I9be0400640edbf687ecfe08edcfdc1c7f7de25b6
Signed-off-by: Gaoxiang Chen <gaochen@codeaurora.org>
6 years agomsm: kgsl: Use the bind lock when dumping entries
Lynus Vaz [Mon, 30 Oct 2017 12:20:43 +0000 (17:50 +0530)]
msm: kgsl: Use the bind lock when dumping entries

Take the bind lock when we dump information about sparse memory
allocations through the debugfs node.

Change-Id: I955d64d06a259a2bbe4d85a33d68887ee01aad07
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agopower: qpnp-fg-gen3: update battery profile based on Rconn configuration
Subbaraman Narayanamurthy [Fri, 10 Nov 2017 23:37:29 +0000 (15:37 -0800)]
power: qpnp-fg-gen3: update battery profile based on Rconn configuration

Currently, Rconn is configured once in fg_hw_init() if it is not
configured already. However, if the driver loads the profile
later, it will overwrite the Rconn value configured during
fg_hw_init. To fix this problem, configure Rconn after handling
battery profile loading.

Usually the Rconn configuration is setup differently from what
the profile has for it. We check if the profile in SRAM is bit
to bit matching with the profile in device tree. We may come
across a mismatch for Rconn configuration and conclude that the
profile isn't matching. Fix this by initializing the Rconn
configuration in the profile read from device tree to the value
read from SRAM.

CRs-Fixed: 2142441
Change-Id: I2b7ac8cd6efe811527c29bc5cd0fa43b77da7b15
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoMerge "soc: qcom: service-locator: Update incorrect usage of qmi_send_req_wait"
Linux Build Service Account [Tue, 14 Nov 2017 17:45:25 +0000 (09:45 -0800)]
Merge "soc: qcom: service-locator: Update incorrect usage of qmi_send_req_wait"

6 years agomsm: camera: isp: Allocate kernel page and map to userspace
Lokesh Kumar Aakulu [Tue, 14 Nov 2017 12:19:55 +0000 (17:49 +0530)]
msm: camera: isp: Allocate kernel page and map to userspace

Share memory with kernel and user and update latest
kernel sof frame id.

Change-Id: Ie35132ffb9bd0298483b451b3333b3b2e3bb32ac
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
6 years agodrivers: qdsp6v2: Add mutex unlock to properly release lock
Tanya Dixit [Thu, 26 Oct 2017 08:20:42 +0000 (13:50 +0530)]
drivers: qdsp6v2: Add mutex unlock to properly release lock

Add mutex unlock in function audio_effects_shared_ioctl
at appropriate place to prevent use after free.

CRs-Fixed: 2123291
Change-Id: Ie0d321dc8cc20a295d102a44faea7e5710834932
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
6 years agoPrevent potential double frees in sg driver
Robb Glasser [Fri, 24 Mar 2017 23:23:37 +0000 (16:23 -0700)]
Prevent potential double frees in sg driver

sg_ioctl could be spammed by requests, leading to a double free in
__free_pages. This protects the entry points of sg_ioctl where the
memory could be corrupted by a double call to __free_pages if multiple
requests are happening concurrently.

Bug:35644812

Change-Id: Ie13f65beb6974430f90292e2742841b26aecb8b1
Signed-off-by: Robb Glasser <rglasser@google.com>
Git-commit: 22d8e80738b5ce8784d59b48b0b051a520da4bec
Git-repo: https://android.googlesource.com/kernel/msm
[srkupp@codeaurora.org: Resolved trivial conflicts]
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agosoc: qcom: service-locator: Update incorrect usage of qmi_send_req_wait
Kyle Yan [Tue, 7 Nov 2017 23:27:29 +0000 (15:27 -0800)]
soc: qcom: service-locator: Update incorrect usage of qmi_send_req_wait

qmi_send_req_wait expects timeout argument to be passed in ms and not
in jiffies. Update the call in service-locator to pass in the correct
argument.

Change-Id: Ib2f8deedf2fb2a561c30b0c8511bb1edd5a37361
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agosoc: qcom: service-locator: Fix error message prints for receiving messages
Kyle Yan [Wed, 8 Nov 2017 06:14:39 +0000 (22:14 -0800)]
soc: qcom: service-locator: Fix error message prints for receiving messages

ENOMSG is not a real failure return code for qmi_recv_msg. Instead ENOMSG
signifies that we have finished reading the entirety of the message buffer.
Update the error condition to print errors only when any error message
other than ENOMSG is returned.

Change-Id: Id6b42df182cb02f2cbffaae9698363b7dafce4e4
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agoMerge "power: qcom: msm-core: Add mutex lock for ioctl"
Linux Build Service Account [Mon, 13 Nov 2017 15:26:33 +0000 (07:26 -0800)]
Merge "power: qcom: msm-core: Add mutex lock for ioctl"

6 years agoMerge "ASoC: msm: qdsp6v2: Remove excess logs in compress driver"
Linux Build Service Account [Mon, 13 Nov 2017 15:26:32 +0000 (07:26 -0800)]
Merge "ASoC: msm: qdsp6v2: Remove excess logs in compress driver"

6 years agoMerge "adv7481: Changes to compile ADV7481 as a module"
Linux Build Service Account [Mon, 13 Nov 2017 15:26:31 +0000 (07:26 -0800)]
Merge "adv7481: Changes to compile ADV7481 as a module"

6 years agoMerge "usb: gadget: ffs: Defer freeing memory on free_inst if in use"
Linux Build Service Account [Mon, 13 Nov 2017 15:26:30 +0000 (07:26 -0800)]
Merge "usb: gadget: ffs: Defer freeing memory on free_inst if in use"

6 years agoMerge "ARM: dts: msm: add SLPI fw name property for msm8996"
Linux Build Service Account [Mon, 13 Nov 2017 15:26:29 +0000 (07:26 -0800)]
Merge "ARM: dts: msm: add SLPI fw name property for msm8996"

6 years agomsm: mdss: dp: fix programming of DisplayPort SDP registers
Padmanabhan Komanduru [Mon, 13 Nov 2017 13:45:07 +0000 (19:15 +0530)]
msm: mdss: dp: fix programming of DisplayPort SDP registers

Fix the programming of DisplayPort SDP registers primarily related
to Audio enable sequence. This would fix potential issues caused by
read/append/write operations on SDP registers which might corrupt
the parity/data bytes. This would lead to audio issues since the DP
controller would treat the corrupt SDP information as invalid data.

Change-Id: I55db6a70be0fdf94a60fd7cc8bf0d30702febef8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
6 years agomsm: ais: sensor: actuator: avoid accessing out of bound memory
Rahul Sharma [Sun, 12 Nov 2017 11:40:59 +0000 (17:10 +0530)]
msm: ais: sensor: actuator: avoid accessing out of bound memory

Issue:
When total_steps is updated, after that, copy_from_user
fails with an error, then, i2c_reg_tbl is not allocated.
In this case, when calling msm_actuator_parse_i2c_params,
it lead to out-of-bound memory write.
Fix:
1) Assign total_steps to zero when error from copying.
2) Add NULL pointer check for i2c tbl.

Change-Id: I4df8557719533900a5c571fc00f9844943c8f7b1
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agopower: qcom: msm-core: Add mutex lock for ioctl
Maulik Shah [Fri, 10 Nov 2017 06:21:01 +0000 (11:51 +0530)]
power: qcom: msm-core: Add mutex lock for ioctl

There can be use after free with multiple ioctl calls.
Add mutex lock when updating userspace power.

Change-Id: Ieae08d05478a462b19cf7f91b64267177eaebe84
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
6 years agoadv7481: Changes to compile ADV7481 as a module
Rahul Sharma [Mon, 30 Oct 2017 11:01:53 +0000 (16:31 +0530)]
adv7481: Changes to compile ADV7481 as a module

ADV7481 driver is board-specific, and thus should be compiled
as a module. This is part of the kernel modularization requirement.

Change-Id: I38ab9efca34ac9f898c2b76843563d8f74c29320
Suggested-by: Resmi Rajendran <resmir@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoASoC: wcd934x: reset ASRC after playback
Walter Yang [Wed, 25 Oct 2017 06:29:53 +0000 (14:29 +0800)]
ASoC: wcd934x: reset ASRC after playback

Reset ASRC after audio playback is completed to clear
the FIFO and avoid any noise being generated.

CRs-Fixed: 2129994
Change-Id: Ie45796e1bd68d5a8bd790490a65520358f26b811
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
6 years agomsm: kgsl: Do not expose kernel pointer for global entries
Hareesh Gundu [Wed, 1 Nov 2017 13:17:45 +0000 (18:47 +0530)]
msm: kgsl: Do not expose kernel pointer for global entries

Add kernel pointer restriction while printing the global
page table entries through the debugfs.

Change-Id: Ia2ef4243248ece477e3f679c0027379686670928
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agoMerge "drm/msm: add SRM support for HDCP 1.4"
Linux Build Service Account [Fri, 10 Nov 2017 15:55:28 +0000 (07:55 -0800)]
Merge "drm/msm: add SRM support for HDCP 1.4"

6 years agoARM: dts: msm: add SLPI fw name property for msm8996
Ananda Kishore [Fri, 10 Nov 2017 09:37:33 +0000 (15:07 +0530)]
ARM: dts: msm: add SLPI fw name property for msm8996

Add SLPI fw name property to support dynamic loading of SLPI
fw images based on the version info.

Change-Id: I31baf971106a7a076cf83bd72c4509d860b3e7cb
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
6 years agoMerge "msm: pcie: always recover cfg space during resume"
Linux Build Service Account [Fri, 10 Nov 2017 06:06:48 +0000 (22:06 -0800)]
Merge "msm: pcie: always recover cfg space during resume"

6 years agodrm/msm: add SRM support for HDCP 1.4
Abhinav Kumar [Wed, 8 Nov 2017 06:21:22 +0000 (22:21 -0800)]
drm/msm: add SRM support for HDCP 1.4

Add support for clients to notify SRM update
to HDCP 1.x driver.

Integrate the SRM validation check in the HDCP 1.x
authentication flow to check HDCP 1.x receiver/repeater
KSV against the SRM revoked list and fail the authentication
if the sink is found to be present in the list.

Change-Id: I6615122f785bde94cb746ec4df7ab63b9f878528
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
6 years agomsm: pcie: always recover cfg space during resume
Sujeev Dias [Tue, 10 Oct 2017 17:57:48 +0000 (10:57 -0700)]
msm: pcie: always recover cfg space during resume

During linkdown pci host cannot save the config space
prior to suspending the link. If saved_state is null
recover rc config space using shadow recovery.

CRs-Fixed: 2141146
Change-Id: I6c6e817ae2c32d8040853fe22785040480aa76eb
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
6 years agoMerge "msm: vidc: Fix sequence change event properly"
Linux Build Service Account [Thu, 9 Nov 2017 17:58:57 +0000 (09:58 -0800)]
Merge "msm: vidc: Fix sequence change event properly"

6 years agoMerge "soc: qcom: msm_bus: Add debug logging for max bandwidth votes"
Linux Build Service Account [Thu, 9 Nov 2017 17:58:56 +0000 (09:58 -0800)]
Merge "soc: qcom: msm_bus: Add debug logging for max bandwidth votes"

6 years agoMerge "msm: mdss: do not do phy reset when HDMI power off"
Linux Build Service Account [Thu, 9 Nov 2017 17:58:55 +0000 (09:58 -0800)]
Merge "msm: mdss: do not do phy reset when HDMI power off"

6 years agoMerge "usb: gadget: f_qdss: Update usb string table based on channel name"
Linux Build Service Account [Thu, 9 Nov 2017 09:36:54 +0000 (01:36 -0800)]
Merge "usb: gadget: f_qdss: Update usb string table based on channel name"