OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "ARM: dtsi: msm: reserve memory for LK's stack on msm8996"
Linux Build Service Account [Thu, 6 Jul 2017 11:38:58 +0000 (04:38 -0700)]
Merge "ARM: dtsi: msm: reserve memory for LK's stack on msm8996"

7 years agoMerge "regulator: core: remove some dead code"
Linux Build Service Account [Thu, 6 Jul 2017 11:38:57 +0000 (04:38 -0700)]
Merge "regulator: core: remove some dead code"

7 years agoMerge "Revert "defconfig: arm64: msm: Enable virtual platform"" into msm-4.4
Linux Build Service Account [Thu, 6 Jul 2017 09:48:23 +0000 (02:48 -0700)]
Merge "Revert "defconfig: arm64: msm: Enable virtual platform"" into msm-4.4

7 years agoRevert "defconfig: arm64: msm: Enable virtual platform"
Neeraj Upadhyay [Thu, 6 Jul 2017 09:14:51 +0000 (14:44 +0530)]
Revert "defconfig: arm64: msm: Enable virtual platform"

This reverts commit 2bb686dccd3a ("defconfig: arm64: msm: Enable
virtual platform"). The configs added in this change are not in
proper state and have build failures.

Change-Id: I30922e76761a1c436b54fb07f376ad9a5f5718f8
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoMerge "drm/msm: Add timestamp counter"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:20 +0000 (18:20 -0700)]
Merge "drm/msm: Add timestamp counter"

7 years agoMerge "msm: kgsl: Add A5XX RBBM registers to pre-crash dumper list"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:20 +0000 (18:20 -0700)]
Merge "msm: kgsl: Add A5XX RBBM registers to pre-crash dumper list"

7 years agoMerge "msm: kgsl: Add a NULL check for limit pointer"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:19 +0000 (18:20 -0700)]
Merge "msm: kgsl: Add a NULL check for limit pointer"

7 years agoMerge "mm: add preempt points into __purge_vmap_area_lazy()"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:17 +0000 (18:20 -0700)]
Merge "mm: add preempt points into __purge_vmap_area_lazy()"

7 years agoMerge "mm: turn vmap_purge_lock into a mutex"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:16 +0000 (18:20 -0700)]
Merge "mm: turn vmap_purge_lock into a mutex"

7 years agoMerge "compat_qcedev: Fix accessing userspace memory in kernel space"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:43 +0000 (10:28 -0700)]
Merge "compat_qcedev: Fix accessing userspace memory in kernel space"

7 years agoMerge "diag: Add protection while processing non-hdlc packets"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:42 +0000 (10:28 -0700)]
Merge "diag: Add protection while processing non-hdlc packets"

7 years agoMerge "mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:41 +0000 (10:28 -0700)]
Merge "mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()"

7 years agoMerge "defconfig: Enable and disable few configs for msm8998"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:40 +0000 (10:28 -0700)]
Merge "defconfig: Enable and disable few configs for msm8998"

7 years agoMerge "USB: phy-msm-qusb: Enable autoresume only when device is connected"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:08 +0000 (02:57 -0700)]
Merge "USB: phy-msm-qusb: Enable autoresume only when device is connected"

7 years agoMerge "mmc: host: Capture error states in Trace logs."
Linux Build Service Account [Wed, 5 Jul 2017 09:57:07 +0000 (02:57 -0700)]
Merge "mmc: host: Capture error states in Trace logs."

7 years agoMerge "msm: ADSPRPC: Initialize FastRPC invoke metadata"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:06 +0000 (02:57 -0700)]
Merge "msm: ADSPRPC: Initialize FastRPC invoke metadata"

7 years agoMerge "msm: mdss: Check htotal for calculating programmable fetch"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:05 +0000 (02:57 -0700)]
Merge "msm: mdss: Check htotal for calculating programmable fetch"

7 years agoMerge "drm/msm: add support for parsing YUV 420 deep color"
Linux Build Service Account [Wed, 5 Jul 2017 01:14:09 +0000 (18:14 -0700)]
Merge "drm/msm: add support for parsing YUV 420 deep color"

7 years agoMerge "firmware: qcom: tz_log: update interrupt info offset"
Linux Build Service Account [Wed, 5 Jul 2017 01:14:08 +0000 (18:14 -0700)]
Merge "firmware: qcom: tz_log: update interrupt info offset"

7 years agoMerge "msm-camera: sensor: Fixing kernel crash during i2c read"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:32 +0000 (10:05 -0700)]
Merge "msm-camera: sensor: Fixing kernel crash during i2c read"

7 years agoMerge "lpm-levels: Enter shallowest state if predicted sleep length is less"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:31 +0000 (10:05 -0700)]
Merge "lpm-levels: Enter shallowest state if predicted sleep length is less"

7 years agoMerge "ASoC: msm-cpe: Resolve memory out of bound access"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:30 +0000 (10:05 -0700)]
Merge "ASoC: msm-cpe: Resolve memory out of bound access"

7 years agoMerge "ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for...
Linux Build Service Account [Tue, 4 Jul 2017 17:05:30 +0000 (10:05 -0700)]
Merge "ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for SDM660/630"

7 years agoMerge "msm: ispif: fix crash during dumping io register"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:29 +0000 (10:05 -0700)]
Merge "msm: ispif: fix crash during dumping io register"

7 years agoMerge "cnss_utils: Add support of cnss_utils for WLAN"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:27 +0000 (10:05 -0700)]
Merge "cnss_utils: Add support of cnss_utils for WLAN"

7 years agoMerge "drm/msm/sde: remove extra entries from interrupt table"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:23 +0000 (10:05 -0700)]
Merge "drm/msm/sde: remove extra entries from interrupt table"

7 years agommc: host: Capture error states in Trace logs.
Siba Prasad [Tue, 27 Jun 2017 09:43:27 +0000 (15:13 +0530)]
mmc: host: Capture error states in Trace logs.

Upon encountering any error, few important registers are being captured
in trace logs in sdhci_dumpregs(). But without capturing exact error,
it would be tough to determine from which point in driver this dumpregs
has called. So capture the error state as well in Trace logs before
calling sdhci_dumpregs(). Also capture power irq related registers in
Trace logs upon any power irq related errors.

Change-Id: Ide172cdfb88a988cd4220bed03d05b8c6c4f15cb
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
7 years agodefconfig: Enable and disable few configs for msm8998
Mohammed Khajapasha [Fri, 9 Jun 2017 07:16:09 +0000 (12:46 +0530)]
defconfig: Enable and disable few configs for msm8998

This change enables and disables below list of configs to
address the VTS KernelConfig test case failures.

Enable configs:
CONFIG_USB_CONFIGFS_F_AUDIO_SRC
CONFIG_QUOTA
CONFIG_QUOTA_NETLINK_INTERFACE
CONFIG_QFMT_V2
CONFIG_SECURITY_PERF_EVENTS_RESTRICT
CONFIG_CGROUP_DEBUG

Disable configs in perf defconfig:
CONFIG_USELIB
CONFIG_INET_LRO

Change-Id: Icecc6a637b778e6594c0f8c2f26118ae1b0a231c
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
7 years agomsm: kgsl: Add a NULL check for limit pointer
Hareesh Gundu [Tue, 4 Jul 2017 09:03:26 +0000 (14:33 +0530)]
msm: kgsl: Add a NULL check for limit pointer

KGSL power limit pointer can be error or NULL. Add a NULL
check for limit pointer to avoid NULL pointer dereference.

Change-Id: I4aacaddd1cd9b34f1befc21807eb7ab577f0a7f1
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agoMerge "ASoC: sdm660_cdc: Prevent MICBIAS1 enable during headset record"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:03 +0000 (01:21 -0700)]
Merge "ASoC: sdm660_cdc: Prevent MICBIAS1 enable during headset record"

7 years agoMerge "ASoC: wcd-mbhc: Disconnect ANC from RX chain during plug removal"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:02 +0000 (01:21 -0700)]
Merge "ASoC: wcd-mbhc: Disconnect ANC from RX chain during plug removal"

7 years agoMerge "ASoC: msm: qdsp6v2: add size check to fix out of bounds issue"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:01 +0000 (01:21 -0700)]
Merge "ASoC: msm: qdsp6v2: add size check to fix out of bounds issue"

7 years agoMerge "ASoC: wcd9335: Add counter to maintain count of functions voting for max bw"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:00 +0000 (01:21 -0700)]
Merge "ASoC: wcd9335: Add counter to maintain count of functions voting for max bw"

7 years agoMerge "genirq: honour default IRQ affinity setting during migration"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:59 +0000 (01:20 -0700)]
Merge "genirq: honour default IRQ affinity setting during migration"

7 years agoMerge "msm: ipa: prevent string buffer overflows"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:58 +0000 (01:20 -0700)]
Merge "msm: ipa: prevent string buffer overflows"

7 years agoMerge "msm: ipa: fix IPA MHI unit tests"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:56 +0000 (01:20 -0700)]
Merge "msm: ipa: fix IPA MHI unit tests"

7 years agoMerge "drm/msm: Add a parameter query for the number of ringbuffers"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:54 +0000 (01:20 -0700)]
Merge "drm/msm: Add a parameter query for the number of ringbuffers"

7 years agoMerge "drm/msm: Add kernel side submit profiling and tracing"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:54 +0000 (01:20 -0700)]
Merge "drm/msm: Add kernel side submit profiling and tracing"

7 years agoMerge "msm: camera: add protection in the cci write function"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:53 +0000 (01:20 -0700)]
Merge "msm: camera: add protection in the cci write function"

7 years agoMerge "msm: camera: isp: Handle array out of bound access"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:52 +0000 (01:20 -0700)]
Merge "msm: camera: isp: Handle array out of bound access"

7 years agoMerge "msm: mdss: fix the pixel clock calculation for fb modes"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:51 +0000 (01:20 -0700)]
Merge "msm: mdss: fix the pixel clock calculation for fb modes"

7 years agommc: card: Ratelimit the error log in mmc_blk_cmd_recovery()
Siba Prasad [Mon, 3 Jul 2017 13:38:19 +0000 (19:08 +0530)]
mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()

Ratelimit the error log in order to avoid flooding the logs in
case of function mmc_blk_cmd_recovery() gets called repeatedly.

Change-Id: Ic72087382fca2e188f1bbd8195a805cd751ed22e
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
7 years agomsm: ispif: fix crash during dumping io register
Haibin Liu [Fri, 23 Jun 2017 08:46:05 +0000 (16:46 +0800)]
msm: ispif: fix crash during dumping io register

Check whether ispif->base is null before dumping.

CRs-Fixed: 2046207
Change-Id: Ib026632252b43bb4d607ba00188c4c4143c1725e
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
7 years agolpm-levels: Enter shallowest state if predicted sleep length is less
Srinivas Rao L [Wed, 31 May 2017 10:36:52 +0000 (16:06 +0530)]
lpm-levels: Enter shallowest state if predicted sleep length is less

If lpm_cpuidle_predict returns the prediction value less than the
minimum residency of shallowest mode, then this case was considered
as not predicted. This allows core to enter into deeper states.
Instead in this case, use the minimum residency of
the shallowest state as the predicted sleep length.

Change-Id: Ib5bd1779e305262aef018f82f57d30ec22162b5b
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
7 years agomsm-camera: sensor: Fixing kernel crash during i2c read
Tanvi Aggarwal [Wed, 21 Jun 2017 11:41:12 +0000 (17:11 +0530)]
msm-camera: sensor: Fixing kernel crash during i2c read

When userspace uses ioctl(), kernel should get the data from
userpsace through copy_from_user() or get_user() and send it
back to userpsace though copy_to_user() or put_user().
In this case, kernel is not using put_user or copy_to_user
which is leading to a crash during I2C read when it tries to
access memory.

CRs-Fixed: 2058381
Change-Id: Ie5596b62cb589ee048e54f37c7e6beda0d62cad5
Signed-off-by: Tanvi Aggarwal <tanvia@codeaurora.org>
7 years agomsm: ipa: fix IPA MHI unit tests
Skylar Chang [Fri, 23 Jun 2017 02:59:57 +0000 (19:59 -0700)]
msm: ipa: fix IPA MHI unit tests

Connect a test producer pipe for MHI unit tests as the
default LAN_PROD pipe is not connected on MHI config.

Change-Id: I2fc1ff8758d222a738d570b5babc22ced2b43219
CRs-Fixed: 2066878
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agomsm: ipa: fix mhi suspend logic
Skylar Chang [Fri, 23 Jun 2017 02:57:57 +0000 (19:57 -0700)]
msm: ipa: fix mhi suspend logic

Add a missing return statement in IPA MHI suspend routine.

Change-Id: I1dfbcff21ba3ca72ff985e76e851caf6a9da1ae4
CRs-Fixed: 2066866
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agoMerge "defconfig: arm64: msm: Enable virtual platform"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:34 +0000 (15:52 -0700)]
Merge "defconfig: arm64: msm: Enable virtual platform"

7 years agoMerge "cpuidle: lpm-levels: Check for negative sleep times"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:33 +0000 (15:52 -0700)]
Merge "cpuidle: lpm-levels: Check for negative sleep times"

7 years agoMerge "mm: add vfree_atomic()"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:30 +0000 (15:52 -0700)]
Merge "mm: add vfree_atomic()"

7 years agoMerge "mm: refactor __purge_vmap_area_lazy()"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:29 +0000 (15:52 -0700)]
Merge "mm: refactor __purge_vmap_area_lazy()"

7 years agoMerge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:28 +0000 (15:52 -0700)]
Merge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098"

7 years agodefconfig: arm64: msm: Enable virtual platform
Atul Raut [Mon, 13 Feb 2017 02:25:39 +0000 (18:25 -0800)]
defconfig: arm64: msm: Enable virtual platform

Add support to build msm kernel based virtual
machine.

CRs-Fixed: 2000635
Change-Id: I76f4920a86adc8bac347c1c6c360ef55f84bc453
Signed-off-by: Atul Raut <araut@codeaurora.org>
7 years agodrm/msm: Add timestamp counter
Jordan Crouse [Wed, 28 Jun 2017 15:55:12 +0000 (09:55 -0600)]
drm/msm: Add timestamp counter

In the confusion of adding the perfcounter API the timestamp query
was broken. Convert the query over to the perfcounter API to avoid
confusion.

Change-Id: Ic0dedbad590489a643e8aa6d678bf19f732c06dd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Remove next_fence
Jordan Crouse [Wed, 28 Jun 2017 15:55:12 +0000 (09:55 -0600)]
drm/msm: Remove next_fence

The next_fence array is left over from when we started storing
per-ring information.

Change-Id: Ic0dedbada687f899eca1017ecfd77fbd2aa8e114
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Move hangcheck fence to ringbuffer
Jordan Crouse [Wed, 28 Jun 2017 15:55:11 +0000 (09:55 -0600)]
drm/msm: Move hangcheck fence to ringbuffer

hangcheck_fence was missed when all the ring specific members were
moved out of the gpu struct.

Change-Id: Ic0dedbad00a86d6657bc2a3e0e5bbdc5eae21ae6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Remove adreno_last_fence
Jordan Crouse [Wed, 28 Jun 2017 15:55:11 +0000 (09:55 -0600)]
drm/msm: Remove adreno_last_fence

adreno_last_fence is no longer very useful since we have a handy
per-ring pointer directly to the values we need.

Change-Id: Ic0dedbadfb195551afcd016651776965da32fb2d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Change the priority order of the ringbuffers
Jordan Crouse [Thu, 29 Jun 2017 15:55:11 +0000 (09:55 -0600)]
drm/msm: Change the priority order of the ringbuffers

When we first did preemption the priority was set at submission
time. In order to be properly backwards compatible we made ring id 0
the lowest priority ring so that when a legacy app made a submission
it didn't get itself onto the highest priority ring by accident.

Now that we set the priority with submitqueues this is no longer
a concern and ordering priorities this way goes against long
standing convention in similar GPU drivers.

Declare a flag day and invert the priority algorithm so that
priority '0' is the highest priority and it descends from there.
The lowest prority ring is 'number of rings - 1' where the number
of active rings can be acquired through a parameter query of
MSM_PARAM_NR_RINGS.

This change also ensures that the legacy submitqueue id '0' will
use the next-to-lowest ring buffer by default for legacy
submissions.

Change-Id: Ic0dedbadeea522e4f07babc4395cbf5fb7143fe3
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Add a parameter query for the number of ringbuffers
Jordan Crouse [Wed, 28 Jun 2017 15:55:10 +0000 (09:55 -0600)]
drm/msm: Add a parameter query for the number of ringbuffers

In order to manage ringbuffer priority to its fullest userspace
should know how many ringbuffers it has to work with. Add a
parameter to return the number of active rings.

Change-Id: Ic0dedbada6010dd5122e8409141fd23b414d73e4
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Change the profiling structure
Jordan Crouse [Wed, 28 Jun 2017 15:55:13 +0000 (09:55 -0600)]
drm/msm: Change the profiling structure

Remove the queued time from the profile struct and turn the submit time
into a proper timespec (tv_sec + tv_nsec).  This should sync up better
with what userspace is used to seeing.

Change-Id: Ic0dedbad0621fa248e6cffde2d1ee3f9b609e19d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agodrm/msm: Add kernel side submit profiling and tracing
Jordan Crouse [Wed, 28 Jun 2017 15:55:09 +0000 (09:55 -0600)]
drm/msm: Add kernel side submit profiling and tracing

Record the GPU always on timer value at the start and end of a
submission on the ringbuffer. Since the timer runs at a constant
19.2 Mhz this is a handy way of tracking how long each
submission takes.

The timer values are recorded in the memptrs. Each ringbuffer is
given a circular list of 128 entries to store the event ticks;
this should be enough to avoid running out of room even when the
ring is completely full of submissions.

Add trace events for the user to track when submissions are
queued, submitted to the ringbuffer and retired. The submitted
trace point shows the GPU ticks and the current kernel time at
submit time (as read by the CPU) and the retired trace event shows
the GPU ticks at submission start/end as read by the GPU. Taken
together these two events can provide a pretty close match between
the current GPU time and the kernel time which is handy for tracing
tools that try to match up the various kernel events with one
another.

Change-Id: Ic0dedbadbcf89f032890820785b9fb49a6362b01
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agoregulator: core: remove some dead code
Dan Carpenter [Thu, 7 Jan 2016 10:03:08 +0000 (13:03 +0300)]
regulator: core: remove some dead code

Originally queue_delayed_work() used to negative error codes or 0 and 1
on success depending if the work was queued or not.  It caused a lot of
bugs where people treated all non-zero returns as failures so we changed
it to return bool instead in d4283e937861 ('workqueue: make queueing
functions return bool').  Now it never returns failure.

Checking for negative values causes a static checker warning since it is
impossible based on the bool type.

Change-Id: I49c875e09534795a8d5176773eb497f5404fcbe3
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
7 years agoMerge "ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:21 +0000 (07:58 -0700)]
Merge "ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998"

7 years agoMerge "mmc: core: Remove unused variable"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:03 +0000 (07:58 -0700)]
Merge "mmc: core: Remove unused variable"

7 years agoMerge "power: qcom: smb-lib: handle dynamic Rp change"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:02 +0000 (07:58 -0700)]
Merge "power: qcom: smb-lib: handle dynamic Rp change"

7 years agoMerge "ARM: dts: msm: Add remote debugger device configuration for sdm660"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:01 +0000 (07:58 -0700)]
Merge "ARM: dts: msm: Add remote debugger device configuration for sdm660"

7 years agoMerge "osq_lock: fix osq_lock queue corruption"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:00 +0000 (07:58 -0700)]
Merge "osq_lock: fix osq_lock queue corruption"

7 years agoMerge "msm: sde: Cache capture fence descriptor"
Linux Build Service Account [Mon, 3 Jul 2017 14:58:00 +0000 (07:58 -0700)]
Merge "msm: sde: Cache capture fence descriptor"

7 years agoMerge "msm: mdss: unmap buffers before starting Secure Display session"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:59 +0000 (07:57 -0700)]
Merge "msm: mdss: unmap buffers before starting Secure Display session"

7 years agoMerge "msm: sde: fix unaligned access problem"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:58 +0000 (07:57 -0700)]
Merge "msm: sde: fix unaligned access problem"

7 years agoMerge "fbdev: msm: Add check for ioctl calls"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:57 +0000 (07:57 -0700)]
Merge "fbdev: msm: Add check for ioctl calls"

7 years agoMerge "Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:57 +0000 (07:57 -0700)]
Merge "Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'"

7 years agoMerge "ARM: dts: msm: Disable IPA in APQ 8098"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:56 +0000 (07:57 -0700)]
Merge "ARM: dts: msm: Disable IPA in APQ 8098"

7 years agoMerge "ipv4: Drop packets if checksum is invalidated"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:55 +0000 (07:57 -0700)]
Merge "ipv4: Drop packets if checksum is invalidated"

7 years agoMerge "usb: bam: Remove inactivity_timer sysfs attribute"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:54 +0000 (07:57 -0700)]
Merge "usb: bam: Remove inactivity_timer sysfs attribute"

7 years agoMerge "msm: actuator: Add protection condition for move focus"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:53 +0000 (07:57 -0700)]
Merge "msm: actuator: Add protection condition for move focus"

7 years agoMerge "USB: f_audio_source: Remove pm_qos request under non atomic context"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:53 +0000 (07:57 -0700)]
Merge "USB: f_audio_source: Remove pm_qos request under non atomic context"

7 years agoMerge "msm: camera: isp: Avoid reading stale ping pong status"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:52 +0000 (07:57 -0700)]
Merge "msm: camera: isp: Avoid reading stale ping pong status"

7 years agoMerge "osq_lock: avoid live-lock issue for RT task"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:51 +0000 (07:57 -0700)]
Merge "osq_lock: avoid live-lock issue for RT task"

7 years agoMerge "cpu-hotplug: Keep atleast 1 online and un-isolated CPU"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:50 +0000 (07:57 -0700)]
Merge "cpu-hotplug: Keep atleast 1 online and un-isolated CPU"

7 years agoMerge "spi: spi_qsd: serve set_cs call only for valid device status"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:49 +0000 (07:57 -0700)]
Merge "spi: spi_qsd: serve set_cs call only for valid device status"

7 years agoMerge "ath10k: Populate ACS survey results"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:49 +0000 (07:57 -0700)]
Merge "ath10k: Populate ACS survey results"

7 years agoMerge "cgroup: Fix potential race between cgroup_exit and migrate path"
Linux Build Service Account [Mon, 3 Jul 2017 14:57:48 +0000 (07:57 -0700)]
Merge "cgroup: Fix potential race between cgroup_exit and migrate path"

7 years agocpuidle: lpm-levels: Check for negative sleep times
Naresh Malladi [Mon, 3 Jul 2017 10:23:48 +0000 (15:53 +0530)]
cpuidle: lpm-levels: Check for negative sleep times

A negative sleep time could be interpreted as a large positive sleep
time when its casted to a unsigned type. This could result in CPU sleeping
for a longer than expected duration resulting in missed interrupts.

Change-Id: I472f355c8ba392ab46d53fceddb448f7e35c178e
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
7 years agomsm: ADSPRPC: Initialize FastRPC invoke metadata
Tharun Kumar Merugu [Thu, 22 Jun 2017 05:15:43 +0000 (10:45 +0530)]
msm: ADSPRPC: Initialize FastRPC invoke metadata

Initializing metadata buffer to zero before reusing the buffer
for next invoke.

Change-Id: Iaab3478732b83427a475e95afa0e031cb76f60d9
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
7 years agoARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998
Gaurav Sonwani [Tue, 13 Jun 2017 22:21:29 +0000 (03:51 +0530)]
ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998

This is required to add a PM QOS request to disallow L2PC on masked CPUS.
It improves queue to submit time for first set of GPU commands
which results in GPU wake up.

Change-Id: If7e0925ec76065158188671f1d11a0de5e9900aa
Signed-off-by: Gaurav Sonwani <gsonwani@codeaurora.org>
7 years agommc: core: Remove unused variable
Vijay Viswanath [Thu, 6 Apr 2017 05:44:25 +0000 (11:14 +0530)]
mmc: core: Remove unused variable

Removed a local variable in mmc_start_req() which was used to store the
error encountered while starting a new data request. If an error is
encountered while starting a new request, the error
information is stored in the mrq. The error information stored in the
mrq is during error handling. So removing the unused variable.

Change-Id: Ifeedc91433230d5156d286bd332a85fb221188ac
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
7 years agomsm: camera: add protection in the cci write function
Wei Ding [Tue, 20 Jun 2017 06:14:09 +0000 (14:14 +0800)]
msm: camera: add protection in the cci write function

Add state check before execute CCI function.

Change-Id: I1c876e4eac70316bfe322b11f807e367c020e7d0
Signed-off-by: Wei Ding <weiding@codeaurora.org>
7 years agoARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for SDM660/630
Nagaradhesh Yeleswarapu [Tue, 27 Jun 2017 06:01:23 +0000 (11:31 +0530)]
ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for SDM660/630

Audio codec interrupt line is connected to pin61 of MPM. Map
interrupt 209 to MPM pin61 to wakeup APSS from TCXO mode.

CRs-Fixed: 2040808
Change-Id: I74cfc871b6e99c62dda30033e6dabb5fe5d19705
Signed-off-by: Nagaradhesh Yeleswarapu <nagaradh@qti.qualcomm.com>
7 years agoosq_lock: fix osq_lock queue corruption
Prateek Sood [Thu, 25 May 2017 11:47:26 +0000 (17:17 +0530)]
osq_lock: fix osq_lock queue corruption

Fix ordering of link creation between node->prev and prev->next in
osq_lock(). A case in which the status of optimistic spin queue is
CPU6->CPU2 in which CPU6 has acquired the lock. At this point if CPU0
comes in to acquire osq_lock, it will update the tail count. After tail
count update if CPU2 starts to unqueue itself from optimistic spin queue,
it will find updated tail count with CPU0 and update CPU2 node->next to
NULL in osq_wait_next(). If reordering of following stores happen then
prev->next where prev being CPU2 would be updated to point to CPU0 node:
node->prev = prev;
WRITE_ONCE(prev->next, node);

At this point if next instruction
WRITE_ONCE(next->prev, prev);

in CPU2 path is committed before the update of CPU0 node->prev = prev then
CPU0 node->prev will point to CPU6 node. At this point if CPU0 path's
node->prev = prev is committed resulting in change of CPU0 prev back to
CPU2 node. CPU2 node->next is NULL currently, so if CPU0 gets into unqueue
path of osq_lock it will keep spinning in infinite loop as condition
prev->next == node will never be true.

Change-Id: I48d847096daf3c228de90ae1cd2a6415b7bde65a
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
7 years agoMerge "msm: kgsl: Limit the frequency of logging on memory allocation failure"
Linux Build Service Account [Sun, 2 Jul 2017 23:11:43 +0000 (16:11 -0700)]
Merge "msm: kgsl: Limit the frequency of logging on memory allocation failure"

7 years agoMerge "msm: kgsl: Directly return page size of the supported pool"
Linux Build Service Account [Sun, 2 Jul 2017 23:11:41 +0000 (16:11 -0700)]
Merge "msm: kgsl: Directly return page size of the supported pool"

7 years agopower: qcom: smb-lib: handle dynamic Rp change
Ashay Jaiswal [Thu, 29 Jun 2017 10:55:23 +0000 (16:25 +0530)]
power: qcom: smb-lib: handle dynamic Rp change

The legacy detection workaround change restricts DCP to 1.5A draw,
regardless of legacy/non-legacy type. This was to prevent a legacy
(non-compliant) cable, incorrectly detected as non-legacy cable from
drawing more than 1.5A.

The issue with legacy bit is that hardware could end up reporting
non-legacy for a legacy cable (not the other way round). We want to
ensure that for non-compliant legacy cable SDP/CDP current limits
are honoured and that for a Rp = 10k legacy cable VBUS shouldn't go
higher than 5V.

This cap of 1.5A on DCP is not necessary. Moreover AICL will limit the
current if needed.

To realize this force the Rp based current whenever DCP or float
is seen via the LEGACY_UNKNOWN_VOTER. LEGACY_UNKNOWN_VOTER is not
removed unless a confirmed hvdcp or pd is seen.

Change-Id: I89505e9db4f045aaf71ab0ee534de783ea4d2df3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agomsm: kgsl: Limit the frequency of logging on memory allocation failure
Deepak Kumar [Wed, 21 Jun 2017 07:42:33 +0000 (13:12 +0530)]
msm: kgsl: Limit the frequency of logging on memory allocation failure

Excessive logging due to several successive memory allocation failure
may cause a watchdog bite. Hence, this change adds ratelimit to logging
on memory allocation failure.

Change-Id: I8e5d78918a32c48ef7fa587f3dc63cbd1f065d5f
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
7 years agoASoC: msm-cpe: Resolve memory out of bound access
Revathi Uddaraju [Fri, 30 Jun 2017 10:38:43 +0000 (16:08 +0530)]
ASoC: msm-cpe: Resolve memory out of bound access

Resolve memory out of bound access by correcting the
length of the buffer to be copied.

Change-Id: I2cc74a664399913acf67464a5f6827b100522676
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
7 years agodiag: Add protection while processing non-hdlc packets
Hardik Arya [Thu, 15 Jun 2017 05:09:34 +0000 (10:39 +0530)]
diag: Add protection while processing non-hdlc packets

Currently, there is possibility of out-of-bound accesses during
handling of data in non-hdlc path. The patch adds proper protection
when processing non-hdlc packet information to fix the issue.

CRs-Fixed: 2029216
Change-Id: I07c466f85bd8ac08226948fea86b1d8567e68431
Signed-off-by: Hardik Arya <harya@codeaurora.org>
7 years agomsm: camera: isp: Handle array out of bound access
Sriraj Hebbar [Fri, 30 Jun 2017 07:44:28 +0000 (13:14 +0530)]
msm: camera: isp: Handle array out of bound access

The pointer req_frm is coming from userspace, it may overflow stream_info.
Adding a bound check to prevent the same.

CRs-fixed: 2008683
Change-Id: I8682e09ff2ab7ba490bbbd9e20db978493c5f3e4
Signed-off-by: Senthil Kumar Rajagopal <skrajago@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
7 years agoosq_lock: avoid live-lock issue for RT task
Prateek Sood [Fri, 16 Jun 2017 05:02:47 +0000 (10:32 +0530)]
osq_lock: avoid live-lock issue for RT task

Live Lock  due to task spinning while unqueue of CPU osq_node
from optimistic_spin_queue. Task T1 had decremented mutex count to
acquire the lock on CPU0. Before setting owner it got preempted. On
CPU1 task T2 acquired osq_lock and started spinning on owner of mutex
with preemption disabled. CPU1 runq has one task, so need_resched will
not be set. On CPU0 task T3 tried to acquire osq_lock to spin on the
same mutex. At this time following scenario causes soft lockup:

After preemption of task T1, RT task T3 tried to acquire the same
mutex. It will start spinning on the osq_lock until the lock is available
or need_resched is set. For RT task, need_resched will not be set. Task T3
will not be able to bail out of the infinite loop.

Change-Id: Ifd7506047119a22e14b15459ac6b04b410ba1c84
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
7 years agodrm/msm: add support for parsing YUV 420 deep color
Abhinav Kumar [Fri, 30 Jun 2017 08:02:36 +0000 (01:02 -0700)]
drm/msm: add support for parsing YUV 420 deep color

Current upstream parser only handles RGB deep color
modes.

Add support in the SDE EDID parser module to parse
HDMI VSDB block and indicate support for YUV 420
deep color modes in the sink.

Change-Id: If6c007263094e7716a29cae503d3e3471ae04306
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
7 years agoipv4: Drop packets if checksum is invalidated
Tejaswi Tanikella [Tue, 20 Jun 2017 12:52:19 +0000 (18:22 +0530)]
ipv4: Drop packets if checksum is invalidated

Conntrack, if enabled, verifies complete checksum on all tcp
packets. If a packet is corrupted, it sets ip_summed field
to CHECKSUM_COMPLETE and checksum valid field to false.
With these changes such packet will be dropped.

Packets that are corrupted can go into userspace even when
the checksum is wrong. The io_vec library pushes the data into
pipe before checking the checksum. If the checksum is wrong,
the copied data is not reverted. Users observe corrupted data
in the application memory due to such corrupted packets.
This fix is to plug one such hole.
This change might be redundant on kernels after v4.9.

Change-Id: Iffface598d0fa2b25fb9c20c7aa6443aab9d8aea
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>