Commit graph

574203 commits

Author SHA1 Message Date
Linux Build Service Account
158d2d87fe Merge "qseecom: support whitelist memory for qseecom_send_modfd_cmd" 2016-08-26 14:48:38 -07:00
Linux Build Service Account
1c3f3dcc8a Merge "msm: mdss: Correct command mode MISR CRC reg offset and blockid" 2016-08-26 14:48:38 -07:00
Linux Build Service Account
f11f09118e Merge "usb: gadget: gsi: Handle EVT_HOST_READY event in STATE_INITIALIZED state" 2016-08-26 14:48:37 -07:00
Linux Build Service Account
c59ad8da42 Merge "clk: msm: mdss: update Dp PLL/Phy configuration" 2016-08-26 14:48:35 -07:00
Linux Build Service Account
e235cc7ed7 Merge "mdss: display-port: add support for audio programming" 2016-08-26 14:48:34 -07:00
Linux Build Service Account
eb5cb31c18 Merge "msm: ipa3: fix the dma_map_single issue" 2016-08-26 14:48:34 -07:00
Linux Build Service Account
605f313ca9 Merge "regulator: cpr3-mmss-regulator: update ref voltages for msmcobalt v2" 2016-08-26 14:48:33 -07:00
Linux Build Service Account
59f9c1af18 Merge "ARM: dts: msm: add hdcp support on msmcobalt v1" 2016-08-26 14:48:32 -07:00
Linux Build Service Account
cd7ec1bbe6 Merge "msm: kgsl: remove un-used GPU power states" 2016-08-26 14:48:31 -07:00
Linux Build Service Account
801c6f14c5 Merge "ARM: dts: msm: Add GPU DCVS plan for msmcobalt V2" 2016-08-26 14:48:30 -07:00
Linux Build Service Account
2f4167d0e1 Merge "clk: msm: clock: Add voter clocks for mmss_camss_jpeg0_clk" 2016-08-26 14:48:29 -07:00
Linux Build Service Account
2a358a675b Merge "msm: ipa3: Update registers configurations for IPAv3.5/3.5.1" 2016-08-26 14:48:28 -07:00
Linux Build Service Account
cd6b388dab Merge "scsi: ufs: fix race between hibern8 failure recovery and error handler" 2016-08-26 14:48:28 -07:00
Linux Build Service Account
ab9b466bb3 Merge "msm: ipa: fix a static analysis issue at IPA unit-tests" 2016-08-26 14:48:26 -07:00
Linux Build Service Account
21e5bf47c1 Merge "ASoC: msm: Add support for playback over slimbus2 rx port" 2016-08-26 14:48:24 -07:00
Linux Build Service Account
9539b29f37 Merge "msm: ipa3: Fix unclocked access to IPA SMEM register" 2016-08-26 14:48:23 -07:00
Linux Build Service Account
c6182a6521 Merge "defconfig: msm: enable SMCInvoke feature" 2016-08-26 14:48:22 -07:00
Linux Build Service Account
07dde62a73 Merge "msm: mink: Adding SMCInvoke Driver" 2016-08-26 14:48:22 -07:00
Linux Build Service Account
30f32fdd4e Merge "coresight: abort coresight tracing on kernel crash" 2016-08-26 14:48:21 -07:00
Linux Build Service Account
0366550001 Merge "soc: qcom: Clear PBL interrupt in case of error" 2016-08-26 14:48:20 -07:00
Linux Build Service Account
cf174274e9 Merge "qcom-charger: expand data structure smb_chg_param" 2016-08-26 14:48:19 -07:00
Linux Build Service Account
7ab2fa74f1 Merge "msm: mdss: fix pipe priority validation" 2016-08-26 14:48:18 -07:00
Linux Build Service Account
4220f26bb7 Merge "msm: mdss: Fix potential NULL pointer dereferences" 2016-08-26 14:48:17 -07:00
Linux Build Service Account
9269a96566 Merge "ARM: dts: msm: Update SS phy initialization sequence for msmcobalt" 2016-08-26 14:48:17 -07:00
George Shen
4b478ca851 msm: kgsl: remove un-used GPU power states
DEEP-NAP and SLEEP states are not used in targets of previous
two generations. They are neither saving GPU power, nor saving
system power. Remove to reduce maintenance overhead.

CRs-Fixed: 1053516
Change-Id: If2fc2701548f90bb7ea9559a87752e13a7b0f736
Signed-off-by: George Shen <sqiao@codeaurora.org>
2016-08-25 11:58:29 -07:00
Zhen Kong
5baaa9beb0 qseecom: support whitelist memory for qseecom_send_modfd_cmd
qseecom_send_modfd_cmd converts ION buffer's virtual address to
scatter gather(SG) list and then sends them to TA by populating
SG list into message buffer. As the physical memory address in
SG list is used directly by TA, this allows a malicious TA to
access/corrupt arbitrary physical memory and may lead to the
process gaining kernel/root privileges. Thus, make changes to
have the QSEEComm driver passing a list of whitelist buffers
that is allowed to be mapped by TA, and the QSEE kernel, in turn,
should add checks to the register_shared_buffer syscall to make
sure the shared buffers an application is mapping falls within
one of these whitelist buffers.

CRs-fixed: 1021945
Change-Id: I776ead0030cad167afcf41ab985db7151a42d126
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-08-23 14:08:27 -07:00
Mayank Rana
9765c216c7 usb: gadget: gsi: Handle EVT_HOST_READY event in STATE_INITIALIZED state
'commit 5b42bd749e8c ("usb: gadget: gsi: Optimize TRB's buffer allocation
functionality")' removed handling of EVT_HOST_READY event with state
STATE_INITIALIZED to optimized USB GSI state machine. This handling is
required for specifically when RNDIS interface is being enabled through
device manager, otherwise RNDIS interface doesn't get private IP address
back. Fix this issue by adding back handling of EVT_HOST_READY event with
state STATE_INITIALIZED.

CRs-Fixed: 1050838
Change-Id: I7010005b37b4709f54de58d52a56cb7f5e88bd08
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-08-23 10:50:58 -07:00
Linux Build Service Account
e97b6a0e02 Merge "regulator: cprh-kbss-regulator: support the force highest corner fuse" 2016-08-23 09:08:52 -07:00
Ghanim Fodi
e4bbac8c09 msm: ipa: fix a static analysis issue at IPA unit-tests
Fix a static analysis issue at IPA driver,
IPA unit-tests I/S. Do not dereference a pointer even
if it can potentially be NULL.

CRs-Fixed: 1055710
Change-Id: Ie7eff49f136fe429ef10c6067ce7d8aae2694d3a
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-23 12:06:27 +03:00
Chandan Uddaraju
3156dc80cb clk: msm: mdss: update Dp PLL/Phy configuration
Update the Display-Port PHY and PLL configuration
with the recommended settings. Remove the
support for 9.72Ghz VCO frequency. Update the divider
settings to support the new frequency plan.
Update the Phy Aux settings and voltage/pre-emphasis
settings according to recommended configuration.

Change-Id: Ic4d206da3dc6b45214e7601e7556cfb0bef81a7d
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-08-22 21:11:06 -07:00
Benjamin Chan
abad0fdbe2 msm: mdss: Correct command mode MISR CRC reg offset and blockid
msmcobalt has a different command mode MISR CRC register offset. Correct
the offset for the MISR control and signature registers, and correct the
block_id by lookup the INTF number from CTL.

CRs-Fixed: 1049910
Change-Id: If4fb44d217ed84067a0732334523ddb1e435e4e7
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-08-22 18:48:41 -04:00
Skylar Chang
7e59fd56bf msm: ipa3: fix the dma_map_single issue
With the SMMU attached, need to provide
netdev name when calling dma_map_single
instead of passing NULL to prevent DMA
allocation errors.

Change-Id: Ic126739d20ff6cd148b2f424746555419fcfca70
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-22 13:17:39 -07:00
Chandan Uddaraju
79f9bdf53b mdss: display-port: add support for audio programming
Add support to configure audio baud rate for
display port.

CRs-Fixed: 1009284
Change-Id: Iab3c9d578cf398f57d3151a5c895c4a09ddb3dd2
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-08-22 12:09:01 -07:00
George Shen
bac30ab032 msm: kgsl: remove GFX retention support
GFX retention mode does not save GFX rail power. The feature
increased MX rail power. Fixing the problem requires more overhead
than removing it. The feature has never been enabled in any targets.
So remove the feature.

CRs-Fixed: 1053516
Change-Id: I5f118138eca307f7cc16405ff9c8897ecd510c12
Signed-off-by: George Shen <sqiao@codeaurora.org>
2016-08-22 11:10:57 -07:00
George Shen
e190c549f7 ARM: dts: msm: Add GPU DCVS plan for msmcobalt V2
Add DCVS plan to support new GPU frequencies and voltage corners
on msmcobalt v2.

CRs-Fixed: 1056661
Change-Id: Ie0bde4d908189da86077b69be52c51f2a35596a8
Signed-off-by: George Shen <sqiao@codeaurora.org>
2016-08-22 10:41:50 -07:00
Osvaldo Banuelos
3f99f58346 regulator: cpr3-mmss-regulator: update ref voltages for msmcobalt v2
Update the fused reference voltages for msmcobalt v2 to reflect
the latest hardware guidelines.

Change-Id: I61c4cd6bd0ecf06969aa26a04911f28b292f7942
CRs-Fixed: 1054539
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-08-22 10:18:57 -07:00
Deepak Katragadda
49c21ac702 clk: msm: clock: Add voter clocks for mmss_camss_jpeg0_clk
Add separate voter clocks for controlling the mmss_camss_jpeg0_clk
from two clients on MSMCOBALT.

CRs-Fixed: 1049594
Change-Id: I530e35054fd512574bca9e5937317099f58d2bb6
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-08-22 10:04:18 -07:00
Subhash Jadavani
effcb63b04 scsi: ufs: fix race between hibern8 failure recovery and error handler
If Hibern8 enter/exit fails and we also see some UIC errors at the same
time, we would see following 2 recovery paths running in parallel to
restore the host and device communication.
Context-1: ufshcd_uic_hibern8_exit() -> ufshcd_link_recovery() ->
	   ufshcd_reset_and_restore()
Context-2: ufshcd_err_handler()->ufshcd_reset_and_restore()

This change fixes this race by making the ufshcd_link_recovery() to wait
for the already scheduled ufshcd_err_handler() to finish running and then
schedule the error handler again to make sure that host-device link is
reestablished.

While we are fixing the above race, similar race could happen between
ufshcd_eh_host_reset_handler() and ufshcd_err_handler() hence fix the
error handling in ufshcd_eh_host_reset_handler() same way as fixed in
ufshcd_link_recovery().

CRs-fixed: 1037647
Change-Id: Ic7a17a907e70122968c324e3cbe6e0421c28a2c9
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-08-21 22:36:22 -07:00
Tatenda Chipeperekwa
fdae3117e0 msm: mdss: use external display as wrapper for operations
Use the external display as a wrapper for operations making
it necessary for clients to only need a pointer to the external
display platform device. The external display will implement the
book keeping required to map operations to the correct display
interface.

CRs-Fixed: 1009284
Change-Id: I1f817e0c720dda0a9b1778f6aad653218ff9be60
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-08-21 14:04:55 -07:00
Chandan Uddaraju
9ec9267905 mdss: display-port: fix Display-port disable sequence
Fix the OFF path for display-port driver when cable is
disconnected. Check for link clock status before accessing
any of the mainlink registers. Use common mutex for
DP_ON and DP_OFF sequence. Remove the resource vote
when PLL is diabled.

Change-Id: I9b81f79043b4ea7355b99ba9d8347d79bed10153
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-08-21 13:49:41 -07:00
Ghanim Fodi
0f44e4f131 msm: ipa3: Update registers configurations for IPAv3.5/3.5.1
IPA v3.5 and v3.5.1 introduces changes to several IPA registers.
Some registers have new fields, some fields are shifted and
others are removed.
This change updates IPAHAL to support these changes.

CRs-fixed: 1055677
Change-Id: I2046318ba40beca75bdc2f40554fc9a458da5581
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-21 02:07:53 -07:00
Ghanim Fodi
c6b90ab59c msm: ipa: add mhi test suite
Add IPA MHI test suite to IPA driver. Different
tests are being added to cover different IPA
MHI functionalities.

Change-Id: If97793a3af6c2d460468432c7bee93583cc34a55
CRs-Fixed: 1040200
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-21 01:54:13 -07:00
Ghanim Fodi
d5257aa898 msm: ipa3: Fix unclocked access to IPA SMEM register
Fixing IPA unclocked access when reading IPA_SHARED_MEM_SIZE
register. The read is part of a debug logic to print the
content of different registers.

CRs-fixed: 1052110
Change-Id: I2f04d861d98af2cf4009a1f746d91e9e9923ce42
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-21 01:23:37 -07:00
Dinesh K Garg
309eeac5e9 defconfig: msm: enable SMCInvoke feature
Enable smcinvoke driver so that TZ apps and client can communicate
using new MINK architecture.

Change-Id: I4e869d276ce4e8ecfe35a9ffe6892a6b586fe372
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2016-08-20 19:04:34 -07:00
Dinesh K Garg
879d57ac66 msm: mink: Adding SMCInvoke Driver
SMCInvoke driver is a misc driver to support communication between
secure and non-secure world, based on new capability based model.
Earlier, QSEECom driver had several problems such as exposing many
interfaces to accomplish various tasks on secure world side. Ideally,
driver should work as transparent as possible and provide just
tunnel to communicate between secure and non secure world. SMCInvoke
driver aims to achieve that.

Change-Id: I439f8ad817ba66210c934115979c276577194c11
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2016-08-20 19:04:33 -07:00
Ajay Singh Parmar
a9fe6f36ab ARM: dts: msm: add hdcp support on msmcobalt v1
Add qfprom and hdcp register addresses to display port
device so that it can run the hdcp 1.x protocol.

Change-Id: Ib28eb08cc3c8a45a0e87ae1c4f84c904e66652f6
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-08-20 14:44:16 -07:00
Preetam Singh Ranawat
9b4552329f ASoC: msm: Add support for playback over slimbus2 rx port
This change is to enable native DSD playback and enable native playback
of clips with sampling rate multiple of 44.1KHz.

Add slimbus_2_rx backend dai-link for native DSD (Direct Stream Digital)
audio and 44.1KHz multiples playback.

CRs-Fixed: 1056422
Change-Id: Ib038cf81f29e00c08def789f8f186ca4615d45fc
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2016-08-20 14:43:28 -07:00
Preetam Singh Ranawat
fc9f30ee3d ASoC: msm: Add support for native DSD playabck
Add DSD playback support in compress offload
passthrough mode. Add DAPM widget in routing driver
for DSD playback over SLIM_2_RX backend.

CRs-Fixed: 1056422
Change-Id: I398db5f6deded10a515f05277b6316a93f9e14ab
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2016-08-20 14:42:05 -07:00
Preetam Singh Ranawat
83728d2575 ALSA: compress: Add DSD format support for ALSA
WCD934X audio codec supports playback of DSD (Direct
Stream Digital) format. Extend ALSA (Advanced Linux
Sound Architecture) compress to support DSD format.

CRs-Fixed: 1056422
Change-Id: Ifb06674c251335a1d8cec71931355dca4c0e012d
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2016-08-19 18:00:13 -07:00
Linux Build Service Account
c605e110ab Merge "usb: gadget: composite: Return bcdUSB 0x0310 for Superspeed and higher" 2016-08-19 17:51:31 -07:00