Commit graph

590475 commits

Author SHA1 Message Date
Linux Build Service Account
1d234ffe59 Merge "drivers: mfd: donot clear interrupt status" 2017-06-01 01:53:19 -07:00
Linux Build Service Account
62a1288929 Merge "ASoC: sdm660_cdc: Add writeable registers for Dig_cdc and sdw codec regmap" 2017-06-01 01:53:18 -07:00
Linux Build Service Account
4ac01e4d3f Merge "ARM: dts: msm: add noirq pcm platform driver on msm8996 auto" 2017-06-01 01:53:17 -07:00
Linux Build Service Account
6d91eba63e Merge "ASoC: msm: Enable use of noirq playback and capture" 2017-06-01 01:53:16 -07:00
Linux Build Service Account
8cbd998688 Merge "pinctrl: lpi: Avoid null pointer access in dbg_show" 2017-06-01 01:53:15 -07:00
Linux Build Service Account
36d10a3882 Merge "ASoC: audio_notifier : Change logic for initial boot" 2017-06-01 01:53:14 -07:00
Linux Build Service Account
4383ba69ae Merge "ASoC: wcd934x: Add support to restore IIR coefficients after power collapse" 2017-06-01 01:53:13 -07:00
Linux Build Service Account
d06a7d01d4 Merge "iommu: iommu-debug: cleanup iommu debug" 2017-06-01 01:53:11 -07:00
Linux Build Service Account
d4caef59c0 Merge "mhi: core: Only allow registration if channel is supported by endpoint." 2017-06-01 01:53:10 -07:00
Linux Build Service Account
b5c7db0743 Merge "mhi: core: Fix memory leak in MHI DE_INIT" 2017-06-01 01:53:09 -07:00
Linux Build Service Account
0934299196 Merge "mhi: core: Create dummy MHI APIs to fix compile errors" 2017-06-01 01:53:09 -07:00
Linux Build Service Account
e5e25bbebf Merge "drivers: firmware: psci: Set ARM32 cpuidle ops" 2017-06-01 01:53:08 -07:00
Linux Build Service Account
864fd17d93 Merge "diag: Synchronize command registration table access" 2017-06-01 01:53:07 -07:00
Linux Build Service Account
9037b7483c Merge "ASoC: msm: add support for RTIC events" 2017-06-01 01:53:05 -07:00
Linux Build Service Account
28192a79e3 Merge "ASoC: msm: Add support for 192KHz sampling rate" 2017-06-01 01:53:04 -07:00
Linux Build Service Account
bccca4c896 Merge "msm: camera: Align smmu mapping len to 128M." 2017-06-01 01:53:03 -07:00
Linux Build Service Account
d5430d098c Merge "msm: ais: Add regulator enable and disable independent of CSID" 2017-06-01 01:53:02 -07:00
Linux Build Service Account
c183209691 Merge "msm: camera: cpp: Issue CPP HALT on page fault" 2017-06-01 01:53:00 -07:00
Linux Build Service Account
15f0386b00 Merge "msm: camera: sensor: Change REFGEN for DPHY CLK/DATA to internal bias" 2017-06-01 01:52:59 -07:00
Linux Build Service Account
9d0b778206 Merge "ARM: dts: msm: change gpio mode on msm8998" 2017-06-01 01:52:58 -07:00
Linux Build Service Account
d7c721d345 Merge "qcdev: Check the digest length during the SHA operations" 2017-06-01 01:52:57 -07:00
Linux Build Service Account
50b42d62de Merge "coresight: fix the unbalanced qdss_clock count" 2017-06-01 01:52:57 -07:00
Linux Build Service Account
9fbc608307 Merge "diag: dci: Validate dci client entries prior to access" 2017-06-01 01:52:56 -07:00
Linux Build Service Account
4bb39679c0 Merge "diag: Add PD buffering mode configuration support" 2017-06-01 01:52:55 -07:00
Wei Li
44ffe728ea ARM: dts: msm: Modify coresight replicator device for msm8996
Fix clock reference error in coresight replicator device for
msm8996.

Change-Id: Idc2c03eaed773adc5ee66ace9d386fac45de0f45
Signed-off-by: Wei Li <weili@codeaurora.org>
2017-06-01 16:39:25 +08:00
Ashay Jaiswal
e8603aaf9e qcom: smb1351: add support for reporting INPUT_SUSPEND property
Add support to report INPUT_SUSPEND state in case of slave charger
configuration. This is used by user-space to determine parallel
charger state.

Change-Id: I97a7c18180c0aceddd2b90177949f87487aad22b
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-06-01 13:21:05 +05:30
Imran Khan
ab67b28f1e ARM: dts: msm: Early mount of vendor partition for msm8998
Add support to early mount vendor partition so that venodr modules
can be loaded during early init.

Change-Id: I668a7c3b1716816d497b7f170b554dfe8960701c
Signed-off-by: Imran Khan <kimran@codeaurora.org>
2017-06-01 13:06:32 +05:30
Vinayak Menon
7cf864f551 mm: process reclaim: skip locked vmas
Skip VMA_LOCKED vmas from being reclaimed. Not doing so results
in pages in unevictable lrus to be passed for reclaim which can
cause issues. In one such reported problem, the trylock_page in
shrink_page_list fails and reclaim path decides to keep the page
and hits VM_BUG_ON_PAGE since PageUnevictable is set.

Change-Id: I58947faeb5226cf8578541d7fdcd474a24f8c40f
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2017-05-31 23:37:47 -07:00
Krishna Chaitanya Devarakonda
183f6944db msm: mdss: Check if secure display is enabled during non-secure validate
For video mode panels, when secure display has ended and non-secure
layers are being committed, check if secure display is still enabled.
Ideally there should be a NULL commit before non-secure content starts,
to clean up the secure display. If this isn't the case, add code to
detect, validate, and return failure.

Change-Id: I574547307073e38a19a42ff21679b17e1ec29b3b
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
2017-05-31 23:31:52 -07:00
Surajit Podder
b9109a04fe msm: vidc: Copy user buffers to kernel memory before access
trigger_ssr_write directly accesses user buffer, which can lead
to crash. Copy user buffer to kernel memory before access.
Also, set initial value for ssr_trigger_val, and use kstrtoul
instead of sscanf, with proper checking of return code.

Change-Id: I94b1c14a8ae4628cb6ac0ee7f3bd38b0c79f088b
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-05-31 20:29:15 -07:00
Subbaraman Narayanamurthy
6124f75744 qpnp-fg-gen3: configure ESR timers dynamically based on charge termination
With ESR discharge timer retry, max having same value, ESR pulse
can fire frequently when battery FET is open past charge
termination. This frequent ESR pulses increase power consumption
when the device is idle.

Upon charge termination, change the ESR discharging timer retry
to 0 so that ESR pulse can fire less frequently saving power.

Add support for this through fg_esr_timer_config() based on end
of charge and sleep conditions.

Currently, retry/max for ESR charging and discharging timers are
configured with the same value specified through device tree.
Extend the device tree property to take in different retry/max
values for those timers.

Change-Id: Ib30b8ae7d893b5cab00ed83dd7318b53e3b63ac1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-05-31 19:01:05 -07:00
Vikram Mulukutla
259636e7d0 sched: hmp: Optimize cycle counter reads
The cycle counter read is a bit of an expensive operation and requires
locking across all CPUs in a cluster. Optimize this by returning the
same value if the delta between two reads is zero (so if two reads are
done in the same sched context) or if the last read was within a
specific time period prior to the current read.

Change-Id: I99da5a704d3652f53c8564ba7532783d3288f227
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-05-31 18:16:30 -07:00
Linux Build Service Account
bc9a6a81f4 Merge "usb: pd: policy_engine: Handle Get_Source_Cap properly from PE_SRC_Ready" 2017-05-31 17:58:04 -07:00
Linux Build Service Account
b467a68d13 Merge "usb: pd: Rerun usbpd_sm if RX queue is not empty" 2017-05-31 17:58:03 -07:00
Linux Build Service Account
abaf8c7a85 Merge "defconfig: msm: Enable CONFIG_CORESIGHT_SINK_TPIU for msmauto" 2017-05-31 17:58:02 -07:00
Linux Build Service Account
cc45aeb579 Merge "ARM: dts: msm: Modify coresight device node for msm8996" 2017-05-31 17:58:01 -07:00
Linux Build Service Account
aab7f04733 Merge "power: supply: qcom: use typec mode instead of debounce done" 2017-05-31 17:58:01 -07:00
Linux Build Service Account
1c8f9586b1 Merge "ais: enable ais build for automotive" 2017-05-31 17:58:00 -07:00
Linux Build Service Account
f691be0486 Merge "clk: mdss: fix bugs when parsing mdss regulators" 2017-05-31 17:57:59 -07:00
Linux Build Service Account
13e35bf17d Merge "msm: mdss: declare function used only within the file as static" 2017-05-31 17:57:58 -07:00
Linux Build Service Account
1d64abeedd Merge "drm/msm: Fix potential buffer overflow issue" 2017-05-31 17:57:57 -07:00
Linux Build Service Account
31069443cb Merge "msm: sde: Reset the iommu_attached flag after detach" 2017-05-31 17:57:56 -07:00
Linux Build Service Account
92526da423 Merge "msm: ais: cpp fix to check zero length ioctl" 2017-05-31 17:57:55 -07:00
Linux Build Service Account
35ca83d6a7 Merge "msm: camera: clean up buffers before detach" 2017-05-31 17:57:55 -07:00
Abhijeet Dharmapurikar
35b0ff80d1 smb-lib: change debounce time to 20mS while in pr_swap
We observe that while PR_SWAP is done from PD stack, the typeC
block could be running its tCC debounce timer. This causes the
driver to prematurely declare that the cable is removed.

Fix this by reducing the tCC debounce time to 20mS while in
PR_SWAP.

Change-Id: Ie8b3628cd6931ff2da92d95c153d0d2c7ddb20b2
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-05-31 17:04:26 -07:00
Prasad Sodagudi
0958ceaaf4 drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZE
These are all driver changes needed for disablement of
CONFIG_CC_OPTIMIZE_FOR_SIZE. CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
is enabled by default once CONFIG_CC_OPTIMIZE_FOR_SIZE is disabled.

Change-Id: Ia46a1f24e8a082a29ea6151e41e6d3a85a05fd4f
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org>
2017-05-31 16:51:47 -07:00
Sushmita Susheelendra
48d9d351eb drm: Remove redundant variable assignment
The variable 'end' is computed twice. Remove the
redundant assignment.

Change-Id: I79802b5f08aa10146b113d14ab40f33f6fefe6dc
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-05-31 17:33:11 -06:00
Chris Wilson
ffc435160c drm: Declare that create drm_mm nodes with size 0 is illegal
At a higher level, all objects are created with definite size i.e. 0 is
illegal. In forthcoming patches, this assumption is dependent upon in
the drm_mm range manager, i.e. trying to create a drm_mm node with size
0 will have undefined behaviour. Add a couple of WARNs upon creating the
drm_mm node to prevent later bugs.

Change-Id: Ieb81a8ef5a05a32dd37dfc040ea3f78243b59161
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470248788-30873-1-git-send-email-chris@chris-wilson.co.uk
Git-commit: aafdcfd3f9aa3c9f77ae4e9385f21bf9ae120d3e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-05-31 17:33:10 -06:00
Chris Wilson
e4cf5a0425 drm: Skip initialising the drm_mm_node->hole_stack
As we always add this to the drm_mm->hole_stack as our first operation,
we do not need to initialise the list node.

Change-Id: If2e9e06141bdb9a9411ef875cb83e41a48e5f1a9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470236651-678-3-git-send-email-chris@chris-wilson.co.uk
Git-commit: a787900564ffc6eebbcb7086b45e04a0bc3370f0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-05-31 17:33:09 -06:00
Chris Wilson
32d840be56 drm: Track drm_mm nodes with an interval tree
In addition to the last-in/first-out stack for accessing drm_mm nodes,
we occasionally and in the future often want to find a drm_mm_node by an
address. To do so efficiently we need to track the nodes in an interval
tree - lookups for a particular address will then be O(lg(N)), where N
is the number of nodes in the range manager as opposed to O(N).
Insertion however gains an extra O(lg(N)) step for all nodes
irrespective of whether the interval tree is in use. For future i915
patches, eliminating the linear walk is a significant improvement.

v2: Use generic interval-tree template for u64 and faster insertion.

Change-Id: Iddcb7891480ca7d6e0469c8d394fcd1962ed4583
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470236651-678-1-git-send-email-chris@chris-wilson.co.uk
Git-commit: 202b52b7fbf70858609ec20829c7d69a13ffa351
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-05-31 17:33:09 -06:00