Commit graph

575134 commits

Author SHA1 Message Date
Linux Build Service Account
8e942d7343 Merge "coresight-stm: let runtime PM handle core clock" 2016-09-02 13:52:14 -07:00
Linux Build Service Account
7854019283 Merge "msm: sensor: Add support for querying flash max current" 2016-09-02 13:52:14 -07:00
Linux Build Service Account
f7e6d28c0b Merge "msm: mdss: increase mdp hw recovery timeout" 2016-09-02 13:52:13 -07:00
Linux Build Service Account
b2bff7109a Merge "ARM: dts: msm: change the CX handle in PCIe node on msmcobalt" 2016-09-02 13:52:12 -07:00
Linux Build Service Account
531271409b Merge "msm: pcie: config core and peripheral memory for PCIe clocks" 2016-09-02 13:52:11 -07:00
Linux Build Service Account
b11aa41c03 Merge "msm: pcie: correct size of local PCIe clock frequency buffer" 2016-09-02 13:52:10 -07:00
Linux Build Service Account
340e0f63ff Merge "USB: f_accessory: Fix crash if driver failed to initialize" 2016-09-02 13:52:09 -07:00
Linux Build Service Account
fd69ea1825 Merge "USB: f_accessory: set manufacturer and model string to default value" 2016-09-02 13:52:08 -07:00
Trilok Soni
ea78c2d2d9 arm64: Prevent msm-rtb tracing in memcpy_{from,to}io and memset_io
Use the no-log variants of the read{b,q,l}/write{b,q,l} APIs
to prevent flooding the MSM register trace buffer (RTB) logs
with memcpy/memset induced logging.

Change-Id: I16556e1d6f4abe00e6f33b8375a5a1839dfca34e
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-09-02 12:21:28 -07:00
Runmin Wang
f229a4b89a tty : msm_serial: Remove the rtb logs of msm_serial write and read
msm_write/read use write/read_relaxed function which will create
lots of RTB logging. Change the API to no_log version to remove
those RTB logs.

CRs-Fixed: 1062953
Change-Id: Id6524b7ae3e82e10ca651a2ca0de9223c18109da
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-09-02 09:46:39 -07:00
Zhen Kong
bde23716c3 qseecom: allocate sglistinfo buffer for kernel clients
To support whitelist feature, sglistinfo table should also
be allocated from qseecom kernel APIs used by kernel client.
Besides, initialize sg in __qseecom_update_cmd_buf_64 to
address a static analysis warning.

Change-Id: I1f1967fd9e95444cca728f09e3e8f4914b2abb95
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-09-02 09:40:05 -07:00
Osvaldo Banuelos
f6a9f4a202 ARM: dts: msm: add VDD_APC CPR speed-bin 1 configuration for msmcobalt v2
Add the VDD_APC CPR corner configuration corresponding to
speed-bin 1 parts whose performance cluster can operate
at a slower maximum clock rate compared to speed-bin 0 parts.

CRs-Fixed: 1057119
Change-Id: I01e2c9c8bafbb2be4c8d312a4212195c2a99f3ac
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-09-02 08:45:24 -07:00
Osvaldo Banuelos
4a2b0132a4 regulator: cprh-kbss-regulator: increase number of supported fuse combos
Add support for a total of 16 fuse combos to cater to MSMCOBALT
parts blown with a speed-bin fuse equal to 1.

CRs-Fixed: 1057119
Change-Id: I778e33b9de9947dd33f4cb7142be8771d4afc7cb
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-09-02 08:45:12 -07:00
Osvaldo Banuelos
dd8b365478 ARM: dts: msm: Update VDD_APC floor and ceiling voltages for msmcobalt v2
Update VDD_APC0 and VDD_APC1 CPR floor and ceiling voltages
of the highest fused corner on msmcobalt v2 parts to
adhere to latest hardware guidelines.

CRs-Fixed: 1057119
Change-Id: Icf06fe334558bfc4e4dedc9b1f18d51c99987966
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-09-02 08:45:08 -07:00
Osvaldo Banuelos
9490393294 ARM: dts: msm: define perf cluster speed-bin 1 OSM LUT for msmcobalt
Add support for msmcobalt speed-bin 1 devices which can operate
with a performance cluster clock frequency of up to 2.208 GHz.

CRs-Fixed: 1057115
Change-Id: I2c733a1f0ee4baf978c3715aa3bd74a6b46ee6c2
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-09-02 08:39:05 -07:00
Dhoat Harpal
4f6f2d2a7b soc: qcom: glink: Reduce code under spinlock
Glink core channel cleanup has a lot of code under spinlock with
preemption disabled this leads to deadlock scenerio.

Spinklock is used only for critical section, rest of the code is
be without spinlock.

CRs-Fixed: 1060407
Change-Id: I577dbff1cf2ee3711e1879aaa6dc48c72f98b98c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-02 18:01:10 +05:30
Phani Kumar Uppalapati
e6f1a2c153 ASoC: wcd934x: Add API to enable standalone micbias
Add an API in wcd934x codec driver to enable
standalone micbias. This API can be used to enable
micbias even without an active audio capture session.

CRs-fixed: 1062152
Change-Id: I98074071546c053ce3be733602adeff23d6b4b72
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-01 23:57:17 -07:00
Ravinder Konka
49f8a635ba skb: printing port numbers with gso trace events
Adding source and destination port number info
in the gso trace events to differentiate between
the flows.

CRs-Fixed: 982871
Change-Id: Idbae7f95dfd56293805b58e3c6626f5f6e07d08a
Acked-by: Ashwanth Goli <ashwanth@qti.qualcomm.com>
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-09-01 21:41:03 -06:00
Prashanth Bhatta
e7203bbcb0 icnss: Fix NULL pointer dererference
With commit a3a3c169dd ("icnss: Prevent power collapse during
driver probe/remove"), NULL pointer dereference happens in probe
because of recent changes in the function. Fix the issue by using
right pointer.

CRs-Fixed: 1061279
Change-Id: I464579953fabe1bd42ced50f0bbfdfd3cda0a492
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-09-01 16:55:10 -07:00
Saravana Kannan
5599e9a931 PM / devfreq: bw_hwmon: Add HW offload support to governor
Some HW monitors can do a better job of the sampling and the threshold
checking than the SW implementation in the governor.  Update the governor's
API to add support for them.

Change-Id: Id4b5593a5ed3290684ba43ebebe2466ba0b730b6
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-09-01 15:21:03 -07:00
Osvaldo Banuelos
436c553cad clk: msm: osm: add support for speed-bin fuses
Add support for reading a speed-bin fuse for each cluster.
This allows for the selection of different OSM look-up tables
and thus different frequency configurations based upon device
fused values.

CRs-Fixed: 1057115
Change-Id: I9a864a2abb655e26fff5982b592b4f3c5dbfca24
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-09-01 14:31:07 -07:00
Karthikeyan Ramasubramanian
a072ef887a ARM: dts: msm: Add support for DATA1 GLink channel in MSMCOBALT
DATA1 G-Link channel is used from user-space for Bluetooth DUN calls.
Add support to expose an interface to that G-Link channel.

CRs-Fixed: 1062478
Change-Id: Ib0d3c22810fa691c9036a9ab57df7bf8562c7fb9
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-09-01 15:23:30 -06:00
Praneeth Paladugu
30dc40c787 msm: vidc: Enhance debug capabilities of video driver
When Venus HW is not responding, before crashing the system,
print all the pending messages, current sessions and each
session info.

CRs-Fixed: 1059604
Change-Id: I8d39eaaa425e5e6fa97704c9bc15414f9a0f61ce
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-09-01 13:20:05 -07:00
Mayank Rana
68d1e48464 usb: gadget: gsi: Fix handling of MSG PACKET FILTER
When USB RNDIS network device is bridged with other network device
on windows host machine, it has been observed that many MSG PACKET
FILTER packet with zero and non-zero value are send from host to
device. USB GSI state machine handles those and results into case
where TRB buffer's address is updated wrongly causing bus error
with IPA GSI. Fix this issue as below:
- Move MSG PACKET FILTER handling as part of ipa_work_handler()
- Add blocking USB3 ringing doorbell on receiving MSG PACKET FILTER
with non-zero value.
- Before processing HOST_NRDY event, see already posted event. If it
is HOST_READY event, then ignore HOST_NRDY and HOST_READY to avoid
performing operations related to HOST_NRDY and HOST_READY again.

CRs-Fixed: 1059577
Change-Id: I3ac8f740d7b84212da1d799b563a6e8ef1c9b493
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-01 12:37:38 -07:00
Shashank Mittal
85b7b22e6f ARM: dts: msm: use QCOM replicator for msmcobalt
Use qcom-replicator driver instead of CoreSight replicator.
Qcom replicator driver supports msm specific configuration.

CRs-Fixed: 1061885
Change-Id: I5bca731fce8efa57498975485a889f45acc26b37
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-01 11:37:45 -07:00
David Collins
be3039cd0a ARM: dts: msm: add VDD_GFX CPR aging allowed register for msmcobalt
On MSMCOBALT, the GPU GX GDSC enable status register must be
polled to see if the GPU (and top level CPR sensors) are powered
before attempting to perform a CPR aging measurement.

Specify the address of this register as well the bitmask and
expected enable state masked register value in the VDD_GFX CPR
device node.

Change-Id: I55d5fb0c799dfec73830e8e97dcff79cd045b29c
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-01 11:36:31 -07:00
David Collins
9675958c22 regulator: cpr3-regulator: add support for custom aging allowed register
Some platforms have a special register that must be checked in
order to verify that it is possible to perform a CPR aging
measurement.  For example, on MSMCOBALT, the GPU head switch
power state must be checked to see if a graphics CPR aging
measurement can take place.

Add support for this kind of custom aging allowed register
verification via three device tree properties: the address of
the register, the mask to use on the register, and the expected
masked value to read if aging measurements are allowed.

Change-Id: I7bcb88002bdc0609e835bc9ce29c84d93684e445
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-01 11:36:30 -07:00
David Collins
c1cfc2062c regulator: cpr3-mmss-regulator: change CPR aging sensor for msmcobalt
Change the CPR sensor used for graphics aging measurements on
MSMCOBALT from 17 to 29.  Sensor 29 is in the top level of the
GPU so it is guaranteed to be usable for aging measurements
whenever the GPU is powered regardless of the GPU operating
state.

Also bypass CPR sensors 0 - 23 during graphics CPR aging
measurements so that the measurements will succeed even if the
hardware power state of these CPR sensors changes during a
given measurement.

Change-Id: I3c0dd344e0192a375f31fefea7ef6559fab0652d
CRs-Fixed: 1061372
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-01 10:42:51 -07:00
David Collins
dcd02f7848 regulator: cpr3-regulator: correct CPR aging cleanup handling
Correct the condition checked in the CPR aging error cleanup path
so that a return code of 0 (success) is not returned when the
aging measurement fails.  Also, correct the order of the
arguments in the aging failure error message.

Change-Id: Ica925da95b5ab35f63bb0355470475733080a88c
CRs-Fixed: 1061372
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-01 10:40:44 -07:00
Dilip Kota
acca783612 slim-msm: Differentiate SSR from Noise during power up
During power up operation check whether power up
failure is due to SSR or noise over slimbus.
If power up failure is due to SSR prevent retry
operation.
This change also do allocate DMA memory for slimbus
bulk trasactions. Memory should be DMA for slimbus
transactions as using non-DMA memory will end up
in creating bounce buffers and affect the performance.

Change-Id: Iaca520d92c4ee2d73f8e751699779e6cfc9ddb87
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
2016-09-01 18:50:32 +05:30
Laxminath Kasam
4e13ee8d6f misc: qcom: qdsp6v2: initialize config_32
Not all memebers of config_32 are set before they are used which
might lead to invalid values being passed and used. To fix this issue
initialize all member variables of struct config_32 to 0 before
assigning specific values individually.

CRs-Fixed: 1058826
Change-Id: Ifea3a6e8bf45481c65a4455ee64318304798fee2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-09-01 16:35:36 +05:30
Srinivas Ramana
2aaa206077 clk: msm: Select appropriate clock flags for 32-bit
1. Select COMMON_CLK_MSM for msmfalcon when building
for 32-bit.
2. Select RATIONAL when COMMON_CLK_MSM is selected as
it's using an api from rational library.

Change-Id: I5b8fa962718a5ae44dfd18a13285715580ee0dbc
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-09-01 03:12:32 -07:00
Sayali Lokhande
76b1b5d710 mmc: host: Add check for post tuning in HS400
'commit 34e4cf13f7 ("mmc: core: Update HS400 timing
mode before performing tuning")' updates timing mode
to HS400 before tuning in mmc_hs200_tuning.
On 4.4 kernel, there is check added to bail out from
execute_tuning if HS400 tuning is done in HS200 mode.

Adding check to avoid bailing out and allow
execute_tuning if POST_TUNING capability is set.

Change-Id: I259da28050e5da0c96251cb99176386927b596f0
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2016-09-01 14:54:45 +05:30
Srikanth Uyyala
6739177ace msm: isp: buffer queue management specific flags
1. Define SVHDR buffer queue management specific flags
2. Fetch engine state need not be checked during READ_DONE,
   it is handled during buf_divert
3. Extend the framedrop logic to RDI path

Change-Id: Ie3ed9fd8a4d58d4664fa71b2d3da320fabc6a05b
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2016-08-31 23:02:46 -07:00
Venkatesh Yadav Abbarapu
82200b104b ARM: dts: msm: Update debug uart support for msmfalcon
As per the new schematic the debug uart is on BLSP1UART1
instead of BLSP2UART1.

Change-Id: I08b3ffa1a027b3212b77fe661348f2852485ed0d
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-09-01 10:35:38 +05:30
Shiv Maliyappanahalli
327d092ca5 ARM: dts: msm: enable audio over Display Port on msmcobalt
Add device tree changes to enable audio over Display Port.

Change-Id: Iab61eb0333545a17fff85bd34e7cf0c489d85700
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-31 21:54:56 -07:00
Shiv Maliyappanahalli
46144e036b ASoC: msmcobalt: Add support for Display Port
Add support for audio over Display port.

Change-Id: I4e85351226b30b97d58ffcec76398fb8cbf9e730
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-31 21:54:26 -07:00
Tatenda Chipeperekwa
eded14608f ARM: dts: msm: rename codec child node of MSM external display
Audio codec now supports audio both on HDMI and display port
interfaces. Rename audio codec and compatible string to be
generic.

Change-Id: I7c2ace6dedc0cad34fe0ab46c6290526972824a1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-08-31 21:53:43 -07:00
Shiv Maliyappanahalli
43e540ae99 ASoC: codecs: Add display port support in codec driver
Add display port codec dai in external display codec driver to
enable audio over display port.

Change-Id: I9fce9622ff0580bca2414a8d6625774ae3f2d6c0
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-31 21:52:49 -07:00
Shiv Maliyappanahalli
6767814d21 ASoC: msm: qdsp6v2: enable audio over display port
Add support in cpu dai, routing and native afe driver to enable
audio over display port.

Change-Id: I4cd5b738caab4d40c1c118d3111c3f4af740c84e
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-31 21:11:52 -07:00
Siddhartha Agrawal
912a2bfd75 msm: mdss: dsi: Configure pll to work only in full rate mode
Update the DSI phy v3 initialization sequence as per the
recommended values. The key changes include changing the operating
mode from hybrid to full-rate only.

Change-Id: I999c6f2f76b8991172cd2f5c4b6c99e0ed5d186b
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-08-31 18:23:35 -07:00
Venkat Gopalakrishnan
f795f9a639 ARM: dts: msm: enable aggre1 ufs hw ctl clock for msmcobalt
QCOM UFS host controller v3.0.0 supports hw gating of clocks,
enable the use of hw ctl clock variant of aggre1 ufs clock.

Change-Id: I3f0e718362a73c2c440fa2b0aea816fa058fdaa3
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-08-31 18:00:19 -07:00
Bhalchandra Gajare
d07c2a2ef8 ASoC: wcd934x: Fix register default for MAD buffer interval
Current register default setting for MAD buffer interval is incorrect
and hence microphone activity detection is not functional. Update the
default value of the MAD buffer interval to 10msec.

CRs-Fixed: 1049012
Change-Id: I1dcdcb566f096bbddad286dc71c5bf980303e4c3
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-08-31 16:49:26 -07:00
Devesh Jhunjhunwala
7c17954147 clk: msm: gcc-cobalt: Add support for gcc_aggre1_ufs_axi_hw_ctl_clk
Add support for controlling the hw_ctl bit of the
gcc_aggre1_ufs_axi_clk CBCR.

Change-Id: I856f2c76c3149f3704c47e6f8b0019805a1a0cd4
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-31 16:15:05 -07:00
Vamsi Krishna Samavedam
f1e7291088 usb: gadget: u_ether: Add missing rx work initialization
Fix data RX data stall by adding missing work initialization in
gadget ether setup function

CRs-Fixed: 1059091
Change-Id: I334c1d17b7b63baeb7a36cc26e513b28b106002b
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2016-08-31 14:23:53 -07:00
Siena Richard
ac3242b4ee msm: qdsp6v2: update CVD version
CVD version is updated to 2.3 on ADSP. Update the mapping
table in voice driver to allow CVD version 2.3 to be
recognized and used.

Change-Id: Id6d1c960dc720e8013eb9ba1f07af7662b576e37
CRs-Fixed: 1060201
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-08-31 13:56:54 -07:00
Prashanth Bhatta
a15f85fc40 icnss: Shutdown only if probed
With the recovery changes, if modem is brought down without FW
ready but WLAN driver is registered then shutdown call back is
called. This causes stability issue.
Make sure not call the shutdown call back if driver is not
registered. Also listening for PD notifications are enough even
for Subsystem restart so changing the quirks to take care of it.

CRs-fixed: 1061734
Change-Id: Ic5d1a38dfb6ea3e255424af135e2afbe47d1fc18
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-08-31 12:45:58 -07:00
Veera Sundaram Sankaran
499d29c126 msm: mdss: enable VBIF write_gather for WB2
LM provides data stream with some write gaps that are propagated
through VBIF to AXI. If write gap is big enough it hangs AXI/BMIC.
In order to ensure there are no gaps in the outgoing data transfer
to AXI interface, all write data must available before initiating
an access. Starting with SDE3xx, the outgoing burst data collection
function is implemented in VBIF module, and it is HW recommendation
to enable this for WB2.

Change-Id: I6f0495068dd6344f8cd161175947391e5998b8d4
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-31 12:37:16 -07:00
Satya Durga Srinivasu Prabhala
70c677c554 ARM: dts: msm: Add support for apqcobalt v2.1
This commit adds DT files required to support msmcobalt v2.1 chip
on mtp, cdp and qrd platforms.

CRs-Fixed: 1061793
Change-Id: Ie522631fc0db7460a0031a5d52e547b594547d4b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-31 12:14:29 -07:00
David Collins
7b2efda0e1 ARM: dts: msm: update VDD_GFX CPR step quot values for msmcobalt
Update the initial VDD_GFX CPR step quotient values to match the
latest hardware recommendation.

Change-Id: Ibc5da9bb1e47e32acb0268a15cea79d48907b106
CRs-Fixed: 1054539
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-08-31 11:32:47 -07:00