OSDN Git Service
Linux Build Service Account [Thu, 5 Oct 2017 23:10:25 +0000 (16:10 -0700)]
Merge "crypto: ice: Sanitize the ice device return address."
Linux Build Service Account [Thu, 5 Oct 2017 23:10:24 +0000 (16:10 -0700)]
Merge "power: qpnp-fg-gen3: Handle notifications from parallel charger"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:23 +0000 (16:10 -0700)]
Merge "ARM: dts: msm: Add AFE clock version for primary auxpcm"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:21 +0000 (16:10 -0700)]
Merge "ASoC: codecs: Fix pop noise in HPH plus LO4 concurrent usecase"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:20 +0000 (16:10 -0700)]
Merge "ASoC: msm: qdsp6v2: initialize L/R/C gain for both mono/stereo playback"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:19 +0000 (16:10 -0700)]
Merge "soc: qcom: fix out of bounds read issue"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:18 +0000 (16:10 -0700)]
Merge "ASoC: wcd-dsp-mgr: Add range check before getting component"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:17 +0000 (16:10 -0700)]
Merge "ASoC: msm-lsm-client: cleanup ioctl functions"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:16 +0000 (16:10 -0700)]
Merge "Revert "osq_lock: fix osq_lock queue corruption""
Linux Build Service Account [Thu, 5 Oct 2017 23:10:15 +0000 (16:10 -0700)]
Merge "msm: camera: Check if regulator is null before enabling"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:14 +0000 (16:10 -0700)]
Merge "defconfig: msm: enable DRM driver for msm8996"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:12 +0000 (16:10 -0700)]
Merge "drm/msm: null check before initializing a submitqueue"
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"
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"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:09 +0000 (16:10 -0700)]
Merge "drm/msm/sde: update release & retire fence timeline"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:08 +0000 (16:10 -0700)]
Merge "step-chg-jeita: run only when charging"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:06 +0000 (16:10 -0700)]
Merge "sched: Make resched_cpu() unconditional"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:05 +0000 (16:10 -0700)]
Merge "rcu: Stop disabling interrupts in scheduler fastpaths"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:10:02 +0000 (16:10 -0700)]
Merge "defconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON"
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"
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"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:59 +0000 (16:09 -0700)]
Merge "wil6210: support AOA in FTM session"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:58 +0000 (16:09 -0700)]
Merge "ARM: enable vmalloc saving"
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"
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"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:52 +0000 (16:09 -0700)]
Merge "spcom: avoid using stale glink handle"
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"
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"
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()"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:47 +0000 (16:09 -0700)]
Merge "mmc: sdhci-msm: flush mmc detect work asynchronously."
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:44 +0000 (16:09 -0700)]
Merge "ath10k: Vote for hardware resources for WCN3990"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:43 +0000 (16:09 -0700)]
Merge "iommu: free io pgtable during domain detach."
Linux Build Service Account [Thu, 5 Oct 2017 23:09:42 +0000 (16:09 -0700)]
Merge "msm: wlan: Update regulatory database"
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"
Linux Build Service Account [Thu, 5 Oct 2017 23:09:40 +0000 (16:09 -0700)]
Merge "msm: ipa3: add lock for num_q6_rule"
Subbaraman Narayanamurthy [Wed, 4 Oct 2017 03:34:38 +0000 (20:34 -0700)]
power: qpnp-fg-gen3: Handle notifications from parallel charger
Handle notifications from parallel charger in GEN3 FG driver so
that ESR FCC control can be configured sooner based on parallel
charging status change. Without this, GEN3 FG driver can simply
wait on notifications from battery/USB power supply to move from
HW autonomous to SW controlled ESR FCC settings when parallel
charging is enabled which cause unwanted battery current spikes.
CRs-Fixed:
2119134
Change-Id: Ic4c473a6cc6062f2eaaebc68c30a1a51763c5dda
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
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"
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"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:49 +0000 (03:06 -0700)]
Merge "msm: ipa: prevent string buffer overflows"
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"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:46 +0000 (03:06 -0700)]
Merge "scsi: ufs: Change power mode on line reset"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:45 +0000 (03:06 -0700)]
Merge "usb: gadget: gsi: Avoid spinlock lockup"
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"
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"
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"
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"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:40 +0000 (03:06 -0700)]
Merge "msm: camera: Add support for plain16 mode"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:39 +0000 (03:06 -0700)]
Merge "diag: Add NULL pointer checks for mask info"
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"
Linux Build Service Account [Thu, 5 Oct 2017 10:06:36 +0000 (03:06 -0700)]
Merge "defconfig: msm-auto: Enable CNSS2 platform driver"
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"
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"
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"
Prateek Sood [Tue, 26 Sep 2017 04:52:53 +0000 (10:22 +0530)]
Revert "osq_lock: fix osq_lock queue corruption"
This reverts commit
ba6bd90a30896933174c26e2d96d4df9acfcb75c.
Perparing for taking more optimized patch suggested to upstream
for using smp_wmb() instead of smp_mb().
Change-Id: Idc4fbd884055d9a8f65f102862dd276abe54699d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
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>
Vijay kumar Tumati [Fri, 22 Sep 2017 10:11:42 +0000 (15:41 +0530)]
msm: camera: Check if regulator is null before enabling
Using IS_ERR_OR_NULL instead of IS_ERR to also check for
null pointer.
Change-Id: If53a07db52a4d091693a49f9d084df7d4fbf257a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
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>
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>
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>
Rahul Sharma [Tue, 3 Oct 2017 12:22:09 +0000 (17:52 +0530)]
defconfig: msm: enable DRM driver for msm8996
This change disables FB driver and enable DRM display driver
on msm8996 device.
Change-Id: I2df5ab4e24067f76ec45581b27a577f118b8cec8
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Neeraj Soni [Tue, 3 Oct 2017 06:47:37 +0000 (12:17 +0530)]
crypto: ice: Sanitize the ice device return address.
Even if ICE device is not found it is possible
for list device API to return non NULL pointer
which will pass all NULL checks in code. Ensure
to return proper address or NULL.
Change-Id: I1465614b86f1415376b2adffeec6e4da1a33ddd5
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
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>
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>
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>
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>
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>
Linux Build Service Account [Fri, 29 Sep 2017 13:47:29 +0000 (06:47 -0700)]
Merge "msm: wlan: Update regulatory database"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Linux Build Service Account [Thu, 28 Sep 2017 03:05:49 +0000 (20:05 -0700)]
Merge "msm: Add CLD80211_ATTR_META_DATA vendor attribute"
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"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:46 +0000 (20:05 -0700)]
Merge "soc: qcom: pil: Avoid possible buffer overflow"
Linux Build Service Account [Thu, 28 Sep 2017 03:05:45 +0000 (20:05 -0700)]
Merge "pwm: pwm-qpnp: Fix uninitialized variable use"
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>