OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "drm/msm: null check before initializing a submitqueue"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:12 +0000 (16:10 -0700)]
Merge "drm/msm: null check before initializing a submitqueue"

6 years agoMerge "ARM: dts: msm: use sde terminology for DRM based nodes"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:12 +0000 (16:10 -0700)]
Merge "ARM: dts: msm: use sde terminology for DRM based nodes"

6 years agoMerge "drm/msm: avoid loading gpu components if qcom_kgsl present"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:11 +0000 (16:10 -0700)]
Merge "drm/msm: avoid loading gpu components if qcom_kgsl present"

6 years agoMerge "drm/msm: remove the right vlbank event from the event list"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:10 +0000 (16:10 -0700)]
Merge "drm/msm: remove the right vlbank event from the event list"

6 years agoMerge "drm/msm/sde: update release & retire fence timeline"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:09 +0000 (16:10 -0700)]
Merge "drm/msm/sde: update release & retire fence timeline"

6 years agoMerge "step-chg-jeita: run only when charging"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:08 +0000 (16:10 -0700)]
Merge "step-chg-jeita: run only when charging"

6 years agoMerge "FROMLIST: binder: fix memory corruption in binder_transaction binder"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:07 +0000 (16:10 -0700)]
Merge "FROMLIST: binder: fix memory corruption in binder_transaction binder"

6 years agoMerge "sched: Make resched_cpu() unconditional"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:06 +0000 (16:10 -0700)]
Merge "sched: Make resched_cpu() unconditional"

6 years agoMerge "rcu: Stop disabling interrupts in scheduler fastpaths"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:05 +0000 (16:10 -0700)]
Merge "rcu: Stop disabling interrupts in scheduler fastpaths"

6 years agoMerge "iio: qcom-rradc: Disable continuous mode when read fails"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:03 +0000 (16:10 -0700)]
Merge "iio: qcom-rradc: Disable continuous mode when read fails"

6 years agoMerge "defconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:02 +0000 (16:10 -0700)]
Merge "defconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON"

6 years agoMerge "ARM: dts: msm: change smb138x_parallel_slave node name"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:01 +0000 (16:10 -0700)]
Merge "ARM: dts: msm: change smb138x_parallel_slave node name"

6 years agoMerge "drm/msm: Remove too many hdmi_i2c_xfer warnings"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:00 +0000 (16:10 -0700)]
Merge "drm/msm: Remove too many hdmi_i2c_xfer warnings"

6 years agoMerge "msm: mdss: dp: fix handling of device shutdown with cable connected"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:59 +0000 (16:09 -0700)]
Merge "msm: mdss: dp: fix handling of device shutdown with cable connected"

6 years agoMerge "wil6210: support AOA in FTM session"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:59 +0000 (16:09 -0700)]
Merge "wil6210: support AOA in FTM session"

6 years agoMerge "ARM: enable vmalloc saving"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:58 +0000 (16:09 -0700)]
Merge "ARM: enable vmalloc saving"

6 years agoMerge "netfilter: xt_socket: Restore mark from full sockets only"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:57 +0000 (16:09 -0700)]
Merge "netfilter: xt_socket: Restore mark from full sockets only"

6 years agoMerge "soc: qcom: glink: Free if_ptr before freeing dummy transport"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:55 +0000 (16:09 -0700)]
Merge "soc: qcom: glink: Free if_ptr before freeing dummy transport"

6 years agoMerge "spcom: spcom_get_next_request_size() unlock while waiting for rx data"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:54 +0000 (16:09 -0700)]
Merge "spcom: spcom_get_next_request_size() unlock while waiting for rx data"

6 years agoMerge "spcom: avoid using stale glink handle"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:52 +0000 (16:09 -0700)]
Merge "spcom: avoid using stale glink handle"

6 years agoMerge "msm:ipa: Fix to slab out of bounds access"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:51 +0000 (16:09 -0700)]
Merge "msm:ipa: Fix to slab out of bounds access"

6 years agoMerge "mmc: block: Unhalt the command queue before releasing mmc host"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:50 +0000 (16:09 -0700)]
Merge "mmc: block: Unhalt the command queue before releasing mmc host"

6 years agoMerge "msm: kgsl: Fix size check issue in _read_fw2_block_header()"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:49 +0000 (16:09 -0700)]
Merge "msm: kgsl: Fix size check issue in _read_fw2_block_header()"

6 years agoMerge "msm: kgsl: Fix calculation of size in _load_regfile"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:48 +0000 (16:09 -0700)]
Merge "msm: kgsl: Fix calculation of size in _load_regfile"

6 years agoMerge "mmc: sdhci-msm: flush mmc detect work asynchronously."
Linux Build Service Account [Thu, 5 Oct 2017 23:09:47 +0000 (16:09 -0700)]
Merge "mmc: sdhci-msm: flush mmc detect work asynchronously."

6 years agoMerge "fb/msm: add support for HDR playback control sequence"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:46 +0000 (16:09 -0700)]
Merge "fb/msm: add support for HDR playback control sequence"

6 years agoMerge "ath10k: Vote for hardware resources for WCN3990"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:44 +0000 (16:09 -0700)]
Merge "ath10k: Vote for hardware resources for WCN3990"

6 years agoMerge "iommu: free io pgtable during domain detach."
Linux Build Service Account [Thu, 5 Oct 2017 23:09:43 +0000 (16:09 -0700)]
Merge "iommu: free io pgtable during domain detach."

6 years agoMerge "msm: wlan: Update regulatory database"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:42 +0000 (16:09 -0700)]
Merge "msm: wlan: Update regulatory database"

6 years agoMerge "cgroupns: Close race between cgroup_post_fork and copy_cgroup_ns"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:41 +0000 (16:09 -0700)]
Merge "cgroupns: Close race between cgroup_post_fork and copy_cgroup_ns"

6 years agoMerge "msm: ipa3: add lock for num_q6_rule"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:40 +0000 (16:09 -0700)]
Merge "msm: ipa3: add lock for num_q6_rule"

6 years agoMerge "ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:51 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3"

6 years agoMerge "ASoC: sdm660_cdc: Fix HPH CnP and kernel panic issue on sdm660-internal"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:50 +0000 (03:06 -0700)]
Merge "ASoC: sdm660_cdc: Fix HPH CnP and kernel panic issue on sdm660-internal"

6 years agoMerge "msm: ipa: prevent string buffer overflows"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:49 +0000 (03:06 -0700)]
Merge "msm: ipa: prevent string buffer overflows"

6 years agoMerge "msm: kgsl: Use a lock when updating the sparse bindings"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:47 +0000 (03:06 -0700)]
Merge "msm: kgsl: Use a lock when updating the sparse bindings"

6 years agoMerge "scsi: ufs: Change power mode on line reset"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:46 +0000 (03:06 -0700)]
Merge "scsi: ufs: Change power mode on line reset"

6 years agoMerge "usb: gadget: gsi: Avoid spinlock lockup"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:45 +0000 (03:06 -0700)]
Merge "usb: gadget: gsi: Avoid spinlock lockup"

6 years agoMerge "ARM: dts: msm: Add fastrpc vmid flag for sdm660"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:44 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Add fastrpc vmid flag for sdm660"

6 years agoMerge "ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:43 +0000 (03:06 -0700)]
Merge "ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP"

6 years agoMerge "usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:42 +0000 (03:06 -0700)]
Merge "usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM"

6 years agoMerge "platform: msm: Fix USB device does not enumerate in SS mode"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:41 +0000 (03:06 -0700)]
Merge "platform: msm: Fix USB device does not enumerate in SS mode"

6 years agoMerge "msm: camera: Add support for plain16 mode"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:40 +0000 (03:06 -0700)]
Merge "msm: camera: Add support for plain16 mode"

6 years agoMerge "diag: Add NULL pointer checks for mask info"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:39 +0000 (03:06 -0700)]
Merge "diag: Add NULL pointer checks for mask info"

6 years agoMerge "ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:37 +0000 (03:06 -0700)]
Merge "ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes"

6 years agoMerge "defconfig: msm-auto: Enable CNSS2 platform driver"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:36 +0000 (03:06 -0700)]
Merge "defconfig: msm-auto: Enable CNSS2 platform driver"

6 years agoMerge "msm: mdss: check the length of the external input buffer properly"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:35 +0000 (03:06 -0700)]
Merge "msm: mdss: check the length of the external input buffer properly"

6 years agoMerge "clk: msm: mdss: add support for chip serial number in dfps info"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:34 +0000 (03:06 -0700)]
Merge "clk: msm: mdss: add support for chip serial number in dfps info"

6 years agoMerge "ASoC: msm: qdsp6v2: primary plus 8 interactive stream playback fix"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:33 +0000 (03:06 -0700)]
Merge "ASoC: msm: qdsp6v2: primary plus 8 interactive stream playback fix"

6 years agoARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3
Sathish Kumar [Tue, 15 Nov 2016 06:44:36 +0000 (12:14 +0530)]
ARM: dts: msm: Add GPU speed bin 2 support for MSM8996v3

GPU speed-bin 2 supports fmax of 560MHz and DDR 1555MHz.
Add this config to MSM8996v3 to support required GPU fmax.

Change-Id: Ibdf9bb63c7d8f0e980fbf3c192d536adeaeec52d
Signed-off-by: Dumpeti Sathish Kumar <sathyanov14@codeaurora.org>
6 years agomsm: kgsl: Use a lock when updating the sparse bindings
Lynus Vaz [Fri, 8 Sep 2017 13:02:53 +0000 (18:32 +0530)]
msm: kgsl: Use a lock when updating the sparse bindings

Use the appropriate lock when adding sparse bindings, to protect the
list of sparse bindings from concurrent updates by multiple threads.

Change-Id: Ice9750c96fca42f4049ed352533f4722b5166221
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agomsm: kgsl: Bail out when two threads add sparse bindings
Lynus Vaz [Fri, 8 Sep 2017 11:57:56 +0000 (17:27 +0530)]
msm: kgsl: Bail out when two threads add sparse bindings

If we find that a different thread has already added bindings at the
same offset we wanted to add to the sparse object, don't get stuck in
an infinite loop, and return with an error.

Change-Id: I6b17c91eccb14c07e13cae24135dfe7b13f3301d
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
6 years agomsm: ipa: prevent string buffer overflows
Mohammed Javid [Tue, 26 Sep 2017 07:21:14 +0000 (12:51 +0530)]
msm: ipa: prevent string buffer overflows

In WAN ioctls user-supplied data structures
contain string members,but there's no guarantee
they're null-terminated, add the string terminator
to prevent vulnerability of string buffer overflows.

Change-Id: I17c06c94aa619a2cd3a678c495a31541a65a7741
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoiio: qcom-rradc: Disable continuous mode when read fails
Subbaraman Narayanamurthy [Wed, 20 Sep 2017 03:16:43 +0000 (20:16 -0700)]
iio: qcom-rradc: Disable continuous mode when read fails

Currently, when a channel is read in continuous mode and the read
operation fails, RR_ADC would be left enabled in continuous mode.
Disable the continuous mode in such cases so that the other read
operations which doesn't need continuous mode can go through.

Change-Id: I2bf257bd535e1e4a30e18b6257e584a5be96b69d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
6 years agodrm/msm: null check before initializing a submitqueue
Rahul Sharma [Thu, 21 Sep 2017 18:45:11 +0000 (00:15 +0530)]
drm/msm: null check before initializing a submitqueue

This change checks a NULL condition before initializing submitqueue.

Change-Id: I9ef6b6506b535d33e585be4988fa6433e11b3cb1
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoARM: dts: msm: use sde terminology for DRM based nodes
Rahul Sharma [Thu, 21 Sep 2017 18:40:34 +0000 (00:10 +0530)]
ARM: dts: msm: use sde terminology for DRM based nodes

This changes modifies compatible name for smmu_kms_unsec_cb
to use sde terminology.

Change-Id: I31ee9620f8bb54fd582d9c6b21f5df0fda3cb975
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agodrm/msm: avoid loading gpu components if qcom_kgsl present
Camus Wong [Thu, 27 Jul 2017 19:30:06 +0000 (15:30 -0400)]
drm/msm: avoid loading gpu components if qcom_kgsl present

Avoid loading gpu components from drm driver if qcom_kgsl
driver present.

Change-Id: I74c65634ce9260fba5bb871b3a9854d2c8173f4e
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agodrm/msm: remove the right vlbank event from the event list
Rahul Sharma [Thu, 24 Aug 2017 12:39:10 +0000 (18:09 +0530)]
drm/msm: remove the right vlbank event from the event list

This changes fixes an issue with vblank event list corruption.
we should only remove the event corresponding to a crtc from list
for which the thread was queued.

Change-Id: I9b9cef9073ba4cc377a85e21a7257d36e9b92388
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agodrm/msm/sde: update release & retire fence timeline
Dhaval Patel [Fri, 21 Apr 2017 03:00:56 +0000 (20:00 -0700)]
drm/msm/sde: update release & retire fence timeline

Update release and retire fence timeline according to client
requirement to align it with correct vsync boundary and avoid
issues in jank cases.

Change-Id: Ibee64f4feea2623e8bc8459273b7193d5e7bdacc
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoFROMLIST: binder: fix memory corruption in binder_transaction binder
Xu YiPing [Mon, 22 May 2017 18:26:23 +0000 (11:26 -0700)]
FROMLIST: binder: fix memory corruption in binder_transaction binder

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

commit 7a4408c6bd3e ("binder: make sure accesses to proc/thread are
safe") made a change to enqueue tcomplete to thread->todo before
enqueuing the transaction. However, in err_dead_proc_or_thread case,
the tcomplete is directly freed, without dequeued. It may cause the
thread->todo list to be corrupted.

So, dequeue it before freeing.

Bug: 65333488
Change-Id: I14ef48095d9f690148b1a50ea62d05dd67779505
Signed-off-by: Xu YiPing <xuyiping@hisilicon.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Git-commit: 86578a0fd70edffb11c78b5df85b8e113e44bfe1
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agoARM: dts: msm: Add fastrpc vmid flag for sdm660
Tharun Kumar Merugu [Tue, 3 Oct 2017 07:24:36 +0000 (12:54 +0530)]
ARM: dts: msm: Add fastrpc vmid flag for sdm660

Add device specific flag for new vmid heap shared feature.

Change-Id: I35cc0073a5fa10c715d520ebb9d77936a6820aa9
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agosched: Make resched_cpu() unconditional
Paul E. McKenney [Mon, 18 Sep 2017 15:54:40 +0000 (08:54 -0700)]
sched: Make resched_cpu() unconditional

The current implementation of synchronize_sched_expedited() incorrectly
assumes that resched_cpu() is unconditional, which it is not.  This means
that synchronize_sched_expedited() can hang when resched_cpu()'s trylock
fails as follows (analysis by Neeraj Upadhyay):

o    CPU1 is waiting for expedited wait to complete:
sync_rcu_exp_select_cpus
     rdp->exp_dynticks_snap & 0x1   // returns 1 for CPU5
     IPI sent to CPU5

synchronize_sched_expedited_wait
         ret = swait_event_timeout(
                                     rsp->expedited_wq,
  sync_rcu_preempt_exp_done(rnp_root),
                                     jiffies_stall);

            expmask = 0x20 , and CPU 5 is in idle path (in cpuidle_enter())

o    CPU5 handles IPI and fails to acquire rq lock.

Handles IPI
     sync_sched_exp_handler
         resched_cpu
             returns while failing to try lock acquire rq->lock
         need_resched is not set

o    CPU5 calls  rcu_idle_enter() and as need_resched is not set, goes to
     idle (schedule() is not called).

o    CPU 1 reports RCU stall.

Given that resched_cpu() is now used only by RCU, this commit fixes the
assumption by making resched_cpu() unconditional.

Change-Id: I67cbf28612004f4b78e355dd00b5abdd0f31ec13
Reported-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Suggested-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Patch-mainline: linux-kernel @ 18/09/17, 09:01
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
6 years agorcu: Stop disabling interrupts in scheduler fastpaths
Paul E. McKenney [Wed, 7 Oct 2015 16:10:48 +0000 (09:10 -0700)]
rcu: Stop disabling interrupts in scheduler fastpaths

We need the scheduler's fastpaths to be, well, fast, and unnecessarily
disabling and re-enabling interrupts is not necessarily consistent with
this goal.  Especially given that there are regions of the scheduler that
already have interrupts disabled.

This commit therefore moves the call to rcu_note_context_switch()
to one of the interrupts-disabled regions of the scheduler, and
removes the now-redundant disabling and re-enabling of interrupts from
rcu_note_context_switch() and the functions it calls.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Change-Id: I8de5c9890b1db126b06d4d8fed717b3c8bfcf866
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
[ paulmck: Shift rcu_note_context_switch() to avoid deadlock, as suggested
  by Peter Zijlstra. ]
Git-commit: 46a5d164db53ba6066b11889abb7fa6bddbe5cf7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[prsood@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
6 years agorcu: Simplify rcu_sched_qs() control flow
Paul E. McKenney [Tue, 29 Sep 2015 01:19:24 +0000 (18:19 -0700)]
rcu: Simplify rcu_sched_qs() control flow

This commit applies an early-exit approach to rcu_sched_qs(), reducing
the nesting level and saving a line of code.

Change-Id: Ib5dff7a0e3a26ce8ed319fd03b15e77b7b6650db
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Git-commit: fecbf6f01fbd83e6419ccb7f61d9a6eb987f1d92
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
6 years agousb: gadget: gsi: Avoid spinlock lockup
Pratham Pratap [Tue, 12 Sep 2017 06:41:48 +0000 (12:11 +0530)]
usb: gadget: gsi: Avoid spinlock lockup

In this case gsi_ctrl_clear_cpkt_queues function is called
which is holding spinlock and in the meantime dwc3_interrupt
occurred on same CPU which in turn is calling gsi_ctrl_clear_cpkt_queues
function and it is trying to acquire the same spinlock causing
deadlock.

This change disables the interrupts when spinlock is acquired
in gsi_ctrl_clear_cpkt_queues function.

Change-Id: Ia87a0a283ca6b6298083dddb448e4d649a4f8e89
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
6 years agoscsi: ufs: Change power mode on line reset
Asutosh Das [Fri, 15 Sep 2017 10:44:26 +0000 (16:14 +0530)]
scsi: ufs: Change power mode on line reset

Line reset can occur during hibernate enter, exit or
during PA_INIT. In some cases, system slowness problem
is observed when line reset happened during hibernate
enter process in auto hibernate mode of operation as
link remains in PWM-G1 mode. To fix this problem, read
PA_PWRmode, PA_TxGear and PA_RxGear if line reset is
detected and if link is in PWM-G1 mode, initiate power
mode change to expected HS gear.

Change-Id: Ic06a11c917e8954743c4dcf80b89fedeec4584ed
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
6 years agodefconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON
Yue Ma [Mon, 2 Oct 2017 23:46:50 +0000 (16:46 -0700)]
defconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON

Enable CONFIG_SLUB_DEBUG_ON for MSM8996 AUTO platform in order
to get more debug capability.

Change-Id: I076395c4d4b950859afa2c1fffdc3687ba39a71d
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agoiio: qcom-rradc: Check for USB presence
Rama Krishna Phani A [Wed, 20 Sep 2017 15:03:54 +0000 (20:33 +0530)]
iio: qcom-rradc: Check for USB presence

Check whether USB is connected while doing conversion for
channels that require USB to read valid readings. If USB
is not plugged in, exit loop and return error.

Change-Id: Ib181a9e4406d88dc2988ca08e84598635e5a4716
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
6 years agoARM: dts: msm: change smb138x_parallel_slave node name
Nicholas Troast [Fri, 29 Sep 2017 22:50:40 +0000 (15:50 -0700)]
ARM: dts: msm: change smb138x_parallel_slave node name

Change the smb138x_parallel_slave node name to smb138x_charger to be
consistent with other smb charger node names.

Change-Id: I2f325e943efbfa8d95223f830232246ee97149c4
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
6 years agoMerge "msm: wlan: Update regulatory database"
Linux Build Service Account [Fri, 29 Sep 2017 13:47:29 +0000 (06:47 -0700)]
Merge "msm: wlan: Update regulatory database"

6 years agodrm/msm: Remove too many hdmi_i2c_xfer warnings
Yujun Zhang [Tue, 26 Sep 2017 13:08:30 +0000 (21:08 +0800)]
drm/msm: Remove too many hdmi_i2c_xfer warnings

On 8996 AUTO platform, too many "hdmi_i2c_xfer" warnings appear
when booting that makes boot time longer and may cause watchdog
bite. The warning is generated by WARN_ON() in hdmi_i2c_xfer()
which prints call stack like:
        hdmi_i2c_xfer+0x44/0x398
        __i2c_transfer+0x270/0x4b4
        i2c_transfer+0x64/0xb0
        hdmi_ddc_read+0x84/0xdc
        sde_hdmi_scdc_write+0xac/0x178
        _sde_hdmi_bridge_mode_set+0x928/0xa34
        drm_bridge_mode_set+0x30/0x54
        complete_commit+0x448/0x938
        _msm_drm_commit_work_cb+0xb0/0x1a0
        kthread_worker_fn+0xcc/0x170
        kthread+0xf8/0x100
        ret_from_fork+0x10/0x20
The reason is the HDMI_CTRL_ENABLE bit of REG_HDMI_CTRL register
is disabled during the reset by the first commit. This reset is
caused by the missing of HPD regulator enabling in HPD call sequence.
So to remove the HDMI i2c warning, the patch enables HPD regulator
to avoid the reset.

Change-Id: I91e853535a972f241c7aa2d28c05785569ae23db
CRs-fixed: 2093649
Signed-off-by: Yujun Zhang <yujunzhang@codeaurora.org>
6 years agonetfilter: xt_socket: Restore mark from full sockets only
Subash Abhinov Kasiviswanathan [Thu, 21 Sep 2017 20:51:12 +0000 (14:51 -0600)]
netfilter: xt_socket: Restore mark from full sockets only

An out of bounds error was detected on an ARM64 target with
Android based kernel 4.9. This occurs while trying to
restore mark on a skb from an inet request socket.

BUG: KASAN: slab-out-of-bounds in socket_match.isra.2+0xc8/0x1f0 net/netfilter/xt_socket.c:248
Read of size 4 at addr ffffffc06a8d824c by task syz-fuzzer/1532
CPU: 7 PID: 1532 Comm: syz-fuzzer Tainted: G        W  O    4.9.41+ #1
Call trace:
[<ffffff900808d2f8>] dump_backtrace+0x0/0x440 arch/arm64/kernel/traps.c:76
[<ffffff900808d760>] show_stack+0x28/0x38 arch/arm64/kernel/traps.c:226
[<ffffff90085f7dc8>] __dump_stack lib/dump_stack.c:15 [inline]
[<ffffff90085f7dc8>] dump_stack+0xe4/0x134 lib/dump_stack.c:51
[<ffffff900830f358>] print_address_description+0x68/0x258 mm/kasan/report.c:248
[<ffffff900830f770>] kasan_report_error mm/kasan/report.c:347 [inline]
[<ffffff900830f770>] kasan_report.part.2+0x228/0x2f0 mm/kasan/report.c:371
[<ffffff900830fdec>] kasan_report+0x5c/0x70 mm/kasan/report.c:372
[<ffffff900830de98>] check_memory_region_inline mm/kasan/kasan.c:308 [inline]
[<ffffff900830de98>] __asan_load4+0x88/0xa0 mm/kasan/kasan.c:740
[<ffffff90097498f8>] socket_match.isra.2+0xc8/0x1f0 net/netfilter/xt_socket.c:248
[<ffffff9009749a5c>] socket_mt4_v1_v2_v3+0x3c/0x48 net/netfilter/xt_socket.c:272
[<ffffff90097f7e4c>] ipt_do_table+0x54c/0xad8 net/ipv4/netfilter/ip_tables.c:311
[<ffffff90097fcf14>] iptable_mangle_hook+0x6c/0x220 net/ipv4/netfilter/iptable_mangle.c:90
...
Allocated by task 1532:
 save_stack_trace_tsk+0x0/0x2a0 arch/arm64/kernel/stacktrace.c:131
 save_stack_trace+0x28/0x38 arch/arm64/kernel/stacktrace.c:215
 save_stack mm/kasan/kasan.c:495 [inline]
 set_track mm/kasan/kasan.c:507 [inline]
 kasan_kmalloc+0xd8/0x188 mm/kasan/kasan.c:599
 kasan_slab_alloc+0x14/0x20 mm/kasan/kasan.c:537
 slab_post_alloc_hook mm/slab.h:417 [inline]
 slab_alloc_node mm/slub.c:2728 [inline]
 slab_alloc mm/slub.c:2736 [inline]
 kmem_cache_alloc+0x14c/0x2e8 mm/slub.c:2741
 reqsk_alloc include/net/request_sock.h:87 [inline]
 inet_reqsk_alloc+0x4c/0x238 net/ipv4/tcp_input.c:6236
 tcp_conn_request+0x2b0/0xea8 net/ipv4/tcp_input.c:6341
 tcp_v4_conn_request+0xe0/0x100 net/ipv4/tcp_ipv4.c:1256
 tcp_rcv_state_process+0x384/0x18a8 net/ipv4/tcp_input.c:5926
 tcp_v4_do_rcv+0x2f0/0x3e0 net/ipv4/tcp_ipv4.c:1430
 tcp_v4_rcv+0x1278/0x1350 net/ipv4/tcp_ipv4.c:1709
 ip_local_deliver_finish+0x174/0x3e0 net/ipv4/ip_input.c:216

CRs-Fixed: 2113103
Change-Id: I1e81238aa2b8abe768d460674978f554b6c3ca48
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
6 years agosoc: qcom: glink: Free if_ptr before freeing dummy transport
Dhoat Harpal [Fri, 22 Sep 2017 20:16:02 +0000 (01:46 +0530)]
soc: qcom: glink: Free if_ptr before freeing dummy transport

Dummy transport is only way to access if_ptr. When dummy
transport is freed, if_ptr allocated for dummy transport is
not freed. This result in memory leak.

kfree of if_ptr is called before freeing dummy transport.

CRs-Fixed: 2116744
Change-Id: I832e0fcde418b7c3d992f50e817866bc9075da3c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agosoc: qcom: glink: Free data memory before freeing intent
Dhoat Harpal [Fri, 22 Sep 2017 20:11:24 +0000 (01:41 +0530)]
soc: qcom: glink: Free data memory before freeing intent

Data of intent is not freed even in purge_intent_list. This results
in memory leak.

Kfree is done for data before freeing intent.

CRs-Fixed: 2116744
Change-Id: Ib99261208df1cc9b63b4cd0a35ac0c7942efb4a8
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agomsm: camera: Add support for plain16 mode
Samyukta Mogily [Thu, 20 Jul 2017 10:07:52 +0000 (15:37 +0530)]
msm: camera: Add support for plain16 mode

Add sensor formats for 10 bit csid plain16.

Change-Id: Ib9477f59803f5a14dfd42dfda016e090fada3028
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
6 years agoARM: enable vmalloc saving
Prakash Gupta [Thu, 14 Sep 2017 11:17:53 +0000 (16:47 +0530)]
ARM: enable vmalloc saving

For some targets that have less vmalloc space this can be increased by
enabling config ENABLE_VMALLOC_SAVING. With this config we can reclaim
virtual mappings which remains unused because of non hlos carveout
reservations in lowmem.

Select the default method of reclaiming virtual memory as vmalloc saving.

Change-Id: I05bbae3b554be54f74b740404dda0cdfa89084bd
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
6 years agomsm: mdss: dp: fix handling of device shutdown with cable connected
Aravind Venkateswaran [Thu, 4 May 2017 21:23:50 +0000 (14:23 -0700)]
msm: mdss: dp: fix handling of device shutdown with cable connected

When the source is powered off with an external sink connected, it
will result in a call to blank and power off the source. In the
current implementation, sink is not transitioned to D3 power mode
prior to turning off the source. This can result in the sink
reporting signal lock failures as the source if powered off,
resulting in an HPD IRQ interrupt. If this interrupt is handled
after the DP controller is powered off, it can lead to unclocked
register accesses. Fix this by ensuring that sink is powered off
prior to powering off the source. In addition, ensure that no more
attention events are handled once the DP controller is powered off.

Change-Id: I08558229f7c3e603904527de58a39039b3d7615e
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
6 years agospcom: spcom_get_next_request_size() unlock while waiting for rx data
Amir Samuelov [Sun, 24 Sep 2017 10:40:19 +0000 (13:40 +0300)]
spcom: spcom_get_next_request_size() unlock while waiting for rx data

spcom server app might open the channel before the SP client app.
The asynchronous CONNECTED callback might be called while the server
is waiting for data.
Avoid locking the channel while waiting for data to avoid dead lock
while handling the CONNECTED callabck.

Change-Id: I7c576f240b60720a6f1461b3e48f4422c110e7c4
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
6 years agospcom: avoid using stale glink handle
Amir Samuelov [Sun, 24 Sep 2017 13:32:28 +0000 (16:32 +0300)]
spcom: avoid using stale glink handle

spcom_notify_state() is a callback called by glink upon channel connect.
It is asynchronous callback, that might be called after glink_close().
Avoid storing stale glink handle in such case.

Change-Id: I10359f38ca48f618899673f677a6409b01bc6618
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes
Varun Balaraj [Fri, 22 Sep 2017 14:34:49 +0000 (20:04 +0530)]
ASoC: msm: qdsp6v2: updating downmix/pan_scale control type to bytes

Change the downmix/pan_scale control data type from integer to bytes
to make it compatible across different archs.

Change-Id: I9282673dc1e124185d7c545206bba31966b803dc
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
6 years agoMerge "msm: Add CLD80211_ATTR_META_DATA vendor attribute"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:49 +0000 (20:05 -0700)]
Merge "msm: Add CLD80211_ATTR_META_DATA vendor attribute"

6 years agoMerge "power: smb-lib: Disable USB IRQs during high duty cycle"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:48 +0000 (20:05 -0700)]
Merge "power: smb-lib: Disable USB IRQs during high duty cycle"

6 years agoMerge "soc: qcom: pil: Avoid possible buffer overflow"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:46 +0000 (20:05 -0700)]
Merge "soc: qcom: pil: Avoid possible buffer overflow"

6 years agoMerge "pwm: pwm-qpnp: Fix uninitialized variable use"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:45 +0000 (20:05 -0700)]
Merge "pwm: pwm-qpnp: Fix uninitialized variable use"

6 years agomsm:ipa: Fix to slab out of bounds access
Mohammed Javid [Thu, 7 Sep 2017 05:35:56 +0000 (11:05 +0530)]
msm:ipa: Fix to slab out of bounds access

Accessing of incorrect structure pointer is causing
slab-out-of-bounds access, fixed issue by accessing
the correct structure pointer.

Change-Id: I23d3c9afbbabba88be92ef5cae83c4708a211e88
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agosoc: qcom: pil: Avoid possible buffer overflow
Kaushal Kumar [Tue, 26 Sep 2017 14:28:48 +0000 (19:58 +0530)]
soc: qcom: pil: Avoid possible buffer overflow

MBA image size comparison check is currently being
done with a signed count whose value can possibly be
negative. If count value is negative then comparison
will always succeed and invoke memcpy with incorrect
value of count leading to buffer overflow. Fix this
by not using signed comparison.

Change-Id: Id2d0cafae01f940f36cfd559d4656fc0f022d6a5
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
6 years agommc: sdhci-msm: flush mmc detect work asynchronously.
Ankit Jain [Wed, 20 Sep 2017 06:25:38 +0000 (11:55 +0530)]
mmc: sdhci-msm: flush mmc detect work asynchronously.

Block device should be available before mounting of root
device. In some cases block device is not available at the
time of root device mounting because mmc detect work is not
completed by that time which is causing mount failure. This
change flush mmc detect work asynchronously after device probe
and before mounting of root device, async_synchronize_full
will make sure all asynchronous function calls have been done.

Change-Id: I22be6c4b528c952fd73ea5d5e8ba533ce7165f86
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
6 years agomsm: kgsl: Fix calculation of size in _load_regfile
Archana Sriram [Mon, 18 Sep 2017 12:03:31 +0000 (17:33 +0530)]
msm: kgsl: Fix calculation of size in _load_regfile

During firmware load, there could be data over reads
due to calculation of lm_size and lm_sequence from
block and block_size. Added bounds checking to prevent
this and improved the size calculation.

CRs-Fixed: 2107981
Change-Id: Ib4283951b0d6c8fb699af1f85e657981ad4c0318
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
6 years agoARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP
Ajay Agarwal [Tue, 19 Sep 2017 11:09:16 +0000 (16:39 +0530)]
ARM: dts: msm: Allow pm_suspend in host mode for msm8996 ADP

This change adds device tree flag to allow system suspend
on automotive platform with USB devices connected that do
not support runtime suspend.

Change-Id: I3ddda5052c866e16c46e5a46255acc28ab6f9363
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agousb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM
Ajay Agarwal [Thu, 17 Aug 2017 13:17:19 +0000 (18:47 +0530)]
usb: dwc3-msm: Allow PM suspend in host mode irrespective of runtimePM

DWC3 driver uses wakeup_source and allows pm_suspend only after
entering low power mode as part of runtime suspend. This prevents
PM suspend in host mode if connected device's driver doesn't
support runtime or selective suspend.
Add support in driver where user can specify using dtsi attribute
to not use wakeup source in host mode. It will allow system to enter
deep sleep or pm_suspend irrespective of runtime PM state of XHCI.
On high level below are the changes in default behavior:
 -Do not use wakeup_source for DWC3 when operating in host mode.
 -For host mode, devices will suspend upon PM suspend and resumed
  after PM resume.

Change-Id: Ia1d450e6dd99e094e48caf9723a355b7870b54dd
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "scsi: ufshcd: Flush exception event before suspend"
Linux Build Service Account [Wed, 27 Sep 2017 04:50:09 +0000 (21:50 -0700)]
Merge "scsi: ufshcd: Flush exception event before suspend"

6 years agoMerge "mdss: mdp: Validate null commit for secure display"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:58 +0000 (21:49 -0700)]
Merge "mdss: mdp: Validate null commit for secure display"

6 years agoMerge "msm: kgsl: Don't read stale crashdumper data"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:57 +0000 (21:49 -0700)]
Merge "msm: kgsl: Don't read stale crashdumper data"

6 years agoMerge "ath10k: Fix unwanted probe requests sent during p2p scan"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:55 +0000 (21:49 -0700)]
Merge "ath10k: Fix unwanted probe requests sent during p2p scan"

6 years agoMerge "ARM: dts: msm: disable secondary adv7533 on msm8996 lite board"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:54 +0000 (21:49 -0700)]
Merge "ARM: dts: msm: disable secondary adv7533 on msm8996 lite board"

6 years agoMerge "battery: reduce SMB only for taper stepper"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:52 +0000 (21:49 -0700)]
Merge "battery: reduce SMB only for taper stepper"

6 years agoMerge "drm/msm: add HDCP_VERSION property for connector"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:51 +0000 (21:49 -0700)]
Merge "drm/msm: add HDCP_VERSION property for connector"

6 years agoMerge "qseecom: check return value of __qseecom_process_reentrancy"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:50 +0000 (21:49 -0700)]
Merge "qseecom: check return value of __qseecom_process_reentrancy"

6 years agoMerge "ARM: dts: msm: Add laser LED support on MSM8998 MTP"
Linux Build Service Account [Wed, 27 Sep 2017 04:49:49 +0000 (21:49 -0700)]
Merge "ARM: dts: msm: Add laser LED support on MSM8998 MTP"

6 years agommc: core: add mmc flush detect work.
Ankit Jain [Tue, 19 Sep 2017 12:13:02 +0000 (17:43 +0530)]
mmc: core: add mmc flush detect work.

Block device should be available before mounting of
root device. In some cases block device is not available
at the time of root device mounting because mmc detect
work is not completed by that time which is causing mount
failure. To fix this, flush mmc detect work after device
probe completion.

Change-Id: I785a1e01a691652cfdb5a82acee2475e23fe3766
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
6 years agopwm: pwm-qpnp: Fix uninitialized variable use
Fenglin Wu [Wed, 27 Sep 2017 04:28:39 +0000 (12:28 +0800)]
pwm: pwm-qpnp: Fix uninitialized variable use

Fix uninitialized variable use which would cause unexpected return
value.

CRs-Fixed: 2070945
Change-Id: I874ec28904149061246fb4c2b24444a4c33e0116
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>