Commit graph

590326 commits

Author SHA1 Message Date
Abdulla Anam
0ec1c7415f msm: vidc: Allocate memory dynamically for debugfs info_reads
Use dynamically allocated memory for constructing strings in
core_info_read & inst_info_read. This ensures that there is no
contention for a shared memory & hence avoids the requirement of
a lock. Allocate on demand, as the calls implement a debugfs
facility and hence rarely invoked. Statically allocated memory
otherwise remain idle.

Change-Id: I3ae04e0a51801a2fc901591e41e28ff6b7d198b4
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
2017-06-06 01:50:39 +05:30
Linux Build Service Account
2bfc0eda7e Merge "iommu/arm-smmu: Add support for regulator deferred disable" 2017-06-05 04:34:46 -07:00
Linux Build Service Account
cf5733cad6 Merge "msm: vidc: Copy user buffers to kernel memory before access" 2017-06-05 04:34:45 -07:00
Linux Build Service Account
5b46d743ad Merge "msm: vidc: Add state checks for start streaming" 2017-06-05 04:34:44 -07:00
Linux Build Service Account
b22aa20214 Merge "msm: vidc: Update matrix coefficient values" 2017-06-05 04:34:43 -07:00
Linux Build Service Account
059fd2cf8c Merge "msm: vidc: Update VB2 buffer state during stream_on failure" 2017-06-05 04:34:41 -07:00
Linux Build Service Account
fdc3087c00 Merge "msm: vidc: Call vb2_queue_release before destroying reg_buf lock" 2017-06-05 04:34:40 -07:00
Linux Build Service Account
03e51c169a Merge "msm: vidc: Check presence of property before calling cx register" 2017-06-05 04:34:39 -07:00
Linux Build Service Account
53a8c2aba3 Merge "msm: cec: Add CEC adapter driver for SDE hardware" 2017-06-05 04:34:38 -07:00
Linux Build Service Account
21852febc3 Merge "mhi: mhi_uci: Create char dev only after PCIe device ID is known" 2017-06-05 04:34:36 -07:00
Linux Build Service Account
1ef397af3d Merge "mhi: core: Bind devices with variable PCIe device IDs with same device node" 2017-06-05 04:34:35 -07:00
Linux Build Service Account
3ae760a4bb Merge "ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996" 2017-06-05 04:34:35 -07:00
Linux Build Service Account
c403d314f9 Merge "msm: ipa3: Fix to add check for dma_map_single return values" 2017-06-05 04:34:33 -07:00
Linux Build Service Account
bf0ca14023 Merge "regulator: qpnp: check min/max voltages against HW configuration" 2017-06-05 04:34:32 -07:00
Jaiju Yesudasan
24e54bcbce ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996
Neutrino reset GPIO need to be be disabled at bootup.
It will be enabled by driver in its probe.

CRs-Fixed: 1072096
Change-Id: Ie4a0428523b0764e0234f0ae51a90c250166cca9
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
2017-06-04 22:35:16 -07:00
Prakash Gupta
65f095ea8f iommu/arm-smmu: Add support for regulator deferred disable
In case of unmap call, regulator is enabled/disabled. This may introduce
additional delay. For clients who do not detach, it's not possible to keep
regulator vote while smmu is attached.
Add support for regulator deferred disable. The time delay for deferred
disable can be set using dt property qcom,deferred-regulator-disable-delay
in ms.

Change-Id: I462e1999bd81f6332169b24749632d7b247c75c5
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2017-06-05 10:42:56 +05:30
Linux Build Service Account
6666999e8a Merge "defconfig: msm8996: Use RCU_NOCB for RCU subsystem" 2017-06-04 21:32:07 -07:00
Wei Li
43b5712520 defconfig: msm8996: Use RCU_NOCB for RCU subsystem
Use per CPU NOCB threads to process RCU callbacks, rather than processing
the callbacks in softirq context. Processing large number of callbacks
in softirq context may result in delayed execution of other softirqs, so
remove processing of callbacks from softirq context.

Change-Id: I90d070ad824d2df0f3e1ee29da1b48ae2887b64b
Signed-off-by: Wei Li <weili@codeaurora.org>
2017-06-04 18:54:38 -07:00
Linux Build Service Account
a62f42964d Merge "qcom: smb1351: add support for reporting INPUT_SUSPEND property" 2017-06-04 12:55:40 -07:00
Linux Build Service Account
e3ca3ef7a1 Merge "ARM: dts: msm: Early mount of vendor partition for msm8998" 2017-06-04 05:59:07 -07:00
Linux Build Service Account
c5eb66bf52 Merge "soc: qcom: pil: Add trace events for PIL driver" 2017-06-03 22:36:47 -07:00
Linux Build Service Account
be36af2b20 Merge "drm/msm: fix leak in failed get_pages" 2017-06-03 22:36:46 -07:00
Linux Build Service Account
0a3cd753f4 Merge "input: synaptics_dsx: remove unused synaptics touch screen driver files" 2017-06-03 22:36:45 -07:00
Runmin Wang
3fa7574984 defconfig: msmcortex_mediabox: Disable MODULE_SIG
Disable the module_sig for apq8098 target.

Change-Id: Ifd5927321bd2a5e8a55f6bae887ee86645889b6c
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-06-03 11:35:54 -07:00
Ray Zhang
1188a3afd2 msm: cec: Add CEC adapter driver for SDE hardware
This CEC adapter driver using CEC framework provides CEC
support for SDE hardware. CEC is a protocol that provides
high-level control functions between various audiovisual
products. This adapter is the hardware implementation of
CEC protocol, and its major functionality is to send and
to receive CEC messages.

CRs-Fixed: 2041335
Change-Id: I73bc9c63b78d61f5449a37cadcfeda976d5456b0
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-06-03 16:42:05 +08:00
Linux Build Service Account
d9f7e741f3 Merge "ARM: dts: msm: assign virtual planes on msm8996 auto platform" 2017-06-02 22:27:57 -07:00
Linux Build Service Account
8254bed4a9 Merge "ARM: dts: msm: Modify coresight replicator device for msm8996" 2017-06-02 14:30:17 -07:00
Linux Build Service Account
d65465f57c Merge "ARM: dts: msm: enable HDMI & DSI displays on 8996 auto CDP platform" 2017-06-02 14:30:16 -07:00
Linux Build Service Account
28bf2d8b6b Merge "msm: smmu: add re-route calling for specified iova." 2017-06-01 23:49:13 -07:00
Linux Build Service Account
defde44926 Merge "power: qcom: smb138x-charger: do not enable parallel thermal regulation" 2017-06-01 23:49:13 -07:00
Linux Build Service Account
985d03300d Merge "qpnp-fg-gen3: configure ESR timers dynamically based on charge termination" 2017-06-01 23:49:12 -07:00
Linux Build Service Account
99beece72f Merge "ARM: dts: msm: update PCIe PHY sigdet settings" 2017-06-01 23:49:11 -07:00
Linux Build Service Account
6093e6dfe7 Merge "usb: pd: policy_engine: Handle spec revision properly" 2017-06-01 23:49:10 -07:00
Linux Build Service Account
09f613d5b5 Merge "core_ctl: Add sysfs node to disable core_ctl" 2017-06-01 23:49:00 -07:00
Thomas (Wonyoung) Yun
67ba46e02c ARM: dts: msm: assign virtual planes on msm8996 auto platform
The virtual planes are used to support wider HDMI display. Enable
them on msm8996 auto platforms in order to support 4K HDMI display.

Change-Id: I61bf00975ffac73c37f66dbc47dcc11b31df45df
Signed-off-by: Thomas (Wonyoung) Yun <wyun@codeaurora.org>
2017-06-01 22:22:40 -04:00
Guchun Chen
ae94b477af msm: smmu: add re-route calling for specified iova.
When calling smmu mapping, if iova is specified directly by user, not
allocated dynamically in dma-mapping.c, smmu driver needs to provide
support for this. This is needed in early display case. In this scenario,
LK has set physical memory to display hardware for fetching, so if iova
is not explicitly specified in kernel, but instead dynamically produced
by "alloc_iova" in dma-mapping.c, display hardware has no chance to know
this new iova, then smmu fault will happen if enabling the iommu stage-1
translation.
To fix this smmu fault problem, add re-routing to the right path when
iova specified by user is not 0 in smmu map/unmap function.

Change-Id: I062b04d7eec65af1c106a5caa09ec787b5d26d0d
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-06-02 09:50:41 +08:00
Sujeev Dias
b5a2b57e74 mhi: mhi_uci: Create char dev only after PCIe device ID is known
MHI host may not have PCIe device info during channel
registration. Defer creation of char device until
PCIe bus enumeration is completed.

CRs-Fixed: 2040899
Change-Id: I6372523bd6a758f29dad09d207b86c3f87e2f2cc
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-01 18:44:28 -07:00
Linux Build Service Account
7b2906163b Merge "clk: msm: clock-local2: Remove checks for display RCG re-configuration" 2017-06-01 16:56:02 -07:00
Linux Build Service Account
e0b49f46ed Merge "msm: kgsl: Use per page cache operation instead of bulk cache operation" 2017-06-01 16:56:02 -07:00
Linux Build Service Account
d1cf82998e Merge "ARM: dts: msm: Enable support for audio on guest virtual platform" 2017-06-01 16:56:01 -07:00
Linux Build Service Account
8db82e3c1d Merge "iommu: iommu-debug: limit memory address exposure" 2017-06-01 16:56:00 -07:00
Linux Build Service Account
2ce111aca6 Merge "diag: Add support for mhi shutdown notification" 2017-06-01 16:55:59 -07:00
Nicholas Troast
0337983597 power: qcom: smb138x-charger: do not enable parallel thermal regulation
USB connector HW based thermal regulation is active which will throttle
the input current on USBIN-USBIN configurations. This was enabled for
MID-MID configurations to enable the comparator output for USB connector
temperature mitigation, but since the input is bypassed it does not
throttle the input current. The comparator output is no longer used
since the ADC values are used directly, so neither configuration needs
this HW feature to be enabled.

Remove the write to enable this HW feature.

Change-Id: Ia7f6b3812ae222fbd8233d07dd6daa67e65ce08b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-06-01 15:20:08 -07:00
Hemant Kumar
6577867741 usb: pd: policy_engine: Handle spec revision properly
As per USB PD 3.0 specification the 2-bit Specification Revision field
of a GoodCRC Message does not carry any meaning and Shall be considered
as don't care by the recipient of the Message. Hence set spec revision
to USBPD_REV_20 for GoodCRC message. PD protocol message header defaults
to USBPD_REV_20 which gets updated USBPD_REV_30 if PD 3.0 source capabale
of programmable power supply.

Change-Id: I5209bb00c437f3c959d093a972f1ac75233cbcf9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-06-01 13:51:13 -07:00
Tony Truong
d74538ee29 ARM: dts: msm: update PCIe PHY sigdet settings
Sigdet under low power (LP) mode will use a less accurate local reference
generation, which is expected to have a little more variation than a
precise reference (normal mode). Update PCIe PHY sigdet to use normal
mode instead of LP to increase accuracy and make sigdet more robust.

Change-Id: If9cad9ac9b5a6a736e3af653ac3b3b5e30cfefb4
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-06-01 11:28:03 -07:00
King Tam
5acecf5e08 ARM: dts: msm: Enable support for audio on guest virtual platform
Update device tree nodes to support audio on guest virtual machine.

Change-Id: Id2e12b466cff43d8ddcb5c01ecd7bb1a7f0ba04c
CRs-fixed: 2047317
Signed-off-by: King Tam <kingt@codeaurora.org>
2017-06-01 11:24:42 -07:00
Sujeev Dias
422f644515 mhi: core: Bind devices with variable PCIe device IDs with same device node
In order to bind devices with variable PCIe device IDs with same device
tree node, make PCIe device ID optional parameter in device tree node.
If PCIe device ID not specified in device tree, any device can be bind
with the node.

CRs-Fixed: 2040899
Change-Id: Iaedcb40db15fa0e8c5c30eb147c904a10cd7569d
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-01 11:08:08 -07:00
Deepak Katragadda
055e78609c clk: msm: clock-local2: Remove checks for display RCG re-configuration
Allow re-configuring the DSI, DP and HDMI RCGs even if their
current configuration matches that of the requested frequency.
This is to work around the MM RCGs being latched to run off of
XO by default after an MM GDSC power collapse.

Change-Id: Idf5f1f25df6d6a8ef29eb8c15086deba1017584e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-06-01 09:38:25 -07:00
Linux Build Service Account
840d1a232c Merge "core_ctl: un-isolate BIG CPUs more aggressively" 2017-06-01 01:53:22 -07:00
Linux Build Service Account
f53ee91e04 Merge "sched: Improve short sleeping tasks detection" 2017-06-01 01:53:21 -07:00