Commit graph

591735 commits

Author SHA1 Message Date
Dhoat Harpal
1cc3948d8b 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>
2017-06-28 17:13:36 +05:30
Linux Build Service Account
84c69cb5aa Merge "ARM: dts: msm: Disable adv7481 on Mojave lite platform" 2017-06-28 04:35:58 -07:00
Linux Build Service Account
49472a4970 Merge "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster" 2017-06-28 04:35:57 -07:00
Linux Build Service Account
c6704cbfaf Merge "perf: stop deadlock if attempt to bring cpu up fails" 2017-06-28 04:35:56 -07:00
Linux Build Service Account
272ee3f114 Merge "soc: qcom: avoid calling sleeping functions in interrupt context" 2017-06-28 04:35:55 -07:00
Linux Build Service Account
4b5f18dc54 Merge "ARM: dts: msm: Change headset jack configuration for apq8098 mediabox" 2017-06-28 04:35:54 -07:00
Linux Build Service Account
00be8b5375 Merge "msm: rmnet_ipa3: fix QMAP command xfer" 2017-06-28 04:35:53 -07:00
Linux Build Service Account
1b7d2301c4 Merge "msm: sensor: Fix for variable being de-referenced without proper check" 2017-06-28 04:35:52 -07:00
Sahitya Tummala
2ccfe717e4 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>
2017-06-28 16:44:22 +05:30
tharun kumar
d565f916a8 defconfig: msm: enable remote debugger driver
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: I14b3ef92e96819d119af335691e8902eb3b0178c
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: tharun kumar <mtharu@codeaurora.org>
2017-06-28 04:11:37 -07:00
Lingutla Chandrasekhar
f4beb49226 power: reset: msm: add support to select both dumps
With Minidump support enabled, user may need to request
to dump both fulldump as well as minidump for debug purpose.

Add support on dload_mode sysfs entry to select both dumps.
Enable both dumps with command:
	echo both > /sys/kernel/dload/dload_mode

Change-Id: I2f7c4c6e26dc236c75ab89490990c87b7139880b
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-06-28 14:42:39 +05:30
Vinayak Menon
7128b46468 mm: avoid taking zone lock in pagetypeinfo_showmixed()
pagetypeinfo_showmixedcount_print is found to take a lot of time to
complete and it does this holding the zone lock and disabling interrupts.
In some cases it is found to take more than a second (On a 2.4GHz,8Gb
RAM,arm64 cpu).  Avoid taking the zone lock similar to what is done by
read_page_owner, which means possibility of inaccurate results.

Change-Id: I11ec4a3a445d602e47fcc18a3e40480b74ad98af
Link: http://lkml.kernel.org/r/1498045643-12257-1-git-send-email-vinmenon@codeaurora.org
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: zhongjiang <zhongjiang@huawei.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Git-commit: a94b5fd913ac55a32fe05dfba21eb6af0e539781
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
[vinmenon@codeaurora.org: fix trivial merge conflicts]
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2017-06-28 10:44:10 +05:30
Linux Build Service Account
f2485229cd Merge " base: firmware: add /lib64/firmware to firmware loading path" 2017-06-27 22:10:51 -07:00
Animesh Kishore
69c24a9096 msm: sde: Cache capture fence descriptor
Generate and cache fence file descriptor. Multiple
ioctl calls return cached value.

Change-Id: I60d1b46b04007899c9ed983aafc5d0dd3e13312a
Depends-On: Ic83d93fd3c7f404774007065df02b402adbf80af
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
2017-06-28 10:28:47 +05:30
Neil Leeder
5f71e693df perf: stop deadlock if attempt to bring cpu up fails
When an attempt is made to free an event on a CPU which is
no longer online, perf tries to bring the CPU online. This
can fail, resulting in an UP_CANCELLED notifier, which
eventually tries to acquire the ctx->mutex which is already
being held by the code, which brings up the CPU.

Removing the attempt to bring the cpu up will remove this
deadlock, but also requires temporarily removing support of
counting events across hotplug. This will be restored in a
later patch.

Conflicts:
	kernel/events/core.c
	kernel/events/hw_breakpoint.c

Change-Id: Iaafa3c6688d26508857472fd5bb32139a137880e
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
2017-06-28 10:09:20 +05:30
Shiju Mathew
8fcb6249ad ARM: dts: msm: Disable adv7481 on Mojave lite platform
On Mojave lite, adv7481 hardware is not available hence
disable adv7481 and bridge abstraction driver.

CRs-Fixed: 1097877
Change-Id: I1969fc45e50f5ddff25fd70780458d23a9abeed8
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-27 21:19:16 -07:00
Jaiju Yesudasan
a027ef61cf ARM: dts: msm: add MSM external display node to msm8996
Add MSM external display node for 8996 which is needed to
manage the interaction between external displays (HDMI and
Display Port) and the audio and display frameworks.

Change-Id: I63e48ce47159e039818522c1df2bb8914a843d41
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
2017-06-27 20:03:21 -07:00
Tirupathi Reddy
791e28b55c ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster
The adaptive clock distribution (ACD) mitigates the impact of
high-frequency supply voltage (VDD) droops on microprocessor
performance.

Program ACD functional configuration for silver cluster of sdm660.

Also add the voltage margin savings with ACD to the existing
APC0 CPR closed-loop voltage margins.

Also set CPR_RAMP_EN and VCTL_RAMP_EN bits to 1 in AVS control
register of silver cluster.

Change-Id: Iaff7769cd1e71bbeb773658d0649092bff6e8916
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-06-28 08:25:26 +05:30
Linux Build Service Account
be58516a4e Merge "drm/msm: pass the HDR metadata sent from userspace to sink" 2017-06-27 17:07:45 -07:00
Abhinav Kumar
dc0487cb90 drm/msm: program hdr information to HDMI registers
HDR metadata information is passed down from userspace
based on the HDR frame.

Program these properties to relevant HDMI registers
using the pre_kickoff callback registered for the
DRM HDMI connector.

This ensures that HDR information is updated on a
per-frame basis to the sink.

Change-Id: I20c4018316329b1b35a11b8ab4b96e923b3abb3a
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 15:54:20 -07:00
Abhinav Kumar
53e6241467 drm/msm/sde: add sde_connector kickoff callbacks
Add a callback into the connector framework to allow sending
per-frame parameters at kickoff time.

This is needed to support the HDR feature where the HDR
metadata shall be sent to the sink on a per-frame basis.

Change-Id: I48a3616509e2226ea9bf0f490f0f47873ca74781
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 15:53:17 -07:00
Vidyakumar Athota
8914f7b861 ASoC: msm: qdsp6v2: add size check to fix out of bounds issue
Before calling audio calibration ioctl functions, compare the
allocated buffer size to the size of the header and cal type header
to ensure the buffer is big enough.

Change-Id: I601bb37ddcc34d459c207cf579f29744fe912d7b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-06-27 15:28:29 -07:00
Skylar Chang
eda316b410 msm: rmnet_ipa3: fix QMAP command xfer
Fix QMAP command packets TX to modem.
These packets needs to be sent to Q6_WAN_CONS pipe.

Change-Id: Ib718ad7308004ba7727e30e64f4b50bf4e521da3
CRs-Fixed: 2068048
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-06-27 15:17:41 -07:00
Abhinav Kumar
79d9dc2c13 drm/msm: pass the HDR metadata sent from userspace to sink
Use metadata information sent from userspace to configure sink.

This info shall be used later on to program the HDMI specific
infoframe registers.

Change-Id: I26634452d8c3ab7ab49a65e89ad52a3961c64855
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 12:42:49 -07:00
Alan Kwong
c2170697a7 drm/msm/sde: remove extra entries from interrupt table
Four extra reserved entries are allocated in 88-91. These
entries do not affect lookup logics but are conflicting
with index listed in the documentation. Remove these
extra reserved entries to match index with documentation.

Change-Id: Id9e3a35e9bee9d13b479d7ef65dca1912ea1ff80
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:33:18 -04:00
Alan Kwong
1fb688b1c5 drm/msm/sde: correct index lookup for interrupt clear register
Interrupt get status function incorrectly uses interrupt index to
lookup clear register offset. Correct get status function to use
register index instead to lookup up interrupt offset register.

CRs-Fixed: 2053107
Change-Id: I0c298e0b2b2cbc19758ff84be35ba2d2ce52aeb3
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:33:15 -04:00
Alan Kwong
9d348d2480 drm/msm/sde: correct out of bound access in catalog
Correct validate function to use proper size clearing
property count array.
Correct copy format function to check bound before
accessing array element.

CRs-Fixed: 2037027
Change-Id: Ied3a8e91eb4e6c2c19632b8f83b35d94d1773bb1
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:32:28 -04:00
Alan Kwong
67bcb70ff7 drm/msm: add proper termination to device match array
Device match array should be terminated with a null entry.
Add this null entry to mdp version check to avoid check
past end of array.

CRs-Fixed: 2037027
Change-Id: Ib313fad468205e94eace94eee9db56f19f61ab0c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:32:28 -04:00
Alan Kwong
b72cb5dea4 drm/msm/sde: use current encoders to determine crtc interface
Instead of using the cached interface type, which is updated
during fence preparation time, determine interface type by
enumerating over all matching encoders and query the interface
directly. This avoids pontential stale interface types due to
changing connector state.

CRs-Fixed: 2009714
Change-Id: I31e1350cc62cafb5f014c0f32514d0692dec42d0
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:32:27 -04:00
Alan Kwong
9e89f2eed8 drm/msm/sde: add support for a5x tile pixel formats
Add new modifier for a5x tile and support for a5x tile
pixel format layout calculation.

CRs-Fixed: 2009714
Change-Id: If0d1d6ba8d8d3e36dd5d5aef4a9b217d8e5779ba
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 15:32:25 -04:00
Alan Kwong
9b56352695 drm/msm/sde: move cdm csc setup to writeback commit
CDM CSC is currently only initialized during power up. But
on power collapse, CSC will be reset and produce incorrect
YUV writeback output. Correct this by moving CSC setup to
writeback commit to ensure CSC is always up-to-date.

Change-Id: Iac004316c32040f83ef582aae83b02e1288514b1
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 14:08:16 -04:00
Alan Kwong
372bdf1d8c drm/msm/sde: correct clamp shift for csc 10
Clamp shift for csc 10 is 16 bit where csc 8 is 8 bit.
Correct csc to apply proper clamp shift based on csc version.

Change-Id: I34d30127384668f4cb222a6e634e6581c0054805
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2017-06-27 14:07:24 -04:00
Narendra Muppalla
7b9a88971a drm/msm/sde: add kernel traces to measure enable/disable/kickoff times
Add kernel debug traces in drm to measure the performance of
the driver during enable/disable/commit/kickoff.

Change-Id: I7122e81b2c320f05bb42091971827908b7c6436f
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2017-06-27 09:55:13 -07:00
Linux Build Service Account
35589846a0 Merge "ARM: dts: msm: Defer regulator disable for msm8998 GPU SMMU" 2017-06-27 09:42:11 -07:00
Linux Build Service Account
ab8be1a139 Merge "soc: qcom: glink_pkt: fix number of intent queued" 2017-06-27 09:42:10 -07:00
Linux Build Service Account
d4651ed76d Merge "cnss_pci: fix the race condition in firmware file setup" 2017-06-27 09:42:09 -07:00
Linux Build Service Account
d57c4325fe Merge "drm/msm/sde: fix color component order in sde" 2017-06-27 09:42:08 -07:00
Ramprasad Katkam
2e12256018 ARM: dts: msm: Change headset jack configuration for apq8098 mediabox
apq8098-mediabox form factor does not support headset detection, and
detection pin is floating. Hence change headset jack type to normally
open to avoid fake mbhc interrupts.

Change-Id: I0798ec425ee97f75a243462273fe84de8ed63ee3
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2017-06-27 06:45:43 -07:00
Linux Build Service Account
fbb8507e77 Merge "lpm-levels: Remove IPI check on hot plugged cores" 2017-06-27 04:28:25 -07:00
Linux Build Service Account
89279350de Merge "fs/mbcache: fix mb_cache_lru_list corruption" 2017-06-27 04:28:24 -07:00
Linux Build Service Account
47d50db7ee Merge "power: qpnp-smb2: Unset ONLINE for UNKNOWN USB charger type" 2017-06-27 04:28:23 -07:00
Linux Build Service Account
ca79f2d777 Merge "btfm: Enable multichannel bit for SCO Rx" 2017-06-27 04:28:23 -07:00
Linux Build Service Account
5728dc4956 Merge "drm/msm/sde: expose 10 bit pixel format capabilities" 2017-06-27 04:28:19 -07:00
Linux Build Service Account
0563256535 Merge "drm/msm: add sink capabilities for HDR support" 2017-06-27 04:28:18 -07:00
Linux Build Service Account
b878a7b799 Merge "msm: camera: Fix Use after free bug in msm_vb2.c" 2017-06-27 04:28:17 -07:00
Linux Build Service Account
e6c4852492 Merge "ARM: dts: msm: add non-removable ufs/emmc property for msm8996" 2017-06-27 04:28:16 -07:00
Linux Build Service Account
9b07b33870 Merge "msm: ipa3: Assert on GSI MHI event ring fatal error" 2017-06-27 04:28:15 -07:00
Linux Build Service Account
2b18fcd3c7 Merge "msm: ipa3: Ring IPA MHI event ring doorbell on channel start" 2017-06-27 04:28:14 -07:00
Linux Build Service Account
29a036e74e Merge "msm: ipa3: remove delay from AP if QMI fails" 2017-06-27 04:28:14 -07:00
Linux Build Service Account
3fb86ecd81 Merge "ARM: dts: msm: Add mdss panel file nodes for msm8998 QRD" 2017-06-27 04:28:13 -07:00