Commit Graph

4325 Commits

Author SHA1 Message Date
Linux Build Service Account
3a68d0df54 Merge "msm_fb: display: Assign proper destination rectangles to mdp blit" into msm-3.0 2012-04-02 08:27:56 -07:00
Mayank Chopra
aabb74cb03 msm_fb: display: Enable mixer1 writeback for video downscale use cases
Underrun occurs while downscaling video data on 8x60. Enable writeback
if video downscale is required.

CRs-fixed: 329630
Change-Id: Ief4b002efd6f4ad9fcfd844325c05de619d47719
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
2012-04-02 15:28:43 +05:30
Jeevan Shriram
07c82d6ca6 msm_fb: display: Assign proper destination rectangles to mdp blit
Add check for (90 + Flip Horizontal) and Flip Vertical cases to assign
proper destination rectangle parameters to avoid corrupted frame
buffer content.

CRs-Fixed: 344807
Change-Id: I7e7b0b8d26f08f63a6f9c55eedd37f31cf0348d7
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-04-02 10:20:48 +05:30
Linux Build Service Account
75d9c6ad9a Merge "msm: Display: Fix reference count for DSI clocks for DSI command mode." into msm-3.0 2012-03-31 06:07:51 -07:00
Linux Build Service Account
206ce558b5 Merge "msm: display: Attach MDP IOMMU during first update after boot" into msm-3.0 2012-03-31 04:33:15 -07:00
Linux Build Service Account
ad3c2f3acd Merge "msm_fb: HDMI: Fix bug in mutex handling" into msm-3.0 2012-03-31 04:33:15 -07:00
Linux Build Service Account
63b6456fae Merge "msm:vidc: update default output buffer requirement" into msm-3.0 2012-03-31 01:14:46 -07:00
Ravishangar Kalyanam
ff6bfa8e6f msm: display: Attach MDP IOMMU during first update after boot
For continuous splash support to work properly, attach the MDP IOMMU
device at a later point during boot to allow display use the
splash image from bootloader

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: Ife9a2afae1e9b9140ee74af0cc7dcf7ad945d4de
2012-03-30 14:56:00 -07:00
Mohan Kumar Gubbihalli Lachma Naik
50f02e2345 msm:vidc: update default output buffer requirement
Updated the default output buffer requirement to
match worst case requirements. With this change
reconfig will trigger only if the actual buffer
requirement is less than the estimated requirement.

Change-Id: I754a31b9a346f87e5946cad252ba1ea86530dd9e
CRs-fixed: 343812
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
2012-03-30 12:17:39 -07:00
Chandan Uddaraju
3ef84a5ab7 msm: Display: Fix reference count for DSI clocks for DSI command mode.
For MIPI DSI command mode panels, clock enable for DSI clocks
is called more than needed. Fix the reference count for these
clocks to turn off the clocks  during suspend state.

Change-Id: Ife061eec6af9f5fb106bfaf608e222fabec1e9dc
CRs-fixed: 339125
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2012-03-30 11:11:02 -07:00
Linux Build Service Account
06634693d3 Merge "vidc: memset only for non secure sesion" into msm-3.0 2012-03-30 07:57:31 -07:00
Linux Build Service Account
dc2c12f779 Merge "Merge branch 'Linux 3.0.21' into msm-3.0" into msm-3.0 2012-03-30 07:57:31 -07:00
Linux Build Service Account
72be669151 Merge "msm_fb: display: Unstage pipe from Mixer0 H/W on each unset call for 8660" into msm-3.0 2012-03-30 05:52:48 -07:00
Padmanabhan Komanduru
75cf6b84b3 Revert "msm: display: Backlight control on 8x25 EVB"
Waiting for the vendor approval/permission letter.

This reverts commit 224d5fa264.

Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2012-03-30 15:06:14 +05:30
Rohit Vaswani
a76e99abc5 Merge branch 'Linux 3.0.21' into msm-3.0
Merge Upstream's stable 3.0.21 branch into msm-3.0
This consists 814 commits and some merge conflicts.

The merge conflicts are because of some local changes to
msm-3.0 as well as some conflicts between google's tree and
the upstream tree.

Conflicts:
	arch/arm/kernel/head.S
	drivers/bluetooth/ath3k.c
	drivers/bluetooth/btusb.c
	drivers/mmc/core/core.c
	drivers/tty/serial/serial_core.c
	drivers/usb/host/ehci-hub.c
	drivers/usb/serial/qcserial.c
	fs/namespace.c
	fs/proc/base.c

Change-Id: I62e2edbe213f84915e27f8cd6e4f6ce23db22a21
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-03-30 00:09:34 -07:00
Aravind Venkateswaran
d85b554469 msm_fb: HDMI: Fix bug in mutex handling
The code for HDCP authenticaton has a bug where a mutex is not
freed when the code follows an error path. This change fixes this
issue by correctly handling the mutex.

Change-Id: I4b141a313830cc09e11a5db4b8e464fa4439efd6
CRs-Fixed: 341922
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2012-03-29 23:25:59 -07:00
Mayank Chopra
5b5f2188eb msm_fb: display: Unstage pipe from Mixer0 H/W on each unset call for 8660
During unset call, mixer0 staging is cleared using stage down
logic which makes the staging update to happen in next vsync
for 8660 platforms. Clearing of mixer0 stage now is done on a
single vsync for 8660 as well.

Change-Id: Ib6b11728944be89ee6ba5b5d58c470c05cb9f41b
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
2012-03-30 10:12:19 +05:30
Ravishangar Kalyanam
6bc448aefa msm_fb: display: Add IOMMU support to MDP and rotator driver
Add IOMMU support to MDP and rotator driver for operating with
virtual addresses instead of physical addresses

Change-Id: Ia5afcf33220e0e75e92948649c2bd4d7ef32917d
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-29 10:13:06 -07:00
Ravishangar Kalyanam
87260cdaef msm_fb: display: Wait for external vsync before turning off DTV
Wait for external vsync interrupt before turning off the timing generator
for DTV display

CRs-Fixed: 341400
Change-Id: Ibd380f8e20a7ebb250669fcabf4233e9e526d22f
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-29 10:12:58 -07:00
Ravishangar Kalyanam
4a9d338287 msm_fb: display: Enable timing generator during first update
During first display update through pan_display or overlay_play,
enable the timing generator for pull modes like LCDC, DSI Video
and DTV interfaces

Change-Id: Icec5b28f0df04a1223119222a1aad5129111f676
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-29 10:12:49 -07:00
Linux Build Service Account
1c0db13b2c Merge "msm: display: Backlight control on 8x25 EVB" into msm-3.0 2012-03-29 09:01:01 -07:00
Jeevan Shriram
2aa111c008 msm_fb: display: Initialize work queue for MIPI command mode panels
Initialize workqueue for MIPI command mode panels for s/w refresher
mechanism to work in x-window type architectures.

Change-Id: Id67c54452aa0b02a39f480709fc4bcd6c7bde2eb
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-29 02:37:01 -06:00
Padmanabhan Komanduru
224d5fa264 msm: display: Backlight control on 8x25 EVB
Enable backlight control on 8x25 EVB for WVGA panel.

Change-Id: Ib293440829c39e2230cc5a288037e2d5d7806dc3
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2012-03-29 11:55:03 +05:30
Linux Build Service Account
6ffb7b5197 Merge "vidc: Move metadata shared input mem to firmware heap." into msm-3.0 2012-03-28 19:21:46 -07:00
Deepak Kotur
6a72f522d4 vidc: memset only for non secure sesion
The buffers are memset only if its a non secure
session.

Change-Id: Idf74a6b54f39012bbe69fb5b5d27f2764d0017af
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
2012-03-28 17:44:07 -07:00
Linux Build Service Account
0228cd2ebd Merge changes I05469ad0,Iaec53879 into msm-3.0
* changes:
  msm: Display: Fix the reference count for MDP and DSI clocks
  msm: Display: Add support for "Continuous Splash Screen" feature.
2012-03-28 16:00:46 -07:00
Linux Build Service Account
8454f4b0d0 Merge "msm_fb: display: fix dsi_irq race condition" into msm-3.0 2012-03-28 10:51:24 -07:00
Linux Build Service Account
631e8b61b9 Merge "msm_fb: display: Call footswitch control from overlay dtv on/off" into msm-3.0 2012-03-28 10:51:24 -07:00
Chandan Uddaraju
14e8c40443 msm: Display: Fix the reference count for MDP and DSI clocks
The clk_enable() call for MDP and DSI clocks are called more
than necessary. These clocks were not turning off during
suspend mode for "continuous Splash screen feature" and
dtv. Fix this by calling clk_disable() functions whereever
needed.

Change-Id: I05469ad08497bead6171478413623da15fe49182
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2012-03-28 10:22:53 -07:00
Chandan Uddaraju
042cd63a1b msm: Display: Add support for "Continuous Splash Screen" feature.
The image displayed on the screen by the android bootloader
driver should continue till the android animation shows up.
Delay the display initialization for MDP, display dependent clocks
and panel power on functions.

Change-Id: Iaec53879def6f4a9d2f6b7b8090f572e64e55d87
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2012-03-28 10:22:27 -07:00
Deepak Kotur
c6802266a8 vidc: Move metadata shared input mem to firmware heap.
Metadata shared input is used to communicate between
the video code and video driver, hence make this buffer
as uncached and allocate it from firmware heap.

Change-Id: Ib1f4005bae1778f68d228bd3c798457c7c15d83d
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
2012-03-28 09:02:42 -07:00
Linux Build Service Account
0be364b153 Merge "msm_fb: display: Report correct fps to user space" into msm-3.0 2012-03-28 08:50:40 -07:00
Linux Build Service Account
dbc3fe2782 Merge "msm: display: Add proper flags for secure/non-secure writeback buffers" into msm-3.0 2012-03-28 08:50:40 -07:00
Jeevan Shriram
033ee132dd msm_fb: display: Report correct fps to user space
There are only 30 pan updates per second due to MDDI
Type 1 interface bandwidth limitation. Hence, 30 fps
needs to reported to user space for MDDI Type 1 Panels
though the panel refreshes at 60Hz. Make change to all
type 1 panels to report only 30 fps to userspace.

CRs-fixed: 330584
Change-Id: I07784060ef7a3f37ac13cdecf8138afb6c27ee51
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-28 18:10:37 +05:30
Linux Build Service Account
b2ad2bae31 Merge "msm: vidc: Extract PAR info for MPEG4/DIVX." into msm-3.0 2012-03-27 22:56:21 -07:00
Linux Build Service Account
2f21aa2caf Merge "video: msm: writeback: Stop providing buffers to mdp in stopping state" into msm-3.0 2012-03-27 22:56:21 -07:00
Ravishangar Kalyanam
a3b168b4d1 msm: display: Add proper flags for secure/non-secure writeback buffers
For MDP writeback buffer allocations, use appropriate heap id flags
for secure and non-secure sessions

Change-Id: I05e897d5d90ab03b17ccddbda764f39b963192ef
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-27 22:07:56 -07:00
Kuogee Hsieh
e350d9bcee msm_fb: display: fix dsi_irq race condition
There has race condition that mipi_dsi_disable_irq_nosync() is
called from isr context at one core while mipi_dsi_irq_enable()
is called from thread context at other core. Serialize
mipi_dsi_disable_irq_nosync() with mipi_dsi_irq_enable() by
putting mipi_dsi_disable_irq_nosync() inside scope of
spin_lock(&dsi_mdp_lock).

CRs-fixed: 345837
Change-Id: Ibd2ff3194890b671983142fdb7b5a62cc009cae2
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2012-03-27 08:49:33 -07:00
Linux Build Service Account
8ed53fd170 Merge "msm_fb: display: HDMI power reduction at suspend" into msm-3.0 2012-03-27 00:49:07 -07:00
Linux Build Service Account
d2366c0de6 Merge "msm_fb: display: fix underrun when conecting wifi display" into msm-3.0 2012-03-27 00:49:07 -07:00
Arun Menon
d5a0297a2c msm: vidc: Extract PAR info for MPEG4/DIVX.
Display needs the pixel aspect ratio information
from the video decoder to display the picture
with the right aspect ratio. Video decoder extracts
the pixel aspect ratio information from the
video core and passes it to the client/display
as extradata.

Change-Id: I4db2b8ba827af67bc01888d13c36c1b501934ccd
Signed-off-by: Arun Menon <menon@codeaurora.org>
2012-03-26 16:44:38 -07:00
Linux Build Service Account
3e85a7d1f5 Merge "msm_fb: hdmi: HDMI high sleep current" into msm-3.0 2012-03-26 15:13:27 -07:00
Ravishangar Kalyanam
28338aebe0 msm_fb: display: Call footswitch control from overlay dtv on/off
Instead of dtv on and off, call footswitch control during
overlay dtv timing generator on and off calls

Change-Id: Iffe47e12ce99e1fc7a080daef7b220c4f010ccda
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2012-03-26 13:39:18 -07:00
Adrian Salido-Moreno
8d3b0fce86 msm_fb: display: fix underrun when conecting wifi display
When connecting wifi display underrun can happen if there is no frame
update in other mixers before pipe in mixer2 is staged up. Add logic to
make sure that any pipes that are going to be staged up to mixer2 are
staged down from other mixers first.

Change-Id: I84ce8d0fcd392639d470ba4161be36212bcefce1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
2012-03-26 11:03:27 -07:00
Ajay Singh Parmar
88ad8a7be0 msm_fb: display: HDMI power reduction at suspend
During suspend, HDMI clocks are still running and power
consumption is high. Usually HPD module is kept on even
when the cable is not connected to sense the cable
re-connect. But cable connect sense is not required when
the device is suspended. This change makes sure that HPD,
along with other HDMI modules, are totally shutdown during
suspend and there is no power consumption by HDMI.

CRs-fixed: 335821
Change-Id: I90c6ec6ca99a9396609028fda9f1768324e7d3da
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2012-03-26 06:44:30 -06:00
Jeevan Shriram
a1f9df15e0 msm_fb: display: Add panel driver for Truly IPS3P2335 client
Add panel driver for TRULY IPS3P2335 client

Change-Id: Ibf37f7c292593898e237329f3021f1eed8f8728d
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2012-03-26 15:58:41 +05:30
Ajay Singh Parmar
56dfb682a5 msm_fb: hdmi: HDMI high sleep current
High current is observed during sleep. HDMI PHY needs
to be reset before going into sleep.

CRs-fixed: 336972
Change-Id: If79f1fb5bcb88d649b2545362eb853d3699e41bf
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2012-03-26 14:38:17 +05:30
Deva Ramasubramanian
16f27dc68e video: msm: writeback: Stop providing buffers to mdp in stopping state
After writeback_stop() is called, we continue providing buffers to mdp
until the free queue is completely exhausted.  However, client can
deallocate buffers immediately after writeback_stop() is called, this
will trigger page faults from mdp accessing invalid buffers.

Change-Id: Ibe3c8435a5f84eeb61b92ec3277f0dc27f008b02
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2012-03-23 21:50:21 -07:00
Linux Build Service Account
9fefc65e43 Merge "video: msm: wfd: IOMMU migration" into msm-3.0 2012-03-23 20:50:46 -07:00
Linux Build Service Account
d8788a062f Merge "msm_fb: Display: Change the VCO frequency range for 8960." into msm-3.0 2012-03-23 14:41:50 -07:00