Commit graph

591444 commits

Author SHA1 Message Date
Abhinav Kumar
53e6241467 drm/msm/sde: add sde_connector kickoff callbacks
Add a callback into the connector framework to allow sending
per-frame parameters at kickoff time.

This is needed to support the HDR feature where the HDR
metadata shall be sent to the sink on a per-frame basis.

Change-Id: I48a3616509e2226ea9bf0f490f0f47873ca74781
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 15:53:17 -07:00
Skylar Chang
eda316b410 msm: rmnet_ipa3: fix QMAP command xfer
Fix QMAP command packets TX to modem.
These packets needs to be sent to Q6_WAN_CONS pipe.

Change-Id: Ib718ad7308004ba7727e30e64f4b50bf4e521da3
CRs-Fixed: 2068048
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-06-27 15:17:41 -07:00
Abhinav Kumar
79d9dc2c13 drm/msm: pass the HDR metadata sent from userspace to sink
Use metadata information sent from userspace to configure sink.

This info shall be used later on to program the HDMI specific
infoframe registers.

Change-Id: I26634452d8c3ab7ab49a65e89ad52a3961c64855
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 12:42:49 -07:00
Narendra Muppalla
7b9a88971a drm/msm/sde: add kernel traces to measure enable/disable/kickoff times
Add kernel debug traces in drm to measure the performance of
the driver during enable/disable/commit/kickoff.

Change-Id: I7122e81b2c320f05bb42091971827908b7c6436f
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2017-06-27 09:55:13 -07:00
Linux Build Service Account
35589846a0 Merge "ARM: dts: msm: Defer regulator disable for msm8998 GPU SMMU" 2017-06-27 09:42:11 -07:00
Linux Build Service Account
ab8be1a139 Merge "soc: qcom: glink_pkt: fix number of intent queued" 2017-06-27 09:42:10 -07:00
Linux Build Service Account
d4651ed76d Merge "cnss_pci: fix the race condition in firmware file setup" 2017-06-27 09:42:09 -07:00
Linux Build Service Account
d57c4325fe Merge "drm/msm/sde: fix color component order in sde" 2017-06-27 09:42:08 -07:00
Ramprasad Katkam
2e12256018 ARM: dts: msm: Change headset jack configuration for apq8098 mediabox
apq8098-mediabox form factor does not support headset detection, and
detection pin is floating. Hence change headset jack type to normally
open to avoid fake mbhc interrupts.

Change-Id: I0798ec425ee97f75a243462273fe84de8ed63ee3
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2017-06-27 06:45:43 -07:00
Linux Build Service Account
fbb8507e77 Merge "lpm-levels: Remove IPI check on hot plugged cores" 2017-06-27 04:28:25 -07:00
Linux Build Service Account
89279350de Merge "fs/mbcache: fix mb_cache_lru_list corruption" 2017-06-27 04:28:24 -07:00
Linux Build Service Account
47d50db7ee Merge "power: qpnp-smb2: Unset ONLINE for UNKNOWN USB charger type" 2017-06-27 04:28:23 -07:00
Linux Build Service Account
ca79f2d777 Merge "btfm: Enable multichannel bit for SCO Rx" 2017-06-27 04:28:23 -07:00
Linux Build Service Account
5728dc4956 Merge "drm/msm/sde: expose 10 bit pixel format capabilities" 2017-06-27 04:28:19 -07:00
Linux Build Service Account
0563256535 Merge "drm/msm: add sink capabilities for HDR support" 2017-06-27 04:28:18 -07:00
Linux Build Service Account
b878a7b799 Merge "msm: camera: Fix Use after free bug in msm_vb2.c" 2017-06-27 04:28:17 -07:00
Linux Build Service Account
e6c4852492 Merge "ARM: dts: msm: add non-removable ufs/emmc property for msm8996" 2017-06-27 04:28:16 -07:00
Linux Build Service Account
9b07b33870 Merge "msm: ipa3: Assert on GSI MHI event ring fatal error" 2017-06-27 04:28:15 -07:00
Linux Build Service Account
2b18fcd3c7 Merge "msm: ipa3: Ring IPA MHI event ring doorbell on channel start" 2017-06-27 04:28:14 -07:00
Linux Build Service Account
29a036e74e Merge "msm: ipa3: remove delay from AP if QMI fails" 2017-06-27 04:28:14 -07:00
Linux Build Service Account
3fb86ecd81 Merge "ARM: dts: msm: Add mdss panel file nodes for msm8998 QRD" 2017-06-27 04:28:13 -07:00
Dhoat Harpal
18c0e843c5 soc: qcom: glink: Move get reference to valid location
In function ch_name_to_ch_ctx_create reference for ctx is taken
without checking if ctx is valid. This leads to possible NULL pointer
dereference.

Take reference only when it is verified that ctx is not NULL.

CRs-Fixed: 2059742
Change-Id: I15998780b602e325a90e7c8c303cd442c5381fe8
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-06-27 15:01:24 +05:30
Naresh Malladi
601aa08634 lpm-levels: Remove IPI check on hot plugged cores
Currently checking the IPIs even on cores which are hotplugged out
successfully. This check should happen only for cores which are
online.

Change-Id: I8fe49638f308eab97455e7cca62b01b617596de4
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
2017-06-27 11:22:46 +05:30
Samyukta Mogily
bf5f992f6f msm: sensor: Fix for variable being de-referenced without proper check
Pointer from userspace is de-referenced before the command is checked.
This might cause a crash if the command being sent is not a valid command.
Hence changing the de-reference such that the pointer is accessed after
checking if a valid command is sent from the userspace.

Change-Id: I731a015c952d131187a47a8d346fb6478fddeeb1
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
2017-06-26 19:58:49 -07:00
Satish Kodishala
a03b642ecd btfm: Enable multichannel bit for SCO Rx
Enable multichannel bit for SCO Rx to fix random 0 bytes
insertion in SCO.

CRs-Fixed: 2063152
Change-Id: I6abe986251d042ef70701b614b8cef0ee1e30044
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2017-06-26 19:43:52 -07:00
Dhaval Patel
04a9528cbb drm/msm/sde: fix color component order in sde
SDE drm driver should support the default color
component order instead of operating system
specific order. For opensource compositor; it will
use default color component order while android
compositors will take care of reversing the color
component order.

Change-Id: I61b953ce892834453e92a8c2cfdcb427456966bb
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2017-06-26 19:40:59 -07:00
abeykun
1ce0cb61aa drm/msm/sde: expose 10 bit pixel format capabilities
Patch adds RGB 10bit both linear and compressed, P010 linear and
and TP10 compressed pixel formats to plane and writeback capabilities.

Change-Id: Ib5a0b2dacbc1ddc47c069b4348c0d1b9fbd7701e
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
2017-06-26 19:35:01 -07:00
Alexander Beykun
4482a89a67 drm/msm/sde: size check fix for NV12 buffer
Currently for NV12 linear/compressed format if the same gem
object assigned to both planes, total size becomes twice more
than actually allocated. In that case kernel cannot detect
case where meta data planes not allocated for NV12 compressed
buffer and smmu fault happens. Current patch sums sizes only
for different gem objects allowing kernel to detect insufficient
memory allocation for NV12 case.

Change-Id: I0d9f49b8b310f0dff1fb787b4ba821a6d4a68140
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
2017-06-26 17:33:46 -07:00
abeykun
1f2fc9ec18 drm/msm/sde: move pixel format flags to bitmap
Patch changes type of pixel format flags from u32 to bitmap.

Change-Id: I117f3737d78d22b9bd6d78abdb8e96f52fc4e874
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
2017-06-26 17:32:57 -07:00
abeykun
bedc84f4f8 drm/msm/sde: add tp10 compressed format support
Add MOD_QCOM_TIGHT modifier on top of DRM_FORMAT_NV12
base pixel format and update plane size calculation
to support compressed tp10 buffers.

Change-Id: I12eb9fecfd34d488eda92f6217b6ca51e466c6f6
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
2017-06-26 17:31:54 -07:00
abeykun
be55dab201 drm/msm/sde: add p010 format support in sde
Add MOD_QCOM_DX modifier on top of DRM_FORMAT_NV12
base format and update plane size calculation to support
linear and compressed p010 buffers.

Change-Id: I93bd9557e5c4a4a038891f24730edbbec1dba262
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
2017-06-26 17:29:59 -07:00
Sameer Thalappil
e71a1f26c5 icnss: Fix incorrect clean-up of stats
Fix the copy paste error of clearing the statistics
as part of the fw_debug debugfs write interface.

CRs-Fixed: 2066394
Change-Id: I4ca848a05af06c2a9e6ce1efeb3bfa3b77c2f8d8
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2017-06-26 13:44:53 -07:00
Sameer Thalappil
6a7013d43d icnss: Add specific statistics for PDR
Maintain separate statistics to track the number of PDR instances
from FW crash, host error, root PD crash and root PD shutdown cases.
Also add support to announce the PDR cause in the log.

CRs-Fixed: 2066366
Change-Id: I33995d694e3aae47dfcc9f249528a7f1815ee12f
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2017-06-26 13:24:51 -07:00
Srikanth Rajagopalan
1be46f2985 drm/msm: add sink capabilities for HDR support
Populate HDR sink capabilities to a DRM blob.

These capabilities shall be used by the userspace
to calculate the sink HDR properties and setting them.

Change-Id: I7c2dbca375c456052ad73889b011553090bcf8f1
Signed-off-by: Srikanth Rajagopalan <rasrik@codeaurora.org>
2017-06-26 12:01:55 -07:00
Ping Li
5286e14fb9 msm: mdss: Correct PP register programming deferring
Commit 1b5894d38a00 ("msm: mdss: Separate PP programming to
advanced and deferred modes") separates the PP register
programming into two groups, the normal pp features and the
deferred pp features. However, the above change missed
to add the check in one place and caused mdss_mdp_ad_setup()
gets called two times for every dspp_setup, which breaks the
AD mode switch feature during idle power collapse.
This change fixes the above issue by adding the missing check.

Change-Id: I694299646f62ab29aeff49d4e3749d7858381db4
Signed-off-by: Ping Li <pingli@codeaurora.org>
2017-06-26 11:53:28 -07:00
Bharathraj Nagaraju
228ba61cf7 base: firmware: add /lib64/firmware to firmware loading path
Adding /lib64/firmware to the driver for loading firmware from
 the target.

Change-Id: I1e489efc7e0d56991a0671950b88ce15afe3825b
Signed-off-by: Bharathraj Nagaraju <snbraj@codeaurora.org>
2017-06-26 10:32:11 -07:00
Ghanim Fodi
b6d325b8f7 msm: ipa3: Assert on GSI MHI event ring fatal error
GSI MHI event ring error is a fatal error where there is
no recovery possible. Data path will be stalled.
This change will assert on this case.

Change-Id: I9c94e44b2f2d5e1b0b8d059b871d1bd9ad2d3fcf
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-06-25 23:52:59 -07:00
Ghanim Fodi
7d7714eae2 msm: ipa3: Ring IPA MHI event ring doorbell on channel start
Ringing IPA MHI event ring doorbell is done at MHI device
during MHI channel start. This is done after the rings
are allocated. The ring write pointer updated by the host is
used as the doorbell value. Doorbell ringing is required
in order to supply event credits to GSI H/W.

Change-Id: I2db110b4f99c8ab6c6878d426b3ebb37149b0b76
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2017-06-25 23:49:59 -07:00
Amir Levy
9d56022bb6 msm: ipa3: remove delay from AP if QMI fails
In case of failure to send QMI message to modem
remove the delay from AP since modem is probably
down (SSR\reboot).

Change-Id: Iae4d5162d39cd05f5c50d75087ec90dfe04a6c43
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-06-25 10:06:14 +03:00
Lei wang
18bc3cb1f1 ARM: dts: msm: add non-removable ufs/emmc property for msm8996
Defines the non-removable property for ufs/emmc device node
This basically lets the driver whether ufs/emmc is the boot
device

Change-Id: I7e583e0ecef064d1ed91b443fe35f98a3b2c0c8a
Signed-off-by: Lei wang <leiwan@codeaurora.org>
2017-06-23 19:34:47 -07:00
Vidyakumar Athota
5a508511af soc: qcom: avoid calling sleeping functions in interrupt context
Since glink callbacks are called in interrupt context, avoid using
functions that can sleep in the callbacks. Use separate work queue
to free the buffer.

Change-Id: I8abae4becb4c4ac1feb8794db4d2a6bb378943ac
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-06-23 16:58:16 -07:00
Linux Build Service Account
6f56b2a9c8 Merge "ath10k: Add change interface handler" 2017-06-23 12:09:25 -07:00
Linux Build Service Account
7e03e0f79a Merge "qpnp-smb2: configure DRP mode after interrupt request" 2017-06-23 12:09:24 -07:00
Linux Build Service Account
fb8f2806f6 Merge "arm/arm64: Export save_stack_trace_tsk()" 2017-06-23 12:09:23 -07:00
Dhoat Harpal
dcff893174 soc: qcom: glink: Remove magic number logic
Possible use after free issue while accessing magic number,
if the ctx is already freed.

Magic number check is removed.

CRs-Fixed: 2061287
Change-Id: Ie157a930c7eb310829766319e0af742114337e6c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-06-23 20:40:16 +05:30
Dhoat Harpal
acddcfffa0 soc: qcom: glink_pkt: fix number of intent queued
glink_pkt driver has no limit on number of intents auto queued for rx.
Intent are auto queued when remote side request for intent without checking
how many packets are pending to be read by client.

A max limit check is added to avoid memory exhaustion case with indefinite
intent queueing.

CRs-Fixed: 2042581
Change-Id: I68aa102b323716f591841b192477a70397a5536b
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-06-23 20:19:39 +05:30
Linux Build Service Account
bbf9eb8202 Merge "ath10k: wait for vdev delete response from firmware" 2017-06-23 05:56:57 -07:00
Linux Build Service Account
2e04fffa4a Merge "sound: usb: Add quirk to issue SET_CUR volume on 2nd channel" 2017-06-23 05:56:56 -07:00
Linux Build Service Account
a2aa60c24e Merge "msm: mdss: dp: fix no display issue on second connection" 2017-06-23 05:56:55 -07:00
Linux Build Service Account
b85e238432 Merge "mdss: dp: check if sink device is connected before DP ON sequence" 2017-06-23 05:56:53 -07:00