Commit graph

591556 commits

Author SHA1 Message Date
Subhash Jadavani
19a800e88f phy: qcom-ufs-qmp-v3: use CDR DIV4 in all bands and fastlock
UFS PA errors were observed during data read operation hence Hardware
programming guide have recommended setting QSERDES_RX1_UCDR_PI_CONTROLS
register to value 0x81 which will use CDR DIV4 in all bands and fastlock.

Change-Id: I456354b346aca7abfaa4839d538c5054c3e79fbf
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-06-16 11:06:03 -07:00
Amar Singhal
a27a95244d msm: wlan: Update regulatory database
Remove KP and SY countries from regdb.

CRs-Fixed: 2062687
Change-Id: I41575e415844255d48d2f9e6deca20c1dc656d3c
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2017-06-16 10:20:11 -07:00
Sujeev Dias
a105b345b1 mhi: core: add a timeout when waiting for MHI state BHI event.
It's possible for POR to fail and endpoint not enter correct reset
state. Add a timeout when waiting for MHI state BHI transition event
during firmware download.

CRs-Fixed: 2062442
Change-Id: I6af16ec1a514d50b9e984e3fb16696d23e605ba0
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-16 09:02:33 -07:00
Krishna Srinivas
e3811794b8 msm: mdss: Allow post-processing clean-up for primary display
Add checks to ensure that fb reset for post processing
features is done only for primary display.

Change-Id: Ied9381e7cbc22882d7d51e0470468f47fd548f32
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
2017-06-16 20:38:12 +05:30
Linux Build Service Account
e3a07a2190 Merge "defconfig: msm: Use RCU_NOCB for RCU subsystem for sdm660" 2017-06-16 06:02:55 -07:00
Linux Build Service Account
86307ac8a9 Merge "msm: camera: Fix Use after free bug in msm_vb2.c." 2017-06-16 06:02:53 -07:00
Linux Build Service Account
1c6a1b0995 Merge "msm: isp: Send BAF time stamp to user space" 2017-06-16 06:02:52 -07:00
Sharat Masetty
b0f487c506 drm/msm: gracefully handle NULL return from setup_pagetable()
There is a possibility that load_gpu() can fail to initialize and turn
on the GPU successfully due to system level issues such as a clock or a
regulator not turning on. In such a case setup_pagetable() returns a
NULL pointer which is not handled correctly in msm_open(). This leads to
a crash in INIT_LIST_HEAD() which tries to access a NULL pointer. This
patch properly handles the NULL return and initializes the list head
only if the gpu load was successful, also adds missing NULL checks to
places in the code where the msm_file_private structure was being accessed.

Change-Id: I6eb85227d928a82c3cf2553fd6645affdd986473
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
2017-06-16 15:59:47 +05:30
Vikas Reddy Pachika
0caeac0004 msm: vidc: Renaming the AU-Delimiter params/extens
Renaming the H264 AU-Delimiter HAL and HFI params to generic
params name.

CRs-Fixed: 1082260
Change-Id: Ifdaabdf82de2970a2f2ef4d70a5bfc539c255ed1
Signed-off-by: Vikas Reddy Pachika <vpachi@codeaurora.org>
2017-06-16 15:46:34 +05:30
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