OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
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 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 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 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 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 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 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 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>
7 years agomsm: actuator: Add protection condition for move focus
Pengfei Liu [Thu, 29 Jun 2017 03:40:24 +0000 (11:40 +0800)]
msm: actuator: Add protection condition for move focus

Neighbour index of step table possibly have same position,
so i2c operation reported invalid size parameters.
we add protection condition to return success value.

Change-Id: I7dab8f44a99c7c3c7d6996c8decb8bcd09c246c9
Signed-off-by: penliu <pengfeiliu@codeaurora.org>
7 years agousb: bam: Remove inactivity_timer sysfs attribute
Arumuga Durai A [Wed, 14 Jun 2017 07:48:26 +0000 (13:18 +0530)]
usb: bam: Remove inactivity_timer sysfs attribute

Sysfs attribute "inactivity_timer" not being used anymore so remove that
entry from sysfs.

CRs-Fixed: 2048725
Change-Id: I30d2d4a3cb9899b7975a6395eab90337fc006488
Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
7 years agogenirq: honour default IRQ affinity setting during migration
Pavankumar Kondeti [Fri, 16 Jun 2017 04:06:25 +0000 (09:36 +0530)]
genirq: honour default IRQ affinity setting during migration

Userspace can set the default IRQ affinity setting by writing into
/proc/irq/default_smp_affinity file. When an IRQ affinity is
broken during isolation/hotplug,override the affinity to online and
un-isolated CPUs from the default affinity CPUs. If no such CPU
is available, then only override with cpu_online_mask.

Change-Id: I7578728ed0d7c17c5890d9916cfd6451d1968568
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agogenriq: pick only one CPU while overriding the affinity during migration
Pavankumar Kondeti [Thu, 22 Jun 2017 08:03:08 +0000 (13:33 +0530)]
genriq: pick only one CPU while overriding the affinity during migration

With commit bfc60d474137 ("genirq: Use irq_set_affinity_locked to change
irq affinity"), affinity listeners receive the notification when the irq
affinity is changed during migration. If there is no online and
un-isolated CPU available from the user specified affinity, the affinity
is overridden with all online and un-isolated CPUs. The same cpumask is
notified to PM QOS affinity listener which applies PM_QOS_CPU_DMA_LATENCY
vote to all those CPUs. As the low level irqchip driver sets affinity to
only one CPU, do the same while overriding the affinity during migration.

Change-Id: I0bcb75dd356658da100fbeeefd33ef8b121f4d6d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agodefconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098
Vinayak Soni [Thu, 29 Jun 2017 18:06:54 +0000 (11:06 -0700)]
defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098

To bring-up Demux & DVR nodes.

Change-Id: Ia624220e2fd943ea6bbba81c8f7dcf1475c27065
Signed-off-by: Vinayak Soni <soniv@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add non-removable ufs property for SDM630"
Linux Build Service Account [Thu, 29 Jun 2017 18:34:49 +0000 (11:34 -0700)]
Merge "ARM: dts: msm: Add non-removable ufs property for SDM630"

7 years agoMerge "msm: mdss: Allow post-processing clean-up for primary display"
Linux Build Service Account [Thu, 29 Jun 2017 18:34:48 +0000 (11:34 -0700)]
Merge "msm: mdss: Allow post-processing clean-up for primary display"

7 years agoMerge "msm: mdss: Correct PP register programming deferring"
Linux Build Service Account [Thu, 29 Jun 2017 18:34:47 +0000 (11:34 -0700)]
Merge "msm: mdss: Correct PP register programming deferring"

7 years agoMerge "scsi: ufs: Unblock UFS while ICE HW configuration"
Linux Build Service Account [Thu, 29 Jun 2017 18:34:46 +0000 (11:34 -0700)]
Merge "scsi: ufs: Unblock UFS while ICE HW configuration"

7 years agomsm: camera: isp: Avoid reading stale ping pong status
Lokesh Kumar Aakulu [Tue, 20 Jun 2017 19:14:43 +0000 (00:44 +0530)]
msm: camera: isp: Avoid reading stale ping pong status

When write masters are reloaded pingpong status regi-
-ster will not be reset. Instead, it would be holding
a stale data, until new axi_done irq is interrupted.
So, place a check to validate the pingpong register
value based on the reloaded status of write masters.

Change-Id: Id14b886154f8a8ef8d5c05338023d8172d6925d0
Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
7 years agomsm: sde: fix unaligned access problem
Harsh Sahu [Tue, 27 Jun 2017 19:05:43 +0000 (12:05 -0700)]
msm: sde: fix unaligned access problem

debug offset comes from the user and can hold any value which can
cause unaligned access. This change fixes the unaligned access
problem on debug offset by properly aligning it.

Change-Id: Ie4de9a12433f6ffd568c6c86928b71a5537b0dff
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
7 years agocpu-hotplug: Keep atleast 1 online and un-isolated CPU
Pavankumar Kondeti [Thu, 29 Jun 2017 10:47:55 +0000 (16:17 +0530)]
cpu-hotplug: Keep atleast 1 online and un-isolated CPU

The PM_QOS_CPU_DMA_LATENCY vote attached to an IRQ is discarded,
if it is affined to an isolated CPU. So we need atleast 1 CPU
in online and un-isolate state. The scheduler rejects isolating
a CPU if it is the only online and un-isolated CPU in the system.
Add the same check for CPU hotplug.

Change-Id: I5bdfe6e3bb0352ed3ae5a2de90097b73d248f3fc
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agoMerge "msm: camera: Use mutex lock to avoid race condition"
Linux Build Service Account [Thu, 29 Jun 2017 10:32:33 +0000 (03:32 -0700)]
Merge "msm: camera: Use mutex lock to avoid race condition"

7 years agoMerge "soc: qcom: glink: Move get reference to valid location"
Linux Build Service Account [Thu, 29 Jun 2017 10:32:33 +0000 (03:32 -0700)]
Merge "soc: qcom: glink: Move get reference to valid location"

7 years agoMerge "soc: qcom: glink: Remove magic number logic"
Linux Build Service Account [Thu, 29 Jun 2017 10:32:32 +0000 (03:32 -0700)]
Merge "soc: qcom: glink: Remove magic number logic"

7 years agoARM: dts: msm: Disable IPA in APQ 8098
Mohammed Javid [Fri, 16 Jun 2017 11:57:26 +0000 (17:27 +0530)]
ARM: dts: msm: Disable IPA in APQ 8098

IPA needs to be kept disabled in APQ 8098 platform.

Change-Id: If340d72d1dc18f2861635528ea1a37a4d81421bd
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
7 years agospi: spi_qsd: serve set_cs call only for valid device status
Mukesh Kumar Savaliya [Tue, 13 Jun 2017 12:03:00 +0000 (17:33 +0530)]
spi: spi_qsd: serve set_cs call only for valid device status

when set_cs() is called by framework, first check the device suspend
status and if not suspended then proceed for register access. Let system
suspend call SPI runtime suspend but make sure set_cs doesn't race with
it by holding the mutex.

Change-Id: Id6d05ac37227bf3358438eeedf279ddd1c9aab8b
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
7 years agoath10k: Populate ACS survey results
Ashutosh Kumar [Mon, 27 Mar 2017 15:59:20 +0000 (21:29 +0530)]
ath10k: Populate ACS survey results

ACS fails as channel details are null in survey info.
Add the missing fields in survey_info structure and
populate the channel details in survey results.

CRs-Fixed: 2027495
Change-Id: I1ca933ded4ca039845203ccd51d77cf7cef1c000
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
7 years agomsm: mdss: fix the pixel clock calculation for fb modes
Sandeep Panda [Wed, 28 Jun 2017 13:01:35 +0000 (18:31 +0530)]
msm: mdss: fix the pixel clock calculation for fb modes

In the current implementation, if panel is configured in split
mode and supports multiple resolutions, then the pixel clock
calculation for the supported modes does not take split mode
into consideration. This causes issues when recovery or charger
application try to configure display. So fix the same by
recalculating the pixel clock with taking care of proper width
in case of split mode panel.

Change-Id: Ie6b50bcd67d3e283610f8b04ac0a974b3527e552
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
7 years agoARM: dts: msm: Add non-removable ufs property for SDM630
Sayali Lokhande [Thu, 29 Jun 2017 03:38:09 +0000 (09:08 +0530)]
ARM: dts: msm: Add non-removable ufs property for SDM630

Defines the non-removable property for UFS device node.
This basically lets the driver know that UFS is the
boot device.

Change-Id: I1c8aa298af4afc7e42d0c8a3690f7d3360e37647
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
7 years agoMerge "drm/msm/sde: add kernel traces to measure enable/disable/kickoff times"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:04 +0000 (20:09 -0700)]
Merge "drm/msm/sde: add kernel traces to measure enable/disable/kickoff times"

7 years agoMerge "ARM: dts: msm: update rmtfs shared memory address for SDM660/630"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:03 +0000 (20:09 -0700)]
Merge "ARM: dts: msm: update rmtfs shared memory address for SDM660/630"

7 years agoMerge "defconfig: msm: enable remote debugger driver"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:02 +0000 (20:09 -0700)]
Merge "defconfig: msm: enable remote debugger driver"

7 years agoMerge "mm: avoid taking zone lock in pagetypeinfo_showmixed()"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:01 +0000 (20:09 -0700)]
Merge "mm: avoid taking zone lock in pagetypeinfo_showmixed()"

7 years agoMerge "icnss: Fix incorrect clean-up of stats"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:00 +0000 (20:09 -0700)]
Merge "icnss: Fix incorrect clean-up of stats"

7 years agoMerge "icnss: Add specific statistics for PDR"
Linux Build Service Account [Thu, 29 Jun 2017 03:09:00 +0000 (20:09 -0700)]
Merge "icnss: Add specific statistics for PDR"

7 years agoMerge "input: synaptics_dsx: validate bounds of intr_reg_num"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:59 +0000 (11:59 -0700)]
Merge "input: synaptics_dsx: validate bounds of intr_reg_num"

7 years agoMerge "soc: qcom: glink_smem_native_xport: Allocate smem item in non cache region"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:58 +0000 (11:59 -0700)]
Merge "soc: qcom: glink_smem_native_xport: Allocate smem item in non cache region"

7 years agoMerge "power: reset: msm: add support to select both dumps"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:57 +0000 (11:59 -0700)]
Merge "power: reset: msm: add support to select both dumps"

7 years agoMerge "ARM: dts: msm: Update USB PHY0 parameters for SDA660/630 HDK platform"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:56 +0000 (11:59 -0700)]
Merge "ARM: dts: msm: Update USB PHY0 parameters for SDA660/630 HDK platform"

7 years agoMerge "drm/msm: program hdr information to HDMI registers"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:55 +0000 (11:59 -0700)]
Merge "drm/msm: program hdr information to HDMI registers"

7 years agoMerge "drm/msm/sde: add sde_connector kickoff callbacks"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:54 +0000 (11:59 -0700)]
Merge "drm/msm/sde: add sde_connector kickoff callbacks"

7 years agoMerge "soc: qcom: ipc_router: Improve IPC attribution"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:54 +0000 (11:59 -0700)]
Merge "soc: qcom: ipc_router: Improve IPC attribution"

7 years agoMerge "msm: camera: Fix a deadlock in power-up sequence of the I2C-TZ relay"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:53 +0000 (11:59 -0700)]
Merge "msm: camera: Fix a deadlock in power-up sequence of the I2C-TZ relay"

7 years agoMerge "msm: camera: isp: Set the sync mode to async"
Linux Build Service Account [Wed, 28 Jun 2017 18:59:52 +0000 (11:59 -0700)]
Merge "msm: camera: isp: Set the sync mode to async"

7 years agoMerge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'
Blagovest Kolenichev [Wed, 28 Jun 2017 16:45:12 +0000 (09:45 -0700)]
Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'

* refs/heads/tmp-77ddb50:
  UPSTREAM: usb: gadget: f_fs: avoid out of bounds access on comp_desc
  Linux 4.4.74
  mm: fix new crash in unmapped_area_topdown()
  Allow stack to grow up to address space limit
  mm: larger stack guard gap, between vmas
  alarmtimer: Rate limit periodic intervals
  MIPS: Fix bnezc/jialc return address calculation
  usb: dwc3: exynos fix axius clock error path to do cleanup
  alarmtimer: Prevent overflow of relative timers
  genirq: Release resources in __setup_irq() error path
  swap: cond_resched in swap_cgroup_prepare()
  mm/memory-failure.c: use compound_head() flags for huge pages
  USB: gadgetfs, dummy-hcd, net2280: fix locking for callbacks
  usb: xhci: ASMedia ASM1042A chipset need shorts TX quirk
  drivers/misc/c2port/c2port-duramar2150.c: checking for NULL instead of IS_ERR()
  usb: r8a66597-hcd: decrease timeout
  usb: r8a66597-hcd: select a different endpoint on timeout
  USB: gadget: dummy_hcd: fix hub-descriptor removable fields
  pvrusb2: reduce stack usage pvr2_eeprom_analyze()
  usb: core: fix potential memory leak in error path during hcd creation
  USB: hub: fix SS max number of ports
  iio: proximity: as3935: recalibrate RCO after resume
  staging: rtl8188eu: prevent an underflow in rtw_check_beacon_data()
  mfd: omap-usb-tll: Fix inverted bit use for USB TLL mode
  x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init()
  serial: efm32: Fix parity management in 'efm32_uart_console_get_options()'
  mac80211: fix IBSS presp allocation size
  mac80211: fix CSA in IBSS mode
  mac80211/wpa: use constant time memory comparison for MACs
  mac80211: don't look at the PM bit of BAR frames
  vb2: Fix an off by one error in 'vb2_plane_vaddr'
  cpufreq: conservative: Allow down_threshold to take values from 1 to 10
  can: gs_usb: fix memory leak in gs_cmd_reset()
  configfs: Fix race between create_link and configfs_rmdir
  UPSTREAM: bpf: don't let ldimm64 leak map addresses on unprivileged
  BACKPORT: ext4: fix data exposure after a crash
  ANDROID: sdcardfs: remove dead function open_flags_to_access_mode()
  ANDROID: android-base.cfg: split out arm64-specific configs
  Linux 4.4.73
  sparc64: make string buffers large enough
  s390/kvm: do not rely on the ILC on kvm host protection fauls
  xtensa: don't use linux IRQ #0
  tipc: ignore requests when the connection state is not CONNECTED
  proc: add a schedule point in proc_pid_readdir()
  romfs: use different way to generate fsid for BLOCK or MTD
  sctp: sctp_addr_id2transport should verify the addr before looking up assoc
  r8152: avoid start_xmit to schedule napi when napi is disabled
  r8152: fix rtl8152_post_reset function
  r8152: re-schedule napi for tx
  nfs: Fix "Don't increment lock sequence ID after NFS4ERR_MOVED"
  ravb: unmap descriptors when freeing rings
  drm/ast: Fixed system hanged if disable P2A
  drm/nouveau: Don't enabling polling twice on runtime resume
  parisc, parport_gsc: Fixes for printk continuation lines
  net: adaptec: starfire: add checks for dma mapping errors
  pinctrl: berlin-bg4ct: fix the value for "sd1a" of pin SCRD0_CRD_PRES
  gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page
  net/mlx4_core: Avoid command timeouts during VF driver device shutdown
  drm/nouveau/fence/g84-: protect against concurrent access to semaphore buffers
  drm/nouveau: prevent userspace from deleting client object
  ipv6: fix flow labels when the traffic class is non-0
  FS-Cache: Initialise stores_lock in netfs cookie
  fscache: Clear outstanding writes when disabling a cookie
  fscache: Fix dead object requeue
  ethtool: do not vzalloc(0) on registers dump
  log2: make order_base_2() behave correctly on const input value zero
  kasan: respect /proc/sys/kernel/traceoff_on_warning
  jump label: pass kbuild_cflags when checking for asm goto support
  PM / runtime: Avoid false-positive warnings from might_sleep_if()
  ipv6: Fix IPv6 packet loss in scenarios involving roaming + snooping switches
  i2c: piix4: Fix request_region size
  sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications
  sierra_net: Skip validating irrelevant fields for IDLE LSIs
  net: hns: Fix the device being used for dma mapping during TX
  NET: mkiss: Fix panic
  NET: Fix /proc/net/arp for AX.25
  ipv6: Inhibit IPv4-mapped src address on the wire.
  ipv6: Handle IPv4-mapped src to in6addr_any dst.
  net: xilinx_emaclite: fix receive buffer overflow
  net: xilinx_emaclite: fix freezes due to unordered I/O
  Call echo service immediately after socket reconnect
  staging: rtl8192e: rtl92e_fill_tx_desc fix write to mapped out memory.
  ARM: dts: imx6dl: Fix the VDD_ARM_CAP voltage for 396MHz operation
  partitions/msdos: FreeBSD UFS2 file systems are not recognized
  s390/vmem: fix identity mapping
  usb: gadget: f_fs: Fix possibe deadlock

Conflicts:
drivers/usb/gadget/function/f_fs.c

Change-Id: I23106e9fc2c4f2d0b06acce59b781f6c36487fcc
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
7 years agoARM: dts: msm: Add remote debugger device configuration for sdm660
tharun kumar [Wed, 28 Jun 2017 11:40:25 +0000 (17:10 +0530)]
ARM: dts: msm: Add remote debugger device configuration for sdm660

Adding remote debugger device configuration. The Remote Debugger driver
allows a debugger running on a host PC to communicate with a remote
stub running on peripheral subsystems.

Change-Id: I89e686c7e049a9fc8e1b6173ce009333df5b4ca1
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
7 years agosoc: qcom: glink_smem_native_xport: Allocate smem item in non cache region
Dhoat Harpal [Wed, 19 Apr 2017 06:16:59 +0000 (11:46 +0530)]
soc: qcom: glink_smem_native_xport: Allocate smem item in non cache region

rx fifo is allocated in cached region of smem, this leads to
inconsistency when reading at remote side.

rx fifo is allocated in non cached region of smem.

CRs-Fixed: 2056955
Change-Id: I0c7d5bf55222920cffdcd2c7f48968a4f49ee790
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Disable adv7481 on Mojave lite platform"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:59 +0000 (04:35 -0700)]
Merge "ARM: dts: msm: Disable adv7481 on Mojave lite platform"

7 years agoMerge "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:58 +0000 (04:35 -0700)]
Merge "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"

7 years agoMerge "perf: stop deadlock if attempt to bring cpu up fails"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:57 +0000 (04:35 -0700)]
Merge "perf: stop deadlock if attempt to bring cpu up fails"

7 years agoMerge "soc: qcom: avoid calling sleeping functions in interrupt context"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:56 +0000 (04:35 -0700)]
Merge "soc: qcom: avoid calling sleeping functions in interrupt context"

7 years agoMerge "ARM: dts: msm: Change headset jack configuration for apq8098 mediabox"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:55 +0000 (04:35 -0700)]
Merge "ARM: dts: msm: Change headset jack configuration for apq8098 mediabox"

7 years agoMerge "msm: rmnet_ipa3: fix QMAP command xfer"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:54 +0000 (04:35 -0700)]
Merge "msm: rmnet_ipa3: fix QMAP command xfer"

7 years agoMerge "msm: sensor: Fix for variable being de-referenced without proper check"
Linux Build Service Account [Wed, 28 Jun 2017 11:35:52 +0000 (04:35 -0700)]
Merge "msm: sensor: Fix for variable being de-referenced without proper check"

7 years agoARM: dts: msm: update rmtfs shared memory address for SDM660/630
Sahitya Tummala [Fri, 23 Jun 2017 06:03:36 +0000 (11:33 +0530)]
ARM: dts: msm: update rmtfs shared memory address for SDM660/630

Use reserved memory as shared memory between apps and modem for
writing modem data using rmt_storage service on apps.

Change-Id: I0e5bc8b1e3dbe2f8d49686894667b4a6ee1a3529
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>