Commit graph

591367 commits

Author SHA1 Message Date
Abhinav Kumar
dc0487cb90 drm/msm: program hdr information to HDMI registers
HDR metadata information is passed down from userspace
based on the HDR frame.

Program these properties to relevant HDMI registers
using the pre_kickoff callback registered for the
DRM HDMI connector.

This ensures that HDR information is updated on a
per-frame basis to the sink.

Change-Id: I20c4018316329b1b35a11b8ab4b96e923b3abb3a
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-27 15:54:20 -07:00
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
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
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
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
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
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
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
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
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
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
Linux Build Service Account
9bda357a1a Merge "msm: sde: Remove output fence object after user request completed" 2017-06-23 05:56:41 -07:00
Linux Build Service Account
10bb4a94f1 Merge "msm: mdss: Change IOMMU map sequence during splash cleanup" 2017-06-23 05:56:40 -07:00
Linux Build Service Account
c2841e623b Merge "msm: sde: Convert workq to kernel thread in SDE rotator" 2017-06-23 05:56:39 -07:00
Linux Build Service Account
b52caad54d Merge "smb-lib: add support for float charger reporting" 2017-06-23 05:56:38 -07:00
Linux Build Service Account
088c0f837e Merge "power: power_supply_sysfs: Add support for Floating charger" 2017-06-23 05:56:38 -07:00
Linux Build Service Account
8e102f05a2 Merge "msm:ipa: Fix to kasan use-after-free issue" 2017-06-23 05:56:37 -07:00
Linux Build Service Account
e965ee5226 Merge "btfm: provide a way to query wcn3990 status" 2017-06-23 05:56:36 -07:00
Linux Build Service Account
e213493c43 Merge "scsi: ufs: Fix initialization of pointer" 2017-06-23 05:56:21 -07:00
Maria Yu
d7edad5d69 ARM: dts: msm: Add mdss panel file nodes for msm8998 QRD
Add the mdss panel file to support qrd device tree overlay.

Change-Id: I65152ee6a7cafdbba299f0e0a3cac2e77c8c2660
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2017-06-23 20:00:04 +08:00
Ashay Jaiswal
831a954709 qpnp-smb2: configure DRP mode after interrupt request
During hardware initialization charger is configured in
DRP mode from force UFP mode and after mode configuration
hardware takes ~300/400 msec for UFP/DFP detection. In case
if the delay between moving to DRP mode and software enabling
interrupts is more than hardware detection delay then software
will miss the detection interrupt. Fix this by moving DRP
configuration after interrupt request this ensures software will
receive interrupt once hardware detection completes.

CRs-Fixed: 2065296
Change-Id: I55c59ed558e8db40a7b1af7638832da1f9547222
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-06-23 15:09:34 +05:30
Sriraj Hebbar
ae23cb5bb5 msm: camera: Fix Use after free bug in msm_vb2.c
There is no syncronization between msm_vb2_get_buf
and msm_delete_stream which can lead to use after
free.
Fixed it by using read/write lock.

Change-Id: Icff5cd81b1a4e9c28f19936dec570751feab0ccf
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-06-23 15:20:16 +08:00
Linux Build Service Account
e5b8aadd07 Merge "drm: msm: add support for a custom hotplug event" 2017-06-22 23:41:17 -07:00
Linux Build Service Account
f8c31265f8 Merge "soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks" 2017-06-22 23:41:16 -07:00
Linux Build Service Account
3d7828b335 Merge "thermal: qpnp-adc-tm: Fix shutdown path for ADC_TM" 2017-06-22 23:41:15 -07:00
Linux Build Service Account
c9b4dc7067 Merge "Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4'" 2017-06-22 23:41:14 -07:00
Linux Build Service Account
a21b8a6a89 Merge "drm/msm: add PLL_ENABLE property to support clock recovery" 2017-06-22 23:41:10 -07:00