Commit graph

590973 commits

Author SHA1 Message Date
Linux Build Service Account
12cf20b0e9 Merge "ARM: dts: msm: update nt35597 panel properties for msm8998" 2017-06-10 02:20:43 -07:00
Linux Build Service Account
0ca5c4d703 Merge "msm: mdss: Do not attempt to request TE irq again if already requested" 2017-06-10 02:20:42 -07:00
Linux Build Service Account
5564915b1f Merge "ARM: dts: msm: Enable secondary USB port for HDK660" 2017-06-10 02:20:41 -07:00
Kasin Li
5cb62a17f3 drm/msm: Fix kernel address issue of profile buffer
Current DRM adds offset when making IOVA but failed to add it when
making kernel address. This makes DRM write queue_s and submit_s to
wrong place if the profile buffer is not at the head of
a chunk of buffer.

Change-Id: I5af9c3050f4c6c5e0a54ed495bf79053f08f0bab
Signed-off-by: Kasin Li <donglil@codeaurora.org>
2017-06-09 19:19:33 -07:00
Linux Build Service Account
69e7fcd32e Merge "icnss: Add APIs to store driver load count" 2017-06-09 18:47:16 -07:00
Linux Build Service Account
7c3a65b23d Merge "ARM: dts: msm: Disable MHI node for msm8996" 2017-06-09 18:47:15 -07:00
Linux Build Service Account
d3be51f52b Merge "ARM: dts: msm: add secure smmu cb node for msm8998" 2017-06-09 18:47:14 -07:00
Vijayavardhan Vennapusa
45d1d418d6 Policy_engine: Add module parameter to disable PD
Currently power Delivery (PD) is enabled by default which sends
PD Hard reset in SINK mode to negogiate PD contract with host machine
after connect, if no capabilities message is received from other device.
This impacts with compliance for example: PMI ignores type-c disconnects
during PD Hard Reset. Add module parameter to disable PD so that it
doesn't enable PD communication during USB3.1 compliance testing.

Change-Id: Ia3e39cee1e65895402c18b380b650f0a34fb0cec
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-06-09 16:52:26 -07:00
Shubhraprakash Das
6cbecb0114 msm: camera: isp: Do not update lpm mode for inactive streams.
If stream is inactive then there is no need to update lpm mode
for the stream since the stream is non operational.

Change-Id: I5c719211dc2bfdc67365a3716bd79c7fa54a818f
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2017-06-09 15:53:24 -07:00
Amar Singhal
e090be48c6 icnss: Add APIs to store driver load count
Host wlan driver needs to know if the drive has been
reloaded and wiphy re-registered with the kernel.
Therefore add APIs to retrieve this information.

CRs-Fixed: 2058292
Change-Id: Ia323e31e9b6779e2f5279f42b6e1860a9259a189
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2017-06-09 12:45:06 -07:00
Linux Build Service Account
613ad18682 Merge "ARM: dts: msm: move tdm common prop to parent node for msm8996 auto" 2017-06-09 11:23:09 -07:00
Linux Build Service Account
ea7491238f Merge "ASoc: msm: add support for mixing data from different COPPs" 2017-06-09 11:23:08 -07:00
Linux Build Service Account
b93e191754 Merge "defconfig: add cfg80211 internal regdb suuport" 2017-06-09 11:23:07 -07:00
Linux Build Service Account
cf5d29992c Merge "msm: pcie: do not set irq chip data when using QGIC MSI" 2017-06-09 11:23:06 -07:00
Linux Build Service Account
a72ca7d8c8 Merge "msm: pcie: Fix for MDM enumeration issue" 2017-06-09 11:23:05 -07:00
Veerabhadrarao Badiganti
3eb2784858 defconfig: msm: Enable CONFIG_MMC_RING_BUFFER for msm8998
Enable CONFIG_MMC_RING_BUFFER flag to support ring buffer
logging of mmc driver events for msm8998.

Change-Id: I910b2610e89813f8e398ad42689d20b3fd59bf0b
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-09 22:49:14 +05:30
Veerabhadrarao Badiganti
3934c37772 mmc: core: Ignore CRC errors with CMD13 while executing tuning
While executing tuning in case CMD19 fails, the driver sends CMD13
multiple times to ensure the card is ready to receive the next tuning
command. If this status command fails with CRC error, it will trigger
tuning. This will result in back to back tuning multiple times.

To avoid this situation, ignore CRCs error generated with CMD13 while
executing tuning.

Change-Id: Ife338768264ebebebc655fe11874e905abdf7482
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-09 22:02:34 +05:30
Surajit Podder
14d50d7077 msm: vidc: Perform cache operations only on filled length
Perform cache operations on decoder input and encoder output
data plane only on filled length, rather than allocated length

Change-Id: I21e1bc3ce442e902dab97d0c661168dfb5507012
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-06-09 04:55:50 -07:00
Ashish Garg
2be7caec63 msm: mdss: validate page id before reading from edid buffer
Provide complete resolution details in a sysfs node "res_info"
limited to PAGE_SIZE. Different modules can query for multiple
resolution details based on the resolution ids received from
EDID of the TV. In case resolution details exceed PAGE_SIZE,
reuse res_info to get remaining timing details by provide page
details. Check page id is within the max supported resolution
ids to avoid reading extra memory than required.

Change-Id: I7cdd071ba462080fe5bb302d0da824ed95b50f15
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-06-09 16:50:01 +05:30
Ashish Garg
fed910ca51 msm: mdss: validate the buffer size before allocating memory
There is no validation of the "count" parameter, which is controlled
by the user and used as a size of allocated memory. If the user
provides a value of "0" for "count", then kmalloc would not return
NULL, but also there will be a memory block of "zero" size. This can
lead to buffer overflows. Also trying to access invalid memory will
cause kernel crashes. Ensure to check that the number of bytes to be
written is non-zero. If zero, return invalid input.

Change-Id: I9613043881a91fd5a5f99337119c4a3d41493b54
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-06-09 16:32:00 +05:30
Ashish Garg
c01e9da280 msm: mdss: validate number of cea blocks before reading from edid_buf
Number of cea blocks are read from edid buffer which comes from the
user. If the number of cea blocks are more than the supported blocks
kernel information leak is possible by reading more data than is
present in edid_buf.

Change-Id: I03b8456ff1e1a7b15d711f06908bd5c83f83cc02
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-06-09 16:23:58 +05:30
Ashish Garg
7f24865a8a msm: mdss: size check before writing to edid buffer
To update custom edid through sysfs node, there was no check
on the edid size passed. The user can overwrite the edid buffer.
To prevent buffer overflow, ensure that edid size is validated
with the edid buffer size before writing to the buffer.

Change-Id: I8604ea2d25f3a4985749bd037497d242b0621519
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-06-09 15:52:44 +05:30
Abhijit Kulkarni
f7aeaf28f9 ARM: dts: msm: add secure smmu cb node for msm8998
This change adds the secure context bank child node in mdss
driver, this is required for having both the secure and non-secure
smmu context bank support in the driver. This change also renames
the child nodes to avoid compilation issues on the builds where
fb driver mdss device file is also present. As a part of this
change the smmu driver registration is called as a part of
msm driver probe.

CRs-Fixed: 2053654
Change-Id: I90cd31fd792b0fd9772689dc6561bb0b429e1e3a
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-06-09 03:12:28 -07:00
Linux Build Service Account
3d12c58f77 Merge "sched: Fix the bug in select_best_cpu() that returns -1 as target_cpu" 2017-06-09 02:45:19 -07:00
Linux Build Service Account
48b8215ed5 Merge "icnss: Re-phrase debug message and rename state" 2017-06-09 02:45:18 -07:00
Linux Build Service Account
3570da6f66 Merge "icnss: Enable platform device to be a wakeup source" 2017-06-09 02:45:17 -07:00
Linux Build Service Account
8bb96fd0d3 Merge "PD: policy_engine: Add timeout for mode change through sysfs" 2017-06-09 02:45:16 -07:00
Linux Build Service Account
c42ce05512 Merge "drm/sde: add 4k hdmi support" 2017-06-09 02:45:15 -07:00
Linux Build Service Account
92ad29f0c1 Merge "scsi: ufs: fix unclocked register access" 2017-06-09 02:45:14 -07:00
Deepak Kumar
1aaff115df ARM: dts: msm: Enable use of 64K page pool for SDM660
64K page pool is currently unused because it doesn't have
any reserved pages and also dynamic page allocation for
this pool is disabled.

Add qcom,mempool-allocate property to allow pool to grow
dynamically and hence being used.

Change-Id: Ie7c41939f45af58ca1ac7a8f07ea29605aced798
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-06-09 14:45:43 +05:30
Zhaoyang Liu
39a8bb4fad defconfig: add cfg80211 internal regdb suuport
Enable CFG80211_INTERNAL_REGDB to support WiFi 5G channels.

Change-Id: I7d53d2a09c30173d121368ec2e3584217ddc5093
Signed-off-by: Zhaoyang Liu <zhaoyang@codeaurora.org>
2017-06-09 01:33:57 -07:00
Tony Truong
df92ddf7ad msm: pcie: do not set irq chip data when using QGIC MSI
When using QGIC MSI, the MSI controller is GIC not PCIe host
driver. Only set irq chip data if PCIe host is the MSI
controller.

Change-Id: I0ba9e78127424ab3da4b1f46b3ed3fa5d65d05f6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-06-09 01:31:39 -07:00
Hareesh Gundu
cd94470626 msm: kgsl: Log clk set, enable and prepare failure
Handle the clk API return value so that it’s easy
to catch un clocked GPU register access.

Change-Id: I5a1a9a6cbd673394f126bb17b849393268a22b1b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-06-09 13:34:56 +05:30
Fei Zhang
8877695dfc msm📷 correct stats query out of boundary
fix one potential out of boundary query of stats info.

CRs-Fixed: 2041066

Change-Id: I13e4bf8802fcce529f9268c272e4727619d5ad8f
Signed-off-by: Fei Zhang <feizhang@codeaurora.org>
2017-06-09 00:57:25 -07:00
Liangliang Lu
24a72da8c2 ARM: dts: msm: Enable secondary USB port for HDK660
Enable secondary USB port for HDK660 platform which use
host only mode.

Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 resource entry for SDM660
which is not required to set now during disconnect as writing to this
register causes USB3.0 port and USB2.0 ports working independently.

Change-Id: I936a4012c30e0cd84144b12e34fb780cada541ae
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-06-09 00:43:35 -07:00
Rama Krishna Phani A
d7c4b6867a ARM: dts: msm: Disable MHI node for msm8996
Mhi node needs additional information for driver
probe to get success. This generic node is not
required and hence disable unwanted dtsi node for
msm8996.

Change-Id: I4dffd3d668ac065fc800e5e7d3b52fdf2733e03f
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-06-09 12:27:02 +05:30
Rama Krishna Phani A
0e4399bcb0 msm: pcie: Fix for MDM enumeration issue
Add 500ms before MDM enumeration, this delay is needed for
link establishment between switch and MDM.

Change-Id: I32c4a4f9ef68b7672465ced0401fbf6dc0db0002
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-06-09 12:16:14 +05:30
Ajay Agarwal
3dfaffeea9 usb: gadget: Bind android devices for all UDC gadgets
For targets with multiple UDCs having DRD feature, two UDCs
may be in peripheral mode. In that case, create and bind
android device corresponding to each gadget as and when
mkdir gadget is run. Keep global structure android_device as
android0 (or g1's device) for ease of use by f_midi and
f_audio_source.

Change-Id: Idae6f6d0d8811f27e836f5f6399395a15fbf3c2f
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-06-09 12:01:59 +05:30
Krishna Manikandan
e2c351c864 fbdev: msm: Reserve mixers with dspp for primary display
Avoid allocating mixers LM0 and LM1 to external display and
writeback as they are allocated to primary display first.

Change-Id: I343a70dca2e664e5c9765fa2f0b933714b747b4a
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-06-09 11:05:40 +05:30
Shiju Mathew
b3c4d17a71 ARM: dts: msm: Update CCI voltage range for MSM8996pro automotive
Update CCI voltage regulator voltage range to reflect the
corresponding change in pm8996_l17 on MSM8996pro.

CRs-Fixed: 1047744
Change-Id: I96c2070841b044f3ddfd19cad47f3cbc38452b6d
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:17 -07:00
Shiju Mathew
008cdc0351 ARM: dts: msm: Add CVBS input profile on MSM8996 Auto
This is to support CVBS video input via adv7481 device on
MSM8996 Automotive.

CRs-Fixed: 1029211
Change-Id: I15ada5b7d69ad0759f0d4025a575598909548b7a
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:10 -07:00
Shiju Mathew
ed3fd83665 ARM: dts: msm: Add voltage regulator on MSM8996 auto
Add voltage regulator configuration support for
adv7481 CCI on MSM8996 Mojave platform.

CRs-Fixed: 1021381
Change-Id: I9194d7b3b4f73afcfa37779ed4266e71b1876f56
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:04 -07:00
Shiju Mathew
e6bbd528e0 ARM: dts: msm: Add support for BA on MSM8996 auto
Add platform specific data for bridge abstraction
driver on MSM8996 auto.

CRs-Fixed: 998927
Change-Id: Ib354ce35acc69d0d636c68b29a9d59956f8ff55b
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:57 -07:00
Shiju Mathew
b18d2fcecd ARM: dts: msm: Enable GPIOs for adv7481 on MSM8996 auto
Enable reset and interrupt GPIO pins for adv7481 driver.

CRs-Fixed: 998927
Change-Id: I0fbe4bbb3fe0628151deaa7f146c3d0bea589bf5
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:51 -07:00
Shiju Mathew
b22f791241 ARM: dts: msm: Add support for adv7481 on MSM8996 auto
Add node and properties for adv7481 driver on MSM8996
automotive target.

CRs-Fixed: 998927
Change-Id: I5a0368288a9334a0286ee70e9d794965223e9944
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:45 -07:00
Jingtao Chen
fe4e800aeb msm: ba: Update ba driver to latest v4l2 framework
This patch upgrades ba driver to be compatible with the
latest v4l2 framework.

Change-Id: Id91953f7a4a075533e7e8bedab71e5c20d4da2c1
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
2017-06-08 22:11:31 -07:00
Rahul Sharma
7a20b3af48 msm: ba: Fix race conditions in debug writes
Use dynamic allocation for debug buffer instead of static.
This is to avoid race condition which can cause buffer overflows.

Change-Id: I1b4eecb4280843064712ee3b7b52e23f55ab53c3
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-06-08 22:11:24 -07:00
Shiju Mathew
fd368e4ce1 msm: ba: Update video input device enumeration
Remove signal status check during enumeration to avoid
any unnecessary polling of device status during bootup.
The single status check is done when device is open for
streaming.

CRs-Fixed: 1092315
Change-Id: I2027fe0fab0fb865071001e7400ba7672433d8f5
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:18 -07:00
Shiju Mathew
6d0ae50f6e msm: ba: Fix issue with multiple BA profiles
Fix NULL pointer dereferencing on enabling multiple
BA profiles. It was due to improper pointer assignment.

CRs-Fixed: 1029211
Change-Id: Ibab903d8aaf4c74d0c35386778a84d9280dbb221
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:12 -07:00
Shiju Mathew
d751061941 msm: ba: Remove default disable of BA driver
Enable/Disable of bridge abstraction driver will be done
from kernel defconfig file.

CRs-Fixed: 1021381
Change-Id: Ie674de7c9c4a667a1eaeb6dd907341fef0cc34d1
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:06 -07:00