Commit graph

578753 commits

Author SHA1 Message Date
Linux Build Service Account
c2cbb11bf9 Merge "msm: hdcp: add response timeout and new messages for sink" 2016-12-01 09:23:49 -08:00
Linux Build Service Account
bfaad619ea Merge "Input: synaptics: check input, prevent sysfs races" 2016-12-01 09:23:48 -08:00
Linux Build Service Account
6b90aa18be Merge "mmc: core: check if CQE is already disabled before halt/unhalt" 2016-12-01 09:23:47 -08:00
Linux Build Service Account
e7211aacd5 Merge "msm: mdss: add support to set mdp clock rate before enable" 2016-12-01 09:23:46 -08:00
Linux Build Service Account
27d5c36477 Merge "msm ipa3: fix blocking faulty IOCTLs" 2016-12-01 09:23:45 -08:00
Linux Build Service Account
42335fc5e3 Merge "mmc: block: send CMD13 when a response error detected in CQ mode" 2016-12-01 09:23:44 -08:00
Srinivas Ramana
c3f3cfdb7f ARM: dts: msm: Add cpu cache nodes for msmfalcon
Add cpu cache nodes to represent the cache hierarchy and
to specify the dump size of each cache.

While at it also add the cache dump nodes which will enable
reserving the memory for cache dumps.

Change-Id: I06eead417b77c74a6e12e6f6b5251c0c7e62c96b
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-12-01 18:47:00 +05:30
Deepak Kushwah
232554ded3 msm: vidc: Fix kw issues
Currently we are using the argument passed to
the function to fill the array values as is
without checking for the sanity. This commit
will add a sanity check on function argument
to avoid array index out of bound access.

Change-Id: I5f23f036441a67a3f3828cc432ea57c1c06bc8ae
CRs-Fixed: 1096134
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2016-12-01 03:08:15 -08:00
Linux Build Service Account
d142a8d4f2 Promotion of kernel.lnx.4.4-161201.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1082413   Id6e648ecffd07de1fdafb6fc6187dc14e3e6e36e   ARM: dts: msm: Add property to support multiple sensor
1074037   Ib29962ebc7427391d7c0e355fa46156d2a8d15e5   ARM: dts: msm: Add qseecom device node for msmfalcon
1086833   I237f60dca3e3dbad4e6188bf047cf7ec5163d159   msm: camera: sensor: Validate i2c_frq_mode in msm_cci_ge
1093792   Id76ebe4a2591664d44d8003730f70defcb2899bc   ARM: dts: msm: add demo battery profile to msm8998 MTP
1090126   I3e8300f15757739714579055985e3fff1a4d8f86   ARM: dts: msm: Add msm-core device for msmfalcon
1094487   I92ed864aedfdd38c8670e08fb35a6545e8abb142   ARM: dts: msm: Add actuator and flash src for msm8998 qr
1032036 1086292   I49995875338cd2a3b57e88753cfda1bfa97910dd   msm: mdss: Add HFP_CALC_CLK way to switch frame rate
518731   I9002f84b219e8b06ae0672d87c2d999e728a75aa   msm: cpp: Fix for buffer overflow in cpp.
1086292   Icce8823f80e586bc4827d8db18dceb2fb866c2f9   msm: mdss: Fix null pointer reference during debug init
1086292   Ica77c16f3cf4b69f46c9003bb299c6413e199468   msm: mdss: Access DSI registers before turning off clock
1091727   Ib4d1328efe6e1df02e39502d38bb5662f9c4164c   msm: camera: isp: Change declaration for VFE clock
1094349   I6b5aea46f1769021b39ba6e135bef780719a92e7   msm: kgsl: Update ringbuffer timer when preemption compl
1093792   I57d33cadbe26d5298ef7149a004d14102d62f365   ARM: dts: msm: add a demo battery profile for pmi8998 FG
1089373   Ie59a748d016211d5ddbab2593ec310a313690f9e   ARM: dts: msm: Camera configuration for msmfalcon interp
1091754   I2b004c149b90ad03acf41d73e825976507a9a274   msm: isp: Add support to multipass offline ISP
1088050   Iff482f726d106e99a4006f7077a171da3c7ca9c3   msm: crypto: set CLR_CNTXT bit for crypto operations
1086292   I43500c07a318da9e2624a1631134228ad45e1cc7   msm: mdss: change error return value for lineptr sysfs e

Change-Id: I552b0454c60f61528a07b9902313d1888c3b6ae7
CRs-Fixed: 1094487, 1088050, 1089373, 1094349, 1074037, 1082413, 518731, 1032036, 1091754, 1090126, 1086833, 1091727, 1093792, 1086292
2016-12-01 03:19:07 -07:00
Ajay Agarwal
abe1a7d157 usb: gadget: f_rmnet: Add support for configfs
Add APIs to allocate and instanciate f_rmnet function
driver using configFS.

Change-Id: Iad76a7e317dd9caf846dbe870baee63a8c5ce6c1
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-12-01 14:04:57 +05:30
Deepak Kushwah
1899dd7e67 msm: vidc: change format specifier for size_t
size_t is an unsigned integer. Change format specifier
to resolve compilation issues for 32 bit.

Change-Id: I4309335c7ad0c695081d446a3f90e84edbcf1e32
CRs-Fixed: 1096066
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2016-12-01 00:20:00 -08:00
Sayali Lokhande
07eb9e42cf ARM: dts: msm: Add sdhc2 support for msmfalcon interposer
Add sdhc2 support to enable SD card for msmfalcon
interposer platform.

Change-Id: I22df2ab1210d0ec7da1ac394e6c61beaa52eb712
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2016-12-01 12:12:14 +05:30
Sahitya Tummala
9b97ea99ee mmc: core: check if CQE is already disabled before halt/unhalt
Upon any CQ error, the driver tries to halt the CQE first and
if it fails to halt, then CQE is disabled. The error handling
work function mmc_blk_cmdq_err() also tries to HALT the CQE
at couple of places and takes some action based on the HALT
success/error status. But since CQE is disabled, we should not
treat any errors of CQE halt/unhalt as critical and in fact,
we should not even attempt to halt/unhalt.

Change-Id: I6bef9f2c033f78ad0959954acc5d7627e8a92139
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2016-11-30 21:49:31 -08:00
Sahitya Tummala
118ca5d727 mmc: cmdq_hci: enable legacy interrupts when CQ is disabled upon error
The legacy interrupts are enabled as part of CQE halt. But there could
be few cases, where halt fails. In those cases, CQE is disabled without
enabling legacy interrupts. Without this we cannot send any commands
like status CMD13 in legacy mode as part of error handling work.

Change-Id: I944ab4060e779c7f41a945532e6a65c30797d40f
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2016-11-30 21:47:22 -08:00
Sahitya Tummala
53ed8685f6 mmc: sdhci: Handle legacy commands sent in CQ error cases properly
There could be cases where CQE halt might fail and in which
case, CQE gets disabled as part of error handling.
In this case, !mmc_host_halt() will be true and the commands
sent in legacy mode are getting software request timeout errors
as they are getting handled as cmdq irq.
Hence, add !mmc_host_cq_disable() check as well in addition to
!mmc_host_halt() in sdhci_irq() before considering it as a
cmdq irq.

Change-Id: Ic529aae53fdecd6b9ecbb17ba13147964dce55dc
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2016-11-30 21:44:25 -08:00
Ajay Singh Parmar
327a852ba7 msm: hdcp: add response timeout and new messages for sink
As per hdcp 2.2 specifications, send the stream type message
to sink at a specified address in case sink is a receiver.

Update the messages to be sent to sink with the message received
from TZ and tear down the session in case it time's out.

Also, enable encryption after stream management message
exchange for hdcp repeaters to avoid unnecessary link failures.

Change-Id: Ib77756c942abfbdd6e1522a3238d5d8499496fc9
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-30 21:09:56 -08:00
Andrew Chant
ae39f47e9b Input: synaptics: check input, prevent sysfs races
concurrent sysfs calls on the fw updater can cause
ugly race conditions.  Return EBUSY on concurrent sysfs calls.

For sysfs calls which generate deferred work, prevent
the deferred work from running concurrently with other
sysfs calls.

Also check that ext_data_source is appropriately sized
and allocated, based on a patch by
Gengjia Chen (chengjia4574@gmail.com).

Signed-off-by: Andrew Chant <achant@google.com>
Change-Id:I5bbe4992f3fd2d23db288296eaeb61f5831098e9
Bug: 30799828
Bug: 31252388
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 287ce2ccfefe68067c1f9f5175b6664bf7397fe6
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2016-12-01 10:28:16 +05:30
Maheshwar Ajja
b0bb16ebe7 ARM: dts: msm: Set max non secure region to 0xE0000000 on msm8998
Video hardware on msm8998 chipset limits the max non secure region
address to 0xE0000000. So reduce non secure region size to 0x6f800000
from 0x8f800000 to limit the max address to 0xE0000000.

CRs-Fixed: 1092881
Change-Id: Ib9602aa2298caf01ab01b4e0225c112c71bb81f4
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2016-11-30 18:40:11 -08:00
Linux Build Service Account
a27b2f1789 Merge "ARM: dts: msm: Add qseecom device node for msmfalcon" 2016-11-30 16:28:03 -08:00
Ajay Singh Parmar
5ee2b479a9 msm: mdss: dp: set crypto clock rate
Crypto clock is needed for HDCP 1.x/2.x encryption. If not set,
it may result in link integrity failure as source and sink may
go out of synchronization. Set the crypto clock rate as per
hardware recommendations.

Change-Id: I768b3390fbe4728be285424d0ce27981e1a5d6cb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-30 15:51:13 -08:00
Puja Gupta
ffa980caab soc: qcom: Add support to restart user PD
Introduce api service_notif_pd_restart() using which clients can request
to restart user PD.

CRs-Fixed: 1092791
Change-Id: Ic21de510cde4bfa9f2e4f7f3d4518b464be88db2
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-11-30 14:46:59 -08:00
David Dai
414d28c327 msm: msm_bus: Reverse QoS Clocks Disabling Order
Reverse the order in which the clocks needed
for QoS programming are being disabled. This is done
to resolve certain clocks being stuck on due to SlaveReady
FSM enabled.

Change-Id: I2d414689ad7ec2167b3974ae0f40338075609046
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2016-11-30 13:02:01 -08:00
Maheshwar Ajja
076fd7d351 msm: vidc: fix lock issue in msm_comm_get_mbs_per_sec()
Forward thread acquired v4l2_ctrl->handler->lock in
v4l2_s_ctrl() and waiting for response from response thread.
Response thread was blocked on core->lock which was acquired
by second forward thread. The second forward thread acquired
core->lock and called v4l2_g_ctrl() in msm_comm_get_mbs_per_sec()
where it was blocked on same v4l2_ctrl->handler->lock and hence
response thread was not unblocked. Resolve the deadlock issue
by avoiding v4l2_g_ctrl() call in msm_comm_get_mbs_per_sec().

CRs-Fixed: 1095539
Change-Id: I73c2a74f1bb86f2b0359be54ed4f7675051db7b0
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2016-11-30 11:39:49 -08:00
Ajay Singh Parmar
a5cdf192ad msm: mdss: dp: hdcp 2.2: add support for interrupt handling
Enable the interrupts required by hdcp 2.2 to update the hdcp 2.2
state machine as per hardware status.

Change-Id: Ib551b1fe8641203b66a31e745d5091641b4d0ae2
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-30 11:07:52 -08:00
Linux Build Service Account
fe5ce2a6bc Promotion of kernel.lnx.4.4-161129.2.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1091566   I0cd6ca6679c19bbdf4ad980a22d9976396028316   qpnp-fg-gen3: Add support to configure auto recharge vol
1085699   I545771f9a84ecc9c2f641c17e057673a32b1f305   usb: gadget: Notify QTI upon cable connect for DPL
1094456   Ifefcbe4741ddd046755ecc24c3f2d619566c2823   clk: fix critical clock locking
1094461   I6f0f8f742d6e1b3ff735dcbeabd54ef101329cdf   sched: Disable interrupts while holding related_thread_g
1094434   I69ae0d8589a0878b9758619893848afc272179c5   Crash due to mutex genl_lock called from RCU context
1094456   I2bf824bd2446ca87baabd31c166119d6c5c90643   clk: Provide OF helper to mark clocks as CRITICAL

Change-Id: If9a65e4592e6051e11e3501ecefc79a792097a3f
CRs-Fixed: 1085699, 1094434, 1094461, 1091566, 1094456
2016-11-30 12:00:48 -07:00
Amir Levy
c07808d8db msm ipa3: fix blocking faulty IOCTLs
This change prevents blocking IOCTLs with wrong command
number or wrong magic Number. IOCTL handler should first
check that the command is valid and only then wait for
IPA driver initializations to finish.

CRs-Fixed: 1094653
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Change-Id: I578dc96da96f7c10be51eac1f8b3c190e45dcfcf
2016-11-30 09:57:33 -08:00
Ajay Agarwal
52b9f4271f usb: gadget: Add RMNET support using IPA over BAM2BAM
This change adds RMNET support using IPA over BAM2BAM.
Removes all different supported control and data
transports and assumes BAM2BAM_IPA as default mode.
Cleans up QTI Control driver to support only RMNET
and DPL.

Change-Id: I5b763acfb28c2f1832874af786704835314fa9c7
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-11-30 21:15:21 +05:30
Linux Build Service Account
0380dc86d2 Merge "msm: mdss: Fix null pointer reference during debug init" 2016-11-30 05:40:59 -08:00
Linux Build Service Account
8b070723fe Merge "msm: mdss: Add HFP_CALC_CLK way to switch frame rate" 2016-11-30 05:40:58 -08:00
Linux Build Service Account
3efbc80d99 Merge "msm: mdss: change error return value for lineptr sysfs entries" 2016-11-30 05:40:57 -08:00
Linux Build Service Account
0f596458d4 Merge "msm: crypto: set CLR_CNTXT bit for crypto operations" 2016-11-30 05:40:56 -08:00
Linux Build Service Account
36cdec931f Merge "ARM: dts: msm: Camera configuration for msmfalcon interposer" 2016-11-30 05:40:55 -08:00
Linux Build Service Account
a66bf9b8c5 Merge "ARM: dts: msm: Add property to support multiple sensor" 2016-11-30 05:40:54 -08:00
Linux Build Service Account
86229379ea Merge "ARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board" 2016-11-30 05:40:53 -08:00
Vidyakumar Athota
a1e1a00923 soc: qcom: fix to avoid invalid memory access
In error scenarios, tx_buf is accessed even after tx_buf
memory is freed up. This change is to avoid access to freed
up memory.

Change-Id: I93a2c5875474094da1de07ddaaad8a709193632f
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-11-29 18:18:14 -08:00
Subhash Jadavani
8c9cd71933 phy: qcom-ufs-qmp-v3: increase the minimum time in hibernate
Some UFS devices violate T-HIBERN8_ENTER_TX time when moving Device
TX (Host RX) lane-1 from SLEEP to HIBERN8 at the end of burst.
M-PHY specification defines max value of 1000 ns for
T-HIBERN8_ENTER_TX but these devices drive DIF-N for 3432 ns. This can
cause the broken link situation after link starup.

This change fixes above issue by increasing host PHY's RX_MIN_HIBERN8_TIME
to 8us (we are giving some additional margin though device needs 3.432us).

Change-Id: I55cb0b718e2e429c0378d842d85a02ace44bf2ce
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-29 17:02:33 -08:00
Rajesh Bondugula
9868ace0ab msm: camera: eeprom: Validate the power setting size
Validate the power setting size before copying.
If userspace sends a value which is greater than
MAX_POWER_CONFIG, then the driver accesses unintended memory.
This change will fix the issue.

Crs-Fixed: 1089433
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
Change-Id: Iaaa6f5b3c1c2ac5b5b38b3ac407d6ae394bba780
2016-11-29 16:27:12 -08:00
Linux Build Service Account
d43553d47d Merge "msm: isp: Add support to multipass offline ISP" 2016-11-29 16:18:49 -08:00
Linux Build Service Account
a8e19f38fa Merge "msm: camera: sensor: Validate i2c_frq_mode in msm_cci_get_clk_rates" 2016-11-29 16:18:48 -08:00
Linux Build Service Account
9671e3c30a Merge "msm: camera: isp: Change declaration for VFE clock" 2016-11-29 16:18:47 -08:00
Linux Build Service Account
3338d5e27b Merge "msm: kgsl: Update ringbuffer timer when preemption completes" 2016-11-29 16:18:46 -08:00
Linux Build Service Account
33fe35c72b Merge "ARM: dts: msm: Add msm-core device for msmfalcon" 2016-11-29 16:18:45 -08:00
Linux Build Service Account
a0a8e0a795 Merge "ARM: dts: msm: add demo battery profile to msm8998 MTP" 2016-11-29 16:18:44 -08:00
Linux Build Service Account
bfad4eb4f0 Merge "ARM: dts: msm: add a demo battery profile for pmi8998 FG" 2016-11-29 16:18:44 -08:00
Linux Build Service Account
852e2711b3 Merge "msm: cpp: Fix for buffer overflow in cpp." 2016-11-29 16:18:42 -08:00
Ajay Singh Parmar
0fc50c6dd9 msm: mdss: hdcp_1x: update hdcp state on link integrity failures
In case of link integrity failures reported by sink, tear down
the hdcp session. Complete any thread waiting for a response
from sink as part of hdcp protocol to avoid unnecessary delays
in starting new hdcp session.

Change-Id: I0afc56e0177ceccf76b717a483584f7ad5055fe1
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-29 15:45:14 -08:00
Vidyakumar Athota
a1ccb4d410 soc: qcom: avoid channel open during LOCAL_DISCONNECT state
Glink channel state LOCAL_DISCONNECT occurs only when remote
side channel is closed or device node closed from userspace.
In this case, glink LINK itself is not available to open channel.
So avoid opening glink channels during LOCAL_DISCONNECT state.

Change-Id: I637622d7bfd0cd1d0aa5b905173a7674093674c4
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-11-29 13:41:14 -08:00
Jayant Shekhar
47d0c2b4a7 msm: mdss: Fix null pointer reference during debug init
Some targets doesn't seem to have vbif_nrt_phys in dtsi
file but we still register the debug node for vbif_nrt_reg
and off without checking whether it exists or not. Ensure
this is checked to avoid null pointer reference.

Change-Id: Icce8823f80e586bc4827d8db18dceb2fb866c2f9
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2016-11-29 12:37:15 -08:00
feifanz
419c2b4a7c msm: mdss: Add HFP_CALC_CLK way to switch frame rate
Add support to switch non-standard framerate.To achieve this,
first map the fps to standard fps and then tune pixel clock
based non-standard framerate. Panel porches might need update
before pixel clock tuning based on standard framerate mapping.

CRs-fixed: 1032036
Change-Id: I49995875338cd2a3b57e88753cfda1bfa97910dd
Signed-off-by: feifanz <feifanz@codeaurora.org>
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
2016-11-29 12:35:47 -08:00
Sandeep Panda
b790cce49b msm: mdss: Access DSI registers before turning off clock
BTA complete interrupt comes and turns off the clocks. In another
thread we read the panel status and DSI ack returns error. In the
error condition we are trying to read some DSI registers even
when the clocks are turned off.

Change-Id: Ica77c16f3cf4b69f46c9003bb299c6413e199468
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-11-29 12:35:47 -08:00