Commit graph

585336 commits

Author SHA1 Message Date
Patrick Fay
6b82744603 Perf: arm64: Use all 6 counters in tracecounters
Tracecounter code was only displaying the values from the first
4 PMU counters. This patch will display all 6 PMU counter values.
Change output strings L2CTR0, L2CTR1 to CTR4, CTR5 respectively.

Change-Id: I111355513bf30a2544bf10e4fbfda79f4cf2678c
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2017-03-06 15:46:56 -08:00
Rajkumar Subbiah
5fde3cb6d4 ARM: dts: qcom: Update DDIC timing for JDI panel
Based on the current DDIC timing for the JDI panel, the first
tx line is missed causing edge detection issues. The updated
timing commands fixes the issue.

Change-Id: I9fdff2682590d25e67e58ad15b53d774f765a07b
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2017-03-06 18:22:10 -05:00
Nicholas Troast
e573d8b6b0 power: qcom: smb-lib: enable HVDCP auth IRQ before APSD rerun
Currently the HVDCP auth IRQ is only enabled upon USB removal. When APSD
is rerun the USB type is not updated to HVDCP_3 since the IRQ was
disabled.

Fix this by enabling the HVDCP auth IRQ before APSD is rerun.

Change-Id: Ic9ec2dca5915651864582abea9165ca8c4290169
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-06 11:37:08 -08:00
Rajesh Bondugula
1346afb1ea msm: camera: sensor: Do not dump the CCI registers
Remove the code to dump the CCI registers in msm_cci_wait.
Clock access to the CCI may be halted and may potentially cause
a crash while accessing the registers.

CRs-Fixed: 2005506
Change-Id: I6c7e61dc3ebc0a599e801acfedb98f523beb090b
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
2017-03-06 11:04:18 -08:00
Vishnuvardhan Prodduturi
d1a2e03ebb msm: mdss: clear BTA_DONE interrupt during DSI read operations
In cases where DSI DMA done operation is performed but isr is
not triggered due to CPU delays, we clear only the DMA_DONE
interrupt. There is a possibility of a DSI read operation for
DSI command mode panels where the DMA_DONE interrupt is cleared and
DSI link clocks are turned off. After some time, the DSI isr gets
triggered for BTA_DONE interrupt and since DSI link clocks are off,
this causes an interrupt storm due to BTA_DONE interrupt not getting
cleared. Clear the BTA_DONE interrupt as well for cases where DMA_DONE
operation is done but isr not getting triggered.

Change-Id: Iceb02e6dd78f4bbf313e2b4d252d6a30699619f0
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-06 09:22:30 -08:00
Se Wang (Patrick) Oh
01c4ad06a8 ARM: arch_timer: force re-selection of the best clocksource
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So make it possible to select
the best clocksource right after arm arch timer initialization, so that
jiffies can be increased by multiple counts since then.

Change-Id: Id8c4e3ce9b9e44061fef7ad7e678ca1c27d84bb1
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-06 09:17:36 -08:00
Se Wang (Patrick) Oh
54547c9f75 clocksource: add API to force re-selection of the best clocksource
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So add API to force re-
selection of the best clocksource among registered clocksources so
that the best clocksource can be selected whenever it is available.

Change-Id: I481de3cdf1df8f0e35ed10aee7ab3882bf7a35b3
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-03-06 09:14:05 -08:00
Laxminath Kasam
0ef57978d0 ASoC: codecs: Fix override of codec driver private data
In SDM660 internal codec drivers, both platform dev probe and
snd_soc codec probe allocate different structures but
update allocated address pointer to same driver data info.
This causes override of earlier structure location.
Combine the structures to make single codec private data.

CRs-Fixed: 2012230, 2013959
Change-Id: I6c6c43f408fb00003ca43d78919f54ba87f37ffd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-06 20:03:05 +05:30
Tharun Kumar Merugu
be44242e5d ARM: dts: msm: Setting alignment size of adsp cma region to 8MB for SDM660
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Change-Id: I7f774dd193435f045243b34fc0d4f2a9ff24329f
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 06:24:01 -08:00
Rajesh Kemisetti
c350700002 defconfig: msm: Enable Cx ipeak driver for SDM660
Enable common Cx ipeak driver for various multimedia
clients like GPU, MDP, Venus and Camera modules.

This is needed to handle Cx ipeak limit on SDM660.

Change-Id: I95a46964fdf9df48cc0aeb2891426f88c1ff72f9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-03-06 19:21:13 +05:30
Odelu Kukatla
c21d2cb83d ARM: dts: msm: Add SPDM feature for sdm660
SPDM feature requires to be enabled, so add SPDM settings
for APPS CPU bus client.

Change-Id: I35fdafcefebcd3fb6e59f3e55bb68d07403abc74
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-03-06 18:35:29 +05:30
Charan Teja Reddy
fdadf59c92 ARM: dts: msm: update cti gpio configuration on sdm660
Update the proper GPIO configuration for the QDSS so that CTI output can be
mapped to the GPIO to generate the proper trigger.

Change-Id: Icc8915522f9c5707869572cf80b7bd345d59eca4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-03-06 18:31:43 +05:30
Tharun Kumar Merugu
5111aa7c04 ARM: dts: msm: setting alignment size of adsp cma region to 8MB for SDM630
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.

Change-Id: Idf7865712a97870fd56d1957b464b98fb92fad2a
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-03-06 04:57:51 -08:00
Satish Babu Patakokila
4dd51b1015 ASoc: msm: qdsp6v2: Add timestamp support for offload playback
Add timestamp support for offload playback.
Modify asm driver to write the buffer from predefined offset.

Change-Id: I58dda331de660568d293a483529e2ab6b7084368
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2017-03-06 04:56:48 -08:00
Krupal Divvela
c924ded6b5 msm: camera: cpp: Add support for CX iPeak limits Management
Make a vote call  with TCSR block whenever the clock frequency
driver computed clock goes to turbo. This vote call handles the
situation when many subsystems are in turbo and where a need
arises to throttle the CDSP current.
Remove the vote when coming out of turbo clock.

Change-Id: I11f68d46da4143674e7b0ae7f4e27bdf79e0d8cc
CRs-Fixed: 1097748
Signed-off-by: Krupal Divvela <kdivvela@codeaurora.org>
2017-03-06 18:11:47 +05:30
Linux Build Service Account
783427f7ad Merge "ARM: dts: msm: add device nodes to support DP on sdm630" 2017-03-06 04:28:46 -08:00
Linux Build Service Account
d372046ab7 Merge "ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998" 2017-03-06 04:28:45 -08:00
Linux Build Service Account
5570b43a11 Merge "leds: qpnp-wled: add support to control PSM dynamically" 2017-03-06 04:28:44 -08:00
Linux Build Service Account
574ce4f484 Merge "ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660" 2017-03-06 04:28:44 -08:00
Linux Build Service Account
22f29dc93c Merge "msm: mdss: trigger BTA during active region of display" 2017-03-06 04:28:42 -08:00
Linux Build Service Account
629c363b24 Merge "msm: mhi_rmnet: Keep wake when processing transfer" 2017-03-06 04:28:40 -08:00
Linux Build Service Account
6b590fff54 Merge "msm: mhi_rmnet: Add support for platform devices" 2017-03-06 04:28:40 -08:00
Linux Build Service Account
eaa533f9f9 Merge "ARM: dts: msm: Change BLSP assignment for APQ8098-mediabox" 2017-03-06 04:28:39 -08:00
Linux Build Service Account
0c356c964d Merge "ARM: dts: msm: Add cpp micro reset flag for SDM660" 2017-03-06 04:28:37 -08:00
Neeraj Upadhyay
974186e7cd ARM: dts: msm: update device nodes for SDM658
Core 6 (MPIDR:0x102) and core 7 (MPIDR:0x103) are not
present in SDM658, SDA658 variants; so make relevant
updates to disable the cpu and other device nodes for
them.

Change-Id: I4633a3c36d367cc4ed5bbca525087d3d1cb57421
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-03-06 04:12:34 -08:00
Laxminath Kasam
8a3478a7f7 ASoC: msm: Fix invalid access of codec pointer
From SDM660 internal codec, call soundwire speaker
set mode from respective audrx_init API. This
avoids invalid codec access in sdw codec driver.

CRs-Fixed: 2012230, 2013959
Change-Id: Iaaa5de5a8170a5e51f458b968057f6b1ca1c28fe
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-06 17:31:51 +05:30
Gaurav Kohli
e4ddde04b8 ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM630
Add sub-device node to allow mba to be able to load in carveout
memory region for SDM630.

Change-Id: Id249ca6512732572b9dce8d59b2e2713caaa7f9e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2017-03-06 03:22:38 -08:00
Krishna Chaitanya Devarakonda
7f07fcf389 msm: mdss: Disable secure session after Flush for video mode panels
For video mode panels, the secure session (display/camera) should be
disabled after the Flush. This is to make sure that the secure buffer
is no longer being fetched, before disabling the secure session.

Change-Id: I9cef6a00fa16f4e23cb5d860548a3502951a7281
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
2017-03-06 16:47:53 +05:30
Maulik Shah
3b2e3dcd9a lpm-levels: Return from idle enter for negative mode
Return immediately from idle enter if there is no mode
selected. Log idle exit as failure to enter LPM in the
events that cpu needs to be rescheduled for another task.

Change-Id: I25a444682a8f8c9060f426c03e2f183f86d2fa3a
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-03-06 03:12:32 -08:00
Saranya Chidura
bc5f81f28e ARM: dts: msm: lpass cti removed on sdm660
cti-lpass0 and cti-lpass1 are not accessible as few of clocks/regulators
are not enabled to trigger the LPASS CTI.This cause device crash on
triggering the LPASS CTI on sdm660.Thus lpass-cti's are removed as
they are not planned to support from HLOS.

Change-Id: I76f81086919ea38b6966106f8ee6141baee183d6
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-03-06 03:05:02 -08:00
Taniya Das
888f9aacd0 clk: qcom: Update the source clock for 24MHz MCLK
The source clock of MMPLL10 has better jitter specs for MCLK than GPLL0_DIV
clock, so update the same to obtain 24MHz clock.

Change-Id: I57a77a83a5028c85d82fda4af53732f0bfb263e7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-03-06 16:14:09 +05:30
Prakash Gupta
b95657a9d2 ARM: dts: msm: add MBA carveout for sdm630
Add MBA carveout of size 2MB after ADSP region and a buffer
region of size 1 MB in sync with v3 memory map.

Change-Id: Iaab9c43310d9ee4764ac73367bff3a448ea1f4d4
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2017-03-06 16:12:44 +05:30
Vishnuvardhan Prodduturi
9dda3223bc msm: mdss: add return values to MDSS recovery events
When the target is in suspend or when shutdown is pending,
the DSI recovery need not be taken care of. Add change to
handle this case based on the return value of the MDSS
recovery events.

Change-Id: I5a5cd6743c15cca7ca42a40db7dcd552c95b20b6
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-03-06 15:17:04 +05:30
Johannes Berg
2c12b78a37 wil6210: include moduleparam.h
This now declares a module parameter, so include the necessary
header file for that.

Change-Id: I430c996ef2d35d0af86ab0822baccdf477db229e
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 949c2d0096753d518ef6e0bd8418c8086747196b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
2017-03-06 11:40:36 +02:00
Dhoat Harpal
ab59b289fe soc: qcom: glink: Move channel to dummy xprt with lock
In core_channel_cleanup function channel is moved to dummy xprt
without taking channel lock. This leads to race condition where
transport poniter is pointing to dummy but channel still belong
to old transport.

Channel is moved to dummy with channel lock.

CRs-Fixed: 2005731
Change-Id: I91903140c1bfa29d909847f318d1339bb717fffc
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-03-06 14:30:48 +05:30
Rajesh Kemisetti
272435a9b1 ARM: dts: msm: Enable Cx ipeak support from multimedia clients on SDM660
Enable Cx ipeak support for multimedia clients to handle peak
current limit using common Cx ipeak driver.

Change-Id: I3366986369e9742fb8e2560b99f28224abe828d3
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-03-05 23:24:58 -08:00
Srikanth Uyyala
8628870cc9 msm: camera: isp: correct the CX iPeak voting logic
Do not set turbo clock if voting with TCSR block fails

Change-Id: I66bb6d708134ffa6af1149413d850c80e52d9fe5
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2017-03-06 12:20:23 +05:30
Mohit Aggarwal
b8cd1fca02 diag: Add NULL pointer checks in mask updates
Currently, NULL pointer checks are missing in mask
update functions which might lead to NULL pointer
dereference issues. This patch fixes the issue by
adding appropriate checks.

CRs-Fixed: 2015104
Change-Id: I9df99208e283c8d90921c6e20a6a80f88c18a327
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2017-03-06 11:52:50 +05:30
Alok Kediya
7b9ebe142b msm: camera: Bound check for num_of_stream.
- num of stream comes from userspace and used without
any bound check.It may result to overflow update_info.

CRs-Fixed: 2006829

Change-Id: I8226e8f7081b28108dbed738ea4579e2051a85f2
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:50 -08:00
Alok Kediya
b1efe22c63 msm: camera: prevent Info leak from kernel driver.
- use %pK for kernel address.

CRs-Fixed: 2010501

Change-Id: I983d61b8ce714c0c66dcba68ba375447ef8a4714
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:33 -08:00
Alok Kediya
6bbe19f38d msm: camera: Prevent info leak in kernel driver.
-Use %pK for kernel address to avoid the information leak.

CRs-Fixed: 2009672

Change-Id: Ib0631d5578aba033510babe4f43e2a63bb959747
Signed-off-by: Alok Kediya <kediya@codeaurora.org>
2017-03-05 21:23:04 -08:00
Linux Build Service Account
ded703d63e Merge "mmc: card: block: Add support for completing cmdq requests with error" 2017-03-05 20:08:25 -08:00
Linux Build Service Account
ea58c08a4d Merge "ath10k: define structure for the copy engine misc regs" 2017-03-05 20:08:24 -08:00
Linux Build Service Account
24ffebabf9 Merge "ath10k: skip cal configuration for WCN3990" 2017-03-05 20:08:23 -08:00
Linux Build Service Account
bc96a4dc0f Merge "USB: composite: Check return value before composite_setup_complete()" 2017-03-05 20:08:22 -08:00
Linux Build Service Account
9fd71eb881 Merge "leds: qpnp-wled: improve OVP fault interrupt handling" 2017-03-05 20:08:20 -08:00
Linux Build Service Account
57508fa0b5 Merge "ARM: dts: msm: Add improve touch device node into sdm630 QRD" 2017-03-05 20:08:19 -08:00
Linux Build Service Account
fd61d8dad0 Merge "ARM: dts: msm: Update SDCC PM QOS values for SDM660" 2017-03-05 20:08:18 -08:00
Liangliang Lu
2758812cd7 mmc: sdhci: add err_state to sdhci_dumpregs func
This change sets err_state in sdhci_dumpregs func indicating
driver errors captured, which can be read out from debugfs.

CRs-Fixed: 1056483
Change-Id: If6323f4e2cf9c835139ea92753ae8407709b8a70
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-03-06 09:10:07 +05:30
Liangliang Lu
8ae07180f0 mmc: mmc-debugfs: add error state
This change adds support to allow user space query if low level eMMC
driver has encountered any error or not, this state can be read/cleared
via debugfs.

CRs-Fixed: 1056483
Change-Id: Idc4ea375e9f308446dec04d443d062fe502658bd
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-03-06 09:08:10 +05:30