Commit graph

591142 commits

Author SHA1 Message Date
Veerabhadrarao Badiganti
7fc028dfca mmc: host: sdhci-msm: Don't clear IO_PAD_PWR_SWITCH when faking 3V support
Don't clear io pad power switch setting when 3V support is faked.
This bit has to be cleared for allowing IO pad to switch to 3V when
Vccq is really configured to 3V. But in case of faking 3V where we
configure Vccq to 1.8V only, we shouldn't clear this bit.

Change-Id: Ib1a9a2eb7189e161e22c8baf588453b3f2632eb7
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-16 15:23:42 +05:30
Tirupathi Reddy
1a9dfe24c5 regulator: max20010: Add max20010 regulator driver
The max20010 external buck supplies VDD_GFX for msm8996-auto
boards. Add max20010 regulator device driver to program the
necessary configuration as per the board specific requirements.

CRs-Fixed: 2062515
Change-Id: I68ad73e0c7cff1a87d218dc4677801f9e0206db6
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-06-16 15:18:48 +05:30
Manoj Prabhu B
2148d7a832 memshare: Perform Hypervisor mapping for boot-time allotted memory
The patch performs Hypervisor mapping for guaranteed memshare
client's alloted memory at boot time and prevent allocation
for clients with size zero.

CRs-Fixed: 2062478
Change-Id: I96cc7b2014693d97f11411a7b62d2c365f21caf1
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-06-16 02:21:47 -07:00
Manoj Prabhu B
2bffd28da2 diag: Proper update of user PD mdlog session variables
The patch updates global variables of mdlog session
for user PD during different scenarios.

CRs-Fixed: 2058648
Change-Id: I503caddf8e9d504649ee8d81115da60267a5f560
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-06-16 02:11:38 -07:00
Abhilash Kumar
28339f3b38 msm: kgsl: Reset busy data after soft reset
GPU perfcounters gets reset after a soft reset. Currently
GPU busy stats is using previous values after a soft reset.
This might lead to invalid GPU busy calculations. Start GPU
stats from the scratch after a soft reset to get valid GPU
busy calculations.

Change-Id: Ia38c18ad59f438d724ff4710ee2b350853b3810d
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
2017-06-15 23:35:06 -07:00
VijayaKumar T M
c454825fb1 msm: camera: fix untrusted pointer for power down setting
When getting power down setting, there is an untrusted pointer
from a user space pointer. Need to copy to the kernel space first.

CRs-Fixed: 2037398
Change-Id: I64032a96e62ddfeec85eebe984d8ba52754f6148
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
2017-06-15 23:13:34 -07:00
Linux Build Service Account
16a6dc2a06 Merge "drm/msm: add HDCP 1x module for MSM DRM driver" 2017-06-15 22:59:09 -07:00
Linux Build Service Account
92e373a732 Merge "soc: qcom: glink: Reset qos rate when xprt is down" 2017-06-15 22:59:08 -07:00
Linux Build Service Account
ae365a78ad Merge "ath10k: Wait for peer delete response to synchronize with fw" 2017-06-15 22:59:07 -07:00
Linux Build Service Account
c1f41f5290 Merge "ath10k: Send vdev down if association to bss fails" 2017-06-15 22:59:06 -07:00
Linux Build Service Account
c0301d4240 Merge "msm: kgsl: Defer issue commands to worker thread" 2017-06-15 22:59:05 -07:00
Abhinav Kumar
ffc2849b61 drivers/misc: move hdcp sysfs nodes to misc hdcp driver
Currently the sysfs nodes for receiving minimum
encryption level reside within the SDE HDMI driver.

Move the nodes to the misc hdcp driver so that they
are available for use for targets using DRM SDE driver.

Change-Id: I94daa981536e56930f7b15eb0ca7b895b9bc9c44
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:19:08 -07:00
Abhinav Kumar
be53b222b4 drm/msm: add HDCP 2.2 module for DRM HDMI
Add the HDCP 2.2 module for DRM HDMI.

Call the HDCP 2.2 APIs from the SDE HDMI driver and
also invoke the HDCP 2.2 ISR routine from the parent
ISR routine of the SDE HDMI driver.

Change-Id: Ib9a427e5712c827fa93b91fc3a416af61ea83745
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:18:54 -07:00
Abhinav Kumar
9342afef9f drm/msm : add HDCP 2.2 helper functions to HDMI utils
HDCP 2.2 needs additional helper functions for handling
DDC transactions and interface specific calculations.

Add the necessary utility APIs and also move the necessary
ones to the HDMI utils file for better maintenance.

Change-Id: I215f04991c6ff71ec3e1db7674024e85fbc922e8
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:18:35 -07:00
Abhinav Kumar
85e5cecb6f drm/msm: make sde hdcp 1x module use the new hdcp lib APIs
All sysfs nodes have been moved to the misc hdcp driver.
Make the sde hdcp 1x module interact with the misc hdcp
driver to keep the functionality of repeater topology
intact as its used by wi-fi display userspace module.

Change-Id: Iecf404330695369c17e4afeff864eb6d7b92e372
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:18:14 -07:00
Abhinav Kumar
bd23536bdb ARM: dts: msm: add device node for MSM HDCP driver
Add device node for the MSM HDCP driver which manages
communication between HLOS and TZ for HDCP related
operations.

Change-Id: Iecb4c86ae37ddf7cbc84f962895bbe6e1973b989
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:17:45 -07:00
Abhinav Kumar
2dec77bf65 drivers/misc: make the HDCP lib a standalone driver
Currently the hdcp lib doesn't have a context and
just acts as a lib for HDCP compliant interfaces like
HDMI and Display Port.

Make this lib a standalone driver capable of supporting
sysfs nodes to make communication with other modules
like TZ easier and less roundabout.

Change-Id: If693a9d4c8561e6d8c94e236a0fc108c8a65c05e
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 21:14:57 -07:00
Linux Build Service Account
085ef3652a Merge "drm/msm: add support for parsing hdmi/hdcp capabilities" 2017-06-15 16:10:57 -07:00
Linux Build Service Account
68717de447 Merge "drm/msm: Add per-instance submit queues" 2017-06-15 16:10:56 -07:00
Linux Build Service Account
63c0d4a4b6 Merge "icnss: change the cnss name to icnss" 2017-06-15 16:10:55 -07:00
Linux Build Service Account
120151a6e6 Merge "ARM: dts: msm: disable secondary adv7533 on apq8096proAU ADP" 2017-06-15 16:10:55 -07:00
Linux Build Service Account
cfff412669 Merge "ARM: dts: msm: Add non-removable ufs property for SDM660" 2017-06-15 16:10:53 -07:00
Linux Build Service Account
1e0c6013e8 Merge "msm: ipa: Add assert upon send command failure" 2017-06-15 16:10:52 -07:00
Linux Build Service Account
fe93f243e8 Merge "ARM: dts: msm: enable ADV7535 on MSM8996Pro Auto CDP lite platform" 2017-06-15 16:10:52 -07:00
Linux Build Service Account
5b1cf77741 Merge "mmc: sdhci-msm: Corrected the '&' operator with '&&' in the 'if' statement" 2017-06-15 16:10:51 -07:00
Deepak Katragadda
7c443962f4 clk: msm: clock-osm: Do not initialize ACD if the cluster isn't online
The OSM clock driver currently enables ACD for the silver and
gold clusters regardless of whether they've been brought up or
not. ACD requires the cluster PLLs to be running for initialization,
a requirement which would not be met if the cluster hasn't been
brought online.
Tie the ACD initialization sequence with enabling OSM for that
cluster.

Change-Id: Ib393dd339f8095029c9703fbe67897d0a491eced
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-06-15 09:26:42 -07:00
Linux Build Service Account
93b5220454 Merge "ASoC: msm: qdsp6v2: Clear HDMI channel allocation on shutdown" 2017-06-15 08:36:30 -07:00
Linux Build Service Account
d33688a677 Merge "ASoC: msm: qdsp6v2: make audio debugfs read and release exclusive" 2017-06-15 08:36:29 -07:00
Linux Build Service Account
99f2bf04ab Merge "soundwire: Fix swr device count logic in registration" 2017-06-15 08:36:28 -07:00
Linux Build Service Account
dd704b7258 Merge "soundwire: Remove startup from swr_driver structure" 2017-06-15 08:36:26 -07:00
Linux Build Service Account
a4bd635c3d Merge "ARM: dts: msm: Update low temperature APSS frequency in msm8996pro" 2017-06-15 08:36:26 -07:00
Linux Build Service Account
ca2ef91750 Merge "msm: vidc: Send appropriate picture_type while turning off PIC TYPE DECODE" 2017-06-15 08:36:25 -07:00
Linux Build Service Account
b7f69eef6d Merge "crypto: msm: fix rfc4309(ccm(aes)) issue on msm-4.4" 2017-06-15 08:36:24 -07:00
Linux Build Service Account
ddcc99066c Merge "net: rps: send out pending IPI's on CPU hotplug" 2017-06-15 08:36:23 -07:00
Linux Build Service Account
e223ebcad4 Merge "msm: ipa: fix ipacm_client usage" 2017-06-15 08:36:22 -07:00
Linux Build Service Account
07bb20408c Merge "icnss: Change MSA permissions to collect dump" 2017-06-15 08:36:21 -07:00
Neeraj Upadhyay
859e17197c defconfig: msm: Use RCU_NOCB for RCU subsystem for sdm660
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: I361221ea302c84d626122538d383f549ea9cea0d
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-06-15 17:53:20 +05:30
Akhil P Oommen
97bbab07b8 ARM: dts: msm: Enable use of 64K page pool for SDM630
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: I4036032758ec12500854562d6a92d73742952dcb
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
2017-06-15 16:15:04 +05:30
Shiju Mathew
b764048721 defconfig: Enable TIF drivers in MSM8996 auto
Enable BA and adv7481 drivers in MSM8996 auto defconfig.

CRs-Fixed: 1021381
Change-Id: Idb3d9864f33a01477ac384b0f3bef05241458268
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-15 02:35:20 -07:00
Jingtao Chen
bb4ea9d9e7 msm: ba: Fix some potential risks
Avoid memory leaks and prevent to dereference null pointer

Change-Id: I907ea987b0f3d6971116e116841482fa364ef7b8
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
2017-06-15 02:35:12 -07:00
Shiju Mathew
d87f10c472 msm: ba: Update printk format specifier to prevent leaks
Update printk format from %p to %pK in msm_ba driver
to hide exposed kernel pointers.

CRs-Fixed: 2036994
Change-Id: I8f9290670888a0b351339990f0dc2fa4fcc78b26
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-15 02:35:03 -07:00
Jin Li
c5c679855f ARM: dts: msm: disable secondary adv7533 on apq8096proAU ADP
On APQ8096 Auto ADP Lite platform, it only has two displays,
native HDMI and one DSI-HDMI display through ADV7533 bridge
chip. The secondary ADV7533 instance needs to be disabled.

Change-Id: Ibae5c1561ec9f6890f818eeef185dfcf0bc1a62d
Signed-off-by: Jin Li <jinl@codeaurora.org>
2017-06-15 02:25:13 -07:00
Abhinav Kumar
02b2b76fb0 drm/msm: add HDCP 1x module for MSM DRM driver
This change adds the HDCP 1x module for MSM DRM
driver and also hooks it up with SDE HDMI driver.

Change-Id: Iaf53c398254f6838a1d3cae610e069c5dbe18138
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 02:23:38 -07:00
Asutosh Das
9670ff4d32 ARM: dts: msm: Add non-removable ufs property for SDM660
Defines the non-removable property for UFS device node.
This basically lets the driver know that UFS is the boot
device.

Change-Id: I11df8441385910fdab7595a96a5deb24c7ca833e
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2017-06-15 14:37:25 +05:30
Ashutosh Kumar
5753a503cb ath10k: Send vdev down if association to bss fails
If host driver fails to send WMI_VDEV_DOWN_CMDID, firmware will drop
further packets as vdev TX PAUSE reset is done as part of VDEV_DOWN.
Send vdev down to firmware if STA fails to associate.

CRs-Fixed: 2061161
Change-Id: Ie26645389dcb839758ff6aa55812172beeccc171
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
2017-06-15 14:01:56 +05:30
Jin Li
9ec3ce38d7 ARM: dts: msm: enable ADV7535 on MSM8996Pro Auto CDP lite platform
There is still one ADV7535 instance on MSM8996Pro Auto CDP lite
platform, which connects DSI0 interface to HDMI.

Change-Id: I1efe7484d6f4eb1956c95689420b06b40278588e
Signed-off-by: Jin Li <jinl@codeaurora.org>
2017-06-15 00:32:01 -07:00
Abhinav Kumar
e4db249be7 drm/msm: add HDCP helper functions to DRM HDMI driver
Add useful helper functions to the DRM HDMI driver
to be used later when HDCP functionality gets added.

Also add and initialize necessary members to the
SDE HDMI controller to facilitate easier integration
of DRM HDCP module.

Change-Id: I699f6685327e674a871a404fe5cf3adebe823d46
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-15 00:18:29 -07:00
Ashutosh Kumar
cbcff09e2f ath10k: Wait for peer delete response to synchronize with fw
Peer creation in firmware fails if last peer deletion is still
in progress.
Wait for peer delete response from firmware after deleting peer
from host driver.

CRs-Fixed: 2047126
Change-Id: I9eb01393d9cd3dd82f2084262c250081f2076b46
Signed-off-by: Ashutosh Kumar <askuma@codeaurora.org>
2017-06-15 12:47:16 +05:30
Abhinav Kumar
110b6748f9 drm/msm: clean up DDC handling for SDE HDMI driver
Separate out the DRM HDMI utility functions into a separate
module.

Make the DRM HDMI utility functions support self retry where
they shall try for an arbitrary number of times on failure
otherwise let the client call the API to retry the number of
times as warranted.

Add a SDE HDMI utility file which shall invoke the upstream
functions in a manner as required to maintain the functionality
of legacy drivers.

Change-Id: I64af3f997a16b2d9358ea867585aa12772d22599
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-14 23:39:39 -07:00
Abhinav Kumar
7c1f3156a7 drm/msm: add support for parsing hdmi/hdcp capabilities
Add support to parse the HDMI TX version and
HDCP support from the HDMI and QFPROM registers.

This information is used to decide which HDCP driver
module is to be initialized at boot time.

Change-Id: Ib598f3867f1cd2ef9adb7503c5907cbb1e4ba758
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-14 23:38:49 -07:00