android_kernel_lge_bullhead/include/linux/mhl_devcap.h

43 lines
1.7 KiB
C
Raw Permalink Normal View History

msm: fb: Replace with QuIC framebuffer driver This adds support for more recent MSM chips. Including the following commits: commit 5822924ac43b56586fbe0ddb720400624e70e111 Author: Ping Li <quicpingli@codeaurora.org> Date: Fri Nov 30 14:05:43 2012 -0500 msm: display: Add picture adjustment support for SSPP side Add picture adjustment structure input for overlay PP configuration, user can change PA setting via overlay set IOCTL Change-Id: I3b4679991ad4527565809e291fb13a73fbda2181 Signed-off-by: Ping Li <quicpingli@codeaurora.org> commit 486846820740c2cafea0c06442a3440ecb70b4d3 Author: Pawan Kumar <pavaku@codeaurora.org> Date: Fri Dec 21 16:55:24 2012 +0530 msm-fb: v4l2: Add user pointer support using ION for mdp3 target -Add multi-planar user pointer support in msm v4l2 display driver using multiple ION fd's (2 fd's in case of mdp3). -Handle multi-buffer use case using memory offset along with ION fd to calculate physical address. Change-Id: I1352512cbdfb9cf2c9fc20968416d369337e433b Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 5e4ba471fa7b26de394c3836b309c20c4082c19a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Nov 19 19:37:12 2012 -0800 msm_fb: display: Send current timestamp in case of timeout On timeout while waiting for the vsync, send the current timestamp to the userspace. This resolves the infinite wait seen during the bootup as SF will use this time stamp reconfigure the vsync. CRs-Fixed: 420244 Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 14547efa9af6eecb83243148b02cc1e0ea789202 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Dec 12 17:49:04 2012 -0500 msm: mdss: cache panel setting in suspend state Save panel on/off setting in suspend status to be used when resume, return success as a temp workaround. Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit c7966734d6fbdf5e542eb0349939cc02b0082143 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Dec 21 23:12:05 2012 -0500 msm: mdss: power setting protection When mdss is in resume process, other operation needs wait until it is done. Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 86ac956a061a1ea1e2c11214a1adebbe32511c42 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Dec 13 18:57:27 2012 -0500 msm: mdss: Clear performance request data at turning on MDSS needs re-request bus and clock when resuming, clear the cached related data, as they do not reflect the hardware status. Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 4e83b93ca279b21f0ab1e07fdee52ea41f2474f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Dec 2 21:15:47 2012 -0500 msm: mdss: Non-blocking display commit Schedule a workqueue, do the current job in the workqueue handler. Block the second entry if the first one has not finished Display commit ioctl will do what pan_display can do, addtionally has customized setting, such as non-blocking call Change-Id: Iccced7d7540c6a8bb066f58fa245bbff5ed36fcb Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 5295d8001001ceebc6392a42f3055c6c5188958d Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Nov 7 18:33:16 2012 -0500 msm: mdss: sync point support MSMFB_BUFFER_SYNC ioctl is added for hwc to pass in buffer fence, driver creates release fence and return to hwc. Before display update, driver waits for the fence to be signaled. Signal the release fence after update is done. Change-Id: I3d8cd5e8df1f0415832507d19cf629f4c0432164 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 1c374a84fd75e436d6a61c326fb055091b3d51e0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Dec 17 16:29:03 2012 -0800 msm: 8974: add MHL device discovery flag This change stores a static flag for keeping MHL device discovery and makes the driver flexible to function in either one of the modes. It would be very simple to make this dynamically configurable through boot param or module param. Change-Id: If3915c5861e61bc572a9b4e239a6133e5e9a138b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fcc33cdd9c2eccdcdde19e2b09d6eb3b01a783cb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 18 09:40:25 2012 -0800 msm_fb: display: add panel's late_init Some panels need to be initialized after panel is on. Add late_init to support this feature. CRs-fixed: 433011 Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbdfa637adf603082676a428f80f1260d3400b3d Author: Pawan Kumar <pavaku@codeaurora.org> Date: Mon Dec 17 09:47:16 2012 +0530 msm-fb: Fix sysfs node creation in mdp_probe for MDP3 targets -vsync_init null check not required for mdp3 target before creating sysfs node. -Set vsync suspend and resume flags appropriately in mdp_on for mdp3. CRs-Fixed: 393243 Change-Id: I3366df7385ca8e2ae15053c3e58332f8e32ce0cd Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 9f2514f819eced19b0880735d5d62727808ce30c Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:23:11 2012 -0800 mhl: 8974: notify usb about non-mhl sink discovery On cable connect, USB driver triggers MHL's device discovery through an API. This device discovery should inform caller if the device is MHL or USB host mode connection since both hold ID line low. If SII 8334 Tx discovery routine returns a result of non-mhl then MHL driver should notify usb of this result else usb will not be able to proceed further with it's worker functions and state machine. Change-Id: Ie20e0dd517a191ed6df75050042bdcb0ebd01233 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f45159b358add9d3bc955dce2cce5ef62a7a75fd Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:22:08 2012 -0800 msm: 8974: MHL set 3V reg. for the 8334 hs switch Allocate regulator from MHL driver for 3.3V which is required for the high speed switch to function and toggle between usb host mode and mhl mode Change-Id: I87a9db951ff004d0a10caa390723eefddfc0db5e Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 530a5227212b62d05732f4393cf06903b4646c6d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:20:34 2012 -0800 msm: 8974: disable mhl device disc This discovery mechanism puts the device in complete sleep mode (D3) while leaving the device discovery disabled, and wakes up when USB driver calls the device discovery API from D3 mode by resetting the chip. Change-Id: I7db8dd86c54285a4903c582ae35f6c9d4329ec48 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 80822c3dde2e63bcdb0490426b05105252572814 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:18:07 2012 -0800 msm: 8974: Add intermediate power state for MHL MHL has three power states, D3 - low power sleep, D0 - high power MHL state, D2 - intermediate stage which powers up the chip but doesn't activate the MHL/TMDS lines. Change-Id: I9282a32724e0ac4f7c23233f4bfba97f548d7ac9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit affabcd25a6b74ec95350ad36ccec5b522e8dc5d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:15:29 2012 -0800 msm: 8974: Set MHL Tx configuration to USB state All the ID lines, D+/D- lines are configured to USB by default in this change. All the USB interrutps will be routed directly to USB, which will trigger interrupts in the USB driver. All events on ID line are handled by USB, even in the presence of MHL, USB driver triggers the device detection mechanism through established APIs. Change-Id: I7e70965cf46dfa5734918b2e21db5a162c570706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 388c2a9db377945aefa85f06fa31dc8ac0ea9cef Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 14:01:47 2012 -0800 video: msm: Handle timed-out histogram When the histogram collection times out (usually caused by an underrun) the hardware does not trigger a histogram done interrupt. In fact, the histogram hardware returns to its idle state after the next frame starts to draw. Thus, in the case where histogram times out waiting, changing the software state to HIST_IDLE allows histogram collection to continue. Change-Id: Ideb431209067c7d7e5a2bb94a7352ad90dd46e50 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5240a97a72f320b927ffc6230a6f4f1443979acd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 3 15:52:38 2012 -0800 video: msm: Trigger no update notify on suspend Suspend is a special case in the update notify feature in that it is a known state of no upcoming updates. Cause those waiting for a "no update" notification to wake up. Change-Id: Ie415d6c8da36d9871ed1dffad095529a20ebdf88 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c9021777f4efbbe9dcb9293f54a0dc912e87e5fe Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 16:48:18 2012 -0800 video: msm: Initialize Histogram LUT Initialize the Histogram LUT during MDP probe. This is required otherwise the first histogram LUT request shows a brief period of garbled colors. Change-Id: I60b3077883d0f57dfe3987d7b459477a43da09a5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 004d4a2d2bd81fc8e147f0dadec2d8792e176d80 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 12:46:10 2012 -0800 msm: mdss: hdmi: Add support for new HDMI-Audio interface Using this new interface, HDMI-Audio codec driver can retrieve sink's audio capabilities. Based on this supported capabilities and current playback clip, it will pass appropriate audio setup information to HDMI driver for configuration. Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit b554cf695636e15504cdce72cbfe35bf89494c0a Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 27 21:27:38 2012 -0800 msm: 8974: MHL-USB handshake API implementation This change adds the implementation of mhl discovery detection procedure, USB hand-off function. Three APIs are exposed from MHL driver to USB driver: for register/unregistering callbacks from USB and triggering device discovery detection in MHL hardware. By default, all the USB interrupts are directed to the USB hardware which is detected by USB driver and at appropriate points the USB driver triggers the MHL device discovery and uses the results to either hand control to MHL driver or continue with it's own detection mechanism. Change-Id: Ic1e22bc4c446de209f2e72d5dda8b823bfd398c8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5feb9b23208394f5261b330adec2cfb475706c43 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 12 18:18:19 2012 -0800 mdss: hdmi: Use delayed work instead of timer for HDCP reauth Upon detecting HDCP authentication failures, reauthentication attempts should be kicked off after a small delay. Instead of using kernel timers, this is achieved by having the existing HDCP work item as a delayed work. Change-Id: I7d04b33b159c718cd347576d18cffd1b705bb790 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 3aafea1d26621d712790742f2bcc70bf7bf374ab Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Dec 13 17:43:43 2012 -0800 mdss: hdmi: Correct HDMI Tx controller settings for DVI mode When a connected sink is operating in DVI mode, the HDMI Tx controller should also be programmed accordingly to operate in DVI mode. Change-Id: I63176b55be86a0fe73b23880fc1d45f7a2272d32 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0f685f270692aeb54b8eed0df5e37897d77f6c7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 12:52:18 2012 -0800 mdss: hdmi: Fix suspend/resume watchdog crash during HDMI mirroring During device suspend, HDMI driver holds MDSS suspend context until audio is turned off. Continuous polling for audio off results in unnecessary delay in MDSS suspend as well as watchdog crash. To fix this enable/disable MDSS GDSC regulator during HDMI hpd on/off. This will make HDMI independent of MDSS module in terms of register accesses. Also increase the sleep time between consecutive poll reads in order to prevent watchdog crash. CRs-Fixed: 425536 Change-Id: I7969f0ed8bcce4a356ee6a1e29ed2af76dd345ef Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 38e405e9ce2c9723a633ad75d6c498dd178d3e4a Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 11 14:19:04 2012 -0800 msm_fb: display: wait for a vsync time before dtv_off At DTV interface, wait for a vsync time to make sure previous stage_commit had been kicked in before un-stage pipes and turn off timing generator. Otherwise iommu page fault may happen after RGB2 allocated to mixer0 due to RGB2 pipe still hold previous source address. Change-Id: I6b8bb1429b863886601ebb64b7c73771bee86764 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6d260d9645b5032b41d14b8e7d14ec12af24cd1a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Nov 1 18:09:06 2012 -0700 mdss: HDMI: HDCP Implementation Implement HDCP (High-bandwidth Digital Content Protection) feature which is used to encrypt audiovisual content transmitted over the HDMI link. Change-Id: I6ab92585f979d796d1a40c0ff86d4e7363506b6a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f9ef2416165fa7cc4230fd1fad7ecd0cc9c1be3 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 16:30:18 2012 -0800 msm: mdss: Fix porch value assignments based on VESA standard Panel driver's porch value representation is similar to VESA standard but framebuffer API's representation is different. Correct this conversion from one representation to other. Change-Id: I1fdc7e664de99a5ad646beef2e74f7066a00c2e0 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit ad43bed51e95782097e68840673b8abf2d096058 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 16 16:08:00 2012 -0700 msm: mdss: enable border fill setup Border fill setup can be used to unset MDP pipes allocated for framebuffer replacing it with border color fill instead of contents fetched from memory. These pipes can then be used as overlays by userspace apps. Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0d62d721aaa6ea760e4d54076aa782352dca13a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:56:06 2012 -0700 msm: mdss: change smp blocks allocation based on fetch width Currently the ammount of shared memory pool blocks allocated for fetching latency lines is based on the full stride of image. There are cases where only a small part of the image is fetched, smp blocks should be allocated to acommodate the fetched width only, and free some memory to be used by other surfaces. Change-Id: Idaa7fbc583a2c4a5166f9e05010a0ae2ff56747a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d27afb2e7eae9d8049f11094b686c513dbc7eed4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:58:59 2012 -0800 msm: mdss: add timeout when waiting for vsync To avoid any possible freezes while waiting for vsync, add a timeout while waiting for vsync interrupt and report a visible warning. CRs-Fixed: 428821 Change-Id: I328ac05b98741fc77eb424c313a3b3afb3e206d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d691c2352dca906061899dac24bd21fc2ce91e6b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:48:12 2012 -0800 msm: mdss: remove wait for ping pong done for video interfaces Wait for ping pong was used to ensure that hw is idle while programming any double buffered registers, however most registers that really are changing are double buffered. Remove for ping pong done as it's only causing frame drops and some freezes in some cases. CRs-Fixed: 428821, 426136 Change-Id: Iafebebab7faf0efcb1b3f6a8d2723d67a93d5cd9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 26 12:44:26 2012 +0530 msm_fb: hdmi: HDMI suspend resume event handling This change makes sure that we do the proper HDMI ON settings at resume and also send the events to user-space about current status of HPD after resume. CRs-Fixed: 422372 Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 598d1170a005fd7b8b746e3e3d262635047a85b5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Dec 10 17:06:20 2012 -0800 msm: mdss: update bus bw calculations to account for is_fg flag Overlay flag is_fg is used to disabling fetching of buffers for a layer and all previous blending stages. Need to consider this as part of bus bandwidth calculations and only request bandwidth for layers that are going to be fetched by MDP. CRs-Fixed: 425643 Change-Id: Ie964f5e4ac77945ea6f84a47d337591ddfa1721c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d0bf99c8cbbbb43ad5bb1c426efc7d8004f6bf6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 16:37:01 2012 -0800 msm_fb: display: fix frame rate wrong calculation For cmd mode the frame rate calculation result is wrong. Also in mdp driver there are several places to do the same calculation. So fix the wrong calculation and use a single func to do calculation. Change-Id: Iab498fb446a1d9b8295d710ffa82618d2ab6fc07 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 14:04:00 2012 -0800 msm_fb: display: add wfd clk ctrl in pipe_commit mdp_clk_ctrl on is not called when commit is from overlay commit path which can cause mdp hang. mdp_clk_ctrl off should be after mdp overlay2 is done, so schedule a work in overlay2 done isr. Change-Id: I94fd08da27cfda114f5cc0056a5103f0a9b772f6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8a9762e653e6f43fd361b3ccd632a1a78c1ab6fa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Dec 7 20:23:53 2012 -0800 msm_fb: display: add mdp bandwidth runtime calculation Currently mdp bandwidth request logic is based on source image size and number of layers. This logic can not support complicated mdp usecases and it is not power efficient. The logic is improved by calculating mdp bandwidth request at runtime from all pipes and mixers. CRs-fixed: 425823 Change-Id: I63206f00f8d3017a2449f8ac617fce3ba2a4d36c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 474f8d7fdffb8405676455cfbfaebc14d067862e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 10 10:14:49 2012 -0700 msm_fb: display: replace cmds_tx/rx with cmdlist_put/get Both dcs command and mdp pixel stream share dsi link. Dsi link confliction may cause mdp to hang up. cmdlist mechanism is introduced to serialize both dcs commands and mdp pixel stream. This patch replaces legacy cmds_tx/rx with cmdlist_put/get. Change-Id: Idfecd196d6efa281fc2c319be4ee3e76b8d49136 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d43ae7260e1b79b9930036347ce568c176420287 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 18:06:56 2012 -0800 msm: mdss: hdmi: Add support for new resolutions Add support for following new resolutions. * 2560x1600 @ 60Hz (DVI) * 3840x2160 @ 30Hz (HDMI) * 3840x2160 @ 25Hz (HDMI) * 3840x2160 @ 24Hz (HDMI) * 4096x2160 @ 24Hz (HDMI) Change-Id: I14262448fea80615c6c77b4638b0a9815efc3297 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 793bd7b68f7ab5e2899b977293cfb67157493c77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Dec 7 14:25:47 2012 -0800 mdss: hdmi: Correct configuration for DDC ref timer This change updates the (Display Data Channel) DDC reference timer in mdss domain to the optimal value which is calculated based on the correct HDMI application clock frequency. Change-Id: I0b9f32f2fb0f16cf79bca86e270039c8cf90ed94 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 248dda2a1cacae6035fcd926a97fc8849229afce Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Oct 29 11:27:15 2012 -0700 msm_fb: display: Removing extra disable irq in cmds_rx API's Disable IRQ for DSI_CMD_TERM was already called in the isr. Removing the extra call present in the cmds_rx API's. Change-Id: I0000dd3166beb2a3b0c788327e1d7520e0c11a13 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9b697535117c56cd385a0b71411e05e62776e6f5 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:53:35 2012 -0800 msm: mdss: hdmi: Add support for dynamic resolution change Using new panel event, provide facility to check if HDMI can support requested resolution or not. Also if resolution change is requested while HDMI mirroring is ongoing then current mirroring needs to be shutdown and start again. Propogate this message to mdss using new panel event, MDSS_EVENT_CHECK_PARAMS. Change-Id: I87aed1b37b532724b6663509aa020b1008abfdcc Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bc2796befca2fa535952ced7c85f7221e3dac0b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 28 18:41:33 2012 -0800 msm: mdss: support panel resolution changes Allow framebuffer resolution changes to be propagated to panel driver to support different display resolutions. Use a new panel event so that panel driver can take the decision of accepting new params. Change-Id: I04b26cbb4d06a3cbc9c4416fbb7202bb185eee9b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0d7257935376fdc7293a0b9ddf1d2f8056fec201 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:16:03 2012 -0800 msm: mdss: cleanup usage of panel info Panel info is used to communicate between panel, mdp and framebuffer. Currently framebuffer maintains its own copy of panel_info which might cause mismatches on the latest information from panel. Change framebuffer panel_info to be a pointer to information provided by panel driver. Change-Id: Ic7ae27564d98d6b6843d1368481dda0601befccf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit cc13101bd21479dec3a629d93655bcf62462b0ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Dec 3 15:36:14 2012 -0800 msm_fb: display: delete dsi clock control from cmdlist_commit cmdlist_commit perform dsi clock control which turns off dsi clock unexpectly when dsi controller is configured as command mode during booting up. This cause display panel can not be lit up. This patch drop clock control mechanism from cmdlist_commit and move dsi clock control mechanism to caller. Change-Id: I1882ea3ee1c90ac5d76958c986740582929a5e3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 946ca6389b8f8c70b62a2f1ab4d81b475395f7d8 Author: Prasad Sodagudi <psodagud@codeaurora.org> Date: Mon Dec 3 16:57:51 2012 +0530 video: msm: Do not use disable_irq in the spin_lock_irqsave context Both mdp_isr() and mdp_histogram_disable() uses the same spin lock mdp_spin_lock variable. One core waits for disabling mdp_isr after acquiring mdp_spin_lock and other core in mdp_isr() waits for spin lock mdp_spin_lock and dead lock between two cores. Change-Id: I73a10494ab78e92fc88a348aed4f526091b51f89 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> commit 889748cb28feb2d88ee74c7c3ce29409b857ea23 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 19 16:23:58 2012 -0800 msm: mdss: hdmi: Add dimension overflow check for video resolutions MDSS based HDMI Tx controller can output 13bit h_total and v_total compare to 12bit wide from previous generation chipsets. Add overflow check to insure that controller is not programmed for incorrect dimension. Change-Id: I6c3906020da6f4aad3f1fcf8a5633731515a7569 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 554c0755b48b77e463b7ede2a1b74abf41120370 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Dec 4 11:12:04 2012 +0200 msm: mdss: Fix the order of enable/disable edp clock functions Being compatible with the required enable/disable of msm clk sequence. Change-Id: I179685a5bb4c0d7e6f4b84e18f0749b416f5e2ba Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 137dfdf8781f41270dd6ff10242c082940300e75 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:20:49 2012 -0800 msm: mdss: remove pm suspend handler All suspend calls are handled through early suspend, using pm suspend/resume as well can lead to HDMI being resumed before MDSS regulator is enabled, leading to HDMI hang during resume. Remove pm suspend handler completely since it's not needed. CRs-Fixed: 425657 Change-Id: I0b9d072037dfdceef90d24fba50813390191f4e0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 32547051b65943bd1c07c08630528741fdcfdda4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 30 18:00:16 2012 -0800 msm: mdss: fix iommu fault due to incorrect buffer unmap Any buffer that is being fetched by MDP to display on panel should not be unmapped until there is a new buffer to replace it. Ensure multiple buffer updates without a commit to display won't cause displayed buffer to be unmapped. CRs-Fixed: 420561 Change-Id: Ibe720976024d7739c36bd4f05f9f70a061ed1eb9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cda3246cba44c0756c2038f0fea34858e72f8555 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 10:47:46 2012 -0700 msm: mdss: enable display debugging through debugfs Register debugfs nodes to allow dumping and writing of MDP and DSI registers for debugging purposes. Change-Id: I14d9a7f441292eef5564144707184dfa5da75d85 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 63e30558ba162cae303f7ae655b0ab61f4253005 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 9 10:04:20 2012 -0800 msm_fb: display: mdp4 version assigned at board file Currently, mdp version is acquired by reading mdp version register. This patch use mdp version from board file instead of reading from mdp register. Change-Id: If71be4f28caa45beea58789ca1025a338eb64de5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8e389593cd695957834a2de6db769264c0237a9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 15:56:25 2012 -0800 msm_fb: display: add mdp blt mode and switch control Switching mdp blt mode is done in isr or by turning on/off timing generator. Add other options: by polling, always-on or always-off. And add support for external dtv blt mode. CRs-fixed: 390953 Change-Id: I5e9f52fc459a34cc99a0f71c04b8320edd821ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4eb6ce68540cb523348d624b7193518fdd970898 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 16 11:52:15 2012 -0800 msm_fb: display: Do not use ION_IOMMU_UNMAP_DELAYED Since iommu buffer will be un-mapped after two newer commits had passed, there is no need to request iommu driver to further delay un-mapping an iommu buffer. Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d5e1c57b4a6d2d25c5ce04923205073fafa3898 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Oct 30 14:59:26 2012 -0700 msm_fb: HDMI: Cleanup of HDMI switch device notifications HDMI switch device is used to notify userspace components of the availabilty of a connected HDMI sink. These notification should only be sent whenever HDMI cable is connected or disconnected. This patch removes all the redundant notifications. CRs-Fixed: 412575 Change-Id: Ia5e60690a87569fce5d61a9af75d446648443e9b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit f3472aede02906f6e213a5a8459ca4e6f84b17d6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 15:34:44 2012 -0700 msm_fb: HDMI: Turn on HDMI core only for supported resolution Upon receiving the notification of an HDMI cable connection, turn on HDMI core only if the default video resolution is supported by the sink. Otherwise, HDMI core would be turned on at a later time when it is configured with a supported resolution by the userspace. CRs-Fixed: 412575 Change-Id: I67cfb09bafa39646839877a66cd94f193c127a76 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit cdc118275788b10175f34560470d8afedc5255eb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 12 14:56:43 2012 -0800 msm: mdss: replace uevent based hw vsync events with sysfs poll Replace hw vsync ctrl logic with ability to read vsync timestamps through sysfs file when vsync ctrl is enabled from userspace. CRs-Fixed: 407684 Change-Id: I0fb973592090ed9ee81bc3d54f53a18f4c131e0f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit edf70c335df7938a1e181286f8165250491884de Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Oct 26 18:11:23 2012 -0700 msm_fb: HDMI: Add support for HDMI audio switch device node Add support for audio switch node in the HDMI driver that would be used to notify audio userspace components of the availability of an HDMI device. CRs-Fixed: 412575 Change-Id: Idc41caf234810db52af9fcc89d2ed4ecbcaafc3b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ae93bc59e2fc68591b76d3911ed6c29537efe949 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 14:32:41 2012 -0700 msm_fb: HDMI: Cleanup HDMI audio off sequence HDMI core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI core. This change increases the time for which the driver waits for the audio engine to turn off. CRs-Fixed: 412575 Change-Id: Ie11ab6c8140f7289f74da4877c9acf9b8cd4a838 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e3ddd1499da99d52222f6d3dd031901082e8338a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 7 18:27:23 2012 -0800 msm_fb: dtv: Serve device off in a separate thread DTV device should not be powered down until the audio engine has shutdown. This change moves dtv audio off sequence to a separate thread so that framebuffer close system call does not get blocked. CRs-Fixed: 412575 Change-Id: I246a9e58f1367e653913773696510f375abf3d3a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 99a86cc6d78227ff566aefdfd83c195277bde02b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:49:30 2012 -0800 msm: mdss: Add suspend resume support in HDMI Tx controller For primary display panels, usually power off/on during suspend/resume should suffice. But for external display panels like HDMI TVs, there is an additional hw circuitry for hot-plug detect which also needs to be turned off/on based on the state when suspend/resume is initiated. This change adds such support in HDMI Tx driver. CRs-Fixed: 413722 Change-Id: I7640d13c08f86f1ae0ae13cb2d1411f0354ca3fe Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c183e1a69eeac2348a6e2a5ac92aaf1fef0fa828 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 16 18:22:02 2012 +0530 msm_fb: commit mixer stage for WFD during unset Interfaces with Borderfill pipe as base layer needs to be commited during unset which will reset the mixer cfg structure. This is needed because overlay_commit will not call stage commit as there is no buffer queued. Change-Id: Ib3347e52ae437b20d5a85a09777f13aee2672edb Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 36f267e093320a0f3b54887d0091d7d811e76d2a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Nov 20 10:41:54 2012 -0800 msm: mdss: enable secure content display In order to display secure content, secure buffers must be mapped to secured MDP context bank. Split current single IOMMU domain into secure and unsecure domains and check overlay flags to find out if content should be mapped to secure or unsecure domain. Change-Id: I510c253920b03cacf85085cb394f5281143e38e6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f270decc6b4cfd38070e4e867f01f043fbee3ea8 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Oct 12 20:51:47 2012 +0530 msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 17e116a8ba55957248cf799de54997cf249e14c2 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Nov 6 15:28:07 2012 +0530 msm_fb: display: Fix blend configuration for command mode panels For command mode panels, blend registers does not get configured as per the use case. This leads to incorrect blending of layers resulting in lower layers (eg. wallpaper or buttons in video playback) to show above the upper ones, making overall user experience to go bad. In order to resolve the issue, blend registers are now configured properly by as per the use case. CRs-Fixed: 410029 CRs-Fixed: 415553 Change-Id: Ibe7d594e0ad6a6f4d75ed2e59c7382c09b65d624 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b2c1661ac99c7b6821f702c810256dbaafbf7ec8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 22:28:23 2012 -0800 msm: mdss: release rotator sessions when all panels are suspended When all panels are suspended MDP will be shutdown, need to ensure that all rotator sessions are finished and properly closed to avoid access to MDP hw. CRs-Fixed: 409234 Change-Id: Ic1d95365a28c453ec8779d9c482a885857bf6912 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit eac7d2bb7d29f731840e96271268c545d0fe011c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Nov 14 21:53:34 2012 -0800 msm: mdss: hdmi: Replace of_get_gpio usage with of_get_named_gpio HDMI Tx driver parses platform gpio data based on index, using of_get_gpio api. Replace this index based lookup with name based lookup, using of_get_named_gpio api. Change-Id: Ic65aae1583c8c6f852c31fd454ac651fc6c8b907 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0791142a3e45f62ad674de0fff2437e4c58a4681 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:12:43 2012 -0800 msm: mdss: add proper locking during suspend/resume operations Add locking mechanism to properly syncrhonize user space frame updates with suspend/resume operations. This should avoid some cases in which suspend operations will complete while frame update hasn't finished, leading to unwanted behavior. Change-Id: I4b254a6a547320199a6da722ef99563696686a20 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bb08a42611e6149d0950d94126fa1143e53b8e9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 16:51:27 2012 -0800 msm: mdss: replace panel function pointers with single event handler There are many events in MDP that are important to acommodate the needs of different panel drivers, currently these events are propagated with function pointers. However as more use cases come into picture the ammount of events has increased, and not all of these are handled by all panel drivers. In order to provide all this information to panel driver and be able to extend it in future, create a generic way to propagate events from MDP to panel driver through a single event handler. Change-Id: Ide243f08bc4fa966ef9223b0a665cff95b9529db Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d450bd5c223d6dc729b0eff24a0547c8222be0c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 31 15:57:42 2012 -0700 msm: mdss: fix possible deadlock while cleaning buffers Move pipe destroy logic outside of mfd lock to fix lockdep warning regarding pipe unlock logic being called within mfd lock, when mfd lock is usually locked within pipe lock and remove SSPP lock when destroying pipes. This was previously used to protect SMP allocations but these are protected by SMP lock already. Change-Id: I1c47da5d33cb4f1eb687078639adf4c4cc94f33a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit adb3920dd00f1001355e4ebbf451a5b646b3987d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:46:10 2012 -0800 msm: mdss: fix possible null dereference of fb index Rotator data paths don't have a fb device assigned, assuming that it will contains a reference to fd data is incorrect. Add check to avoid NULL pointer dereference. Change-Id: Ib91e96ddc56590f2f681673b162921191e3d86da Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5c06748c7decf51a63015579fa42cf8189727357 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 31 16:26:41 2012 -0700 msm_fb: HDMI: Cleanup HPD software debouncing logic Implement Hot Plug Detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. CRs-Fixed: 412575 Change-Id: Ia2c83f3446d09fe5bf6c6a1c4e6a9eb54ff465d6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9284a2701b6c030184848ba4b37c0b5019f62ed3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 2 20:55:30 2012 +0530 msm_fb: Wifi display changes for commit ioctl This change handles panel updates for WFD panel via overlay_commit interface, along with conglomeration of some common code across pan_update and overlay_commit ioctls Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit e41ba16cdf9d4aa7773fa33ef640ba32f5a17d7d Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Oct 25 16:32:32 2012 -0700 msm: 8974: MHL Driver for SI-8334 Tx The B-family device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I33f6c6f00011b590f9913cdbbe44544472b60982 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fe4abc1141a5620d42832137ad1dad15424b6b41 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 17 19:11:45 2012 +0530 msm_fb: display: Proper pipes solidfill For MPQ/hdmi as primary, solid fill the pipes only during suspend. This change also take care of the solidfill of the pipes unset during overlay and pan display at suspend. CRs-Fixed: 421461 Change-Id: I15096df681cbd94ae3cea63ecbfe915e01b7387f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 765bfd597fdc90610113cc9938c7152658d654ed Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Nov 14 10:41:12 2012 -0800 mam_fb: display: add per stage alpha drop detection Currently, alpha drop detection is done per frame which means multiple blending stages share same alpha drop status whcih does not reflect alpah effect truly on each blending stage. This patch enforce alpha drop detection is doen per blenging stage so that alpha effect applied properly at each blending stage. Change-Id: I90f8f6395c88e665b64ae90e64b65cea1d54b41a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Nov 16 11:36:29 2012 -0800 video: msm: Remove adjustment to MDP revision Remove the modification of mdp_rev during mdp_probe. Not needed since board files now have the correct MDP revision data. CRs-Fixed: 417080 Change-Id: I553cb2a8e8de43b6c7b7976c3eca67d00a3cfe4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ca24bda0148887716f250bbbc5debb2f80fa4331 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Oct 5 22:19:28 2012 +0530 msm_fb : Add timeout while waiting for vsync event Avoid eternal wait for vsync event when client tries to read the corresponding sysfs entry. This will avoid hangs when client tries to read in corner cases where the Timing Generator or the clock or IRQ gets disabled. CRs-fixed: 406752 Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit b6b7c0ef67d6bc2d82e4bbe63a946d3e8b815f69 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri May 18 11:00:11 2012 -0700 msm_fb: display: extend mdp debugfs with force blt enable Enabling/disabling mixer0 or mixer1 blt mode is a critical way to debug display issues, so add debugfs interfaces to force blt mode enabled/disabled with adb shell commands. CRs-fixed: 390953 Change-Id: I96a568f22398867571a796a863c098f749f5618b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bcafbe3fb1b630a844c4776f9bab4c65cd5cefa5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 4 15:55:40 2012 -0700 msm_fb: display: disable external instead primary vsync irq Since DTV is external interface of mdp, it should only control external vsync irq. Change-Id: I5f3a7087c7d4997cd40d4cc4907d8b054e37c6b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3eebb2e33570e32d11a757e493e12a8e79e08d6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 14:21:41 2012 -0800 msm_fb: display: add setting gpio-controlled backlight logic For the panels which backlight is controlled by gpio, add this logic in driver to turn on/off backlight, instead of calling board panel on/off functions, to avoid garbage display due to early backlight turn-on. CRs-fixed: 408728 Change-Id: I6f1b9bd78d96dbf1492e854edd59b05f8dec205f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5f91c9259a62b5dd2226bf46efc42152667b9e19 Author: Mayank Goyal <goyalm@codeaurora.org> Date: Wed Nov 7 16:58:09 2012 +0530 msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation.Add changes to support MDP_Y_CRCB_H1V2, MDP_Y_CBCR_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: Ibd1cb9803b8cf8bede28bc1d9830320dd505f5be Signed-off-by: Mayank Goyal <goyalm@codeaurora.org> commit a3b0e08b5c65b28c81a8a4511ebacd6985793dc5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 13:50:23 2012 -0700 msm: mdss: import venus stride alignment requirements In order to avoid mismatch in stride assumptions between Venus and MDP, import common header file with Venus alignment requirements and configure MDP surface with these. Change-Id: Idf849b3f476eb5e2d60fec190698efd487f035cf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c62976484ec5b681361a563d80fd5a5546287308 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Oct 20 14:08:41 2012 -0700 msm: mdss: disable fetch for all previous stages with is_fg The is_fg flag is used to disable fetch for all previous mixer stages, currently this only to disable fetch for base layer. Modify mixer setup logic to disable fetch for all previous mixer stages. CRs-Fixed: 413254 Change-Id: Ic0f101fe88a3c64db11cf43484f64f0f5e32d0d0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a21de442a3babb554d1a9a54eef2ef0944cbfa4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 9 16:18:07 2012 -0800 msm: mdss: disable overfetch done while scaling While programming pipe, src image size can be programmed when area outside crop rectangle contains valid contents in order to allow MDP hw to do overfetch of pixels while scaling. However for most cases in video playback the area outside the crop rectangle is only padding with invalid pixels used in order to satisfy alignment requirements. Since driver is not aware if padding is being used or not, disable the over fetching along the border to avoid unexpected pixels being displayed. CRs-Fixed: 404918 Change-Id: I145f34bcaef76a88116b6803eeaf4a5ffd19592d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20f0af9200e416d4b2f7949e2ecfd81182a5edc6 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Nov 13 17:34:12 2012 +0200 msm: mdss: fix enable/disable of gpio_panel_en in edp driver gpio_panel_en is always on even though driver is in suspend mode. The fix is setting gpio_panel_en value in edp_on/off function. Change-Id: Ib41681d31788b9a17a032e9b9e8dbe53eb9e4fa9 Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 6db43b58111cfd39eaee0d694c223cbc7461d16c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 15:25:37 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP3 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I18b05b8d2a65d489afc6e3274ec8dc7a5b9a5f9a Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b5292f0df4e06db2272c92d575e255f310793e3c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 13:54:39 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I983731481ea89bb7666be5f2a9f75a1e04fd963f Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 39e3fecb80703313621b22d2a8b5667a816265bf Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Nov 8 13:51:00 2012 -0800 msm: mdss: disable overlay operations while suspended When display is suspended all overlay operations coming from userspace should be ignored to avoid programming MDP when it's completely powered down. Change-Id: If43436915de33f89016ee2c85eb70bd57fdd2118 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b6d7e48e777e99e28dea95cb93debfd9d15d849c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 12:08:27 2012 -0800 msm: mdss: enable dithering for panels with reduced color depth In order to avoid banding caused by using reduced color depth as panel output format, dither can be enabled to produce an image which gives better representation of original image. Change-Id: I88a1be747332070d2b8b00dcbeb7e97936a47092 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6829d179d9ae8f3646a7a7204571ce15d35a997c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 31 17:06:52 2012 -0700 msm_fb: display: add option to switch mdp operating mode Currently, mdp switch operating mode without turning off timing generator. This patch adds option to have mdp switch operating mode (direct out and writeback) with timing generator turned off based on configuration of panel file. CRs-fixed: 405987 Change-Id: I92057757863218222d8647d33d57f6de9b3b3765 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a4567ac320abe5d74b3c7decdbddba4bd8c57463 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Oct 5 11:02:40 2012 -0700 msm_fb: display: skip one vsync event after enabling mdp and vsync clk Both mdp and mdp_vsync clks are disabled for command mode panel when no new frames are being played. When they are re-enabled if new requests come in, the first vsync event which is signaled by read pointer interrupt arrives in a random time due to the sync between mdp and panel, so skip it to maintain correct vsync timing. Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9bc28cf89a1619218fc1193409c4f614d1f826f6 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Nov 5 16:18:53 2012 -0800 msm_fb: display: add config of wb_mux_sel during update To make sure for each writeback play the reg is configured and avoid mdp hang. Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Nov 2 17:30:46 2012 -0700 msm_fb: display: empty pending queue during suspend for wfd Add the logic for wfd writeback interface. It already presents on other display interfaces. Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8befe49ddcd2952cfd60634153dc5caf440acb27 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 18:34:13 2012 -0800 msm: mdss: Add support for disabling HDMI while cable is connected Send disconnect and/or offline event to user-space when user explicitly asks to stop listening to hpd only if HDMI mirroring is going on. Upon receiving this event, user-space will trigger power off and HDMI mirroring will be turned off until user explicitly asks to start listening to HDMI cable connect. CRs-Fixed: 409880 Change-Id: I509a9a7ba04066e571b5f762be4804c7dd39c655 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 84639ef623c0f3301bda4893bae9eaa83454c222 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 14:48:03 2012 -0800 msm: mdss: correctly handle panel power on failure Check panel power on return code and correctly revert any interface initialization if any error occurs. CRs-Fixed: 417959 Change-Id: I4ad644b16efd51e5e8b3be1393c39195687feb8a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 074de641de0fab973a9efd9c3d57498453ef28ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:18:47 2012 -0700 msm: mdss: Serve HDMI Tx power off in a separate context HDMI Tx core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI Tx core. This change moves the power off sequence to a separate thread so that framebuffer close system call does not get blocked. Change-Id: I011c6612ec1b6be047e4adb39c1af48f6a105bed Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 2816e20c94fd5ee23c9784b3dbc3ac690fe1e88d Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:17:27 2012 -0700 msm: mdss: Clean-up hpd debouncing logic of HDMI Tx controller Implement hot-plug detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. Change-Id: I434a223a3d340d5759346e071d5350d412de2c20 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 3ca6a5691a83819c1b8c7123089cb85f5b4a58ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 14:58:28 2012 -0800 msm: mdss: Add error checking for incorrect state during HDMI power on/off HDMI power on should not be permitted if hpd is not initialized. Similarly HDMI power off should be skipped if power is not on. Add proper checking for above state conditions. CRs-Fixed: 417959 Change-Id: I9470c6d818adc403de05c25a7e96c8ab1c8a43fd Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1073b45c0b120f2ebbe1b5034d4088f9294b54af Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Oct 30 18:26:00 2012 -0700 msm_fb: display: fix frame buffer's ref count leak This patch clear MDP_MEMORY_ID_TYPE_FB from pipe's flag so that fput_light() and fget_light() can be applied to frame buffer evenly at end of pipe operation. Otherwise there has kernel unable to handle NULL pointer panic caused by frame buffer's ref count leak. CRs-fixed: 411394 Change-Id: Ib2b72e6277480b5ace23cda554be485d9d477b3d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f4796e811c00082db0414d4ad211aa3fcefd3a9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 08:41:49 2012 -0800 msm: mdss: Fix returning incorrect error number Instead of returning actual error number, current code returns boolean value of error present. Fix this issue by using PTR_RET macro instead of IS_ERR during error check. Change-Id: I61f0e57dd918c98ae4699993fa526e31654bebb3 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c30090ea5c28fce50a7c0ac829b9effd809f41e8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 11 15:30:58 2012 -0700 msm: mdss: add interlace video display support Interlace video contains two frames interleaved within same buffer. Since there is no hw support in MDP5 to display interlace content, support interlace video by taking even fields only for display. Change-Id: I92718d13eb7711d0c4252adf8751384719c862f1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 04d097801cc94a121751c9d5fde2ea458f3ae76f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 3 02:39:20 2012 +0530 msm_fb: hdmi: black out pipes on unset For HDMI as primary case, we need to blackout the pipes when they are unset so that any residue is not visible on the DTV during suspend. Change-Id: I2bf36f1002dd185c26fe6c4291977737daa73ae1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a5611de5f7d754d538706949bfdc9b8aa36fd0f0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:39:52 2012 -0700 msm: mdss: fix bus calculations overflows With higher display resolutions the bus calculations being performed can be very high which may cause overflow and unwanted results. To avoid such situations modify logic to perform calculations in kb and use 64bit data type to call into bus scaling driver. Change-Id: I7b975d750e316c6e79bcdcd54a8194c8ae40c155 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7fb9c21f04a8a87d2bf2e45ad1a5c9cd374f65be Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 11:58:29 2012 -0700 msm: mdss: replace disable irq with no sync to avoid potential deadlock Potential deadlock can happen when disabling irq after receiving vsync complete event in display if at the same time MDSS irq is triggered, at this point disable irq will hold spin lock which irq tries to get and will not release because it's waiting on irq to be disabled. This scenario can be avoided by using disable_irq_nosync instead to avoid locking on irq to be disabled while holding spinlock. CRs-Fixed: 416304 Change-Id: I1e367ac2b5d7b0ed7d1c15efc8d29a6ffa9fea5e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5328e4976369d5b4fc76183720168b58bdffd6c7 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Oct 2 15:03:44 2012 -0700 msm_fb: display: Enable scaling bit while setting x-flip bit To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d8bad5aaad6a19d65ae8d63451044455aceca46a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Aug 20 11:58:42 2012 -0700 msm_fb: Correctly setup splash screen flag in MDP probe The continuous splash screen flag was sometimes not correctly setup during MDP probe causing corrupted grey screen on resets. Crs-fixed: 389531 Change-Id: Id88d8a239ccfd1cbb5ce0f4f3db68756182f5ff9 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6ced23c4d1863316a72d7143a60ccfb547282940 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Oct 25 16:24:54 2012 -0700 msm_fb: display: adjust refx100 parameter to avoid tearing refx100 is used to calculate how many mdp_vsync clocks to complete one line in the panel. This info is used by mdp h/w to sync data transfer between mdp h/w and command mode panel to avoid tearing. CRs-fixed: 379223 Change-Id: I3880a350b77cb8165745ea343b1525e84100a62d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 66744e7a76bfa3f56818bcaa2d430468e50a1922 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 31 13:29:48 2012 -0700 msm_fb: display: force mdp clock off at suspend At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ef5abb017cee4c6bbacb6d064764bda8b4a1a0c5 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Oct 31 20:40:17 2012 +0530 msm_fb: display: Correct dtv pipe black out This change corrects the register values to black out the dtv base pipe. Change-Id: I80fefab3cc6dd006edbb673f41ccfe983af2cc3a Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 19a4f321dca81cbee29c934a9584412614a444c0 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 16:48:18 2012 -0700 msm: mdss: Enable stereo audio through HDMI Tx Add support for Stereo Audio in HDMI Tx driver which sends HDMI stream on/off notifcations to audio userspace using hdmi_audio switch node. Change-Id: I2c8e756adbbe2f9230dfb7735774ee194e32e446 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e2c2859bac8fcf41d39ba9cc614d028f0e1573ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 16:01:15 2012 -0700 msm: mdss: add smp specific lock SSPP lock is shared between pipe allocations and smp block allocations, this can cause possible circular lock dependency since usage is different for these cases: - During pipe allocation SSPP is held when acquiring pipe lock - During SMP allocation pipe lock is held when acquiring SSPP lock For this reason, splitting SSPP lock, and since pipes and smp locks manage separate resources sharing is not needed. Change-Id: I54a0997fddef893b99a4b01d3e3f62382e1e0ecf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ec339e96700b98faa170b06f73678f203c237291 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Oct 29 16:19:03 2012 -0700 msm_fb: display: change the location of wakeup timer call There are two pathes (pan display and overlay commit) to commit display buffer, so change the location of cpu timer wakup call to the common pipe_commit function to make sure cpu get waked up around vsync. Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Change-Id: Idbe6049d740a7e17a6a90e28566f7a9c74e348f2 commit b360fd40a5214595d7e9970431ef83653b76b13e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Oct 27 13:14:11 2012 +0530 Revert "msm_fb: display: suspend-resume on HDMI" This reverts commit 30befc28305440f30770a6545839fe4b55ee2207. Revert early suspend implementation for MPQ. Change-Id: I028a7f0d6997d2d09d718d3b5072466d28a95b59 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5f6d8314b2ad063da8a8ebf71fef8c713f76401b Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:27:55 2012 -0700 msm_fb: display: fix dsi_busy_wait race condition After pipe_commit() released mutex and before kickoff happens, There has possibility that dcs command may start transmitted. This patch add dsi_mdp_busy flag to fix this race condition. Change-Id: I0d9a81cd0719085c91c03386117261ad3bb6b182 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 366ca5c34117fde6329ea81112068d1dc177ff70 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:26:31 2012 -0700 msm_fb: display: add video mode dcs cmdlist support Add video mode dcs command list support. This patch make sure dcs commands committed while dsi video engine is busy so that dcs command will be transmitted at beginning of next BLLP. Change-Id: I11b0214ee10f3b1ef33b1da4c8e577800068cb06 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c405afa88ef5139132795757a7446a7081d92c38 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:23:10 2012 -0700 msm_fb: display: add sysfs and clock control to smart panel This patch allows both vsync enable and disable are controlled by framework. Driver reports vsync event to framework via sysfs. Meanwhile, mdp related clocks are enabled by framework at vsync enabled request and disabled by driver if there is no any display update within specifid vsync period. Change-Id: Ice5be3a6db5930b95bdd2f718d9256bf73936e23 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 64892009d43ca724c5ee1be5f7db6ad1f00cda6c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 25 09:07:58 2012 -0700 msm_fb: display: fix iommu leak during base layer swap Retain RGB1 iommu information during base layer swap so that iommu used by RGB1 can be freed back to pool later. CRs-fixed: 403277 Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bbd754882e8ec1a52ebba237e02ba8c49b00f135 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Oct 25 19:30:33 2012 -0700 msm: mdss: Fix error roll back sequence during core on. When core power enable fails for some reason, current code disables hpd power in the roll back which is unnecessary. Correct this mistake. Change-Id: Ia5ed63edb017ade44950058c9d6071e8eb5d7884 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 693e87a8e357add7444dbad12cb265deaa90d3e2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Oct 2 15:08:56 2012 -0700 msm_fb: display: wake up system before vsync for cmd panel Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 407e03a33eaa0880b87a2a6a7bf43e3516cb2562 Author: Asaf Penso <apenso@codeaurora.org> Date: Thu Oct 25 15:03:21 2012 +0200 msm: mdss: add eDP backlight Add configuration for setting different brightness levels in edp driver. This is done according to lpg channel and period values from devicetree. Change-Id: I4e9074d777102193d7678f7aac565be3a5a551df Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit b640c29b8b3b4a0733924a6e4ad0665d5218a7dc Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 20 14:14:40 2012 -0700 video: msm: Send ETIMEDOUT on update-notify timeout Send the ETIMEDOUT errno when the update-notify wait_for_completion times out. This is required to be able to properly handle the different failure cases in the functions that use the update notify ioctl. Change-Id: I0e46b0b0c89f6b2e5beb3fc0ed18ebbb75dfa434 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a3020ffbd3720f3aaba439b593db5a85dcb50bc0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 22 11:33:23 2012 -0700 video: msm: Wait for latest histogram data Old histogram API introduced behavior that calls to collect histogram data would return a frame's histogram once, and would wait until new data was available if needed. Follow old histogram behavior by waiting when histogram has old/not ready data. Change-Id: Ia1b6b5b7a5b63a570a641b5460eb8e0d72c458c8 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a80d082eeb5ad6a024bea9992d8dc74406c37752 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 15 18:05:14 2012 -0700 video: msm: Ensure histogram is fully enabled before kicking off Histogram hardware needs to have histogram enabled before kicking off histogram collection. Add state variable to track if histogram is ready to collect. Change-Id: I71380e89de1a61f446802f791e917f57d14f10a2 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 6011950da33ac430c1c6b677c25423d07f8e8c95 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 28 12:03:28 2012 -0700 video: msm: MDSS: Add Update Notify Add update notify ioctl to MDSS driver. "Update notify" is able to signal userspace processes when there has been a screen update or if there has been a 22 second period without screen updates. Change-Id: I90cf7f7e6650236186452c1a9f86850731ad785d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0af12fc4577d1dda6a0209d1a35cccaa716721b2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Aug 27 14:52:39 2012 -0700 video: msm: Add backlight scaling for MDSS Add backlight scaling functionality to the MDSS driver (includes the fixes with regards atomicity of backlight scale and level updates). Allow for power saving algorithms to modify the intensity of backlight without introducing race conditions caused by competition for backlight level. Change-Id: I97ae024055ca614648ffe2aeae09cc350d2577ec Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97ea71b93d1148c9127e59ba19a71f67b4808c2e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 27 11:44:15 2012 -0700 msm_fb: display: check pipes queued before enter wait_for_completion Timing generator will not be turned on if there are no pipes queued. Therefore wait_for_completion may never be completed if there have no pipes queued. Change-Id: Iafba086e4ba20b31470c9fd385c4f5c474ecadcf Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0edc1cb98a8af7a7c650c7f690e510e7c01b9b1 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Sep 24 19:52:16 2012 +0530 msm_fb: Enable H/W cursor for External Interface Add H/W cursor support for MPQ uses cases which use external interface. Change-Id: I5d1f71813769c7e86e576888463bceaa7ad37b68 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit c579c8770c6c0a9e823cc4a7d1349ea4e3d99d95 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 17:36:38 2012 -0700 msm: mdss: fix rotator hang for xrgb formats XRGB formats require constant alpha to be setup when writing back to memory. Change-Id: Ie819b88578a85923d1cde7efe54ca0819c59a611 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6ba5f1fb067410d097f973f311bfcc9eded6a1bb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 18 11:21:23 2012 -0700 msm_fb: display: add wait4dmae for hdmi as primary display When hdmi use as primary display, pan_display is used to update screen. This patch adds wait4dmae to pan_display to avoid source tearing on hdmi display. Change-Id: Ied31419590c51e4bc2218ee8dfdc7d5221c996dc Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7ef177524d89ce9bbd84bf0a54c28c335c2a2b14 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 11:00:19 2012 +0200 msm: mdss: add support for different panel formats Some panels have different color format requirement such as RGB666 for EDP Panel. Add logic to detect panel resolution based on panel bpp set by panel driver. Change-Id: I4cad59033b8b4f807c2ed38b00451aab89737bb7 Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b2372aeb5c33f7c49ad3133238b799ba9e60480b Author: Gagan Mac <gmac@codeaurora.org> Date: Mon Aug 20 19:24:32 2012 -0600 msm: msm_bus: Add support for 64-bit bandwidth requests With 8974, bandwidth requests are exceeding integer size. Update ab and ib to ensure values over 4Gbps can be requested. For 64-bit support, there are four changes in this patch: Changes in the bus driver structures and functions to update ab and ib values to uint64. Updates in client drivers to ensure that the bus APIs are called with the right types. Updates to the device-tree. Device-tree nodes don't provide a clean mechanism to read a combination of u32 and u64 variables within the same property name. So, the ab and ib values must be specified in kbps instead of bytes/sec from the device tree. The bus driver function will convert the ab and ib values read from device-tree to Mbps. Change the existing property names to make them consistent with the convention used by the new property name, which abides to the Device Tree convention. Change-Id: Id37407c349a9cea17f6621d3bef2401b856f7b7d CRs-Fixed: 408786 Signed-off-by: Gagan Mac <gmac@codeaurora.org> commit 327a968551e890838f471ce649748d03861465a3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Aug 23 17:08:25 2012 +0530 msm_fb: ADD AVTimer info to the vsync event for DTV interface MPQPlayer requires Avtimer time stamp when every frame is rendered. This change enables sending AVtimer info with every vsync for DTV interface. Change-Id: Ib36c9a152bf3454be984fed765ad268f9435933b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 523d93ac63dc5a0ae9b5c7d24278ca48fbb923d4 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 22:47:03 2012 +0200 msm_fb: mdss: Add EDP physical layer configuration support Add code to configure the enable/disable and PLL settings for the physical layer of EDP. Change-Id: I6e15e41fdd23cc5a4855a3addf85050ade802d8d Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 68b3fc5593916dc6d4b47d2434776c9dd91f77a2 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 21:47:59 2012 +0200 msm_fb: mdss: Add eDP controller driver support eDP controller is one of the output interfaces for MDSS. Add support for eDP host controller driver which runs in Video mode only and eDP related changes for msm_fb panel driver. Change-Id: I0a150f8d712f57bdfaee9051b2893e2910195567 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 4fc9350b124ded06f90c43410c2c0b512681c0db Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 09:03:18 2012 -0700 msm_fb: display: return fail if pipe still staged Pipe is not un-staged from mixer when it is unset. It expects a pan_display() to un-stage it out of mixer. Return fail at overlay_set() if pipe was still stage at mixer. CRs-fixed: 399193, 393979 Change-Id: I562f6e133bb239b30f4f53669dbf1cc5ddf80d02 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4aa5b44e20ba129a98fedff1cc6ea4a9495f0ebe Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use MDP_Y_CBCR_H2V2_VENUS as the output format for writeback For Wifi Display use case, the Venus variant of NV12 is required since the Venus core expects it in this format. Change-Id: I68ded4373212021486bc6b7b89514fdecf05d4da Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 636779a7ddbe69a6f8be39cba9755e352fce39b4 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Oct 12 19:06:16 2012 +0530 msm_fb: hdmi: Proper update of ACR CTRL Register While changing the audio sampling rate, the older data in the control register needs to cleaned before writing in new data to avoid mixed or wrong data writing. CRs-Fixed: 405772 Change-Id: I95d0807ea8cf544e4a0c8caed00de6cd60352efa Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 35c724bf61ef9432cd467152dfeab25e517b50a7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 10 11:51:20 2012 -0700 msm_fb: display: add dtv base layer swap Add dtv base layer swap between border fill pipe and rgb pipe to support hdmi as primary display. Change-Id: I127a301385d5d83e5d06507869132c6e124cc94f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0e53b6627814d52e3cf5604e0793f4780ec4a9c1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Oct 4 20:29:52 2012 +0530 msm_fb: display: Make sysfs read request interruptible Change blocking sysfs read request to be interruptible and protect vsync timestamp value to prevent corruption. Change-Id: I510d84134b0ab70d17729e8c53c91fa926035142 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 97104cc8bf4881f41dfd79e6bdc31383c5ccabfc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Oct 3 17:50:39 2012 -0700 msm_fb: display: extend mutex protection for mdp pan display When mdp commits a buffer to play, functions inside pan display, e.g. mdp4_overlay_mdp_perf_upd are based on the current state of play, so extending mutex to the scope of pan display to avoid race conditions. Change-Id: I2e55567fd21de3738be066a2dee298d8122f12a3 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5b567514a5cebae7b6fdabd0b94c29efa4aef18f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:50:16 2012 -0700 msm: mdss: fix rotator session not being closed correctly User space expects non-negative number as session id, update rotator mask to avoid making rotator session as negative. When rotator is closed, need to recalculate bus/mdp clock numbers. Change-Id: I6c0e3bfa5394fb64b78fb47be1f24462e320916d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6e923f52e81757c6fdb03fe4184f79be7b4068ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:30:03 2012 -0700 msm: mdss: update performance calculations to include border color Current clock and bus scaling calculations consider only source surface pipes to set clock rate and bus scaling factor, however since MDP also generates pixels for border color this area also needs to be considered for final clock and bus scaling factors for data paths that use layer mixer. Change-Id: I9463c01dfd0b7a301797bd036f563e15d5195dbd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 35143f7156a7f651f2cfcc511b2ebbb12b2ceb02 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Sep 13 10:43:15 2012 -0700 msm: mdss: move unstaging of overlay surfaces to display commit Perform cleanup of surfaces destroyed with overlay unset until next display update. This enables a smooth transition in case multiple surfaces are unset before next frame update. CRs-Fixed: 406645 CRs-Fixed: 406553 Change-Id: I843c7f11fc943d8351b7408116101ba20f25d116 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 70236f7a01bcb9278b99f2df7b8acd4d1cd323d2 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:12:14 2012 -0700 msm: mdss: remove display commit during overlay play All display commits happen with pan display in order to have a single sync point when using multiple pipes, and avoid blinks that can happen when updating surfaces out of sync. Exception for this case is writeback where commit is still needed, keep this implementation until this exception is corrected from user space applications. CRs-Fixed: 408105 Change-Id: Ib40c4872f43e6a939c45624677b2ab1f64a3b31e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 944b88e82e9baaaeb52a2ec38298ed2e48c33f1d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:06:21 2012 -0700 msm: mdss: implement commit ioctl for display commit Commit ioctl is used to update contents on display while avoiding console_lock done through framebuffer pan_display path, which causes additional delay on display pipeline leading to flickers on HDMI. Change-Id: Id3522d322ba08b110d540e10214cadfbbb0bcc25 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d74db5fcf24a223570137087aa5632593b315fcc Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 5 09:05:58 2012 -0700 msm_fb: display: wfd with vsync driven frame push To improve performance, hardware vsync event at mdp driver is passed to framework so that both composition and frame update are aligned at vsync event. This patch will upgrade wfd to incorporate vsync driven frame push in consistence with other interfaces. Change-Id: If088826ec387446301f1f6acc311d909edb04163 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f0d08071a4e97c9018b8e8def498e07720201da8 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 18 17:32:15 2012 -0700 msm_fb: display: add checking y direction for alpha drop Alpha is dropped when scaling with non repeat pixel method. Both x and y direction of scaling need to be cehcked for alpha dropped. Change-Id: Iba0df5a85011f179199c13ffdebac911e5c14c3c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6745082aec2b97f07dcfbc49ea7b8b79099f4d13 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Tue Sep 11 18:04:34 2012 +0530 msm_fb: Use background alpha for all destination alpha enable cases Use background alpha for modulation in all the cases where source alpha is not available. CRs-fixed: 366834 Change-Id: I300c04181ee3fa4f305a26a3e17e7eac2572564c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit bd556dc51ccf32a7ddc8d435d31f39e981815f8f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Sep 21 14:11:30 2012 -0700 msm_fb: display: check base layer pipe at irq handler There is a corner case when overlay and dmap interrupts are fired before base layer pipe is allocated. Therefore Check for base layer pipe before performing any operations. Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7d136bef71281855cd224ccc967e4e95286f5356 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 26 13:10:42 2012 -0700 msm_fb: display: add fput_light to frame buffer Frame buffer's (fb0) ref_count need to be balanced. overlay_play() increase fb0's ref_count (fget_light). This patch will decrease fb0's ref_count by calling fput_light after commit. Change-Id: I34ea738bf21d0858b7361ec8e289464a217a1231 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f08f2387cdc5a2d365c33bef1fe2a87b6c5911c3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 4 16:21:33 2012 -0700 msm: mdss: remove pan display no memory warning There are some framebuffer devices that don't allocate any memory such as HDMI or WFD, warning for no memory is not necessary and it just floods kernel log hence removing it. Change-Id: I8f9ba1cda1f55c741b99d462adf74531d73aaeee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a4c377fbf133bd53913d451b478c177c271ab365 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Sep 28 11:13:49 2012 -0700 msm_fb: display: remove background invert alpha option for alpha drop pipe When the blended background pipe has dropped alpha and it is going to be blended with foreground pipe on the next stage, MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is 0xFF, so we need to use this alpha value to show background, instead of its inverted value. Change-Id: I1fe0572f9bb54db6280bcc44117a21b8c0d8b07a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 19:31:33 2012 -0700 msm_fb: display: empty pending queue during suspend Overlay_play() adds a pipe into pending queue and pan_display() will commit those pipes to hardware and empty queue. This patch will make sure queue is empty at suspend so that no unexpected pipes will be commited to hardware by pan_display() at resume. Otherwise, iommu page fault may happen. Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a77eca6cee55531e81e21d83b474563f9c143e77 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 13 13:22:04 2012 -0700 msm_fb: display: add pipe commit ioctl currently, pan display serves as pipe commit. However it may spend long time pending on cosole_lock() which cause flickering on HDMI. Add pipe commit ioctl to allow commit from overlay in addition to pan_display. CRs-fixed: 391564 Change-Id: I163b5d96f727b70b4d5693e9a414b59339818998 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ee79b635fc78d5abe40e3918f2bf6f754f3516da Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 25 17:04:18 2012 -0700 msm: mdss: carve out memory for framebuffer Use carved out memory allocated exclusively for framebuffer instead of using up memory from ion pool. Change-Id: I4b248a21380a3ef737fe2fd8eed6de9747fe47c7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d7a09f0c134c61f3d3dd2239073c3363e4306858 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 2 16:48:16 2012 -0700 msm: mdss: remove play_cnt reset in overlay set play_cnt is used to manage currently displayed buffer, this value is incremental and should be initialized only once for new pipe creation, but overlay set can be called after pipe creation to change params. Remove reset of play_cnt to avoid reset on subsequent overlay set calls. Change-Id: Idef90a6123c4e1a9e8b1ab963bf78330cdd912bf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ac990ba5e32295c9efbffb56b7c659efa6cae6d0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 13:57:51 2012 -0700 msm: mdss: allow dynamic resolution change Modify initialization function to take changes in input paramaters including resolution and format instead of doing a one time initialization. Change-Id: I01c575fd1d957218296e658b3b4b8d72cd138614 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b4b75a59b665c0d1b3aa14a41fd81f754d4f093 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:25:22 2012 -0700 msm: mdss: use half of panel width when using dual pipe MDP layer mixer only supports up to 2048 width, if the panel resolution is greater than this dual mixer needs to be used. Setup each mixer width as half the panel width instead of allocating max width on left mixer and use left over for right mixer to have better load balancing. Change-Id: Ibc01591e2e6d5e5f98e81dfba766493abd9895a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6c6a597e45a2d7daafdfd2c63832cce638334d6f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 24 10:51:13 2012 -0700 msm_fb: display: remove extra dmap irq disable Both irq enable and disable need to be called symmetrically. Remove an extra dmap irq disable call. Change-Id: Ic51003c50431ebe46a9fc540163cda77a1c91797 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b453fc7adc6c02e0f23550c5703bf93f8f6bfea Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 28 15:22:37 2012 -0700 msm: mdss: disable framebuffer memory check when not allocated HDMI and WFD don't allocate any memory for framebuffer, in this case there is no need to check for available framebuffer memory. Change-Id: Id3fc6279e1b2a5d4b96d3b85e29ba6865a4dd38f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 105ef65f2db0be51711a5d3fc293064da0a38e2b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:26:05 2012 -0700 msm: mdss: fix height align for venus format Venus format expects luma height to be aligned to 32. Change-Id: I1ccd5ddb91d1067a68b576891ddf4d73360108ba Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c87b83203c2069c71a732e3164357b02649c12dd Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Sep 28 18:48:15 2012 -0700 msm_fb: mdss: Fix dsi controller reset sequence during dsi initialization Move the dsi_sw_reset from panel ON sequence to controller initialization function. Enable clock lanes and disable controller before doing reset. Change-Id: I570615a931214021360070cd1cfea4ed3b6812d5 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit ed1430f0336a587a63729d2b698f9e23de46c95d Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Sep 12 17:00:27 2012 -0700 msm_fb: HDMI: Remove HDCP Kernelconfig Remove the kernel config parameter for HDCP since enabling or disabling HDCP will now be controlled using a corresponding module parameter. Change-Id: Iae23b8fa66ca75d99423547e77f850f3c86615ee Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 16229f5a1ce7007eb44dc1d43482f85c03e07f57 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Sep 7 16:08:10 2012 -0700 msm_fb: HDMI: Driver changes to support HDCP module parameter This change removes the need to use HDCP feature flags in the HDMI driver and adds the necessary support to configure HDCP feature based on a module parameter. Change-Id: Ie0eacc5b447230927cfdedfcb979c22d60e81981 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d8d660a6011c903fef1d9c1a58ea578e6a58e1ee Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Sep 11 18:10:33 2012 -0700 msm_fb: HDMI: Add module parameter to disable HDCP This change adds a module parameter that can be used to disable HDCP at runtime by specifying hdmi_msm.hdcp=0 on the fastboot command line. Change-Id: Ifad5da9fcb86fb4ed663a5ef2bb14fe4dafd241e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 51d631dd2b8a301828b4780f6496a6fe5490e454 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Sep 18 20:34:16 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP3 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Change-Id: I22cfbd68c8bcbe4a47e94074393f1cbf79920c58 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d473df4fba1417b4d7d429849af2a4243869e55a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Sep 7 00:37:24 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP4 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Also, for smart panel, wait4vsync is removed. Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit a8d45ced76c79333af546ad63ae31972aa00b109 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 18:42:29 2012 -0700 msm: mdss: Enable hpd for HDMI Tx controller Enable hot-plug detect circuit of HDMI Tx controller to sense connect and disconnect events of HDMI cable. Change-Id: I4e5614d32f5c9885f23060d68ad5b6a72a045177 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4f56d21f84a2e2adea6e83b8c75501904feebf7c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 18 15:17:07 2012 -0700 msm: mdss: Fix EDID read failures in HDMI Tx controller DDC data channel is used to read HDMI sink's EDID information. Fix the request length for this read transactions to prevent EDID read failures. Change-Id: I74b2ce344cdd08721a78641a7553c85927a96831 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1e88b6e0ecdb4485d21e94ad3e87c1caabdcde37 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 15:54:25 2012 -0700 msm: mdss: HDMI Tx clock clean-up. Generalize and move HDMI Tx controller's clock access mechanism to mdss_io_util so that other mdss modules can reuse it. Also correct the name of iface clocks. Change-Id: If0ed2c4244a9a0fcdb819f63010555d968a0b036 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4e055b701f5600e391ed5d440b90fb1958924c49 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 14:10:48 2012 -0700 msm: mdss: Debug enhancement for mdss modules Move debug log macros to mdss_io_util so that all mdss modules can use the same mechanism. Change-Id: I960fc394c60b74d694a81ad636b7055a224a2c6f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 60a6b37db0caeb736291f0eccd99baa307d60a86 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 31 18:20:45 2012 -0700 msm: mdss: Provide generic io access mechanism to all mdss modules Generalize and move HDMI Tx controller's io access mechanism to mdss_io_util so that other mdss modules can reuse it. Change-Id: I097af956706dcbf2e9fa1f6b5983a550a462fed1 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e782ceab26e38590cd49a9bb273da1dbf1984ccd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Sep 28 11:49:26 2012 -0700 video: msm: Enable mdp clock for histogram and histLUT Enable the mdp clock for histogram and histogram LUT to ensure that the clock remains enabled when they are being accessed. Change-Id: Ic744f2ee96b64442f23ba19aa1c38552c0dad83a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 61832135cad75ef082a905fedb30d835c85611b5 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 13 17:41:46 2012 +0530 msm_fb: Return pan_display call on Vsync interrupt Till now, the pan_display call returns on DMA_P_DONE interrupt. For command mode panels, the DMA transfer starts only after the DMA engine receives a TE signal from the panel. Hence, return pan_display ioctl on vsync interrupt to improve performance. We still wait if the previous DMA transfer is not finished at the beginning of next pan_display. Change-Id: Ie92bc000a5842aa02a77a08b6bafdc8472bbebbd Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit f6044334ee63fe9553f5cce8aa65c172c88e1175 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Sep 20 16:57:51 2012 +0530 msm_fb: configure LM1 and LM2 CSC coefficients with RGB2YUV for WFD 1) Initialise the LM1 and LM2 coefficients with RGB2YUV as WFD expects these coefficients to be programmed. 2) LM2 is available from MDP ver 4.3, fix conditions accordingly Change-Id: Ifad2be0fb5c3c96fa1515e114097a87d250fd62a Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit ce328861aa1f4fa489e9abfc9d1e02b13af2ba47 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 25 18:52:00 2012 -0700 video: msm_fb: Ensure backlight is scaled atomically Ensure that when backlight scaling ratio or backlight level is being changed that the operation execute atomically. This prevents a backlight level change from being overwritten when it interrupts a backlight scale update. CRs-Fixed: 404017 Change-Id: I708513cfcec558c5d65f21f189dd52331fdf0f4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0f523bdb25b2af4f09e79eb58d3daee3775851d2 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 11:14:03 2012 -0400 msm: display: pp: histogram collection for mdss MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support Only read the histogram data when there is a new display commit Only generate the next histogram collection when there is a display commit Cache the histogram data in order to respond quickly Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit bf5fb4c17c220a91160e48a2ca65e709c0a35511 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Aug 19 14:41:01 2012 -0400 msm: display: pp: gamut mapping support Support gamut mapping via pp ioctl with logical display id. Allow changing processing order with pcc. Change-Id: Ia37afbe40b73c08fd8760bae84307889280368ce Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 7fb85777173a3048765a52fc1ec4a3178c1fb2a9 Author: Ken Zhang <kenz@codeaurora.org> Date: Sat Aug 18 14:51:33 2012 -0400 msm: display: pp: backend dithering support Dithering configuration from PP ioctl with logical display id for mdss. Change-Id: I4c8409b253dc1ab5625f342f45f61246d538691b Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit b9498c688a4a20d707233dda585a96b8e3681666 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 17 14:20:25 2012 -0400 msm: display: pp: enhance hist lut support Support histogram enhancement lut control for logical display for mdss. Change-Id: I915e1f1ca0ba1c53b8ce5b627a8d10cc15ebbf76 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 16e43d6c628bbfb14ba3a7e5024f60b9d216f9f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 22 17:14:19 2012 -0400 msm: display: postprocessing: argc lut support Area reduction gamma correction support for mdss. Support logical display id via PP ioctl for argc setting Change-Id: I8d1dedc016809f73de0605ea68e6a1bfda580648 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 824758e1c1d780014b4d404be9d7f85cb414fb46 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 15 11:02:21 2012 -0400 msm: display postprocessing:igc lut support Inverse gammam correction display support for 8974 Use logical display id via PP ioctl Change-Id: I9f1bec84a401f079690ecfd622a2e5f0f8307ff6 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit ea6a09511a1d812f3b0f836dac9193900ccb9a3d Author: Ken Zhang <kenz@codeaurora.org> Date: Tue Aug 14 15:11:39 2012 -0400 msm: display: pcc configuration Enable 8974 polynomial color correction support Cache the setting via logical display id, config hardware in the next display commit Change-Id: I11e3d2036c2ab8de881d394d53c6098932f810b5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit ad6db3d66cb2f826f4f223898012d7d7aa6ca645 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Sep 26 17:57:34 2012 -0700 msm_fb: mdss: Remove spinlocks for set_rate and clk_enable APIs The clk_set_rate APIs should not be called in atomic context. clk_enable APIs doesn't need to be in atomic context. Add code to remove spinlocks for these clock APIs. Change-Id: If5e543135bda681ee8ddae35ab91288f535a9e9a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit aaacec6420069ba21992ddd39db991b3717d6436 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Sep 20 16:59:10 2012 -0700 msm_fb: Fix display corruption with continuous splash screen feature During boot up, we observe random lines on screen between the splash_screen image and the android animation. MDP clocks were turned off during bootup. Fix this issue by enabling the clocks when this feature is enabled. Add check to see that the video mode engine is not busy before turning off the dsi controller to avoid any underruns. CRs-Fixed: 399634 Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b05e8b1ec779ab5cc94f0847a99baa4d97eb4e10 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 13:16:05 2012 -0700 msm_fb: display: turn vsync irq off at suspend Turn off vsycn irq at suspend to prevent vsync irq firing before vsycn enabled ioctl called at resume. Change-Id: I2428cdeb5cf7008e50f6d8dabfad52416db2fff7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 911b4b702a63fbd241863966cad45909e40e4665 Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed Sep 12 14:42:50 2012 -0700 ion: change ion kernel map function to not take flags argument Buffer flags are going to be specified at allocation time rather than map time. This removes the flags argument from the ion kernel map function. Change-Id: I91589ca7b1ab142bb5ac8e6b0f4c06fa1305f23a Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 7d72bad55a0e03392d81eee77a9a8c9df6b73a9a Author: Hanumant Singh <hanumant@codeaurora.org> Date: Wed Aug 29 18:39:44 2012 -0700 ion: Port heap mask change to ion Heap mask field passes as argument at allocation time to specify ion heap. Change-Id: I8881dfc491dc0f8f70581ad97b35756a6a33dd6d Signed-off-by: Hanumant Singh <hanumant@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 5e0fcdbf8b22bc9637413de9cd0592c159dd4e8f Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Sep 12 11:10:26 2012 +0530 msm_fb: Make Vsync IOCTL during disable sequence as NO WAIT Change to make the vsync IOCTL no wait during the disable sequence. This is to increase the performance. Handle the synchronization of vsync interrupt using state variables in drivers from now. Change-Id: Ia5ec14493f233a95f21d01ea627200a6c278239f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 57e2bed7fdf998d9dcb1a3bea98f43d75c7cf3a9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Sep 24 11:39:29 2012 +0530 msm_fb: display: Add support for vsync driven composition on 7x30 This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time for 7x30. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: I2acb83f871f16c2278dc10cb958580a2826efe70 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3545573720822ce97ec37586f10fdf74a6d4f090 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Sep 24 22:07:47 2012 +0530 msm_fb : display : Block RGB downscale in MDP 4.0 and 4.1 Downscale is not allowed on RGB pipes in MDP 4.0 and 4.1. Hence, fail the OVERLAY_SET ioctl for such configurations. Change-Id: Ia18de77e78b84ec5f10a03fe9b48ef0821222e84 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit b54b6d4974f0a7c42e66502fca3644fe3ae406be Author: Ken Zhang <kenz@codeaurora.org> Date: Mon Aug 13 14:49:52 2012 -0400 msm: display: csc configuration support via overlay Implement overlay pp csc configuration for mdss Reset the play cnt when MSMFB_OVERLAY_SET is called Change-Id: Ice2e3700a275c5375ee4939bd3484b7ee5def898 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 08065c0bd558140a26622f9bb15c8649a8333723 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 15:48:31 2012 -0700 msm: mdss: implement early suspend api Use early suspend API for suspend/resume to allow display more room to turn panel off/on before system goes to suspend mode. Change-Id: I70b8b1055c30b940eda49ebad0db341259e903b4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e977b389d047b630be6178b6f2588dc339498b2d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 16:28:16 2012 -0700 msm: mdss: cleanup suspend/resume logic Remove references to global variable by using driver data to access mdss global data. Change-Id: Icaedf0fffe22b6d375df8f87f555b415101c6628 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1121a7fab5548575f1a30388c5b1b0f5b773eb42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 17 18:52:56 2012 -0700 msm: mdss: fix vsync ctrl logic during suspend/resume Sometimes vsync ctrl ioctl can happen before panel is on after resume, in this case driver needs to remember state of vsync ctrl and apply after resume. Change-Id: Ia583bd9e3a858c5972623eae0512fa27da8452e1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 01b0d13ad1071385bb938ee69d268f799b7de6f5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:26:35 2012 -0700 msm: mdss: fix mdp suspend/resume sequence Free overlays used before panel off sequence to ensure source surface pipes are properly detached from layer mixer. Change-Id: I712bfc1961607e09dcb976e4888db1885de09871 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4a1fb9ce546b946a184601cbeb3a278dd351a0df Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:38:36 2012 -0700 msm_fb: mdss: Fix suspend/resume for panel driver Avoid disabling video mode while sending OFF commands. Add delay between the display reset line toggle mechanism and GPIO display enable API for proper reset of the panel. Modify the PHY regulator control configuration sequence for proper reset of the physical layer. Change-Id: I2c890d52d773faab6020267121ea4557a59bd108 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 37e723cfad97be59d5a28e59220f9dcafe24ce32 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Sep 5 15:43:02 2012 -0700 msm_fb: display: wake up system around vsync To avoid frame drops due to power collapse, wake up cpu right before vsync. Change-Id: I63385eb329ae5e74cbac5256823fd3a213e0a0e1 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 42f4dae926438b40ac3ba1a48f54c1fad31dc125 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 26 22:31:06 2012 +0530 msm_fb: Reduce the display wake up time for NT35510 panel Reduce the display wake up time during resume by reducing the sleep values of the DCS commands during the panel initialization sequence for NT35510 panel. CRs-fixed: 392321 Change-Id: I6b55e48582a97adc451105802f5b2ca826767954 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 7e73b56cb67779bc700938acbb226dd99d361882 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 11:26:57 2012 -0700 msm_fb: display: free base layer pipe at adb stop Base layer pipe need to be freed at adb stop so that same pipe can be allocated at adb start. CRs-fixed: 390644 Change-Id: I948bb27687cfe1c96cc3b071b7bb9bb84b2c52c6 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e5f3b4ff8a4a0d980e02fa38c2b70fec7095e79 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Sep 10 09:40:44 2012 -0700 video: msm: Ensure idle state before enabling histogram Disable interrupt, set state flags to false, cancel histogram collection, and clear the workqueue before attempting to enable the histogram. This guarantees that this is the only configuration of the histogram running. Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 2dd5234c094157bf77781b8646ac9ad114f819b0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 6 12:03:29 2012 -0700 video: msm: Defer histogram reset to workqueue Currently, when an underrun occurs, a reset request is sent to the histogram hardware. This has been observed to cause a hang in the histogram collection cycle. The fix for this hang is to instead rely on the existing checks for histogram validity in the histgram read worker. When the underrun occurs, the histogram is invalidated, which in turn causes the histogram read worker to reset the histogram collection when it attempts to read its contents. Change-Id: I66d33ddedef76fdcb6c4a3d8095c0e8ca695e33d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 9218ac41cc42b55de227d7b967e15395feff89ca Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Sep 17 15:33:10 2012 -0700 msm_fb: MHL: add fwd declarations If MHL feature is enabled from kernel config compiler throws errors. This is due to the re-ordering of the function definition in some of the earlier patches. Need forward declarations of a few functions to fix compilation issues. Change-Id: I486b3d6efc33f6557b5ef301bd7037867bb8c562 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1026832c51cbadeea9a717fa20fb42b6a7c5661f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Aug 29 19:22:57 2012 -0700 video: msm: Dynamically toggle histogram interrupt Make histogram enable/disable functions also enable/disable the histogram "interrupt enabled" bit on the MDP enabled interrupts register. CRs-Fixed: 398556 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Change-Id: I56f811e88cf3fd44ae0a2df8a6e5de32ba9a0c1c commit bc79d49dacc9e416c7f9ea98fcff21eec3050fcc Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Fri Sep 14 14:44:30 2012 -0700 msm: mdss: Return correct error value Return a proper value rather than 0 everytime. Change-Id: I0065a420c65e4800d114be4698618d66de89d105 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 8914c1ca05e90d80432c104a509eab129038de1c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 12 17:32:21 2012 -0700 msm: mdss: increase bus scaling factor to improve performance Fix performance issues seen with different use cases such as HDMI and MDP composition by increasing bus scaling factor used. CRs-Fixed: 398503 Change-Id: I2391f81c0cba1fa7f5849ce55ec89762765d7575 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ad3200279e62eff01fd1bb9136cc9c0d11e10380 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 23 18:26:09 2012 -0700 msm: display: Add DSI clock control for MDP GDHS power collapse Enable DSI clock and regulator before enabling/disabling power collapse for MDP GDHS. Change-Id: I9effb5b4e9ca8033c51085260c8fb9f32c422dd3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Thu Sep 6 10:33:12 2012 -0700 msm: display: include msm-specific ion header All msm_ion clients need to use <linux/msm_ion.h> instead of <linux/ion.h> Change-Id: Id079277f1f5688f08c8dec7f20308315ab46a081 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit d635cad054f3860f8ca13a8cf79f3e46f8892ce6 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 3 15:52:06 2012 +0530 msm_fb: display: Copy splash image to kernel memory The bootloader memory from which the splashscreen is shown gets reclaimed before frame update happens from framework. Hence, copy the splash image to a local buffer as soon as display is initialized. This will ensure proper continuous splashscreen functionality. CRs-Fixed: 378721 Change-Id: I55a7b97eeced56d2f108d34998d58966610c4305 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 77ce0197185ba16c4cf6c2745065f339aa32ef46 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 10 11:27:19 2012 -0400 mdss: display: postprocessing: picture adjustment Support picture adjustment(hue, sat) for 8974 Use logical block id as input. Apply configuration at next display commit. Change-Id: I0e35e50aecdd346ec91373d0c304e21185f28502 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit edd57ca52bd12fa42865557bc5cfcc70cbbb8e6f Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Sep 11 15:29:10 2012 -0700 msm_fb: display: Update mdp clocks based on perf patch MDP clock was not getting updated to the correct values causing underrun issues. Change-Id: I4902ede1a8dda7408384261ca352e1ca1057a69c Crs-Fixed: 395054, 395166 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7c31ee7933fff437acfaa69cf443c81638a495de Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 17:20:36 2012 -0700 msm_fb: display: add wait after overlay kickoff MDP writeback overlay kick off needs to be a blocking call to avoid WFD tearing issues. Change-Id: I03ce16b1e11c458bc8602880f22f1aed536a2e5a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a61ad91ac33d5ec756a39201ed4350f4af55f701 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 30 16:21:32 2012 -0700 msm_fb: display: add blt condition check at video/lcdc off Blt mode may be enabled during system suspend. Need to make sure blt overlay done before turn off video/lcdc timig generator. Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30e707acaba6cac235c86b84f9735ae1aa94b5cb Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Sep 6 16:48:04 2012 -0700 msm: mdss: Move HDMI Tx controller's regulator get to probe Move HDMI Tx controller's regulator get to probe function in order to support deferred probe in case regulator in interest is not available or not successfully probed before HDMI Tx driver. Change-Id: If0a5cf97a86c39fcdf649997c18121cc500f08a8 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Aug 22 15:01:15 2012 +0530 msm_fb: display: Program source address registers correctly Scale filter FIR uses the adjacent pixels as part of the processing. Source address registers should be program such that they point to the first valid pixel so that non-ROI pixels are ignored. This is done by making source x,y offsets to zero and adding the computed offset to source address. CRs-Fixed: 380020 Change-Id: I998fdd46f39dc67f32c422ec209da59d1add2e95 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit f9bc16bf6dcb8beb7d5d6405ee5dc767e6decdff Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Aug 21 15:15:13 2012 +0530 msm_fb : Add option to enable/disable mixer commit Adds support to enable or disable mixer commit during pipe staging operations. Depending on the current activity, this selection can be made. Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 8c13d2615b1c608f941137166efb649353cc0bdb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 25 17:02:52 2012 +0530 msm_fb: Update backlight level on resume after first pan display Use shared workqueue to delay the update of backlight after a first valid frame is displayed on the panel. This avoids any transients being displayed during resume. CRs-fixed: 361002 Change-Id: Ia2c2e39aae62e9ddfebe3a26fb4dbc969d0892c2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c3c52ddda318fcf7e15bd0674c2ba1903fbfa49f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:32:45 2012 -0700 msm_fb: mdss: DSI driver code clean-up Remove mmss_cc base variable. This is no more needed. Create new controller platform data. Move the needed variables as part of the controller pdata structure. Change-Id: Ic5c72911dbfe889e1f8ff6992d438b6631796507 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 00baebf181e4dc29d128a2fd16422333b81a8e43 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: display: Enable IOMMU for MDSS driver Implement all calls to iommu driver from MDSS driver to map all buffers to virtual address space instead of using physical addresses. Change-Id: Ia194bf53dd881e36c702bbe4c024b652ed34df13 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2fa3b134d43a6f9e47542fd25d288ed07205fa66 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 16:02:25 2012 -0700 msm: mdss: expose panel frame rate to user space Some framebuffer clients expect panel frame rate within reserved[4] member of framebuffer info. Change-Id: Ie74950366372af7211ef1c743f26657e89cb7283 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5cf85c06bed6b7bb416093555d347d9eb221f58e Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 19:32:52 2012 -0700 msm: display: fb blend setting via MSMFB_METADATA_SET ioctl MSMFB_METADATA_SET ioctl is added for the fb user to pass in additional infomation rather than using reserved fields. User can set pre-multiplied alpha for the frame buffer via this ioctl, overlay blend setting will take this into account. Change-Id: Ic2f6236d84691fb03174ec479874c6928489ea30 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit cbd2a940d95056c51f6cef0a1641a716c8ed292e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 29 10:46:31 2012 -0700 msm_fb: display: free iommu buffers for WFD Iommu buffers from overlay destinated for WFD (mixer2) are not freed after kickoff. This patch will free those iommu buffers. CRs-fixed: 394270 Change-Id: I6b58b5d1831e7c59c5107641b786730511803557 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b6843a3a56e60e73305c66369f8ad806353e22d Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Wed Aug 1 15:57:52 2012 -0700 msm_fb: display: Add timeout for waiting on update Content Adaptive BackLight userspace algo waits on UPDATE_NOTIFY to get the screen updates. When turning off CABL, this blocking ioctl causes the CABL threads to wait until next screen update, which may take indefinite time. Add timeout value to the wait_for_completion call, to make ioctl call blocking for at most timeout value. CRs-Fixed: 384026 Change-Id: I6715a36020c24ddd09823bd54d4321900429a6b9 Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org> commit f947731692cb9480b53edfb6008a9ab2965fda2a Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Aug 31 03:08:52 2012 -0700 msm-fb: display: double the lvds pixel clock for dual lvds Lower MDP clock causing the underrun issues on dtv boards. To arrive at correct mdp clock pixel clock needs to be doubled for LVDS DUAL lane panel case Change-Id: I202f0d16896f88090a9f8407e067a31cc47eb4ea Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 877932c6538689854e2b6a75ce24c8782fbe1fe0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Sep 7 16:22:31 2012 +0530 msm_fb: Return ioctl on vsync interrupt disable Before the vsync interrupt gets disabled, initialize the completion structure and then disable the interrupt. This enables the ioctl to return successfully in all the cases. Change-Id: I6a7c233f818a773d00497502213d1ecf8fe9dc24 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c5ac568e5050209ec2d2eb63995357cabfd43525 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 19:12:40 2012 +0530 msm_fb: Enable MIPI video mode interface on 8x25 EVB/SKU5 Change to enable MIPI video mode on EVB/SKU5. Initialize the need_wait variable to zero to make sure that during suspend, we wait for MIPI_CMD_DONE interrupt only when the command mode engine is busy. Change-Id: I61a9132a9a9343d136ddc70ce76d8682f9ecf7bc Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit eb868344503ed72b7a7a88913ab16250f934d9a2 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:17:46 2012 -0700 msm: mdss: Add EDID support for HDMI Tx driver Extended Display Identification Data, EDID, provides support to read HDMI sink's various capabilities like resolutions supported, HDCP compliance status, Audio format supported etc. Add support for this in HDMI Tx driver. Change-Id: Id9367a2f64557c385082bbd528afc24b54b98514 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e0a71b9705f4301c39e029f92c7e4c0ca3610f17 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:25:10 2012 -0700 msm: mdss: Add DDC support for HDMI Tx driver Display Data Channel, DDC, is responsible for transmitting EDID and HDCP information between HDMI sink and HDMI Tx controller. Add support for this in HDMI Tx driver. Change-Id: I58d10c61277d36425d89a2270f0ad0495ffd3a1f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 8bb5150587d79db7f60a5336f267666a7bf56bfd Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:14:17 2012 -0700 msm: mdss: Add power on/off support for HDMI TX driver Add support for HDMI panel power on and power off. Open and close of fb device associated with HDMI panel results in HDMI Tx's power on and power off respectively. Change-Id: I9becdffefe681ce104d631e798d196e23dae4995 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0b4ce9984ebbe740103568da1cc2db0d7648c4d9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:03:00 2012 -0700 msm: mdss: Add Hot Plug Detect support in HDMI TX driver Hot-plug-detect (HPD) circuitry is responsible for notifying HDMI sink's connect and disconnect events. Add support for this in HDMI Tx driver. Change-Id: I40fdc64007bffe063ce125ce2e819b06a49d0eb5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit d49fe89aa7eb042947a64f1d5b5f12f54d2c033b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 13:31:29 2012 -0700 msm_fb: display: fix division-by-zero bug Panel v_back_porch could be zero for virtual panels, so the check for zero is added to fix the bug. Change-Id: I6a29f3d8d771092bca2374cc9a1c11dd77ad569e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 108090e77d90ff15da5ef94dd72b7aa6f18b5e94 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 12:38:56 2012 +0530 msm_fb: Change refx100 value for NT35510 panel in command mode Change the refx100 value of NT35510 panel in command mode to bringup PVT command mode panel. Change-Id: I3e9a303a4f203bd7f2ca88f6cd2fe0b1134f8d65 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d6770da3eb24a8d617145526a7f04398bf44b328 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 8 19:35:57 2012 -0700 msm_fb: display: add support of mdp clocks controlled by vsync Mdp related clocks are controlled through vsync enable/disable ioctl from userspace frame work. Crs-fixed: 384482 Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ffe9cf9b1f49bcd8b140cef21c4655d1b69bb1f9 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 15 18:00:05 2012 -0700 msm_fb: display: add wait for overlay0 done Dcs command mode BLT involves both overlay0 done interrupt and dmap done interrupt. A transaction is start at kickoff and end with done interrupt. At some corner cases both overlay0 and dmap transaction need to be completed before kickoff of new transaction. Change-Id: I5a3cc6e8255acf2c61fc627d35f990182d226f63 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ac37f42a6428b4a1a8bc964ea17902ea41772ba4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: improve mdp buffers management Currently buffers are unmapped as soon as it's queued to MDP, however the buffer still belongs to MDP until a new buffer is pushed. Change current buffer managment to track of buffers currently being displayed and properly unmap buffers after a new buffer is received. Change-Id: I6932191fc787f6f5b673edfb690ce1317e283587 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f281368edca05e3171631b17c5767179bd0a77fc Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Aug 27 20:28:38 2012 -0700 msm_fb: MHL: Fix premature register access Until the information about the MHL feature through boot param percolates to the driver via probe we should refrain from accessing the registers or requesting irq. The init and probe functions are cleaned up with all the real initialization such as power, gpio and chip specific settings moving to probe functionality only if mhl is enabled from boot param. Change-Id: I68c0a2848493a7478f3046e439c42f8fb131f000 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e79dde6faab507c51994a8588bebd03dfc5fb57a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 24 16:23:06 2012 +0530 msm_fb: display: Fix blend configuration for MDP4.1 MDP4.1 blend operation registers are not double buffered and take effect as soon as they are configured. Configuring these registers at any place other than between dma and vsync produce flickers as new blend values would get applied to previous mixer configurations. Configure blend operation registers just after dma is over, before vsync. Change-Id: I377c11222f7a0cd77e98e90edec6e2e1dc0c17ca Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit e9d4bc826ca849b873f9e91bda68004aa7d78b25 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 22 10:36:46 2012 -0700 msm_fb: display: add mdp clk rate calculation for low vbp For the panels that have low v_back_porch, if h/w FIR scaling is used, during vbp time, mdp clk should be fast enough to output a line from 4 input lines. MDP rate equation for very small scaling, e.g. 1 or 2 pixels' upscaling or downscaling cannot cover this case, where underruns are seen on those panels. Change-Id: I4f35f98c2c1bc4ef04dfee193427bd3ff674945d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5d3e219fd4e44d67fb122b99745e5e4d4637257e Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Aug 24 17:43:31 2012 +0530 msm_fb: Keep LCDC timing generator enabled during boot up Keep the LCDC timing generator enabled during boot up on MDP 3.03 targets if continuous splash screen feature is enabled. Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5dcea9b4522d3bdc1a0fe38406881b264ce074b8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Aug 28 15:28:12 2012 -0700 msm_fb: display: fix the underrun issue when playing interlaced videos Interlaced videos require higher mdp clk rate and the current code sets mdp clk to max and return. However mdp clk calculation may still give a result higher than max mdp clk, for this case the result is kept and used later to enable blt mode to avoid underrun. Change-Id: I185d0d15e5b79e94561e790e41713cdb405f8bf4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit df6b645836bafcca027bd0820a477e86cf767823 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jul 30 20:12:34 2012 +0530 msm_fb: hdmi: Soft debouncing logic improvements Currently, HPD(Hot Plug Detection, a module used for detecting HDMI cable connection) soft debouncing logic implements around 1 sec mechanism to stabilize HPD event detection. In case of fast HPD connect/disconnect, it is missing a real HPD event. This change implements a new debouncing logic in driver which will make sure the first real HPD event is correctly processed and at the end of debouncing processing, if there is a change in HPD state, the changed state is also processed. This way we always process the change of HPD states. CRs-Fixed: 384513 Change-Id: I02d9814e4a55b7eec11a8e0d134c9ed9b5747422 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 26d04f92047ce213301596f167d84fbc05019f7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Sun Aug 26 00:57:04 2012 -0700 msm: mdss: Correct HDMI interface polarity for different resolutions. For HDMI, hsync and vsync polarity for resolution height greater than or equal to 720 lines is active high. And for resolution height less than 720 lines is active low. Program the these settings correctly for mdp's hdmi interface. Change-Id: I1a8889662f55676c13dfa8b7172bf7bcf7351cf5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c678e139570f7c1c4560c19f284926b6149e7bbf Author: Mayank Chopra <makchopra@codeaurora.org> Date: Sat Mar 3 06:51:20 2012 +0530 msm_fb: display: Add pseudo-planar 422 H1V2 support in the MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation. Add changes to support MDP_Y_CRCB_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: I8083bf44f9e2addf9e8732268147c1c3f6c0e2af Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 3c34bf24b6ba56d4a2633043d8be0c84d0f449f8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Aug 25 18:07:27 2012 +0530 msm_fb: Handle vsync interrupt properly on MDP 3.03 targets Handle enabling/disabling the vsync interrupt and mdp clock enabling/disabling in a better way on MDP 3.03 targets. This will avoid target crashes due to unclocked register access. CRs-fixed: 388751 Change-Id: I5c4a409772464ce7d06869374dcba5ad7e335955 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 330c0bf5f090f05395f0ae64994a6273853aa9e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 14:15:33 2012 -0700 msm: mdss: add color format for venus core Venus output format expects luma and chroma components to be aligned to 32 bytes, add new color format to support this type of input. Change-Id: I1fc9a61a0c8cfa8244460105fdab02d019d31556 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 248948310712bf710ba097a1d1ef8c840f17169f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 19:34:43 2012 -0700 msm: mdss: implement vsync ctrl and events Allow users to enable vsync events to be sent as uevents to userspace applications. This allows applications to listen for and align composition to hardware vsync. Change-Id: Ice480659f8c2adda3b5fe3f2d5bcfb9bf779933c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7e1ec9ab4a865e57372d3536991770f1773af6fb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 24 15:53:35 2012 -0700 msm: mdss: request bus bandwidth before panel on Panel on sequence requires access to bus, make sure bus clock is enabled before panel on by requesting bandwidth for panel commands. Change-Id: I2f92e81b20dba7875a8b1160d14e8fa1895c8f15 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c40f9f9bc1e83ce521759f03b6fd01d9699cd39f Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Aug 13 17:33:26 2012 +0530 msm_fb: Retain CSC values across suspend/resume sequence CSC values pertaining to various H/W blocks are stored in a global structure and will be re-applied during resume sequence. CRs-Fixed: 376159 Change-Id: Ieb151185efd106041e28feedf4fa271ae4ba2666 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 9ed0ef8c7d126938c453aa52c7b69ac869613cc6 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:12:03 2012 -0700 msm: mdss: Add support for HDMI Tx driver This patch adds the HDMI Tx driver in mdss domain. It uses device tree framework to get the platform data and then registers this device as dtv panel to mdss frame buffer domain. Change-Id: I55534919bacea5b044c1da5d44dda8db496e1528 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 907b7e097f61fb5dfeacd23dfddb75b92737b1b2 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Aug 8 18:47:12 2012 -0700 msm_fb: MHL: MSC cmd schedule to prevent overload MSC commands to be sent over the CBUS line need to be scheduled appropriately from the ISR. Reduce delay in any processing within the ISR. Schedule each command over a queue and handle them with a worker thread. Change-Id: I6cbde8ce9e4f8c69b7f0a40bcf12c5d3930d0b8b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f7110b8272c8b46c732f0cb9c9290ca9e7f688c3 Author: Manoj Rao <manojraj@codeaurora.org> Date: Sun Jul 29 22:29:02 2012 -0700 msm_fb: MHL: MSC, RCP/RAP feature implementation MHL implementation of handling CBUS interrupts to enable and handle MSC translation control packets. This change also includes implementation of RCP/RAP protocols with place holders in MHL driver. Change-Id: Icfc31ee1cf71a57cb9b3733d068ea4478b6c4e90 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 83fba4a6a627923fb358fd445a96df5cf9eacbe6 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 16 17:02:02 2012 -0700 msm_fb: display: add mutex on overlay_play to fix iommu page fault An iommu page fault may heppen When a pipe_commit is executed in between of frame dropped and pipe_queue during overlay play. An mutex is necessary to mutual exclusive between pipe_commit and overlay_play. Change-Id: I736e821c6c648a6ebd435303a1906a40e9b75791 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 79e294bf767b12470d08b4300b286403cb40aaa9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 23 19:26:56 2012 -0700 msm: mdss: fix hang when down scaling video to more than half its size When down scaling video more than twice, PCMN filter scaling should be enabled for all components to avoid MDP errors which lead to hang or underrun on screen. Change-Id: I237bc3a16e4916c9270382f55ecae21b46743a5b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e5612f210482d39d41966ebe003bc924f079db2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Aug 27 11:07:32 2012 +0530 msm_fb: hdmi: Correct checksum value This change writes the checksum value to registers after doing all the calculations so that the correct checksum value is transmitted. CRs-Fixed: 388272 Change-Id: Ia0543e458d5a11b148bd29e0d57ae355a051b2a9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bef3d659b9f7538c4a208fe4b29f93d1a9795f76 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Aug 12 09:17:08 2012 -0700 msm_fb: display: alloc/free writeback buffer done at do_blt() To avoid double freeing writeback at end of blt mode, let both alloc and free writeback buffer done at do_blt(). Change-Id: Ida5d24589c19be8f6f655eca6add00badca356b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 580e37bbcb2334315cb9535cd4d1e30147f1142f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Aug 2 17:38:12 2012 -0700 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item HDCP authentication should be kicked off as a scheduled work item so as to ensure that MDP is already configured and frames are being transmitted over the HDMI channel prior to the start of the HDCP authentication procedure. Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 73c7b2f7e9b25a3173aa00a5ea3d9d73484a5cf4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Aug 20 14:49:28 2012 -0700 msm_fb: HDMI: Driver changes to support MHL boot param Add necessary driver changes to support enabling MHL using a boot parameter. The MHL driver will now only be used if it is enabled using the boot parameter. If enabled, the default video resolution and available EDID modes will be set accordingly. Change-Id: I9c07a4bdd07ce1d9120296efb143e987390fa0a2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ea0dcd3f4ad4fd3142bf081795c17d05c42957a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 20 22:21:50 2012 -0700 msm: mdss: refactor overlay parameters validation Some checks done on parameters don't apply for rotation only mode where rotation is not limited by the bounds of panel resolution. Update overlay checks to perform correct validation depending on request type. Change-Id: Ic0cf9863231300f7190dd118b78fa753f77f217f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d2c48e228631fefef2e5a2d9406447358d910f9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 10 22:53:40 2012 -0700 msm: mdss: Add support to make use of interrupt data pointer in an isr Add support to make use of interrupt data pointer during an isr such that mdss panel devices retrieve and use their private data to service an interrupt rather than using global variables. Change-Id: I51a6b1c2814a23b3297556e914ce9601ef266533 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit f502022c101dc1c6d6af35d112be76a88c874a3f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jul 6 18:20:25 2012 -0700 msm: mdss: fix null dereference when using hardware cursor Null dereference kernel panic is seen when using hardware cursor because buffer for cursor is not allocated before using hardware cursor API. Allocate buffer once when API is first called to ensure buffer is available to hold cursor image. Change-Id: I2250c4dd93e54fa4e7122c2465fbaf1deef0fa1e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 15177f038fc05e5de18c437fa8dce63327b42d17 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Aug 14 09:16:37 2012 -0700 msm_fb: display: fix mdp crash during overlay unset Check real_pipe address before refer to it. Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9bfdbf0473204b0267dc86ac4b8cc351194c3ee2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:31:30 2012 -0700 msm_fb: mdss: Add DSI physical layer settings Add support for dsi clocks. Add support for DSI PLL configurations. Add strength, regulator and control settings for the DSI physical layer. Change-Id: I04a0eec869e40b4813cf5187e8eeef63ae2f5a1f Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68b9675c9c5d889e3fcc550fa39fd23ea960ceb0 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:23:11 2012 -0700 msm_fb: mdss: Add support for Backlight control and panel gpios Add code to support the WLED client interface to control backlight levels using led_trigger mechanism. Add support for msm gpio that maps to the lcd_enable line for the panel. Add support for pmic gpio that is mapped to the display reset line. Change-Id: Ie89692f1c0a38d7878271d4a91122d61fbba8c1b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 90e71d1da087b5690eee35e5e88d8faa689c5f8e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 22:57:11 2012 -0700 msm_fb: mdss: Add support for DSI specific regulators Add ldo2, ldo12 and ldo22 regulator support in dsi driver. Change-Id: Ia8e9907e87a293588688e7a47c74fecf155382af Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit d7784e051a508a667a13d431b7d834725cef0379 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Aug 21 19:16:27 2012 -0700 msm_fb: display: Removing clk_set_rate in atomic context clk_set_rate was getting called in an atomic context. This change is needed to comply with Phase 3 clock API's. Change-Id: If7fa9d624b07789803177da55e6c84c3686a2bde Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9cbd41158a2aabc9bc675fd8473bc1ed64251e82 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:29:51 2012 -0700 msm_fb: display: add dcs command list for dsi command mode DSI dcs commands and mdp pixel stream share same dsi link. Add dcs command list to serialize sending dcs command and mdp pixel stream to avoid contention which may cause dsi controller to stall. Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 076901a58037d533840ce6b59c33796a96c2d56f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 10 14:31:37 2012 -0700 msm_fb: display: fix page fault during supend/resume There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d1fff85a0074e6caa8e6136f18644670d76d8f06 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:57:38 2012 -0700 msm: mdss: fix MDP hang when using 2 or more layers Hang is seen when 2 or more overlapping layers are used in MDP, this is caused by problem with VBIF dynamic clock gating. Bypass VBIF dynamic clock gating and force clocks on to avoid MDP hang. Change-Id: I369d036aa059f79c48f3b2feec8ca2b0f49dd301 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 452289427cbf054e7830770333f663ec866ca61d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:19:18 2012 -0700 msm: mdss: add perf settings during hardware initialization Add MDSS initialization sequence, tuning for optimal performance. Change-Id: Icd44abf2707d74bbf29a8d095184067ae3a420d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 21c74c4c8bda9a1d62c052f6b93355de6ce935fa Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Aug 21 21:04:20 2012 -0700 msm: mdss: refactor mdp driver probe Remove references to global variables, remove untested support for board file in favor of device tree. Change-Id: If97536116f5b4ea64ade5938d713572c10415bfe Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 963bdc732baffeb24acc29d6e7e96460bc12ffdc Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:56:24 2012 -0700 msm: mdss: fix irq getting disabled when running concurrent displays Add check to make sure there are no other active interrupts before disabling MDP IRQ to avoid disable of interrupts. Change-Id: Ic2bb9398dfa67d2b210f988de6648d49fd8336ac Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d559ef1c0cfd13d3bef877692babab65a278bba1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jul 12 20:16:14 2012 -0700 msm: mdss: refactor mdss color formats Add missing color formats and reorganize color formats to have better code reuse and make it easy to add new formats if required. Change-Id: Ic7c6bb6f35a9c282d9ef99bd5e1d18b0b8033971 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 114c07229fc6f166e0e14d6f6f5e601e192be8f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 15:47:06 2012 -0700 msm: mdss: use framebuffer line length as base layer stride Adreno graphics core expects framebuffer to be aligned to 32 bytes, this alignment is observed in framebuffer and needs to be used for base layer. If not followed stride corruption can be seen for frames rendered by Adreno GPU. Change-Id: Iea5e729dc4e4613bd7270d7bcf616cff6377109a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ae341d162288d796e0d205897df8d010e059c8d6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 6 11:22:46 2012 -0700 msm: mdss: fix suspend coming to MDP before panel drivers If suspend event is received by MDP before panels, MDP needs to ensure other panels are off before turning MDP clocks off. Remove handlers from framebuffer driver and handle all suspend logic within MDP driver to handle this scenario. Change-Id: Idcda2dd29b28a9993edca78b7e0778985e44b664 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 05bb0b78d6eb80dfe1339f54fa24a4cec7529353 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 8 18:12:43 2012 -0700 msm: mdss: improve clock and bus scaling logic Current clock logic only considers panel pixel clock to calculate mdp clock speed, MDP clock speed should also consider other factors such as surface scaling. Bus scaling should also consider surface scaling factor. Update logic to consider these new factors and perform these performance updates together. Change-Id: If274a7f40f496e1a730e1d0e8d7c35fa4384a832 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a5a987a43f8a24592e0dcdd387dd5ae668f03410 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:46:01 2012 -0700 msm: mdss: allocate framebuffer memory from ion pool When panel size is increased dma_alloc_coherent is not able to find a chunk of contiguous memory big enough to hold framebuffer, this causes framebuffer initialization to fail. Allocate buffer from ion pool which has reserved contiguous memory at earlier stage. Change-Id: Ibf7e3f7fc2c7ad991d69c106bbb6a9dd4c7f0e79 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 67ddb9b38b1793c297ff431ef9f650f355c4abf2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 14 19:00:22 2012 -0700 video: msm: Move histogram disable to before panel off Histogram expects the display to be on while running, thus moving its disable call to before disabling the panel timing generator ensures this assertion. Change-Id: I308b3e0c24f0111fb8549d0a0ae025910d649b75 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41b206d0792724c3ee2e1d881dcaf6025cc200a8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 15:25:44 2012 -0700 msm_fb: display: commit mdp baselayer pipe When in resume or boot time, baselayer pipes need to be committed for mdp to play, otherwize underruns and blue screens are seen. The previous pipe stage up func has this commit which is removed now, so the commit calls have to be added for the cases where base pipe is initialized. Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 496f928dd8cdd2b1b554c379d9336e2e902e0540 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 17:41:34 2012 -0700 msm_fb: display: change implementation of updating mdp_clk and blt mode Currently mdp clk and bw requests are predefined in a 4-entry table passed from the board file, and the logic to decide which level to use is mainly based on source resolution. This patch is intended to address several issues with this approach. One major issue is clk and bandwidth depends on seperate things, and need to be considered seperately. e.g. with mdp composition of multiple pipes, bw request may be high but clk requirement may still be low. The current approach that binds these two things together causes inefficiency of power. Another major issue is that there is no logic to calculate mdp clk requirement of a single pipe based upon panel clk and downscale parameters. Further the worst case of mdp clk should be determined by all pipe usage. Without proper logic, many underrun have been experienced, and blt mode may not be enalbed properly. Also mdp_clk or blt mode update must be on right timing especially between these two pathes: overlay play and pan display. In the situations of performance from high to low or from low to high clk and blt must be handled properly to avoid underruns. In a summary, to support many different panels and targets and complicated mdp pipe usage(mdp composition), mdp driver related to clk and bw needs to be implemented differently. This patch is to seperate clk and bw, and maily to deal with mdp clk and blt. Later increasing granuity of bw will be added. Change-Id: I678fbf86d6997ed7b602ce81cf2e0fff6164d129 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit db0fb308df4830ce3586618c62e77fc157bb9e4d Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 10:25:22 2012 -0700 msm_fb: display: Set timing generator after register flush Timing generator was getting started before the register flush. Stale values were sometimes causing IOMMU page faults on bootup. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Ia671c3603e383af94197a23a8e5e5f32274a9978 commit 36898359d3e8c21b8fa45ce24d3fe472a3813d4b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Aug 11 17:33:04 2012 -0700 msm: mdss: fix incorrect programming of timing generator setting Fix typo in code which is causing incorrect setting of vertical front porch on timing generator settings and incorrect output to panel. Change-Id: I4de61209443fcb284b7d4064a2039b5f546935d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34e216d7db0466fef4b9114ec18cf684275607a3 Author: Lei Zhou <leizhou@codeaurora.org> Date: Wed Jul 25 12:52:13 2012 -0400 msm_fb: display: Correct LVDS bitmap setting In case ASIC 1.1 is used on 8064 platform, LVDS bit mapping misalignment is fixed and no remapping is needed. LVDS bit mapping should comply with VESA format to get correct panel display. Data line #3's bit mapping should be coded in this sequence: DE + VS + HS + .... Change the original codes to go with this sequence. Change-Id: Iaebcfcea9c52207e16bac54ec37dc63e97286ff4 Signed-off-by: Lei Zhou <leizhou@codeaurora.org> commit 8f0326e19752f9b2b083a433621d3581f4e9a9da Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 16:00:03 2012 -0700 msm_fb: display: add dmap waiting before turn off timing generator Wait for dmap done to turn off TG to avoid underruns before base pipe setup and after constant splash during boot time. Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 00c9a911ba43e3ddb4ea6ea1c843dc7101b3b1ab Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:35:16 2012 -0700 msm_fb: display: add stage commit before kickoff to WFD Since stage commit had been splited out of stage up fucnction, it needed to be called to stage pipes into mixer befroe kickoff mixer. Add this function into overlay writeback for WFD. Change-Id: I11e4486d92b89a15e58531033d474b3137b5935a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2a811f2a333ca0507eb98c35831af463f43fb011 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 17 16:54:28 2012 -0700 msm_fb: Display: Fix Dithering issue for rgb565 format Using RGB888 as source format and rgb565 as destination pixel format, will cause image corruption on the display. Fix this issue by setting the destination format as RGB888 in MDP and DSI controller pixel format as RGB565 for DSI specific panels. CRs-Fixed: 377484 Change-Id: If58976ee9cd4825efb39437170e54796fa2213e0 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 3c5ae1f883a8b6a7812d936c5f7e5bb4d0d3142b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Aug 6 19:43:42 2012 +0530 msm_fb: display: Update mdp clock counter for unsuccessful probes If a panel probe does not succeed, call mdp_clk_ctrl to maintain mdp_clk_cnt counter else mismatch in counter results in mdp clock to never go off in cases like suspend-resume. CRs-Fixed: 385560 Change-Id: I4ca54b051af98e823dc7f3ff7b9bcb960532c7e8 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit a28d1bb434e8505630fc5d03383a0ed6d4565885 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jul 29 08:56:58 2012 -0700 msm_fb: display: Add BLT support to dsi command mode panel At run time, mdp BLT (writeback) mode is enabled and disabled base on performance level to avoid mdp underrun. Move BLT enabled/disabled logic to pan display so that enabled/disable is done per commit instead of per queue. Since all panels are shared same logic, dsi video mode and lcdc panel BLT logic have been changed accordingly. Change-Id: I6e04bf0f7bf1c13634e19b18d8ac4368affbc4d8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1c15029f8551ca8f5ffa57973c4eabc471177333 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:19:11 2012 -0700 msm_fb: display: retrieve correct base layer pipe Base layer pipe is cloned and cached at satge array. Retrive the real base layer pipe before used it. Change-Id: I6fc606559684156348a57b500083ed4089fc71b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit df5e3279961b1f43a38ba50f787d785a81ed1e36 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 3 13:47:04 2012 -0700 msm_fb: display: free dtv iommu buffer Free iommu buffer after pipe is committed to hardware. Change-Id: I00506d6fd55d99fec7921c02953fd755a7536d3e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1bb4edf9242b0397975636a4442318713a53b5e6 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Jul 24 13:34:23 2012 -0700 video: msm_fb: Increase display timeout to 2 seconds One second time out for no frame update, as in current implementation, does not allow CABL to reach minimum backlight level possible because histograms dont get generated after one second. So increase time out period to two seconds which seem to be sufficient for complete black to complete white and vice versa transitions. CRs-Fixed: 370804 Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5d7e5b30a98110dd138fddee58bc2a4f3ffdc715 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 9 12:23:53 2012 +0530 msm_fb: Allow MDP hardware init for continuous splashscreen MDP hw init is getting avoided for MDP3.x targets to support continuous splashscreen. This avoids complete initialization of MDP and hence usecases are failing. This change allows the hw init. Change-Id: Ib0304b54bda4a62a20716bde85fe94b2dcfe6824 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5cb07af87572d44d74a2586dfffd1ee537f64941 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 8 16:52:29 2012 -0700 msm_fb: display: clean pipe free or unlock calls A few places have unnecessary mutex unlock calls, and iommu pipe free depends on pipe parameters so move it before pipe is zeroed. Change-Id: I7ef39c66be611907b1b0c38675b15f8bc919d0c0 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b50f747dee6db1d9413fe46cba3d7c42263b21b2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Aug 4 17:04:18 2012 -0700 msm_fb: display: fix fake iommu buffer drop During pipe free, some content of pipe is backed up and then after pipe is zeroed out, the content get restored, in between there should be no actions to change the content since any change will be wiped out by the restore. Change-Id: Ia6da0162d1f9b614682e1fc36edab1db003b42ab Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4a652002fecbd5d984d01fbe2f32515f1a98ba91 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 17:38:07 2012 -0700 msm_fb: display: clear correct pending isr Clear correct pending isr during irq enable/disable to avoid unexpected side effects Change-Id: I5e7afc778cb8d5feda40f359ff2aae6493dc7cd2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 45301d3beb046201b8d4a54a2de274dabf1ebc46 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 2 13:27:49 2012 -0700 msm_fb: display: fix iommu leaking Fixed iommu map buffer dropped after overlay unset by saving origianl iommu list before zero out overlay pipe structure. Change-Id: I498dd4cf62e93f4571883fe20a0298e9fad4ccab Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e2b559d1a1694e10bb2aa47826db24a8baceda6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 7 13:23:23 2012 +0530 msm_fb: hdmi: Give proper buffer size Need to give proper buffer size for snprintf function calls. CRs-Fixed: 378343 Change-Id: Ia4df74c9871b26255572bb3ba226317c3076b5b6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f3b0c231a85ceef488440ab02fba9b15e468faa0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jul 27 20:46:06 2012 +0530 msm_fb: Add support for Vsync driven composition on MDP 3.03 targets Add support for vsync notification to user space using user events. This is to trigger frame composition based on Vsync. Change-Id: Ie94edfcdb5e540dd2f9a4a5df4bc3b7c4eb9041c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c58fcce723e54466b85981bafe7179b717ff2371 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Apr 23 20:39:17 2012 -0700 msm_fb: MDSS: Add DSI driver support for MDSS Add the dsi driver implementation for DSI version 3.0. Use the panel information retrieved from the 'dts' to configure the interface parameters. Add the device tree binding file to specify the basic configuration and panel features. Change-Id: I6a3677401454ad1d2bc29b0b845b0366eb7842b7 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 17182d61f4cfdc990706bcacfb1ab02f631fa154 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Aug 3 11:14:36 2012 +0530 msm_fb: display: vsync support for HDMI as primary When HDMI is primary, dtv is associated with node 0. In this case, DTV vsync and ctrl need to be called for node 0. CRs-Fixed: 383877 Change-Id: I425cddf453dd159259883e71f92c32918ca8e6c7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 378fed12479c91893acbc56124b7d69ab7bd8166 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:40:51 2012 -0700 msm_fb: display: enable sending uevent as default Enable sending vsync uevent as default so that uevent will be sent to usersapce frame work when first request recevied Change-Id: If72248007d68cba8fc814d449b46a58d842544ba Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 68446e5773292eea8a7bb33e7240cf7a67c0194c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 30 15:14:55 2012 -0700 msm_fb: display: add iommu mapping for mdp cursor buffer address The mdp h/w cursor buffer physical address needs to be mapped to an iommu virtual address when iommu domain is enabled. Change-Id: I73b4492fc4d63632117074136e4d908f5089eb93 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit dc5cfefb1bd5a30f8f1a611fca61cc9d7bc7bddc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 12 11:19:20 2012 -0700 msm_fb: display: set pipe src and dst size same in solid fill mode When a mdp pipe is in solid fill mode, the pipe outputs constant color and pipe itself does not fetch data from memory, so pipe src size should not matter. However, when src size is greater than dst size in solid mode which means downscaling, underrun happens. In this situation, setting src size to be same as dst size can remove underrun. CRs-fixed: 368478 Change-Id: Ie3ffc34486129cddcc872fe6e5317873db985b97 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit efb6c143ea951dab6dc72586100999d5b94c1c8d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 26 17:45:57 2012 -0700 msm_fb: display: no early suspend for writeback panel Writeback panel is not real physical panel and no power consumption concern, so it is removed from early suspend registration to avoid open fb2 error during suspend/resume. Change-Id: Ic61f69e069f2da8c73f2b5a13d103a2f20034d20 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 98b3a61592b34d0f39ed2dd00ef56b3ad575e0d2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 16 21:12:33 2012 -0700 msm_fb: display: remove mdp_lut_enable call to avoid hang issue Calling this function is not necessary in mdp overlay2 writeback driver. If called, it causes command mode primary hang. CRs-fixed: 365332 Change-Id: Id7054c3e56224035ec5939d91f8ce152b038e858 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit f15aa8bcd2f3b4333e8f010c8af6be3a16cfb882 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 3 11:52:31 2012 -0700 msm_fb: Increase the pixel clock range for DSI panels Increase the upper limit for the pixel clock that changed with the newer version of the DSI controller. CRs-Fixed: 380003 Change-Id: Ibbeaa478b4d12ae8f350be41f959d53a6ae6c923 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit cc3df57a918118a1b70a43921d0377fb2790fa1b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 18 18:28:42 2012 -0700 Revert "msm_fb: display: Register MDP fault handler with IOMMU driver." This reverts commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b. This enables the IOMMU page fault register dumps from default handler. Change-Id: Icddd2394f5aa337e1a4998247cc4e3201f752e84 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5f3807bcf41ae01b17a4140b010db6ed02899c18 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 4 00:06:20 2012 +0530 msm_fb: Add "Continuous Splash Screen" support for LCDC panel Add changes to support continuous splash screen on 8x25 SKU7 for LCDC panel. Delay the MDP hardware initialisation, keep LCDC timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Ied091b01ad2f26acdff73e3ffe158d844198923c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0a3699b368fd72a86fb293e37a420b9a34dbd5d0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 30 16:17:10 2012 +0530 msm_fb: Add support for "Continuous Splash Screen" on 8x25 EVB Add changes to support continuous splash screen on 8x25 for video and command mode panels. Delay the MDP hardware initialisation, keep video timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Id5e635ca986e66abb3cbf7c5a174f952ea489708 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 14baef8b22dee8e1d5019a9ac9c6e6cdb48fbbe5 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use YCrCb 420 as the output format for writeback Use YCrCb 420 (NV12) as the output format for writeback. For Wifi Display use case, NV12 is required as the encoder requires this as the output format. Change-Id: Ica8851073476b9c05f3b5b41232803c2d71f7a3e Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit dbb6355114354211a5bcc2ba9f120d601d7a4712 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:17:53 2012 -0700 msm: mdss: Return proper msmfb_data back to client For local clients, return the relevant msmfb_data which contains a cookie relevant to the client. Change-Id: I9b845c0cd7fde1bc8c53a5063ba331460d67427d Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 3d36e64838fbd064ad4868e1a3770e27c183f83e Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jun 21 18:23:52 2012 +0530 msm_fb: display: Add pre-multiplied alpha support for MDP4. MDP4 blend logic differs from GPU blend implementation as MDP4 does not differentiate between pre-multiplied alpha layers and non pre-multiplied alpha layers. Check layers for pre-multiplied alpha and change blend logic accordingly. CRs-Fixed: 355755 CRs-Fixed: 361729 Change-Id: Id8253d3888f1ebbadba1b6bbd87e7d98bac22da7 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 5a19b70f2846822228d0ae0ef56d14162812ff9e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 25 11:15:20 2012 -0700 msm_fb: display: Map framebuffer region in Display Write Domain Framebuffer is currently mapped for Display read and rotator source domains. For MDP writeback mode, Display write domain requires framebuffer region and it is mapped at initialization time. CRs-Fixed: 382550 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iba6fd0201a48fe1864bf42e9576f063cd58646fd commit ec5b2ff6857134832d165b8c2db8174c0d0ef4a7 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 20:06:41 2012 -0700 msm: display: use the fb reserved fields same as kernel 3.0 Reserved fields of fb structure used for various use cases in qcom fb driver. Reducing the reserved fields caused lot of side effects and it will change the reserved fields same as kernel 3.0. Change-Id: I7bf82a9b5667cb5c84b54e428bbfcb6869157bd7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 071280769e98128452ce8773e7ac2bc353f0cc93 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 25 17:57:15 2012 -0700 mdss: display: expose panel parameters through framebuffer API Panel porch values and pixel clock can be used to calculate the refresh rate from user space. Assign these values with information from panel driver. Change-Id: I29995d27904e50892d72de5e8c7dd39285f9d421 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34c2b52441d968030b31841eda77a09d73b89b8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jun 28 15:48:10 2012 -0700 mdss: display: allocate buffer from ion when debug writeback enabled Debug writeback is used to output MDSS framebuffer contents to memory to for debugging of MDSS core. Use ion buffer allocation for debug writeback buffer instead of using memory from framebuffer base layer to allow entire framebuffer area to be used for composition. Change-Id: Ia1a91f5f14bed1d29691092142fc94f7a8b6f4d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 686c70adef370bb5b60a116bdf326b2062c946d5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 15 11:28:12 2012 -0700 mdss: display: fix incorrect rotator programming Source format should indicate that source is to be rotated 90 degrees instead of indicating source has been rotated 90 degrees. This is needed for hardware to fetch source in correct order and generate correct 90 degree output image. Change-Id: If8d1e12ef3e7a291e67ec9763f5ca92ec6fa983c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 38506ba57f21ea83fbb8adb6d6818e9f1611377a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 18 10:26:56 2012 -0700 mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bff7356885b596340c9701fd1a6b18b08f8e75a5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Jul 26 10:59:49 2012 -0700 msm_fb: display: free writeback buffer at correct time When mdp pipe is freed at end of video play back, Writeback buffer is freed while mdp still fetchs data from it. This cause system crashed and blue screen shows on screen. This patch will free writeback buffer at correct time. Change-Id: I46a5031c13d86f943d6604713e1841b482dffe96 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 586fd1628cdd10468e0d6496a77a236f18eaf9c7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 14 15:24:16 2012 -0800 msm_fb: display: vsync driven screen update This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: If630a6d94fd38483ee313f575b1a71ed8bd65a52 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe8e81ccadfb4ba621094c924f31f8c230daf63 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 9 17:54:01 2012 -0700 msm_fb: display: Set LVDS Chimei panel frequency to run at 60 fps Modify LVDS Chimei panel pixel clock from 75 MHz to 79.4 MHz and update PLL settings to achieve refresh rate of 60 Hz for better user experience. CRs-Fixed: 375510 Change-Id: Ifb4036c790552b1c43d5a3c817ed05691f86c7f6 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit dfe5751941ef2478c57565f8ebca09623d83a8a4 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Jul 23 12:34:47 2012 -0700 video: msm: Add CSC and QSEED support to Overlay API Add support for CSC and QSEED configuration through MSMFB_OVERLAY_SET and MSMFB_OVERLAY_PLAY ioctls. Provide better integration than previous attempt with the existing Overlay and PostProcessing APIs. CRs-Fixed: 380750 Change-Id: If895391074ef1e7d7a6824d289e1ed9da6a52180 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 3118cb077358e472adb0db8e207a63bd84fd267f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jun 22 18:15:18 2012 -0700 video: msm: Remove old post processing overlay integration Remove old implementation of HSIC and QSEED smoothing/sharpening overlay integration. Need to replace with new implementation that better integrates the existing functions of the two APIs. CRs-Fixed: 380750 Change-Id: Id3469fad16764ed88e74a8da75bb873f726ba366 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 382b00b9a664fa0bd9b8d8bee2dae3f4340d425d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:45:07 2012 -0700 video: msm: Add QSEED Table2 Support Add support for QSEED Table2 reads/writes. Table 2 is a table of coeffients for QSEED Table 1 to offset into. Table 2 is quite large, caution should be taken when writing into it. CRs-Fixed: 380315 Change-Id: I89be18c0047dcf1d9a3bcd538967b2bbe7b4efe1 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fbf467206a4b5d09f51268535364f0a1b462eef6 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:43:39 2012 -0700 video: msm: Add QSEED Table reading support Add support to read the tables of QSEED values. When the values of the QSEED tables are able to be written to, it is beneficial to be able to read what's there as well. CRs-Fixed: 380315 Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 43da18d00abc2a61834b6650a49bf7edcf4f4df0 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Apr 12 15:37:44 2012 -0700 msm_fb: display: switch blt mode on/off without turning off TG Turning off dtv TG may cause blink. MDP requires h/w idle to change blt mode, turning off TG can make sure mdp h/w is idle. If turning off TG is not desired, one way to do is to check busy bits of overlay and dmae and once they are both idle, the mode can be changed. CRs-Fixed: 363717 Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit fccacdf4e72f8b39c3087628aee41bf94652e220 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 12:01:01 2012 +0530 msm_fb: hdmi: Proper switching of switch device Switch device used to tell userspace about HDMI connection needs to be enabled when: 1. HPD connect 2. Authentication successful And disable when: 1. HPD disconnect 2. Authentication failed Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 53156f5794a1eb8625033cabe243bf35bde93d1f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jul 24 10:13:05 2012 -0700 msm_fb: display: add out of range check for display sizes MDP pipe or mixer size registers have 12-bit number, so boundary checks are needed for those parameters. If not, input req sizes could be very large 32 bit unsigned numbers, e.g. 0xffffffff, unsigned operations may have overflow to pass all later checks, causing MDP underruns or hang issues. CRs-fixed: 380469 Change-Id: I096d7022ede21d54266b46a140782ab0348dd54b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6957fa026060675c197e2aad0762065a6aba7e31 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Jul 11 21:08:50 2012 -0700 msm-fb: display: Tearing issue during video playback Tearing was observed while playing 1080p H264 videos in potrait mode. Enabled blt mode check for MIPI command mode panel as well. CRs-Fixed: 369365 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7 commit 62d4a8cb1a5a1a98b3a70988de9ff9e2c1368be6 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jul 17 11:44:25 2012 +0530 msm: HDMI: Re-initialize the scan details for every HPD After disconnecting the phone from TV which doesn't support underscan, and connected to TV which support underscan, underscan is not working due to non re-initialization of scan variables. Re-initialize the underscan variables for every HDP events. CRs-Fixed: 375862 Change-Id: I22b7b8785ec93f9cf226e9b646a851ffb3ceff62 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit df67a26bb4e4eb274ef367ad67b10d1c845ef7f9 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 17 23:54:47 2012 +0530 msm_fb: display: Remove unnecessary dtv_pipe checks In case of PAN display, PAN update function would return without allocating dtv pipe resulting in no HDMI display. This change removes unnecessary checks and enable dtv pipe for PAN display as well. CRs-Fixed: 379625 Change-Id: I533392a1120a21e962fbbbf0c07a89997832406f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 30befc28305440f30770a6545839fe4b55ee2207 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed May 30 11:04:00 2012 +0530 msm_fb: display: suspend-resume on HDMI When HDMI is primary, suspend-resume is not happening. For HDMI as primary case, early suspend and resume can be used. This change implements early suspend and resume for hdmi as primary case. CRs-fixed: 381097 Change-Id: I7b83d07a8b109294f3606c60f58b760836b88685 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6b82d2ba8296e956abcd4c0c2014138390439dee Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 17:23:26 2012 +0530 msm_fb: hdmi: Boot param support for resolution change Boot param support for dynamic resolution change for HDMI as primary case like MPQ. With this change, MPQ can also be configured for different resolutions than the default 1080p@60Hz using boot parameters. CRs-Fixed: 373211 Change-Id: I2c8537724ddd1ece7e81e6022afb9315c5147aa2 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2568be7b453fc06ac0ce2a293021f2309e3ebbfa Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 21:20:58 2012 -0700 msm_fb: display: Configure MDP clock table based on DSI Video pixel clk To avoid display underrun issues, configure the MDP clock table's rate according to DSI Video mode panel's pixel clock frequency by 1.15 times. Change-Id: I9bc864a754c2d51c9d86ece79863820eb72cdae8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 16c8ae2beba81d102bccd130ccf8cca06533cc28 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 21 11:31:15 2012 -0700 msm_fb: MHL: Adding MHL api's for USB interaction. Adding MHL api's for device discovery and registering callback mechanism.USB driver use these API's for synchronization with MHL driver. Change-Id: I0846951302e3b5f5d20d566c92c2f224528ca455 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c8430bd159039340c5a50e6897b256631f5dc7bb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jul 9 12:34:01 2012 +0530 msm_fb: Add histogram support for MPQ 8064 Currently, there is no support for histogram on MPQ 8064. Add support for histogram ioctls to support histogram testing. CRs-fixed: 375580 Change-Id: I24ccf73c6ea6d230da4624ea196cba2d8195f8b2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit bc49e8330d32669aadc012585e3a2bcad0f34b85 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Jul 14 16:18:02 2012 +0530 msm_fb: hdmi: Turn on switch dev when connect to HDMI Audio is not routed to TV after deep sleep and resume. Userspace is dependent on switch device to indentify audio route. When HDMI is turned on, this switch needs to be turned on as well. CRs-Fixed: 377159 Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f0a3914b984c75b66ca7d96a479c08230928e2d1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Mon Jul 9 16:59:35 2012 -0700 msm_fb: Remove control of HDMI PLL regulator The regulators required by the HDMI PLL are now controlled within the clock driver. Remove the explicit control from mdp.c. Change-Id: Ia2975a5a83b77cd9e21fc43cabea754b7b040dd5 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit f0fd8e7323ea0f60539918528a4cfa1edb39b828 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 3 15:08:20 2012 -0700 video: msm: Add user-defined backlight scaling Add method for scaling backlight based off of a user provided ratio and minimum level for the scaling to be applied. Change-Id: I74c2329c842dd9cbbc9eddfff38cd56fd0e939a4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 649ca22aba67cd429025ee026015b6082b38539f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 9 18:19:18 2012 -0700 msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch DMA addresses are configured after Layer Mixer is set to writeback mode. This leads to IOMMU page faults due to incorrect addresses read from DMA. Hence DMA is programmed before Mixer setting. Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3bb47a097c62b71c7f8f2be888a1f73c6cfb8142 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jul 13 11:51:24 2012 -0700 msm_fb: HDMI: Fix for high HDMI sleep current In certain cases, the HPD circuitry is not switched off when the device goes to suspend state, resulting in high sleep current on the HDMI power rail. This patch ensures that the HPD circuitry is always turned off during suspend operation by removing an unnecessary condition check. Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f7f94cef2a64930e1476c09a5a402631bd39d99 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 10 16:08:30 2012 +0530 msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 10bbb7da8663f44fd348d72fef24f08bbc789cd5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jun 3 07:56:23 2012 -0700 msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk Since dsi clock is accessed by both thread and timer context, spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing of dsi clock. Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 97c332da161665e9ec31a222dcd919267889af1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: Id007cf96588f817bcfe8559177abb073a9b00755 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3d297368b8199b07bda815915e94ecb5761561b0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jul 5 17:24:45 2012 +0530 video: msm: Fix corner cases of "read twice" error Fix several cases where histogram's completion structure is completed multiple times which causes the next histogram read to force the histogram software state machine into believing that the histogram is always being read by someone. When the timeout in mdp_do_histogram times out and then soon after the work that was being waited on completes, the next do_histogram call that is processed will not wait (and thus will not have its hist field set to NULL). This will cause all subsequent do_histograms to think that the histogram is currently being read, and will cause the "read twice" message to flood the kernel logs. This error is fixed by always initializing the completion structure before waiting for the histogram to complete. That way if the completion happens after the timeout, instead of causing the error, the completion's internal counter is reset to zero, which prevents the next histogram read from completing without waiting. Change-Id: Ic1bc4b8688cd191d226de1df15d389de09996106 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 18e97cde0f9875c41692139d30bce497df31b8fb Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Jun 22 00:33:51 2012 -0700 msm_fb: MHL: Driver changes for Integrated MHL Power up and GPIO functions have been moved to the driver MHL HPD event also triggers the HDMI HPD event since 8x30 FLUID device doesn't connect HPD line from 8334 to HPD line from MSM HDMI. The pull-up resistance in 8334 has been set to the recommended value so that the interrupts are sent over to MSM-USB driver. Change-Id: Ib8bb462c81706ff2dc027535ef766917bb7da39d Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9d7db4fd399109999f4ec0207651f335920f06db Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 23 18:49:59 2012 -0700 msm_fb: display: Wait for overlay done after DSI Video writeback switch After writeback mode is switched for DSI Video interface, wait for overlay done for prefill frame to avoid unnecessary fetches from previous buffers resulting in page faults. CRs-Fixed: 372389 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617 commit ef95ae33a328426b45f502eeb86f2edc120faf30 Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 50f0f86034c97484081e1bbf4ea36253a21474f2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jun 21 18:53:25 2012 +0530 msm_fb: display: Add ion support for PPP Add support for ion in MDP PPP drivers for accessing source images and destination images. Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a43f44b44ee221df11ad84b8536c1c8d5373cbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jun 28 20:00:42 2012 +0530 msm_fb: Handle multiple histogram reader errors during suspend/resume If a histogram reader waits for completion in the do_histogram ioctl and during this time the device is suspended, the complete for this gets called from mdp_histogram_ctrl_all() in the panel_next_off() sequence. This results in mgmt->hist not set to NULL. The subsequent do_histogram ioctls after device resume fail due to multiple reader failure condition since the histogram irq will be enabled now from the same mdp_histogram_ctrl_all() during panel_next_on() sequence and this by-passes mgmt->hist getting set to NULL that is present in histogram_start() ioctl. Handle this scenario. Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c45b820e3000c1c7f76cc1a3e1efcfaa33b75eba Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jun 27 12:00:44 2012 -0700 Revert "Revert "video: msm: Always queue histogram work"" This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90. commit 2423ba8... will be refered to as commit X Commit X should have been listed as a parent of commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue histogram work & lock histogram calls). commit 56a123b... will be refered to as commit Y Commit Y is composed of 3 commits that were squashed together after they caused errors when only one of them merged into mainline. Commit X was created to revert the first of these 3 commits, and thus resolve the errors. However, when updating commit Y, commit X was omitted as the parent commit. So when commit Y merged as a parent of commit X, commit X reverted part of commit Y. By reverting commit X, this commit restores commit Y. Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit b14ed96f74b1258b1f102831a2b0ccd56f991132 Author: Laura Abbott <lauraa@codeaurora.org> Date: Mon Jan 30 14:18:08 2012 -0800 gpu: ion: Pull in patches for 3.4 Pull in Ion patches for 3.4 upgrade. Inclues the following patches from google: commit 7191e9ba2508ca6f1eaab251cf3f0a2318eebe26 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Jan 30 14:18:08 2012 -0800 ion: Switch map/unmap dma api to sg_tables Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 6f9e56945d4ee3a2621968caa72b135cb07e49c4 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Tue Jan 31 09:40:30 2012 -0800 ion: Add reserve function to ion Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 9ae7e01de1cf03c77054da44d135a7e85863fcb0 Author: KyongHo Cho <pullip.cho@samsung.com> Date: Wed Sep 7 11:27:07 2011 +0900 gpu: ion: several bugfixes and enhancements of ION 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in those virtual address spaces. 3. Makes the return value of ion_alloc() to be explicit Linux error code when it fails to allocate a buffer. 4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and relavant call to ion_buffer_put(). 5. Checks if the task is valid before calling put_task_struct() due to failure on creating a ion client in ion_client_create(). 6. Returns error when buffer allocation requested by userspace is failed. Signed-off-by: KyongHo Cho <pullip.cho@samsung.com> commit 043a61468f395dd6d4fc518299726955e9999c59 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed Feb 1 11:09:46 2012 -0800 ion: Switch ion to use dma-buf Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 0d1259b5f84969bd00811ff9faa1c44cdb9fdbb5 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Apr 30 16:45:38 2012 -0700 gpu: ion: Use alloc_pages instead of vmalloc from the system heap With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit be4a1ee79a89da3ca705aecc2ac92cbeedd032bd Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Thu Apr 26 20:44:10 2012 -0700 gpu: ion: support begin/end and kmap/kunmap dma_buf ops These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 46d71337f9aa84694e4e6cca7f3beb6b033bbf76 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon May 7 16:06:32 2012 -0700 gpu: ion: Allocate the sg_table at creation time rather than dynamically Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 903f6c716db3d4e26952aae9717f81dd5bc9e4ba Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed May 23 12:55:55 2012 -0700 gpu: ion: Get an sg_table from an ion handle This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> The commit also includes fixups needed for MSM specific code. Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 24502cb2cfd176d72cc6884dbeb375c7fb054766 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 25 18:58:45 2012 -0700 msm_fb: display: Enable MDP clock's overlay block during panel on MDP clock's overlay block is enabled during first update after panel on currently. This is now moved to panel on to keep clock enabled right from display on time. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ie201186c1471201874f2eff246486bc4a73b5872 commit 89dd8eb788bc97479a7c7bfbcafc25f1b63ceda0 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Jul 2 17:05:16 2012 -0700 msm_fb: HDMI: Fix lockdep warning Locks must always be taken in the same order to prevent AB-BA scenarios from occuring: ====================================================== [ INFO: possible circular locking dependency detected ] 3.4.0-g55e6e49-00052-g71783d6-dirty #3258 Tainted: G W ------------------------------------------------------- kworker/0:1/15 is trying to acquire lock: (hdmi_msm_state_mutex){+.+...}, at: [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 but task is already holding lock: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (external_common_state_hpd_mutex){+.+...}: [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0341510>] hdmi_msm_hpd_on.clone.0+0x230/0x2c4 [<c07e5dfc>] hdmi_msm_probe+0x378/0x588 [<c03dcc00>] platform_drv_probe+0x18/0x1c [<c03db920>] driver_probe_device+0x148/0x334 [<c03d9f5c>] bus_for_each_drv+0x48/0x84 [<c03db7ac>] device_attach+0x78/0xa4 [<c03daa4c>] bus_probe_device+0x28/0x9c [<c03d97e4>] device_add+0x438/0x5e0 [<c03dd13c>] platform_device_add+0x13c/0x1a0 [<c0d255d8>] hdmi_msm_init+0x218/0x2d0 [<c0008708>] do_one_initcall+0x94/0x168 [<c0d002fc>] kernel_init+0xe4/0x1b8 [<c000f4f8>] kernel_thread_exit+0x0/0x8 -> #0 (hdmi_msm_state_mutex){+.+...}: [<c00cc6b8>] validate_chain+0x944/0x1080 [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 [<c0097420>] process_one_work+0x37c/0x694 [<c0099978>] worker_thread+0x22c/0x3bc [<c009ecdc>] kthread+0x8c/0x9c [<c000f4f8>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); *** DEADLOCK *** 3 locks held by kworker/0:1/15: #0: (hdmi_hdcp){.+.+..}, at: [<c00972b8>] process_one_work+0x214/0x694 #1: ((&hdmi_msm_state->hpd_state_work)){+.+...}, at: [<c00972b8>] process_one_work+0x214/0x694 #2: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 stack backtrace: [<c001521c>] (unwind_backtrace+0x0/0x12c) from [<c00cbb14>] (print_circular_bug+0x288/0x2d4) [<c00cbb14>] (print_circular_bug+0x288/0x2d4) from [<c00cc6b8>] (validate_chain+0x944/0x1080) [<c00cc6b8>] (validate_chain+0x944/0x1080) from [<c00cd744>] (__lock_acquire+0x950/0xa10) [<c00cd744>] (__lock_acquire+0x950/0xa10) from [<c00cd990>] (lock_acquire+0x18c/0x1e8) [<c00cd990>] (lock_acquire+0x18c/0x1e8) from [<c080c248>] (mutex_lock_nested+0x68/0x3c4) [<c080c248>] (mutex_lock_nested+0x68/0x3c4) from [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) from [<c0097420>] (process_one_work+0x37c/0x694) [<c0097420>] (process_one_work+0x37c/0x694) from [<c0099978>] (worker_thread+0x22c/0x3bc) [<c0099978>] (worker_thread+0x22c/0x3bc) from [<c009ecdc>] (kthread+0x8c/0x9c) [<c009ecdc>] (kthread+0x8c/0x9c) from [<c000f4f8>] (kernel_thread_exit+0x0/0x8) Change-Id: I251049edbc97a5fe0e6c67801cf472fdc48722a7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dbbca9b8710704bd0ae37acd40e30b6aba6d1462 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 19:04:08 2012 -0700 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call Attach IOMMU call is currently done from DSI cmd mode DMA update method. Move the attach call to kickoff which enables it from restore and video paths Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf commit 07876121525c631cbf914c8777e01875c293d0ed Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 12:27:49 2012 -0700 msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get() After regulator_get call for HDMI PLL footswitch purpose, set output voltage to 1.8 V to ensure proper state while enabling and disabling regulator. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24 commit 3ac0c174b21293d50773bb8b2bc5ad9ee2aedf23 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 22 18:46:33 2012 -0700 msm_fb: display: Fix Toshiba WSVGA panel porch and timing settings Fix the porch and timing settings for DSI Toshiba WSVGA panel to enable writeback mode switch efficiently. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ib768d13617470f75ae027970c6ca4779d6b5a367 commit 254d6740cfa0a32afe9bb66762199ea5931f53d0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 30 22:12:09 2012 -0700 msm_fb: display: Flush pipe registers before staging for Mixer 0 or 1 For Mixer 2, register flush need not be called. Flushing is done only for pipes on mixer 0 and 1. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I54758f79552790de2ad936703ba6140ac57b76c4 commit 37320fb657169e39aef13afb468ae551481658f4 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Jun 26 14:50:28 2012 -0700 mdss: display: Correct regulator API usage A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit b5085c57a43b2ba6cded7b4adeb646ed3c8ad095 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Jun 20 11:43:54 2012 +0530 msm_fb: display: Increase wait for VSYNC Wait time for VSYNC needs to be increased to accomodate 1080p 24HZ resolution which requires around 41ms. CRs-Fixed: 368521 Change-Id: Ideda24bb83e32a6d5035c6193ef3dfd5e0c947fc Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 4a4f2d591cebc94b179e58cc6418f4598146f3c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 20 18:30:05 2012 -0700 msm: display: Add MDP footswitch regulator control for HDMI PLL Add support for enabling HDMI PLL regulator along with footswitch enable/disable to avoid PLL lock detection failures during suspend/resume Change-Id: I9b161cab50d2b6c39de39b588e326f5ff97cbc65 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9c4743fd7d5e5230b4f05564432bd6d6b51b4a88 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:31:43 2012 +0530 Revert "msm: iommu: Split rotator/mdp iommu domains" This reverts commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a. Change-Id: Ie93cbb23eaa1e35bfbacc53cd18f05b345acea4b Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit fd233093130a8b11519630cf3b38f02491e634a3 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:30:49 2012 +0530 Revert "msm_fb: display: Add DMA and Overlay blt mode address to MDP driver" This reverts commit 5f979254a80b7a844df3d9c1f49e16427f2477cc. Change-Id: I595afa529d96e8378d00e75bd836cfa191ab5135 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef5b150ffa574ec1aac76618e2cfd1d94ee626ba Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 13:08:06 2012 -0700 msm_fb: HDMI: Removing unnecessary HPD detection code. HPD read work is used to detect HPD at bootup which is not required as HPD detection is taken care at bootup by toggling the HPD circuit. So we can safely remove this redundant code. CRs-Fixed: 368865 Change-Id: I8eed00c4f5af2ed2ca37e86da622ab518e5eb887 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2423ba8ae07458ec93efa07d777454f26d1d7c90 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 19 18:09:36 2012 -0700 Revert "video: msm: Always queue histogram work" This reverts commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b. Revert patch that is causing excessive histogram logging. Will merge original patch with fix when issue is resolved and tested. Change-Id: I99b04362f6acd4f75a72e4b3ca52406907971e67 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14c5e7a160faee03393994b064a093019aca9333 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 14:02:58 2012 -0700 mdss: display: Add writeback support for WFD - Implement APIs used to support wifi display (WFD) based on ioctls and functions declared in linux/msm_mdp.h. - Restructure writeback interface file to support custom output formats and take buffers from WFD APIs. Change-Id: I3e6b75bd8b7d73eb20c97899de1891bbd85e9fa4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20684ab9fdf25602872a602d89a3d3eda1b15102 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed May 9 19:16:40 2012 -0700 mdss: display: implement common irq handler for different mdss blocks All of MDSS blocks (mdp, dsi, edp, hdmi) share same irq line. Implement function to manage MDSS irq line with common API with support for irq callback handler for each of block. Also fix incorrect calculation of MDP interface interrupts. Change-Id: I1271f7e1065aac95175b6e92504917264f4043a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2dca5a058c622a7bd0803285b10ec081b8f8e3ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 19:00:54 2012 -0700 mdss: display: add video display interface support Video mode display interface is used by DSI, HDMI and EDP controllers. Implement MDP support in order to setup data path to these controllers. Change-Id: Ibc766a1d10a55bcf64a3ab693db034a378afe4ee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4e584a304cdf03c4ed7cc28a6457ac22e5d4c688 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:25:01 2012 -0700 mdss: display: implement csc matrix programming Implement color conversion matrix programming to support YUV surfaces. Also add dspp initialization stub function. Change-Id: I7ba57eca24e15acffbddf7b81fac6b8a6ce3bba5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1857f06647e420c97f9b0e24bb1b77da710d858a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:57:28 2012 -0700 mdss: display: add rotator interface to mdss driver Add rotator session management support with overlay interface using MDP flag MDSS_MDP_ROT_ONLY. Overlay interface can only support overlay surface or rotator (written back to memory) but not both. Change-Id: Ib2f494683b2e6c2fd8c67818df2b57afb82a3df3 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 96a1e9e9a778f0729b7073f20a0fbd9a63c9ba8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:36:57 2012 -0700 mdss: display: add clock and bus scaling logic MDSS hardware supports different bus bandwidth and clock frequencies depending on the load on the hardware. Add support to driver to calculate the bus bandwidth and clock frequency requirements and activate changes before the load on hardware changes. Change-Id: I9bb5bbc7b3e18fb1a738f527b875506dfa0c5c81 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ef3ac01347acd86ea5a3f7a7b44cbe88bb90221 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 14 18:40:47 2012 -0700 msm: copper: add device nodes and clock information for mdss Copper uses Mobile Display SubSystem, add device tree and clock information to be used in mdss driver. Change-Id: I67397a28168407b3268f4f026f35d69a04062995 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5f979254a80b7a844df3d9c1f49e16427f2477cc Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: I522944b804fe65925df428d6bb312262328a11d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: If3e556171645e8ea02deb12ca543df36233db5f2 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work & lock histogram calls Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). Lock the mdp_histogram_start and mdp_histogram_stop calls with the same lock used currently by mdp_do_histogram to maintain that every do_histogram called between a start and stop will be completed. Add a timeout to do_histogram wait_for_completion so that it will unlock and yield to other histogram calls if it waits for longer than 33 msec. CRs-fixed: 363763 Change-Id: Icc503aed4e60dd01941682003ca3dbc844aed8d9 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41cdae666312bdc248a8e707a2d8f9ca568178cf Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jun 11 17:18:42 2012 +0530 Revert "msm_fb: display: Fix for HDMI bootup issue" This reverts commit a369ce03ca048fb511642ac1cb73c1f652d70c50. The change is no more required as pan_update is not being called and overlay set is now being used instead. Change-Id: I7b25c256ab57e620f319058638371e079642c448 CRs-Fixed: 367233 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d60ac323a1e3e7086ef2d77c866d5ed482d2a4e9 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 31 18:16:31 2012 -0700 video: msm: Resolve post processing memory leaks Allocate memory for post processing only once. Free post processing memory when MDP is removed. CRs-fixed: 366325 Change-Id: I244f4e10a6933e2acaf69a83d8b91ee5f6e27557 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit cc91399843c5ffb5a57d890c0ca835cd7f5a6e8c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 9 14:57:28 2012 +0530 msm_fb: Add backlight support using both GPIO 96 and PWM Add support for backlight control on EVB using both the LCD_BACKLIGHT GPIO and also the PWM approach on 8x25 EVB. Also increase the backlight levels supported on 7x27A from 100 levels to 256 levels. CRs-fixed: 365523 Change-Id: I4806644783cc98e01192a3101bc852487bb3b592 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 691524c2e330592b2561df4c0fb6e7d2a741a924 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 12:44:46 2012 -0700 msm_fb: HDMI: Do not add HPD state timer during probe Currently all HDMI timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HPD timer being fired 5 minutes after boot even though cable is not connected. This change fixes this issue by not starting the HPD timer during probe. Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit df694561ecc3105707af6bf323cd42f988293e3a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jun 5 15:06:21 2012 +0530 msm_fb: display: Fix compilation error for non-HDMI builds HDMI dependent functions need to be guarded under HDMI panel macro to avoid non HDMI builds complilation errors. CRs-Fixed: 366864 Change-Id: Ib2a9f6db4eb511b2a170fcc7ac979f6c41046baf Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3db0ca75238989ad2b5860c48901952bb15483a3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:32:43 2012 -0700 mdss: display: add overlay ioctl apis to mdss driver - Add support for overlay IOCTL APIs defined in linux/msm_mdp.h - Support for ion client buffers and framebuffer memory Change-Id: I0418ecab9aacf826d900f82f179fa20688fc763e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d6d2863519c2351ef790758ed134e012d4563c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 16:52:09 2012 -0700 mdss: display: implement writeback interface for mdss Add writeback interface support, using one page of framebuffer memory for writeback output. Change-Id: I0a44c6907cbc10d97c78642f45dc018dfb2d1750 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e55fa120321f49385973b37f8b258bf78163743b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 15:36:08 2012 -0700 mdss: display: Add Mobile Display SubSystem driver - Implements Linux frame buffer interface to interact with userspace libraries and applications, based on msm_fb frame buffer. - Implement MDP driver which handles MDP core data path setup and hardware blocks programming. - Support for UI through Linux frame buffer FBIOPAN_DISPLAY ioctl. Change-Id: Ib98677b8d81d74283b27dea08a9f1a705c101bce Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 75692782e15de0990247e2d6252fbd26ca849278 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Thu Jun 14 14:56:11 2012 -0700 msm: display: reduce pwm frquency to fix the broswer blank issue screen goes completely blank while loading a webpage at low back light value. reducing the pwm frequency range to fix the issue. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb CRs-fixed: 362987 commit 14db6b404f2b1627791dada77ea303ef970910a6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed May 23 17:22:15 2012 -0700 msm_fb: HDMI: Start HDCP authentication only on device open Currently HDCP authentication is started for a default resolution upon HPD connection event. With this change, HDCP authentication is only triggered after the HDMI interface has been configured for an appropriate resolution following the call to open the HDMI device. CRs-Fixed: 368865 Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 56672d222b15602826d0200a6baee5ca02a450c6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jun 8 15:57:29 2012 +0530 msm_fb: display: HPD rework for cleaner approach Currently HPD is turned on and off with HDMI turn on and off and turned on again after HDMI off so as to detect the cable plugin. With this change, HPD will be turned on when HDMI drvier is initialized and turned off and on with suspend - resume. The HPD handling during HDMI turn on and off has been removed. CRs-Fixed: 368865 Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 7d11c271b2ca399783975d3b6ef3199cd937a2e0 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jun 7 12:25:31 2012 +0530 msm_fb: HDMI: Update HPD logic to address HDMI PLL related issues In the current implementation, the regulators pertaining to the HDMI core are turned off/on as part of the configuration of the HDP circuitry. As a result, the regulator that powers the HDMI PLL is turned off before the HDMI clocks on the PLL are disabled. This might lead to the PLL not getting locked when it is re-enabled. This change turns on and off the regulators and clocks in proper sequence. CRs-Fixed: 360135 CRs-Fixed: 358598 Change-Id: Ie3630b543e78e83dc565edc32239935135ca4ca5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 66c3c2d50b970ee5f2275d89945271677018ddb3 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jun 12 17:46:53 2012 +0530 msm_fb: display: Add support for command mode on 8x25 SKU5 1. Make command mode default on 8x25 SKU5 devices 2. Add command to change panel scan direction to have proper display Change-Id: I9440ed01541a18ddabe2029c37565dda1181ac2f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1c2bee0158437f485c32f6750e8df3314ae9168b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed May 23 11:30:28 2012 -0700 msm_fb: display: detect if timing generator is on when do dma waiting If the timing generator is not on, dma waiting won't return and system crashes. So add TG on detection to avoid the issue. CRs-fixed: 362503 Change-Id: Ic472e7b75be1fd8960e5ac18929181513085212e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). CRs-fixed: 363763 Change-Id: If9e3c13b5e4005f81fd1b5d2664af206b1decf5b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ba2fa104b3d51b24ccceb168b6bae96fcc851080 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri Jun 15 07:43:20 2012 -0700 video: msm: Don't make the framebuffer cached The video framebuffer should not be cached when mapping into the rotator or video domains. Change it. Change-Id: I407c68ac21a030aff801ebfae01d360bb6bf338c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit aadc14e2ef6a6a84681233ba8020b72b38b98819 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Apr 10 15:28:50 2012 -0700 msm_fb: display: change ion memory map for mdp mixer2 writeback One way that mdp mixer2 gets writeback address is to get ion memory fd from userspace, then mdp driver maps this fd in kernel. When mdp iommu domain was not enabled, this maps to a physical address. Now after mdp iommu domain is enabled, the map is changed to an iommu virtual addr. Change-Id: I461a00cc93169de586565834af4fb9a43949cf95 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9acbfb0eb688bac6a35f12b58e2e9c3de4d2d3b8 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 6 10:00:43 2012 -0400 msm_fb: display: add support for frc Frame rate converter(frc) is treated as LVDS 1080p panel Its configuration is based on HDMI 1080p60 mode LVDS dual channel mode will be used Change-Id: Id3a17f107c8398ddb47105d064be2743a150a3b3 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 94fea065072fc6afd61bd7e2c05f0e552dd1e578 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Jun 12 17:52:12 2012 +0300 msm_fb: display: Fix D2L register I2C driver more than once Fix error message seen on kernel log after suspend/resume Change-Id: I908efec9fde6e9de838e28d2c778fa4b3567e4f6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 913cf20260442f1335ec6ad82549bdae65b120c0 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:12:38 2012 -0700 Revert "msm_fb: display: Attach and detach MDP IOMMU on suspend/resume" This reverts commit aaf74ca34581feb8be797a6d8793824e73fecf67. Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: If9ec76cd040b0e834301d3d9ddbbab04b38b7a7e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f6ef081fb7c9d779401b88c00314127333f9df83 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:05:30 2012 -0700 Revert "msm_fb: display: Add MDP IOMMU detach support for DTV" This reverts commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4. Change-Id: Id1d127080040962c1ad33c9d4bca5005415283da Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1ce7e4c2f39c787fa82aa10a5189df7d0c41b3fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 13 14:05:54 2012 -0800 msm_fb: display: Add support for 4 layer MDP composition Add 4 layers composition support to MDP by allowing borderfill pipe to be used as base layer of mdp blending. This releases RGB1 base pipe which can be used as a general purpose pipe. Change-Id:I517485d738e8bb555a263b3ea885d78d5e4f4396 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 12d6b1f102f45566a0d3089d4e5eeb46a328cf00 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jun 4 11:18:11 2012 +0530 msm_fb: Correct the chroma offset calculations for Yamato format In the PPP blit operations, when the source image format is Yamato, there is chroma offset calculations going wrong in the case when a frame is split into parts and blit is done separately. Correct the chroma offset calculations in this case. CRs-fixed: 366908 Change-Id: I867024632fda9f64a569150e0b6389d55614cd3a Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit a382195e358eebc39640ba8e7f2fe7a3d583aaec Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 5 17:06:10 2012 +0530 msm_fb: display: Set the minimal sleep time for DSI PHY Initialisation On 7x27A/8x25, set the minimal sleep time required for DSI PHY hardware to get initialized and for the display to come up. CRs-fixed: 367652 Change-Id: If040a5ac37f694e83b819ecf08fc80f2afb7afaa Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 2fcabf92eea31cad2ec4852dcab563f2c93e4294 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Wed May 30 10:41:11 2012 -0700 msm: Replace idle wakelocks with pm_qos Idle wakelocks are being removed so replace them with pm_qos. Since we don't know every driver's latency requirements we maintain one-to-one compatabilty with the idle wakelock API by replacing the wakelock with a pm_qos request of the correct latency. Once we determine the actual latency requirements of each driver we can replace the latency used with the correct latency for the device. Change-Id: Icc40f1642218e0de8fc2f56eaf9e8f92914d142f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 12:25:31 2012 +0530 msm_fb: display: add writeback mode for mddi on 7x30 Add support for BLT mode in the MDP4.0 overlay architecture while downscaling to more than half of the source dimensions to avoid underrun issues. CRs-Fixed: 313524 Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef9ccdb031e1fc3c80067cfad59fc5c2d9db77be Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue May 15 10:52:00 2012 -0700 msm: display: Change DSI escape clock to byte clock Changing DSI escape clock source from PXO to byte clock to add more flexibility. Change-Id: Ia78093f8b8be6a27c86f3e8db68fa1f4a4d85086 CRs-Fixed: 361022 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit f98c498b5ef8827afb24bad495f4e175f0829807 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu May 31 15:15:29 2012 -0700 msm_fb: display: Wait for external vsync before DTV IOMMU unmap In play wait call for DTV, software waits for overlay1 done before unmapping IOMMU buffers. This is replaced by external vsync wait to avoid page faults. Change-Id: I67d3615121e9eda3a4378553049a41e32860a520 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c0399fc8064b7e09bf41b9213faabc448ea95707 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 11:43:49 2012 +0530 msm_fb: display: Remove chicken bit config during video playback Remove the chicket bit configuration and overlay status check for MDP 4.0 v2.1 hardware version CRs-Fixed: 313524 Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b411a253ea37acbe8cc817bf004ae08d877d9bd1 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed May 16 00:47:38 2012 -0700 msm-fb: display: lm2 writeback support on mpq platfroms lm2 writeback has broken on mpq platfroms as lm1 and lm2 are selecting the same axi writeback path. It adds the support to select the right axi writeback path based the availability of the write master Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 140748fe6442df1cc95dc1a2519ad8db2190b2b3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu May 24 20:44:07 2012 -0700 msm_fb: display: Disable LVDS phy & pll during panel off LVDS phy pll power rail is consuming power in suspend state. Hence phy & pll are disabled during panel off cases on suspend and device release cases. Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ff42a9a426ab9a76d75a29464412807dd72ceb13 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 29 11:03:00 2012 +0530 msm_fb: Check for Histogram NULL while queuing work Don't queue the work if the user hasn't requested for the histogram data CRs-Fixed: 365729 Change-Id: I0b28097fa00f13a836c2ee9d35e8e4557f1c70f0 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit adf8fef78bf5f77f6c378d8889a35844278148e3 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri May 11 14:13:05 2012 -0700 video: msm: Migrate away from subsystem map APIs The subsystem map APIs are no longer the preferred method for mapping into the the IOMMU. Migrate away from those APIs to the newer map_contig_buffer APIs. Change-Id: I29608bd1cf7f9fb8c5584952826b6f3ae56bc3d8 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit a2afa0dbade27d11382e2486c079d20532a5d73c Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed May 23 15:38:50 2012 -0700 msm_fb: Display: Add additional settings to improve DSI signal strength. Modify/add new Physical layer settings for Lane, BIST and PHY strength to improve the rise/fall time of the DSI clock waveform. CRs-Fixed: 364037 Change-Id: Ie2503100eebdf9d4c82d457c187ab8fa903778c6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 493c38628f7288d0c9ef384517b0eda3b76d50a8 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 23 17:18:18 2012 -0700 msm-fb: display: Perf changes for mdp composition Display under-run issues are observed with mdp composition. Fix underrun issues by changing perf level. CRs-Fixed: 354377 Change-Id: I82346e65af173d7592506f1cee7f90f40ee01485 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7a77c7ca07bbcc390967552d0973238ac48b5597 Author: Anitha Anand <anithas@codeaurora.org> Date: Tue Apr 24 15:46:36 2012 -0700 msm_fb : Disable power collapse before VSync to negate wake up latencies. For a 16ms frame period the CPU may go into deep power collapse. Based on the power collapse exit latency for that low power mode, the frame period gets extended by the latency to wake up the CPU at the next VSYNC. This results in a user experience glitch. Adding an hrtimer to wake up the CPU few ms before the Vsync and disabling power collapse compensates for the extra time spent in waking up the CPU out of deep sleep. On timer expiry, set wakelock to veto idle power collapse till the next VSync. The wakelock is released on the next VSYNC occurrence. Change-Id: I3e013cc54c36d3015d6fafa4b9ccd435cb5532ab Signed-off-by: Anitha Anand <anithas@codeaurora.org> commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 15:15:16 2012 -0700 msm_fb: display: Register MDP fault handler with IOMMU driver. MDP fault handler will print minimum information on display related page faults and its registered with the IOMMU driver handler. This is to minimize logging when a series of faults are seen to cause watchdog bark. Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c96bc441e59d6f0439671c85bc41a3507f232e8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 12:31:31 2012 -0700 msm_fb: display: Free staged foreground pipes during suspend During suspend, some foreground pipes might still be staged and have to be removed before disabling timing generator. So, these pipes are staged down and freed before timing generator is switched off. Change-Id: I3f2376cac43464c64cd1c9e2f16f3d801298c25d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 13:24:52 2012 -0700 msm_fb: display: Add MDP IOMMU detach support for DTV IOMMU detach support on suspend is currently meant for DSI Video and LCDC modes. The detach call is moved to early suspend for primary display and external DTV to avoid page faults related to suspend/resume cases. Change-Id: Ia45071c44c20b951a328f39a033bdd83ff77d8f8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6877b7fc326cd18bbf6c83b418005f7cffbffb9c Author: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> Date: Thu May 24 12:30:35 2012 -0700 msm_fb: display: Flush background pipe after solid fill configuration For is_fg support on a foreground pipe, the background pipe is currently set to Solid Fill mode without being flushed. Add flush after enabling Solid Fill on background pipe. CRs-fixed: 352855 Change-Id: I91c4e391c9577a9198d048d2b369369d348efeab Signed-off-by: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> commit 10a9758c95a68e11f27c9f6452ac9b5b978a8ca8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 21 17:32:07 2012 -0700 msm_fb: display: Fix invalid x offset programming for YUV444 fmt Source x offset adjustment is not properly programmed for YUV444 format, it is always programmed as 0. Add support for correct x offset adjustment. Change-Id: I73e87f961bda60670cc764c66be955e48ccf2734 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit aaf74ca34581feb8be797a6d8793824e73fecf67 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 18:37:20 2012 -0700 msm_fb: display: Attach and detach MDP IOMMU on suspend/resume MDP IOMMU is not in a clean state on suspend/resume with page faults seen with video playback after resume. Hence, IOMMU is detached during suspend and attached on every resume call. Change-Id: I906cd7fa79ab67fd69eb1974d06d3521d42bf55b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ef70852238212e6df24584426ad263291df1bf4 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Tue May 1 19:19:40 2012 -0700 video: msm_fb: Wait for dma to finish before terminating If writeback takes too long to finish, after calling _stop() writeback client might deallocate buffers during the DMA causing faults. To prevent this situation, make _stop() a blocking call that waits for the writeback to finish before returning. Change-Id: Ia710095a55d705589a81aa9bc29c41d536c2a42d CRs-Fixed: 351773 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 20c1b5887a5ba7bae742225bfceaa2268e0e7549 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Mar 12 13:58:07 2012 -0700 msm_fb: HDMI: Video Quantization Ranges changed Quantization settings applied based on default range for source format for 480p. If a non-zero value is sent then it must correspond to transmitted video format as per the standard. Setting RGB Quantization values in AVI Infoframe for 480p to default range (0x0). Change-Id: I01fc263c9406fe80a4b3c73628f265bb733ff90c CRs-Fixed: 349246 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 77f82aec5a4785f89cb2ab968dcde1452f3073c6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 09:42:25 2012 -0700 msm_fb: display: Flush MDP registers before staging up any pipe Add flush calls to MDP's pipe and mixer registers before staging up any pipe to a mixer. Change-Id: I36f5aa04634bae43a38e57cd97bd2aafe9631eda Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c9fa6999ad8b2f10ec4e807ee3dae621f8c6d4fe Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sun Apr 29 22:39:48 2012 -0700 msm-fb: display: Reducing the display wake up time 100 msec sleep in phy init delays system wake up. Using usleep instead of msleep to optimize it. Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit aa356f6c4d44965233c79d68bd293a258730d8c1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu May 24 12:25:27 2012 +0530 msm_fb: display: Keep fb1 for MDP version < 4.0.2 For better memory usage, fb1 memory allocation is removed for targets like 8960 which support BF pipe and true mirroring but required for targets like 7x30 and 8660 which still needs fb1 for border fill. CRs-fixed: 364669 Change-Id: Id741223a0107e356b9164b582aa1f901caa21988 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e9658eb364860826d3924b3d45ba74a2a6c2a2e6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue May 15 14:58:55 2012 -0700 msm_fb: display: Rename MDP IOMMU context bank names MDP IOMMU context banks do not correspond to the input processing pipes like RGB and VG. So the context banks are renamed based on port and number. Change-Id: I39a6b1a66226aeaaf48fb3697f90ab55b67a592c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d995a89cd61bb7295f0226420c4752dc0a9a8fe1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 10 12:18:58 2012 +0530 msm_fb: display: Move mipi dsi clock enable before dsi soft reset mipi_dsi_clk_enable() is called after dsi soft reset. Move mipi dsi clock enable before dsi soft reset as per mipi dsi hardware design document. Change-Id: Ie1cfdf53bc74b87b5a0e0679ab26bc513205673d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 8 15:04:27 2012 -0700 msm_fb: display: disable pan display and memory access to fb1 and fb2 The native fb1 and fb2 framebuffer memory is not used and not allocated on the board file. So on the driver side, pan display ioctl or other operations on fb1 or fb2 framebuffer memory is checked and invalidated. CRs-fixed: 357242 Change-Id: I2883926251a0465f69f18c442d5867556a4651bf Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0dc81db9cf48d869987e8fa8ab8914fcec964bda Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue May 15 13:38:45 2012 -0700 video: msm: Avoid waking readers on failed histogram copy Avoid waking up the waiting histogram reader when the current histogram has failed to copy. Additionally, clean up initialization of histogram workqueue (was initialized twice). CRs-Fixed: 361640 Change-Id: I376c0193b8e34aba5b0aef54feb9504f450ffff4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 71cf95bf1100ab5de55bf3858d40996be7dc445e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 7 11:30:52 2012 -0700 video: msm: Check for multiple readers of histogram Check to ensure that only one reader attempts to read one frame's worth of data from a histogram block. Prevent the case where two readers attempt to get data, but end up causing a loop where neither of them do. CRs-Fixed: 361640 Change-Id: I48878d9fe02d96f306894ed9acc47bf41cd9984b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 19e4b71f617e307cacf0be077e08bec5c37df290 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 14 12:01:04 2012 -0700 video: msm: Clear previous histogram data on next startup Clear the pointer to the userspace histogram struct when histogram is started. Previously, when the histogram was stopped while a histogram read was in progress, the pointer was not cleared, causing the next histogram read to think that someone was already using the histogram. CRs-Fixed: 361640 Change-Id: If09017149e98b35c49603372c554aa4c97f2de82 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ee888e34e20ec3bb4c2c385f3967ecaa9e97f49c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 15 16:39:10 2012 -0700 msm_fb: display: add blt mode enable and disable for lvds panel The check for lvds panel is missing, so blt mode can never be enabled for lvds panel. blt mode is critical to avoid underrun issues. Change-Id: I3cd74bcd978a73997df638f10cd2126ba9ab6577 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8f7c96dc7ee42acd71ea962cf0580f0a9480d5af Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 15 12:42:57 2012 +0530 msm_fb: display: Add support for MIPI NT35510 client on SKU5 Panel is 180 degrees rotated on SKU5 devices. This change fixes the 180 rotation on SKU5 devices in video mode. Change-Id: I9c7ff12de9e19534f8df8ebd9215d74ff0e429f3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9f1453ec3eb2b22160d25148a45f1731a23d4c95 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Mon Apr 16 13:25:00 2012 -0700 msm_fb: Increase PWM granularity to 255 levels for 8960 fluid Currently 8960 fluid display panel only supports 100 levels for backlight. Content Adaptive Backlight Control requires 255 levels of backlight for optimal user experience with CABL turned on. CRs-fixed: 342485 Change-Id: I02226a7790f2dd0144c1eb623c8177724e33a715 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit fee56a86ba3582e2985b2f5a0e535743381544ff Author: Pankaj Kumar <pakuma@codeaurora.org> Date: Tue Apr 17 14:26:49 2012 +0530 msm: Add support for 7x25AB MSM 7x25AB is new msm which can go upto 1GHz. Add required cpu checks to add support for this new device. Change-Id: I0be886d471fe0c70b8afd4da87b9991862a8571f Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org> commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54 Author: Siddhartha <agrawals@codeaurora.org> Date: Mon May 7 18:58:56 2012 -0700 msm_fb: display: Update video format on fps change Added check for frame rate change. Corner case if there is no change in xres,yres and pixclock. Change-Id: I0ff5eb65364d2a370e0973da7e84f738bd042a20 CRs-Fixed: 356328 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 514b1c651a33b7b73fb6f654d04355eac5ecb146 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Change-Id: I8d658ddf4f2ccb2ae47015fe411e8c1a5a55e4df Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ca15287e50fe00dd6526fdc166cb526298099fb2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri May 4 12:56:36 2012 -0700 msm_fb: HDMI: Do not add HDCP reauth timer during probe Currently all HDMI/HDCP timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HDCP timer being fired 5 minutes after boot even though reauthentication is not necessary. This change fixes this issue by not starting the HDCP reauth timer during probe. The timer is only started when an authentication failure is detected from an existing valid HDCP session. Change-Id: I0a28437daa2e95d24a02131322305f3b21a6445c CRs-Fixed: 352080 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d4aab1eb15aa7f9452f1e40688732815b39d4182 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu May 3 20:26:56 2012 -0700 msm_fb: Pass device pointers to regulator_get() Passing a device pointer instead of NULL as the first argument to regulator_get() allows the device to be taken into account when finding a matching regulator. Change-Id: Idc9990eff2c6c78fc9fc9a36d638eef4fd1b632a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 275f94daff0211c145526ee6d45bf48454b13afa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 15:46:01 2012 -0700 msm_fb: display: add mdp version info for later mdp h/w fbtest needs to get the correct mdp version number, but now only the version up to mdp4.0 is returned. Add the latest mdp version up to 4.4. Change-Id: If1ff302bb4a02ed13bb4dcabcb933fd5adfbec6d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit cfd004fa326a6dc4c7e80da707248b5bddaa39b8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 7 12:02:41 2012 -0700 msm_fb: display: Flush pipe registers before staging the pipe Flush pipe registers before staging the pipe for the Mixer with pull mode panel interfaces. This fixes the IOMMU page fault/underrun caused by pipe fetching previously unmapped buffers due to missing flush calls CRs-Fixed: 356484 Change-Id: I6bc2e49746a7c3773708796bc1709c75a8afaa4b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit eee66c6ffa18c954fa2583fdda66526f90bad40b Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 28 16:07:08 2012 -0700 msm_fb: Increase backlight granularity from 15 to 255 levels Currently number of backlight levels are set to 15, which causes noticeable flicker when backlight level is changed from CABL functionality in userspace. So to improve visual performance, increase backlight granularity from current 15 levels to 255 levels. This change is for msm8960 & apq8064 liquids which use Chimei panels. CRs-fixed: 342485 Change-Id: I204f881d45fbcd4a419cc8e61c3bcb1f4d520f7e Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 134786b7bbcb3c8b07b4f56b4421842b75e8471a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu May 3 14:44:39 2012 -0700 msm_fb: display: add dtv wait for vsync when in blt mode Currently dtv is waiting for overlay done when in blt mode. When dtv frame rate is low, this return may be too soon. So before dmae finishes updating buffer, the buffer may be overwritten by userspace. Add dtv wait4vsync after overlay done to lock the buffer untill the next vsync to avoid tearing or flicking. Change-Id: Ic57544a5305fdf9081bfeeccd8d364395faaf602 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6f043415300f58c5868e02050b15c8aa21c26342 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri May 4 01:16:06 2012 -0700 msm_fb: display: Correct LVDS Phy mux settings Fix the display color issue in 1.1 chips due to wrong mux settings in LVDS Phy Change-Id: Ia51500e15e0ffb3e4cc056073985cdeed5751652 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 29c5fb0392a1bf36ac385f5e8790999d70f6d2a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 27 13:50:44 2012 -0700 msm_fb: display: Clear background solid fill on closing video pipe Clear background pipe's solid fill setting on closing Video pipe to avoid blink issues in display Change-Id: Iac3c884334f38580fb5c9dbfb260dd6940ef5019 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b2bdae8ee4262a4e1d8e8e7f9c91b80790bdff27 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Apr 6 16:05:05 2012 -0700 msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe dtv_pipe is the base layer pipe for mixer1. Waiting for vsync when staging down this pipe (it happens when we unplug HDMI cable) causes mixer1 under run because at the vsync moment dtv_pipe is disconnected to mixer1. CRs-fixed: 349765 Change-Id: I3a09159c3ae2dfea963e5ad064076f5a9452ec1b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e534683723654af2a904e6dec3a646a2d9542408 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Apr 27 22:27:31 2012 -0700 msm_fb: Correct mdp_iommu array size to avoid scribbling The mdp_iommu array was undersized. This resulted in scribbling of nearby data structures which, through a long series of events, lead to invalid pointer dereferences in the workqueue framework's process_one_work() function on (at least) the 8930 SoC. CRs-Fixed: 357011 Change-Id: Ia8027ba8714bb90b336ee79d43920a7f71a8091b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 59508db9d5cec32ff59c2ff5a689288db2b027d4 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 30 16:30:29 2012 -0700 msm_fb: display: increase mdp upscaling range The old range is x8. Acturally mdp rgb or vg pipes can scale up more than that. The max up to x20 is verified. CRs-fixed: 340747 Change-Id: Ief7ee936e39de2ada87d47b14872bca0c3cf36a7 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b18c9e29486f574bc6353243e1c0116956ba712c Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Fri Apr 13 18:29:34 2012 -0700 msm_fb: Provide support for ARGC and CSC for layer mixer 2 MDP 4.4 supports additional layer mixer (LM2) with ARGC and CSC blocks. Extend existing ARGC and CSC functionality to additional layer mixer (LM2). Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0ae152b929dfc538bbb2c72f01b5f3bf14c3c6bf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 14:17:39 2012 -0700 msm_fb: display: update dtv panel info clk rate dtv panel clk rate is dynamically changed with the HDMI resolution. s/w panel info needs to keep its clk rate updated. CRs-fixed: 355110 Change-Id: I9365d67820158afb2bc520736df9152864a2a962 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e01bb5a4944eea27e87ca00a869105185c13664d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Apr 24 15:14:26 2012 -0700 video: msm: Add QSEED API to MDP_PP IOCTL Add the ability to program the QSEED Table 1 coefficients to the features supported by the MSMFB_MDP_PP IOCTL Doesn't support table2 writes currently, however, the code to write to them is already present. QSEED support is currently only configurable via a tuneable parameter that maps to a small subset of possible QSEED settings. By moving to the MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value requested by userspace. This also allows for future expasion of the QSEED feature by allowing dynamic loading of the table2 coefficients (rather than only configuring them at init). Change-Id: I7394e211169efb0e677391e2c150a6a6b8d0477c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 28ffb9c964d8d303c38f90b6c4bc8bf313356a54 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 11 23:37:15 2012 -0700 msm_fb: display: add dtv_pipe null check before dereferenc it There are chances that a null dtv_pipe pointer is dereferenced and system crashes. One such case is unplug HDMI cable while playing video. So a null check is needed for each dtv_pipe dereference. CRs-fixed: 355238 Change-Id: I1ff57b00169e217fc5ed98574db7fd49b9319d0a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 14648740d17ca1f154222aba29a1f2946609f460 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Mar 30 19:42:12 2012 -0700 msm_fb: MHL Driver for SI-8334 Transmitter The device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I845bc1b30dc799183357224a296215ecc1d44893 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b41048b637d4341e24f8f36b68b127fe600f6a1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 15 10:40:40 2011 -0700 msm_fb: display: add YUV444 interleave format support to mdp Add support for H1V1 interleave (YUV444) to mdp Change-Id: I86b76831ad87dede90ddd8d8f5ae64e51fa28c27 Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6098eee975076350586eb3010edda8b96ac998d5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 19 10:35:01 2012 -0700 msm_fb: display: Unstage video from primary mixer H/W on unset Resolve video playback suspend/resume IOMMU page fault by unstaging video layer on VG pipes from primary mixer H/W during overlay_unset calls immediately at the next vsync boundary CRs-Fixed: 350371 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ia1b2369005db500b5042d3226cf8d43027783fe3 commit 5ff2cb661c0575a45e8cf70384dd6c1d2dc8e7ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Apr 11 10:43:07 2012 -0700 msm_fb: display: switch mdp mode without turning off timing generator MDP need to be in idle state before switching to different mode. Dmap_done interrupt is delivered when the last line of frame is clocked out. Therefore mdp is in idle state during dmap_done ISR. This patch execute mdp mode switching inside dmap_done ISR. Therefore timing generator is not necessary to be turned off since mdp is in idle state already. CRs-fixed: 350154 Change-Id: Ib10557bde90856ffd5284a0a76dddbe92f2abc0e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d94b7d4d0c67a9bcdbb4ab1929ce70f4b6ec7136 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 23 16:02:08 2012 -0700 msm_fb: display: remove mdp writeback2 overlay kickoff waiting Before overlay2 kickoff, there is already a dma busy waiting, so once overlay is kicked off, mdp driver can safely return to userspace. Then if there is another request while ovlay2 is still busy, dma busy can take care of it. Change-Id: Ibb45a8b306a393c8e240fc64b5857e8700afcaba Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 012a8e79ebc3cd375f501a862e7b401b99c53054 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Apr 11 10:41:13 2012 +0530 msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers Many of MDP input formats don't have correct unpack pattern, so image displayed on screen is not in the actual format set. Also,Some rotator output formats differ from input, these mappings used to be handled in userspace, but to avoid issues this is now done in driver. For YCrCb planar inputs chrominance order is dependent on rotator hardware version. Add hardware check to swap Cb and Cr for 7x30 and 8x60 rotators. CRs-fixed: 339114 CRs-fixed: 337040 Change-Id: I55691aa7c9d38e83e4fc63a162ffb23959ba30c1 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 7a62a68bfa68cf9767b9cb6432c05a47e296067b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 14 15:56:13 2012 -0700 msm_fb: HDMI: Compile error when HDMI is disbaled Resolve compilation error when HDMI is disabled through kernel config. Change-Id: Ie89ac666fe4db83294cce07f59f61790b200d463 CRs-Fixed: 341412 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 87dd72e286299134b5783cb90f61e7eaec7d2788 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Apr 16 19:07:36 2012 -0700 msm: display: Clean DSI state on continuous splash disabled cases Reset the DSI clock control, disable controller and PLL to resolve boot issues for DSI command mode for continuous splash feature disabled/unspported cases Change-Id: I1e5e9a9d2d548c518d2620bf6d9e125d5efc8fd4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0769dbd1fabe600bf6a8bd1d563c9e31b8d7c122 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 19 16:54:09 2012 +0530 msm_fb: display: Update clock prepare changes for MIPI DSI Update the clock prepare/unprepare changes for MIPI DSI clocks and update the clock lookup table for ebi_lcdc_clk for MIPI DSI interface. Change-Id: Ic31e2e1b169894e633849573eb54325457080b53 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 60d51beb9dd5db3f1adeb203728b1d7ccdec8e0c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 18 17:18:31 2012 +0530 msm_fb: display: Change panel init command for NT35510 for proper display On NT35510 panel, the display is 180 degree rotated right now for video mode. Change panel init command in the init sequence for Video mode for proper display. Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d16485de65e9e7d611293f5b6174b3a3efa7a3d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 21 16:51:26 2012 -0700 msm_fb: display: Add clk prepare changes to MDP and rotator Use clk_prepare_enable and clk_disable_unprepare instead of clk_enable and clk_disable respectively. CRs-Fixed: 351340 Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0f0000abcba6f99593dab94ca869c3d865a73e29 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 12 10:23:02 2012 +0530 msm: display: Backlight control on 8x25 EVB for qHD panel Add support for backlight control on 8x25 EVB for qHD panel Change-Id: I488786b45b844df776952fed4d23b9a4fb337107 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5479cc16a03c6b791daa5eac8f45018ea873cfc1 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:40:40 2012 -0700 msm_fb: HDMI: Enhance EDID Parser to read supported 3D formats EDID Vendor Specific Data Block (VSDB) contains information regarding all the 3D video formats that are supported by a sink. This change enhances the EDID parser to read this data. Change-Id: I61ca8adbff8f4662e437bab42786149c39ea78da Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8b25b2a0b5910befcf0668dc76294f83dccc080f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Apr 12 14:19:12 2012 -0700 msm_fb: HDMI: Fix EDID parsing logic for multiple data blocks This change fixes a bug in EDID parsing logic when there are more than one data blocks of the same type in the EDID data. With this change, the starting offset used to scan for the next data block, is computed correctly. Change-Id: I5d09fe61be9f7c749197991f54e430ae3aaddbcb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 45ce501383ee71df0072b4e5426f9daa7941636a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 9 11:19:07 2012 -0700 msm_fb: display: add mixer1 writeback buf init call mdp4_init_writeback_buf call is missing for mixer1 interface. And blt_addr should be nulled when dtv interface is initialized, otherwise, mixer1 writeback mode may be false enabled which causes system crashes or garbage display on TV. Change-Id: Idbf5fe90eb50f0a68b434f2c76012c64a38553a4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 7b8b64075ee4b61c15e28f3042672b26674e0b45 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Mar 1 10:58:03 2012 -0800 video: msm: Add Histogram collection framework for MDP blocks Expand the previous histogram collection implementation to support the addition of other MDP blocks that allow for histogram data collection. Support the VG1, VG2, DMA-P, and DMA-S histograms using this new framework (VG pipes only supplying the histogram of luminance). Change-Id: I94088c1f714fa5d91256ae7b0f5548f8a0b81763 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 20582a5cf3fad8e9fda7ded6478ed8a32b376b97 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Apr 11 10:57:22 2012 -0700 video: msm: Remove an ifndef from mdp_isr Remove ifndef so later patch does not require adding more ifndefs. Change-Id: Ia06e844f42086ad76019f66b575ed78a40ebafc4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 5 19:09:40 2012 -0700 video: msm: PCC/GC config register protection PCC/GC configuration registers are shared with other features. This patch makes sure that the other features implementations don't overwrite the existing settings for PCC/GC. CRs-Fixed: 345395 Change-Id: I5467a4c50eae214181d67a7976eee92c0ae26fe5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97e2fcf862d913feff157f536ee14cfc5f3197f7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 10 14:11:22 2012 +0530 msm_fb: hdmi: Disable 1.1_FEATURE Some displays support Enhanced Link Verfications(1.1_FEATURE) which makes HDMI Tx to verify Pj on every 16th frame. Three consecutive Pj mismatch will result in HDCP authentication failure. If 1.1_FEATURE is supported(this can be detected by reading BCAPS), it needs to be enabled by writing into AInfo of display. Default is disbaled. This change sets HDMI Tx core to disable 1.1_FEATURE by default so that we don't see Pj mismatch error unless the feature is enabled. CRs-fixed: 348752 Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b52a25139f7b14bb3b9e052d1af3def2fff5d25d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 10 18:27:23 2012 -0700 msm_fb: display: Fix HDMI as primary issue with continuous splash support Fix HDMI as primary boot failure with continuous splash support by resetting MDP hardware and disabling splash feature flag in board data Avoid flickering issue for HDMI as primary display with composition bypass updates Change-Id: I9620062f10b24072ea23b7e712e24aba533f044b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6b7005caf369caf819c1bc3e29a633893b9ebcc4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 6 18:58:44 2012 -0700 msm_fb: display: Allocate writeback buffers of panel resolution sizes Allocate MDP writeback buffers based on panel resolution size dynamically Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I4a456199a05850f35c204edfa7ae3679036138a9 commit 8c23e070b04aa6160681203bf431db60eb7e2e9a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Mar 14 11:35:49 2012 +0530 msm_fb: display: Enable 32bpp framebuffer format. Enable 32bpp framebuffer format for 7x27a and 8x25. Change-Id: I38deabca45ea849710bd2edb2b6847c5309a0c9e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 2e931122a4bab690ed345730d7733904eb97d5b8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 11 11:05:39 2012 +0530 msm: display: Reset BG_alpha register while alpha blending Reset BG_alpha register when pre-multiplied alpha is not set for a layer during blit request. CRs-fixed: 351158 Change-Id: If103af384d59c3349cb2ef556a497c709d9280a2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1b064f5e1e5a7426fad6ab8ada8e47dbb091937e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Mar 15 18:17:54 2012 -0700 msm: display: Add device pointer with clk_get for retrieving clocks clk_get requires device pointer to return appropriate clocks for display subsystem. Rename the names of display related clocks in the lookup table based on functionality. CRs-Fixed: 336925 Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59e7b0e47eaee57850157361f31c230b3e1c8a8f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Apr 6 15:51:44 2012 -0700 video: msm: Allow PCC/GC to be disabled/select bins Current implementation would not set enable/disable bits to PCC/GC nor be able to select the zero'th bin after selecting the first. Change-Id: I0f52beb8914cdaecbabe913455c00fb9ea6100db Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fff7a7d207a8791a68706bf8fac3838884981204 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:27:19 2012 -0700 msm_fb: HDMI: Enable SPD InfoFrame transmission Sinks use the information in the SPD InfoFrame to get the vendor name and the product information of the source device. This change adds the ability to specify this information and transmit the data as part of the SPD InfoFrame. Change-Id: Iff3db2e21cc30cdcc18787de5fd83c6a0790794e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b64b8dee8c93cb806a906440ef8a4aa72486df75 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 3 23:04:35 2012 +0530 msm_fb: display: Unstage mixer staging on next commit for video use case Unstage of mixer occurs on single vsync. For video playback case on 8660 it is observed that sometime unstage does not complete due to which flicker is seen during unset. Unstage of mixer is now done on next commit only for video use case to avoid flicker. Change-Id: I4939148989d49b3190142f858a40d2cf7617c7ba Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit bea9c06d44800da4c7cbc75e25731a75bd9f84ae Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Apr 9 10:33:48 2012 +0530 Revert "Revert "msm: display: Backlight control on 8x25 EVB"" Enable backlight control on 8x25 EVB for WVGA panel. This reverts commit 75cf6b84b36b054cb7b8074af165cb082112c7d7. CRs-fixed: 339158 Change-Id: Ice8426442c9d82a7316dfd4d812e9f6301a97850 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c55856c548e0cec8b29e415a08a353a0ab1ac4c8 Author: Alhad Purnapatre <alhadp@codeaurora.org> Date: Tue Feb 28 13:24:57 2012 -0800 msm_fb: display: MSM V4l2 video overlay driver Provides a V4L2 device that uses the MDP overlay pipes (on MDP4), or the PPP interface (MDP3) to overlay frames on top of display framebuffer. Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org> Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee commit aabbf2b21c415c226b680df7ee61b565f47d8603 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 7 10:50:19 2012 +0530 msm_fb: hdmi: CEC re-transmission improvements. Adding some improvements to HDMI CEC code flow to reduce the risk of system crash and compliance failure by proper CEC resiters settings and positions in code flow. CRs-fixed: 336541 Change-Id: I8fb3510190e5c4ff83b3785c51bade139f20692c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6fdf4becd5fe50e52d587d35d1ee047385351f83 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 30 18:34:05 2012 -0700 msm_fb: display: Create hdmi_as_primary node for boot parameter case Create hdmi_as_primary node for both boot parameter and compile-time cases when HDMI is set as primary display Change-Id: Ib170637e3792477e46ae0fb6044b298bf8de875c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f0bd4cd4ca4114298fba41f18db9babe0533e075 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Sat Mar 31 14:35:50 2012 -0400 msm_fb: display: Epson ebi2 panel support Support fb with ebi2 only(without mdp) Add Epson ebi2 qvga panel support Change-Id: If61b2c522a102133f98f27b21dcc18d057b7ef25 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 226b429d026195ff93b7de8066d8943b58dc65a5 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:35:31 2012 -0700 msm_fb: HDMI: Enhance EDID parser to read physical address This change adds the support for reading the physical address field in Vendor Specific Data Block (VSDB) of the EDID data of a sink. Change-Id: I435705a7709ea26cff71121a2c37fd630b267ae5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d89c0e7712dd5cf13769b4d0facfecb93028538c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Mar 28 10:17:20 2012 -0700 video: msm: Load correct default values to QSEED at init The previous QSEED Table 1 values are not suitable values (would end up smoothing and sharpening content which can lead to artifacts). The values loaded by this patch are the suggested default values for QSEED since they do not smooth or sharpen most content (bi-cubic filter), but will slightly smooth low frequency components of the image (i.e. helps reduce artifacts that produce sharp edges on content that is supposed to be a constant color; often introduced by some video encoding algorithms). Change-Id: Ic4c0ca4719141bf52123ad239fcca5d3767a2c2b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5066a5f662d0d88ad4c94158fe392bb0fbd61cb4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:29:32 2012 -0700 msm_fb: HDMI: Support VCDB parsing of EDID data This change enhances the EDID parser to read the Video Capability Data Block (VCDB) in order to check whether a sink supports underscan mode. Change-Id: Id4e48db4ff7f54fd72d40a413e2f03b692b662c1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 6e73f0a25171e3e5d2d520da99a02f74c5646592 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 8 17:32:55 2012 -0800 msm: Display: Add support for backlight control on 8930 chipset. Register the PMIC WLED trigger driver to control the backlight level on 8930 chipset. CRs-fixed: 339310 Change-Id: Ia73625cfeaa18f2515c81a4c128f98f9fb5c0b32 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b7c45f42b50b609bb632a0f1f1b2e404af38329a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 3 11:39:39 2012 +0530 msm_fb: display: Enable pre-multiplied alpha for MDP303 For images which are pre-multiplied with alpha, driver support is now added to blend them properly. CRs-fixed: 347803 Change-Id: I859c26c5f52fa0886c106928ef338bd9d0db4462 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 18e249a842a459c14624354f00ef3434d3b6c643 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Tue Feb 21 01:10:56 2012 -0800 msm_fb: lvds: Fix uninitialized variable warnings The compiler doesn't know that there are only two values for mfd->panel_info.bpp. Add an else arm to catch the unknown third value as a BUG() so that we avoid writing initialized variables to registers. Change-Id: I643df7e256cda59a4af73571e1cc5eef610d781f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 2d19103b77ae63fe127304b9c3ceeb1f399c756a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue Feb 28 09:46:31 2012 -0800 msm: Enable all IOMMU's Enable video, camera, display, and rotator IOMMU's so that virtual contigious memory can be used by these devices. Physical contigious carveout regions can be reduced so that more memory is available to the rest of the system when not in use by multimedia. Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 70b866b2ca1d92ee632b5f3eb591d7ae09fab492 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Mar 27 14:50:25 2012 -0700 msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication All HDCP interrupts should be disabled at the beginning of HDCP deauthentication process so that we do not process any redundant HDCP failure interrupts while deauthentication is underway. Change-Id: Ib5149460446b6073122a8249807918d5ad06492c CRs-Fixed: 341921 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 92e58bb7966bbaf8b4c73bf98a5d55dde9980b37 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: flush base layer pipe when solid fill is enabled Need to flush bgpipe with solid fill format to avoid fetching from bg pipe when its contents are not displayed. Also add other missing flushes. CRs-Fixed: 342961 Change-Id: I03e517e02c02d9abc26fd9365e7b67025fa59657 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c0852b7c3a9d08f8d80ad2bb01316f7252f23ced Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: perform data flush for each data path separately Performing data flush on stage commit causes some frame updates to be missed waiting for stage commit, this can lead to old data being overwritten while it's being displayed causing visible corruption. Change flush to happen on each frame update to avoid corruptions. CRs-Fixed: 341597 Change-Id: If91800068d2bfd5a2e43fe3e2a96c457e173763d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d46e8d072e432c19eec0e7a2b04a9b6967906242 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Mar 27 16:22:11 2012 -0700 msm_fb: display: remove #if 0 Cleanup all #if 0s in display driver. Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit aabb74cb030c086ca67f51b3d56deb678d4f040a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Mar 15 14:25:32 2012 +0530 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> commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 2 10:20:48 2012 +0530 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> commit fd0df3ccda02dd1fad680735333bea7ac025abc5 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 30 17:03:51 2012 -0400 msm_fb:display: add display support for mdm platform add setting for no mdp hw case add ebi2 epson qvga panel setting Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 687b109b5f46caf68efde0a1c3a1084a5576a997 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sat Mar 31 15:45:21 2012 +0530 msm_fb : display : Add 60fps support for NT35516 qHD panel This change adds the required support for 60fps using h/w vsync in Command mode on NT35516 DSI Client. Panel Init comamnd has been modified accordingly. Also, since the panel gives 59 to 61 TE signals per second, refx100 has also been modified to indicate the maximum possible refresh rate with this panel. This will ensure smooth operation of DMA Tear Check algorithm. Change-Id: Ib2c03e61509946b7929c3cd21b497a972359fee3 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ff6bfa8e6f2a62ebb19aabd9ed499ee7efa0e006 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 23 17:48:47 2012 -0700 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 commit 3ef84a5ab70bbd65799dbf72b3375b0bc764140d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 22 22:14:41 2012 -0700 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> commit 75cf6b84b36b054cb7b8074af165cb082112c7d7 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 30 15:04:52 2012 +0530 Revert "msm: display: Backlight control on 8x25 EVB" Waiting for the vendor approval/permission letter. This reverts commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd. Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d85b55446992dd36bb9b8ee56f7e95be97278425 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Mar 26 15:59:58 2012 -0700 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> commit 5b5f2188eb7f6c774b435263284f6179cb35c508 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Mar 21 13:43:55 2012 +0530 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> commit 6bc448aefa897a1e08a6c817280809afc189faa7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 14 11:31:52 2012 -0700 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> commit 87260cdaef95054474e97fab85e3fb691f03a035 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 12:00:45 2012 -0700 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> commit 4a9d3382873adb7aecab07345f3d253eefd150cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 19 16:10:42 2012 -0700 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> commit 2aa111c008157070e871aa5788e9c3664935847a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Mar 20 11:58:44 2012 +0530 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> commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Mar 6 18:23:50 2012 +0530 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> commit 14e8c40443d2c2891c232c2becda9073a1a44186 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 5 14:57:09 2012 -0800 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> commit 042cd63a1b7674feaf70e41a44550678ae338bbc Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 19 12:51:37 2012 -0800 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> commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Feb 28 12:24:39 2012 +0530 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> commit a3b168b4d1f6b32f17a3498940cf198fdfba0722 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 11:13:11 2012 -0700 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> commit e350d9bcee496c06f79a6490f108f77ed73f66e3 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 26 08:29:54 2012 -0700 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> commit 28338aebe08832ba8a01c28b290615d60c023128 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 13:31:28 2012 -0700 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> commit 8d3b0fce866e5f05f18a47bc0cd8f60356dbeb23 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Mar 14 20:18:30 2012 -0700 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> commit 88ad8a7be06a86104169cf2739c18c7d4409dde6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 14 14:19:18 2012 +0530 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> commit a1f9df15e005241ecf23069f7d345f9a943c06ef Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Mar 9 19:48:18 2012 +0530 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> commit 56dfb682a5bf274842140716333c791d010e38ef Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 21 16:23:54 2012 +0530 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> commit 16f27dc68e406e181c306cc1fb924dca43fb1080 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Wed Mar 7 17:04:24 2012 -0800 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> commit fa530308e1fa485a39e35ed17879b6ab1e665c37 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 12 15:03:10 2012 -0700 msm_fb: display: Remove base layer for DSI command mode during suspend Remove RGB base layer pipe for DSI command mode during suspend to unstage all pipes in Mixer 0 properly CRs-Fixed: 343233 Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c1fa46367d021fc3e457df2bf5b6331c41ad189 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 7 17:49:09 2012 -0800 msm_fb: Handle flags for updating AR GC lookup table (LUT) In current implementation of area reduced gamma correction (AR-GC) LUT configuration,flags for read/write AR-GC LUT and enable/disable AR-GC LUT functionality are not handled even though the IOCTL accepts these flags as part of arguments. So in current implementation by default updates the AR-GC LUT which may not be expected always. So, handle flags for read/write AR-GC LUT and enable/disable updating area reduced gamma correction (AR GC) functionality Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 225152437092241cb3f6ff5b97896684d856f844 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Mar 1 17:45:52 2012 -0800 msm_fb: Restructure PCC and AR-GC code for clean implementation Current PCC & AR-GC implementation uses macros for base addresses, while other post processing features use mdp_block2base() function. Also, in current implementation check for feature supported for MDP version in device is not performed, currently function which implements AR-GC, is named as mdp4_pgc_cfg() which is bit misnomer. This change uses uniform method for calculating block base using mdp_block2base(). For checking MDP version and feature supported using mdp_pp_block2pcc() and mdp_pp_block2argc() functions. This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to correctly indicate the functionality it implements. Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Mar 12 14:55:04 2012 -0700 msm_fb: display: disable mdp flip when enabling mdp solid fill If both solid fill and flip mode are enabled, MDP underruns. So for any pipe, if solid fill bit is set, flip operation modes including left/right or/and up/done are disabled. CRs-fixed: 334782 Change-Id: I879231d03c6aab6f82d80bde65c9f01c34f1fa6c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 2bd101d5bed1729b317114456360605e86289c15 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 16 11:32:23 2012 +0530 msm_fb: Clean up the fix for error in y-offset check in FB driver There is a failure observed in yres_virtual offset check and every third frame gets skipped without an error message. Due to this high fps is noticed in the test applications. Correct the yres_virtual offset check. Change-Id: Iddce0b75e0a9c466adad6eb5726203ae0586c27b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Mar 12 19:43:41 2012 +0530 msm_fb: display: Change perf level for VGA video Change perf level to 3 from 4 for VGA and less resolution video usecases. This avoids underruns seen with camera/camcorder usecases on 8660 and older platforms. CRs-fixed: 338044 Change-Id: I12fa81f10dc6d02caed44c5b7e6f5732a57bb095 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Mar 15 14:40:11 2012 +0530 msm_fb: hdmi: CEC Message queue flush CEC message queue should be flushed when CEC function is enabled. If there are residue CEC message, they might cause collision at message queue. CRs-fixed: 338811 Change-Id: I6268528417d660fab48818ae67e94e169abbb217 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a950365ed12ab0d66367b06bd1c3236cbcf695a1 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 12 16:17:23 2012 -0700 msm_fb: display: check dtv_pipe before unset it Dtv_pipe is the base layer pipe for HDMI and it is normally populated before overlay_unset() called to free a mdp pipe. However at wireless application, there has possibility that overlay_unset() is called to free a pipe even before dtv_pipe is populated which cause system crashed. Therefore check dtv_pipe before free fore ground pipe. CRs-fixed: 340884 Change-Id: I32b69e937f21646204c7fd7275988ee12e439655 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e5c9f6e5f9fe550e228cc5b34dbde086b151a613 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Feb 22 15:09:07 2012 -0800 msm_fb: display: initialize is_flag variable This local variable needs to have init value, otherwize it is always true, possible for mdp4_overlay_perf_level to return incorrect value. CRs-fixed: 338543 Change-Id: Icbb665773545e866c7f48edaf3ecf11272713d19 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Feb 21 12:00:12 2012 +0530 msm_fb: Clean up of frame buffer 4KB alignment changes Remove redundant code from the 4 KB alignment patch and reduce the overhead of calculation of the hole size by using bitwise operators in its calculation. CRs-fixed: 325134 Change-Id: Ie2e3ea7cbb2a815ae4f50cb97e6c5be1bd72fe27 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 10 08:40:51 2012 -0800 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Change-Id: If5b80d0c3a9b5edd21ae6651321572c2fdcac951 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0507c8cefa525a89df9b9e2a305e2bd7c4f6d7b2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Feb 16 17:16:05 2012 -0800 msm_fb: HDMI: Add support for HDMI on APQ8064 Configure necessary PMIC regulators, GPIO, clocks and parameters related to external display to enable HDMI on APQ8064 target. Change-Id: Ia2741fc13c6a640ebc610461ad4242929383b611 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 5245ec886f6e282b8f3c1b0e3f7aecbfae9ed85a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 2 13:49:53 2012 -0800 msm_fb: display: change pixel sequence on lvds lanes This is a s/w workaround to fix lvds phy h/w bug. On the rising edge of lvds phy clk the phy transimits d0d1..d6 sequence, however, lvds panel from the manufacture expects d6d5d0...d4. So s/w adjusts the sequence on the phy side to meet panel spec. CRs-fixed: 338715 Change-Id: If852ba29954b363911d04cd08d3784ce7d385c2f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 416878307740e2d475511ed0f12ebbd50db8c156 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Feb 22 09:15:28 2012 +0530 msm_fb : display : Add support for NT35516 qHD panel This change adds the drivers for NT35516 DSI Client and Truly qHD panel. Change-Id: Ifb7e02300a8e42d7097845638b77e311e92f69d6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit d37b52404236bf4cadf530a238cafc5d6499d32a Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 9 20:16:21 2012 +0530 msm_fb: Fix error in y-offset check logic in FB driver After 4 KB alignment changes, the frame from 3rd buffer doesn't get updated since during PUT_VSCREEN_INFO ioctl, the driver returns -1 to userspace due to error in logic because the hole size is not considered in calculating the logic for validity of the y-offset. Change fixes this error. Change-Id: Ib151970eacab4df36fb8274be0079bc814e93efe Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fff132dffafe129620475a51c34309b4fff08dce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Mar 7 13:22:30 2012 -0800 msm_fb: HDMI: Enable HDMI on 8930 target Register HDMI device and enable HDMI driver initialization for 8930 target. Change-Id: Ia3d1f0963de079e7af3cd683a498897cd677e97a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit fd3a0274fc30e8f795365e8cd8c90d2b0b3df2d7 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Sep 26 17:29:37 2011 -0700 msm_fb: display: Add MIPI DSI 720P Orise panel driver support Add support to run 720p MIPI DSI Orise panel in both cmd and video modes Change-Id: Iefd5594ba2fafe7797378f3297d169ebbce9b963 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a6f72edcca16dbed1e345fe472df32f08f5548ca Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Mar 2 16:51:57 2012 -0800 msm_fb: Display: Change the VCO frequency range for 8960. The DSI PHY PLL is not stable for VCO frequency between 500 MHz to 600 MHz on 8960. Fix this issue by changing the VCO range from 500 Mhz - 1 GHz range to 600 MHz - 1.2 GHz range. CRs-fixed: 340956 Change-Id: If09ac96455e16c5c2ca219c74e7ee0c758d55851 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 0bb7fe942f5e655d1ac1b10398ccda73ce83550e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 27 16:06:30 2011 -0700 msm_fb: display: Dynamic boot support for HDMI as primary display Move boot parameter to board display file as early_param for proper allocation of PMEM and ION sizes. Change-Id: Icfb163f572e8e010550747ec83787b6da6e86ee2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit beaa9356713db6949eefa32ed329bf87a3461842 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 16:59:26 2012 -0800 msm_fb: display: decrease file->f_count when play Frame buffer's (fb0) f_count needed to be decreased after both overlay play and rotation so that fb0 can be closed and display will be blanked out after system suspended. CRs-fixed: 336254 Change-Id: I966e7b2bb4def0c9c09580be12048933723e2c2e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d19d0d22e03dba3b2b08356bc18ed1b2987e70c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 12:50:37 2012 -0800 msm_fb: display: call mdp_pipe_ctrl() with correct block name Mdp_pipe_ctrl() needs to be called symmetrically within same block name for both ON and OFF operation so that mdp clock will be turned off after OFF operation. CRs-fixed: 338802 Change-Id: Idda450a32c0c897327c17dda70fc05e9fb74d510 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5649bcea56c8aecbf88fb97a2a88d7142f5ca1f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 7 18:23:32 2011 -0800 msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth On HDCP reauthentication, the HDCP link status register does not get cleared unless the HDMI app clock is deasserted and asserted. Stale values in the link status registers can potentially lead to the HDCP HW block getting locked up resulting in a device reset. Change-Id: I4952c64d4087e4303cbc75dbb61f66510b0a0798 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 682888654f146d6c34c76b9db435c9c6fe58eeea Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Jan 18 16:08:55 2012 -0800 msm_fb: display: add overlay1 writeback enable and disable This logic is used to enable mdp overlay1 writeback mode when downscaling in any pipe for mixer1 requires a mdp clk rate more than its max, and disable it when no pipe requires more than max mdp clk rate. CRs-fixed: 330895 Change-Id: I67632fdc2cf4c357753603fee293817bb87581ca Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4c7ccb31068e6b606520722279fc8add740d7578 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Feb 21 12:56:04 2012 +0530 msm_fb: display: Use FIR (QSEED) for upscaling. Low resolution UI is observed on HDTV connected with HDMI. FIR (QSEED) algorithm needs to be used instead of pixel repetition to improve the performance in case the BYPASS composition is not used. CRs-fixed: 332123 Change-Id: Ib4c2b107b4ae1300458cccc7e8066d31aee50a0d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38eac1aef2250181f1a2f9d75529f0961257740b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Feb 28 16:24:06 2012 -0800 msm_fb: display: set max clk level when more than 2 pipes used Correct logic to take all pipes into account and increase clk perf level to max when more than 2 pipes are used. Change-Id: Ibe6594e23a95e72c113b98c8f08b33395677d212 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c246a1bd2edbf1607e5437ee46c0f7a043d6bd5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 20:38:43 2012 -0800 msm_fb: display: perform bus scaling updates when idle Move bus scaling updates to same place where MDP clock is changed which happens when MDP is idle. This allows MDP sufficient time to finish fetching buffers before commiting unstaging changes. Change-Id: Id6e04522928b0f815091e17054fff94e0e111ff1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3e9ca08c34561167db0e7aa7179b224d8e10a1e5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 13 12:14:59 2011 -0800 msm_fb: display: Remove boot parameter parse support Remove boot parameter parse support from framebuffer driver. This is done as a part of moving this to board-display file. Instead of detecting the panel in msm_fb file, the detection is now handled in individual board file. Change-Id: I722cc6964a815bd99b1cf0856ef9c1a4481898d4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b88ffd3484ecddbfe7a24ae9a8438b0d3792d116 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 19:42:44 2012 -0800 msm_fb: display: enable unstage caching for command panel Enable support for caching of overlay unsets for command panel to flickers between frame updates. Change-Id: Ide9a165cfddb33a5cd0756b9cd469b0c3374f2ae Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d60dff3ca61bbdc6881b9aaf34baea570c25fa32 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 14:01:09 2012 -0800 msm_fb: display: wait for vsync staging down in overlay unset Need to wait for vsync so registers are properly flushed when commiting stage down changes in overlay unset Change-Id: I56bfdf56c2a32f109f3d9264c8cc4a086ef2c356 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit acde4b6510b352b97ca1dc7d3386c6696e8f10fb Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Dec 16 15:50:56 2011 -0800 video:msm: Add IGC LUT functionality to PP IOCTL This patch adds the functionality to write to the IGC Look Up Tables (LUTs) in the MDP. Change-Id: I4789820a56748b1a5e33ee4ca979e418170695a3 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 330b4ae84d423bee684af24a2e52b4d81831a37f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Feb 20 19:24:56 2012 -0800 video:msm: Add support for updating Histogram LUT using MDP_PP ioctl This adds the ability to write to the Histogram LUTs in the VG pipes, DMA_P and DMA_S. Change-Id: I548140d01aee5c2fd437aa218a307b4d1364dade Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14b56ad8f78a974de534aa02523624304983acfc Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 22 14:56:21 2012 +0530 msm_fb: hdmi: check for multiple hpd on/off calls HPD on/off may be called from userspace and from kernel asynchronously which may result in system crash or reset. Returning in case HPD is already on/off. Change-Id: Ic6233925e02e6070e3ebc3fa40a87717e7b2ad1e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6cc11c405ae51f50436f48160faf302b8b29d486 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Feb 7 15:25:46 2012 -0800 video:msm: Move histogram reads to workqueue Histogram must be read after each histogram completion in order to clear the histogram registers; this patch reorganizes the histogram code to use a deferred workqueue task to read the histogram registers out of the interrupt context. As well, this re-organizes the histogram start-up to clear, using the same new workqueue, the first histogram that is read because it is often incorrect (too many or too few bins filled). CRs-Fixed: 328214 Change-Id: I4088028fc805113e74b5b763c6458183e75421cf Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff10d072f13a0845fc4e6dc0f82d2f51d9209e6e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Feb 15 15:19:29 2012 -0800 video: msm: Allow Enabling of DMA P Hist LUT Histogram LUT enabling was accidentally disabled by a previous patch. This patch allows it to be enabled again, while not conflicting with the patch that previously disabled it. CRs-Fixed: 336128 Change-Id: I5106999d79b5fdee255e23d31e5bc7de5d59b937 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e063a05cb7b869853ac7968c29acc0891b0d70f9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jan 30 16:26:57 2012 -0800 msm_fb: display: change perf level for 720p landscape video New perf level 3 (128M mdp clk) is used to play 720p landscape video, changed from previous perf level 2 (160M mdp clk), to save power. Change-Id: Ie27de4d2e407513eeb4cfb8fba6dd535a45c1364 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 20bd54d7d64317f2c9e3b1384133a1c550454948 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Wed Feb 22 10:22:36 2012 -0800 msm_fb: HDMI: Create hdmi_as_primary switch node If HDMI is used as primary, rather than external, create a switch node named "hdmi_as_primary". Change-Id: I694a12c1b8d223417090183b9d57913dca4df5be Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit c7a7cc6dc79a6f60b0468efd0fb3964b1ebc7a70 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Dec 15 16:25:45 2011 -0800 msm_fb: Add support for Area Reduced Gamma Correction (AR GC) Provide API for programming Area Reduced Gamma Correction parameters. AR GC is used for adjusting panel gamma behavior for R, G and B channels. Tested using dummy AR-GC data from panel calibration and fbtest Change-Id: I64e9f81510160ffaacb6927de1812dfd2a3e5436 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 85153bdf335804c526746ab8d930087b658f3d50 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Dec 13 13:56:46 2011 -0800 msm_fb: Add support for Polynomial Color Correction (PCC) Add support for programming Polynomial Color Correction (PCC) parameters on MDP. PCC is used for enhancing colors on display panel by programming the display panel calibration parameters Tested using fbtest and dummy calibration data Change-Id: I57dae828365f02d560e932ed0f26aa76c819fd31 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0056791344518f90c5708a5d3233373bb4e4cca6 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 18:27:42 2012 +0200 msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver. The Toshiba bridge has both DSI and I2C interfaces. The DSI interface is used for configuring the bridge registers during setup. However, when video is running via the DSI interface then the I2C interface is used for read/write the Toshiba bridge registers. Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit ac5337bb28f81c29b7449626f442e84742186574 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 03:26:00 2012 +0200 msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps. Fix front porch blanking according to the panel EDID for 60 frames per seconds. Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 91e4135c0f44697891b7ea933a8dacfac375a1e3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Feb 10 18:23:04 2012 +0530 hdmi_msm: Power down PHY register during suspend Add change to power down phy register to save current when device goes to suspend state. CRs-fixed: 333739 Change-Id: I5c1c4202637cc8391d1dba03071a246e4f891307 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5f4b579b68fdc6f50ba20a50e31814a7ec2bc45d Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Dec 7 17:14:10 2011 +0530 msm_fb: Change the sequence of backlight control for Gordon panel During Resume, backlight control settings are getting set before the Gordon panel has been initialized. This change corrects the sequence and ensures that display is proper after resume operation Change-Id: I22a6c857da3cb011404198b94e4347f76292a77e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 25 12:01:28 2012 +0530 msm_fb: Make buffers aligned to 4K page boundary This change makes the frame buffers aligned to the page boundary. Improves GPU performance since accessing the frame buffer from page boundary is faster. CRs-fixed: 325134 Change-Id: I6ce4477f62536a3cd81064e26dc08f2b199e181b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1573599adbb42c606d8b91854c76461b3f212c3e Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. Change-Id: Ia5a2e09372129a4358a46a623e6880095da4f0b4 CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9919b7e5503bc078720337da27a421ec3833e528 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 15:57:39 2012 -0800 msm_fb: display: perform mixer flush on every commit Mixer needs to be flushed on every commit instead of just when mixer cfg changes to flush changes in blending configuration CRs-Fixed: 336655 Change-Id: Ia56380eac1bd9dfb0795d930dc97a85dd30ba8a8 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a369ce03ca048fb511642ac1cb73c1f652d70c50 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jan 20 16:13:43 2012 +0530 msm_fb: display: Fix for HDMI bootup issue If the device is booted up with HDMI cable connected, HDTV would go blank unless the HDMI cable is removed and inserted again. This is happening because the dtv pipe is initialized after HDMI core is initialized. The dtv pipe needs to be allocated at the bootup time when dtv is turned on to syncronize the HDMI core and DTV overlay. CRs-fixed: 331867 Change-Id: I90f6434e8440548391a6846b47bb5539f2e436b7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3b9595f629805408d572892227091cd1b42560fd Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 8 16:36:03 2012 +0530 msm_fb: hdmi: Fix for EDID parser error. For an older TV, which doesn't contain Data Block Collection, the EDID parser was parsing wrong supported video resolutions. As per EDID standard, if EDID block 1 byte 2 is 0x04, it means there is no DBC available in EDID so the supported video resolutions should be read from DTDs of block0 and block1 instead of SVD of DBC. Reading DTDs for supported video resolutions instead of DBC for byte 2 being 0x04 case, fixed the issue. CRs-fixed: 332148 Change-Id: I637b91059952b63029cf4f05f750c340bdfa37a6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 36d8ccd620799d2ad224f22a4c4c34c0256e1d08 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 10 11:53:49 2012 -0800 msm_fb: display: Add DSI Video Toshiba WUXGA(1920x1200) panel support Add DSI Video Toshiba WUXGA(1920x1200) panel support using DSI Toshiba WSVGA bridge chip for controlling panel Change-Id: I36de195a0f86acd5415f2c6a0c4f0cfe050512bb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 23fa9e7a958be09f9d6743cea026a4f56b84a48f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 31 10:31:53 2012 -0800 msm_fb: display: set mdp perf_level to low level after playing video This bug fix sets mdp clk rate back to the rate for UI after playing video to save power. Change-Id: I73a0db158536b27a4a50d25b7737db4327210b8f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3b6551e3642301c92a1c96a70c4905da87b268ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Feb 15 16:11:39 2012 -0800 msm_fb: display: Add supported MIPI panels to LVDS/MIPI detect config Add supported MIPI panels to LVDS/MIPI panel detect config for backward compatibility with old targets Change-Id: I31048cd51c8e8d09e7a16c5f81eb3e6dc9c59259 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 55648fc2ab536294f7d549c822df8f17317b91c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 19 13:43:44 2011 +0530 msm_fb: display: Add mutex during display turn off There is a possibility that suspend operation trigger during a display update. Add mutex to serialize suspend and display update operations Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 13c5b2aa0116ee7859eb9331efd111e535db335d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 12:32:37 2011 +0530 msm_fb: display: protect dma status for video mode panel There is a possibility of race condition between dma update in ioctl context and isr context, hence add spinlock to protect the dma status in video mode type panel for safety in dual core environment. Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7716ef8c6180714d9948ecc008fb82ffef5628d7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Feb 2 19:04:18 2012 +0530 msm_fb: hdmi: Fix for different resolution TV switch hang. On connecting 1080p TV, then connecting 720p TV and then connecting 1080p TV again results in system hang. Hardware is waiting for reading AN in hdcp authentication part1 and then the resolution switch happens, which clears all the registers and we are in lost state. We need to protect the reading of AN bits in link status register and the reset core from muliple access. CRs-fixed: 334143 Change-Id: Ic5399a79a37a4285b1d10998cb1ffb4913c39f51 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d7185f60b02879c6b07293380a505791add19752 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Feb 11 01:36:41 2012 -0800 msm_fb: display: add mixer2 writeback userspace support Apps, e.g. fbtest can access mixer2 writeback functionality in userspace by providing ion writeback buffers. Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1af8a35b8700d507016d6c05488401dbf6af0431 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Feb 9 14:34:23 2012 -0800 msm_fb: display: fix underrun seen due to scaling accuracy When making scale phase step ratio calculation, accuracy is lost when sizes are big since calculation is done in 32 bit and some truncation happens; this leads to underrun in mdp hw since scaling ratio doesn't match the src/dst rectangle. Increase accuracy by performing division again on remainder and appending to lsb of ratio. Change-Id: I6baa69a70a55e402c8924b51cab86afa6d0e9b5c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 57e30678c19f540108d99e81fb03fdaa86105d95 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Jan 30 16:58:12 2012 +0530 msm_fb: display: Featurize pm operations for external display Featurize suspend/resume operation of the external display to resolve compilation error in cases where external display features are not defined. Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit b0d8321014da0ff547e8386d09a6bb3146320834 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Feb 13 13:51:47 2012 +0530 msm_fb: display: Fix for compilation error with HDMI as primary Proper variable is now used to avoid the compilation error. The function where this error is seen is compiled only when the HDMI is configured as PRMIARY. Change-Id: I74a9693ceef49143412101a6a8360d2241f75e91 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ab05f94b75a40fdd70f018a12fef1d8e0b972175 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 9 19:18:45 2012 -0800 msm_fb: display: Add LVDS display & LVDS/DSI panel auto detect support Add LVDS display PHY/PLL configuration and panel backlight support. Enable auto-detect support for LVDS/DSI panels Change-Id: I36a1a3c4cee9e015ae6fd03257bd10efa81450d8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94f25dcbd137d139e31be55c461a95b39f730cbe Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Jan 31 00:18:33 2012 -0800 msm_fb: HDMI: Export interface for setting Audio info frame The Audio InfoFrame contains information that allows for the format of the digital audio streams to be identified more quickly via out-of-band information and, for multi-channel uncompressed audio provides channel allocation information for the sink device's speakers. Currently audio info frame is hard coded to support 2-ch PCM. To Support Multi channel PCM, correct channel allocation information has to be sent to HDMI sink. So export the interface for setting audio info frame to HDMI audio driver. Change-Id: I7d0d5cf9f8792250bfd6e5eb003a8360ccb9707a Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 56499ed9d52ec2adfab9d8d48fa1495698fbbb75 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Feb 9 16:12:00 2012 +0530 msm_fb: Display: Update panel initialization sequence Update the panel initialization sequence to avoid tearing effect on the panel Change-Id: I933ba5cadf1d2620bc571bd3a307494d838c2b38 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 5cef5f4de20c409e8e1ba31bd97aca111677f49d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 11:39:16 2011 +0530 msm_fb: display: add spinlock to protect dma status. During dma transfer to interface host the status of the dma needs to be protected in the smp environment. Change-Id: I02b4f046de7f693bb098343b7345c4aa6ca395bd Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7f4205b6487f81a3c504726263ffeddbc74df833 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Dec 19 12:29:52 2011 +0530 msm_fb: display: Add SMP-safety for PPP Operations Adds protection using spinlock for the variable used in controlling the PPP operations Change-Id: Iba6ef5e32d38668bd110ed23ee9631aa40de79e0 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5978cd2b581df55aa0c23a1478239b2e7bf7942d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 26 11:10:46 2011 +0530 msm_fb: display: remove while loop in mdp ISR As mdp interrupt is enabled on-demand, there is no need to have a while loop to handle interrupts at random time. There is possibility that mdp clock is turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Change-Id: I3716638974d8e24eda4a5146421d026b0ca85b4c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1e6fcce3a2382b6af0c02aaed6bb503ac5d53b5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 16:24:22 2012 -0800 msm_fb: display: fix primary not resuming after suspend when hdmi connected Update bl_updated variable only after succesfully changing backlight, otherwise it can be set on hdmi play which doesn't really update backlight so primary remains blank. Change-Id: Ia08713ff0fbc88a98acd004a909c995fcd5726c6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d3a2993f02636b865bb59b075b12586513c7ba9f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 12:26:39 2012 -0800 msm_fb: display: fix no resume after suspend for cmd mode panels Base layer pipe is updated only on ui kickoff, in bypass mode ui kickoff might not happen and that is why panel won't resume. Perform base layer restore on resume to allow panel to resume. Change-Id: I6031569077731fae0a716175d62fe4c0c85c6c36 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 540124b79dd7b3bc25651935999f6fe422152fa4 Author: Amir Samuelov <amirs@codeaurora.org> Date: Wed Feb 8 18:18:51 2012 +0200 msm_fb: display: Add write permission for 3D barrier file. Allow user space application to write to 3D barrier for control. Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit d9f38b0c3bcb8cb16e5b8d433caea647f9c875a3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Feb 2 18:57:03 2012 +0530 msm_fb : Add support for Yamato format Changes to support Yamato format as a source format. Change-Id: I334fd059d2a06ea2796eb24f4a69fdb4be4e9789 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0cfba7b42b33cc0712d81d3ea917a235b3cd8d7c Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Feb 6 11:02:12 2012 +0200 msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver. Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver. Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 4b3395e1e6441673fb41c8fea58ea3e1422c3590 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jan 28 21:45:03 2012 -0800 msm_fb: display: Read DSI platform's data lane swap for Novatek panel Read DSI platform's data lane swap setting for Novatek panel and set it in panel info for programming internal lane control register Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2664ca29cca2ba9a46b0a992ba4f529e5208bab7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 7 15:31:42 2012 -0800 msm_fb: display: clear mixer blending cache during resume Clear mixer blending cache so that new blending value can be committed during system resume. Change-Id: Ie4e8399cdbbdb2153417c19e7f8019f38a294dd6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 18044ce96c01a440a2ade3711aba776aa1fea64a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Dec 13 23:22:48 2011 +0530 msm_fb: display: Add support for MIPI NT35510 WVGA panel. Adds DSI client and panel driver files to support Command and Video modes with NT35510 client and Truly WVGA panel Change-Id: Ia41bf282d070fa5fc5e0afeb24366a540c7ca9f5 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e6f182a1d4d1e186ae75f3a73cc496d94f983761 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 7 09:14:03 2012 +0200 msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel. Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver. Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9705d1ebd4e39d0428a950589da9f5963d22ab74 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jan 17 15:29:57 2012 -0800 msm_fb: display: increase timeout value to 2 vsync wait_for_completion_timeout() may timeout before overlay1_done interrupt when one vsync timeout is specified. This cause mdp4_overlay_dtv_ wait4_ov_done() to return prematurely which causes a falsely increased FPS. This patch increases the timeout value to 2 vsync to prevent premature timeout. Crs-fixed: 330723 Change-Id: Iac516525f328be01cf81ce3f4e95e5d6a4ab80ca Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit bbcf4477c7e7d8ba7208e179f55bc8e550de08a7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 20 11:35:24 2012 -0800 msm_fb: display: enable MDP interrupts base on panel interface Enable necessary MDP interrupts base on panel to avoid triggering dma_s isr handler. Crs-fixed: 331668 Change-Id: I139a6193338a1b0a7c9cc7869e3ea1b3f9a65c4d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 94c8a2c7f32371057f094cac19aa1bb905e714f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 6 12:35:14 2012 -0800 msm_fb: display: perform staging updates on a single vsync Store all staging updates locally and write to hw on a single vsync only when changes are detected, this allows a smooth transition from using multiple overlays to framebuffer for UI Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9cb0ead92fa1188c99ee9bcdc1148dab17b48a36 Author: Jeff Ohlstein <johlstei@codeaurora.org> Date: Fri Dec 16 13:30:08 2011 -0800 video: msm: change normal operation prints to pr_debug There is no need to print every time an mdp4 overlay pipe is allocated or freed. Change these prints to pr_debugs so they can still be used for debugging if necessary. Change-Id: I91ba245ce54ab8a963539cfdea6d8d92efaf52a4 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> commit 207b565179fe95d9537ad1d8172ba9de91a3fbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 18 21:21:15 2012 +0530 msm_fb : Check the validity of Histogram start/stop ioctls. Histogram start/stop ioctls are called now without checking if the panel is on or not. Add check to validate the ioctl calls in this aspect. CRs-fixed: 327910 Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 62f887ce4c6a52be4a4b846606768c19487742b7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 11 22:56:59 2011 -0700 msm_fb: display: Add LVDS display driver support for Chimei WXGA Add LVDS display driver support for Chimei WXGA LVDS display panel Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba commit 79d05a646f8af2658ad8f0aadb73c47cb277cc95 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Mon Jan 9 15:18:33 2012 -0800 msm_fb: HDMI: Switch device node for HDMI Add switch device node for HDMI on initialization. Final node path will be /devices/virtual/switch/hdmi Set the node state to 1 on HDMI cable connect event, and successful HDCP authentication, if applicable. Set the node state to 0 on HDMI cable disconnect, HPD off events and HDCP authentication failure. Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940 Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit cb6b2e9c9ecb6884f556456b3d1ce4d877570534 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 19 16:05:27 2012 -0800 msm_fb: display: Add external display PM suspend support Remove PM suspend registration from HDMI driver and add it in MSM framebuffer driver Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8562e7893e41969f1fe15839b7020b75401f6d72 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jan 24 18:34:29 2012 -0800 msm_fb: display: Remove HDMI PHY power settings for proper PLL locking Remove HDMI PHY power settings for controlling PHY along with HDMI PLL in clock driver for avoiding random PLL lock detect failures Change-Id: I4016d5711b06785be3dd47782a187196d61445de Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 175d1281a5c1635cffc911dac261efc67d807c9d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 20 16:57:23 2012 -0800 msm_fb: display: Cleanup log messages for ION buffer management Cleanup log messages for ION buffer allocation and de-allocation functions Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5 commit 0bd48279653be46c7b91648e1ae0d93c7131e425 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jan 24 11:59:50 2012 +0530 msm_fb : Check validity of histogram bin collection When CABL is disabled from UI, wait for completion gets killed. Histogram bin collection is invalid in this case. Add checks to handle this scenario. CRs-fixed: 331527 Change-Id: I0c25417672ee44a63011f76f2c998cbef9ae95f5 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fa1de67dbadc084aa9fd6afa5ab4fae335089334 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 5 12:37:59 2011 -0800 video: msm: Adding CSC support for other MDP blocks Adding support for VG1, VG2, DMA_S and Overlay Mixer 1. Change-Id: I95a5832a70fd893970e82dadcec1e11ed608d79c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c7d7aa888a33818f278bdce86fa6c349561e05ea Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Jan 21 17:17:06 2012 +0530 Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3" This reverts commit ff77f57b5bb1cd55bfdd3a14430470829e360822. Patch causes histogram ioctl to fail after there is no UI update for 50 ms. Abl-daemon handles static screen update case in CABL from now. Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 3ab14ddf6e9fa157c292ba7442550628f090b5a5 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jan 20 22:40:52 2012 -0800 msm_fb: display: increase wfd resolution to 720p Wi-fi display can support upto 720p resolution. CRs-Fixed: 332226 Change-Id: Idd4f293d364bb52ff5e85c58a713fc1d36b29c1b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 228895ae217589ca71aa464f7c22bc4cedd06f77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. Change-Id: If5de484fe19dd3e949107d5b0d72f9594ee2e76f CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0da46929eb69a01fa4b1d26a317e8fcc60a024ac Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 15:08:04 2011 -0800 msm_fb: display: add mdp overlay1 writeback This feature is enabled to avoid underrun on the display external interface (HDMI). For example, if 1080p to 720p downscaling is required, and mdp clk rate already is in its max, writeback is the only solution for this situation. Change-Id: I2323272a90730da45601f1d4c7dfc2bf06337b59 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jan 5 10:36:31 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 284fc85908c31b7424cc600083c2499d4188bdfd Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Sat Jan 14 14:45:23 2012 -0800 msm_fb: display: Fix incorrect goto call During the probe for writeback panel, for MDP hardware versions earlier than 4.3 an incorrect goto call un registers the bus scale handle that primary panel uses. This is causing the boot failures because the primary panel turn on sequence triggers the bus scale update request on already unregistered handle. Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit fa559f6cb6c9a75beb48b594f952ccfe213c4234 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 13 16:28:54 2012 -0800 msm_fb: display: fix underrun seen with big src coordinates MDP underrun happens if combination of x + w or y + h exceeds 2048. To handle such use cases add an offset to the source address instead. Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit da2f3cc0003c55cd18d6f052ecb9530fe2acea9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jan 5 15:32:57 2012 -0800 msm_fb: display: perform backlight updates on overlay play Perform pending backlight requests on overlay play to handle cases in which framebuffer updates are not happening to update backlight. Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ff77f57b5bb1cd55bfdd3a14430470829e360822 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jan 13 16:32:31 2012 +0530 msm_fb: Handle static screen update case in CABL for MDP3.0.3 Avoid histogram bin collection and copy during static screen update. Histogram ioctls are also returned early in this case. Change-Id: Id75a2a61e018f683e2ec2d23c0fb78e1c7605a7d Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit daa069f0949391f7b6fa7dcc26d854b790c14906 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:09:24 2011 -0800 video: msm: Adding CSC configuration for DMA P This enables the ability for the MSMFB_MDP_PP ioctl to configure the DMA P CSC registers. Change-Id: I1e18646decdd26641592bbc2a2dc0a4aa74e5f8a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff85b428535a84bc00648e4a097332aeaebd676c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 9 00:07:05 2012 -0800 msm_fb:display: Fix compilation errors when DTV is disabled Change-Id: I33b6426a202b60fe2f3d2fd007e05ce839283c0a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ca82bd65223f61c193fd2600479bd18c09f7b1dc Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Jan 10 15:57:53 2012 -0800 msm_fb: hdmi: Correct logical clock rate for 480p We need to keep the logical pixel clock rate for 480p video resolution to be 27.03 MHz even though the hardware internally only generates 27.027 MHz. Change-Id: Idc653062e0a155e69753a8b58b9abf6106cfb8e0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4f4b108a0931736c2b3d5d0b577f1f557247167c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jan 11 10:02:34 2012 -0800 video:msm: Fix histogram error check logic Current error check logic is incorrect. Starting the histogram should throw an error if the histogram current state (mdp_is_hist_data) is already true. Similarly, stopping the histogram should only throw an error if the histogram current state has already been set to false. In the cases of suspend/resume the mdp_histogram_ctrl calls should only be allowed when the histogram desired state (mdp_is_hist_start) is true. Change-Id: Idef307293a7e4fb70807e9cea53078bf3cc67f15 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 061c8d1b5097067a2348431f26ad193a37ae02c8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 18:37:36 2012 -0800 msm_fb: display: fix underrun seen for some YV12 format input Underruns seen on display because source rectangle width is aligned to 16 before being passed to MDP. Only ystride should be aligned, source rectangle should be passed as received. CRs-Fixed: 329453 Change-Id: Ibb71ad316023d21ebad4c5db37fdc5e5c8acb02b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e1ba2705ea4c9960f4349c57d115f4a79482f3a0 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Wed Dec 21 16:24:52 2011 -0800 msm: wfd: Adds writeback start/stop functionality. Removes register/unregister calls and replaces them with start/stop. No need to pre-register the buffers anymore. Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit e240c2f738e6b3c4bc754442a8da3a351a0d68cf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 3 15:43:29 2012 -0800 msm_fb: display: fix mdp clk rate settings If the video resolution is changed from higher to lower, mdp clk rate cannot be changed before overlay_play. Otherwise, underrun may happen because of a lower mdp clk rate for current higher resolution frames. On the other hand, if the res is changed from lower to higher, mdp clk rate must be changed before overlay_play to avoid underrun. CRs-fixed: 327811 Change-Id: Ieac4d2e1644e5687e3506b37799c56e19a17b991 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bf300479078611dc528cd0e2decc4fdb3c282c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 12:33:13 2012 -0800 msm_fb: display: fix hdmi connection crash on 8660 Crash happens because RGB pipe is not completely setup when initializing the base layer pipe. HDMI crash no longer happens after initializing RGB pipe correctly. Change-Id: Iff2e989db95b86fd81afc7e04d12d3d8f099acd7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 06237550f191c8d218030a231a9fefe0d7bd3f76 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jan 4 16:35:26 2012 -0800 msm_fb: display: Move debug messages to debug statistics Move some debug messages that were shown as errors in display driver to debug statistics to avoid excesive prints in kernel log. CRs-Fixed: 326925 Change-Id: I529586f0e79baf27e2ae17f08fac203ba28bf416 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9add8a944993cb6bf90b12344731bb279fb366c9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Nov 21 12:51:36 2011 -0800 msmfb: display: fix the issue with overlay wait api calling overlay wait api asynchronous to the other overlay apis results in race condition in protection flags. this case is observed with HDMI true mirroring feature. it modifies the protection logic to fix the race condition Change-Id: Ib933055a395c2fc743f018aee96090defde33d37 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ca0aeaa65f7d4c2896e881e20e2b1892e5f96dab Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:08:03 2011 -0800 video:msm: Adding stub for MSMFB_MDP_PP ioctls Basic handling of invalid copy_from_user and op from an invalid range. Change-Id: I788b28d3804e7312ee18310011c75d11287c4c6c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 880f847f5daf4517a4090e62ea1345ed69ff05fc Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Dec 14 03:52:28 2011 -0800 msm-fb: display: ION based allocation for writeback buffers ION based allocation is added for the writeback support for content security. Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 285745f9b9cf52a4f69711a3737ca185e0e699ec Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Dec 29 18:31:46 2011 -0800 msmfb: display: clean up of the writeback buffer variables clean up of the writeback variables to change the write back allocation for ion support Change-Id: I4999e43cb2f7111853e9c4a17852b2d5a351204e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. Change-Id: I526ce7bb5e6894e07040cc409c8a700e4a78a9fd CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 304248c9d5bfa96e965a2a08c134cb5b20aac00a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Dec 29 14:04:27 2011 -0800 msm_fb: display: fix mdp blending logic Handle case where blending downscaled VG pipe with alpha channel since alpha channel will be dropped by MDP hw. Also propagate framebuffer pipe alpha to top layers only if they are opaque to avoid picking up from layers which contain alpha. CRs-Fixed: 326178 Change-Id: I73cfc0716d1f5f8a803a645bdc09b97f909e593d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 276bdaa5717d379e072137f004dd79133058d70d Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:44:53 2011 +0200 video: msm: Update CONFIG_MHL condition Replace generic CONFIG_MHL by a specific define CONFIG_FB_MSM_HDMI_MHL.implemented in Kconfig Change-Id: I3a8393518ca4f3adc1d74a62cb615ca629269af2 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 819b257a51108b3833256804030c522dc7059cb0 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:36:56 2011 +0200 video: msm: Add FB_MSM_HDMI_MHL to Kconfig Add FB_MSM_HDMI_MHL config to enable/disable the HDMI to MHL conversion support Change-Id: I51b58e9ca687e244c5b818a3aefb211e605c8e2a Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit b52368bee31a047be045687253e3805c008bd4e6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Dec 22 12:09:17 2011 -0800 msm_fb:display: Enable Layermixer2 for nv12 writeback enabling the layermixer2 for new MDP hardware so that it can be used to writeback the output in nv12 format for wi-fi display usecase Change-Id: I70322e722d8382102077db2d94a9320c2f2bb175 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit d0de5f990ab738a8b9c67fefc63b67e31d457f89 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 20 13:57:28 2011 +0200 video: msm: Add support for Sii9244 MHL video modes. Currently the HDMI driver reads the video modes of the external panel using EDID and matches those modes with the HDMI TX Core supported modes. If the HDMI signal is routed via the Sii9244 MHL chip, its video modes should be also taken into account. Change-Id: I841071c47dde94d9a91727d5f31b0ec43a957689 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 6a75b86e9f0707f46f0fd161481da25235bd037c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 10:33:39 2011 -0800 msm_fb: display: Add backlight with first pan display after resume Add backlight call with first pan display after resume operation of framebuffer driver CRs-Fixed: 323682 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic27c2c9fe37b622bbd9ab5933ca45626decd53ae commit 48d8f219004677ead97d6a5a0b89b54625c2f15d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 11 18:22:29 2011 -0800 msm_fb: Power saving for enabling HPD feature. Don't initialize HDMI PHY while enabling HPD feature. CRs-Fixed: 310913 Change-Id: Ib18f93dfa848218e0a6a1fdf06944e6696e08bbc Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 402adc6142598abcb2a41a941895003f57f289a5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e88f8f552a6102b8622ca6f88e78f2a244531746 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 19:07:20 2011 -0800 msm_fb: HDMI: Fix Coding Style Warnings This change takes care of all the coding style warnings reported by the checkpatch script. Change-Id: I31506132176f269ce2971dc45ffaf6e8b4b9dab5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Change-Id: I6d21103d049bf22d3a09aeeafab1a50119597d7e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b7b13f07b1b7f3c721752163f8b0279042636a02 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 18 11:20:08 2011 -0800 msm_fb: HDMI_COMPLIANCE: Disable Encryption on NON HDCP builds. HDMI Compliance require non HDCP builds to work on HDCP SURF's. Do not set HDCP flag for NON-HDCP builds, so that encryption enable bit is never set. Change-Id: I6f2df598fe2ed4d9ae3673fcec74b76c30e3c0dd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 910183691eb3d8c06f6344cfd57ae4e30716ff94 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 14:57:43 2011 -0800 msm_fb: display: allocate mdp writeback memory The writeback buffer is already reserved on the board side. This allocation separate writeback buffer from framebuffer. Change-Id: I312be3e0dfcf4c5b611cd06cd68d2baae7e2add8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c174d301d899a3242efc5d30d549c9fde8270b78 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 15:38:26 2011 -0800 msm_fb: display: enable pixel repeat on VG pipe only for alpha upscaling VG pipe doesn't support pixel repeat/drop to avoid alpha channel drop during downscaling. Keep pixel repeat only for upscaling. Change-Id: Id400d0f823bc0054a94330600d5085778a65b936 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b879b66c84b849ea78bcdd2400bacd7e0311561 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Dec 16 16:04:09 2011 -0800 msm_fb: display: Add MDP 4.2 footswitch ctrl at suspend Add MDP 4.2 footswitch ctrl at suspend/resume for non-HDMI cases Change-Id: I1071c0106ffc52c7f337e9f612a6ec9eb4746edd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52e88234977cd598e4902841869207b670f1321b Author: Ajay Dudani <adudani@codeaurora.org> Date: Tue Dec 13 13:33:10 2011 -0800 msm8930: Temporarily disable HDMI by default On some 8930 variant boards, we see a kernel panic on HDMI core power on. Disable HDMI temporarily until this is root caused. Change-Id: Ibfa1d851897c6f38c8f17cde8d3529a373203f1e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 89d519ca92ba2f8c70d595f1950691170c577486 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 17:31:35 2011 -0800 msm_fb: display: Fix DSI cmd mode color swap issue for MDP rev <= 4.1 Fix DSI cmd mode color swap issue for MDP rev <= 4.1 CRs-Fixed: 323479 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic9841f0eb89df7afea7ec1c9486e8cb0e6bbb58d commit 6a601cdc35501835a0b19718329be70f696a34ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 18:16:25 2011 -0800 msm_fb: display: fix mdp underrun on disabling writeback Writeback fallback for mdp underflow can be enabled/disabled dynamically based on parameters; if writeback is disabled while displaying previous frame it can can cause underrun. Disable writeback after programming new frame to avoid underrun. Change-Id: I6c73887043f19596cb3611c83c51c1aeac907ff0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8e3cb69445244c620d5742b8f3cb57c3a8bef5c4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 17:35:51 2011 -0800 msm_fb: HDMI: Remove Audio Packet Ctrl Reg Setup With a recent change we do not set the Audio Packet Control Setup register (offset 0x0020) on HPD connect event. In addition, we should not reset the value of this register whenever HDMI is powered off. CRs-Fixed: 323928 Change-Id: I1ecbb9c87470b5cedc7351198cf73c5d7406ceb6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit db7007f5a6697cd5239f433b010440bf5a5650e7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 14 02:17:58 2011 +0530 msm_fb: hdmi: Add DVI sysfs node For DVI mode, audio should not be routed. This routing happens through HDMI daemon in usespace after confirming the mode from HDMI core. This change gives HDMI daemon a way to determine if the mode is DVI or HDMI, based on that HDMI Daemon can decide on routing the audio. Change-Id: I4afa746d6195b02046305a33a2b6a8b693510ba6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Change-Id: I304bb088ef1147e562fdeb6f7eb02ed570aba627 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 88426ca238a783acf165f8b4e0958cd3cced6cf9 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 13 13:31:41 2011 +0200 video: msm: Add mhl api header file MHL API defines an interface for HDMI driver. The API provides the information of the MHL connection state for HDMI to transmit the MHL supported video format. Change-Id: If19e497b7a238eb0465f9fb13b5586d3b9043360 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit a35b234783de0a3dd4e21d784081d35309592e51 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Thu Dec 1 17:38:01 2011 -0800 msm: wfd: Fix compilation error. Changes function call to match the new API signature. Change-Id: I6b1cadca697c5b7431ee2648a4d34df21b46ce52 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit b240803778c9d2c9788bd33587c9c63edb7d6801 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 10:52:48 2011 -0700 video: msm: Track validity of and synchronize histogram Adding mutex to more thoroughly lock histogram calls; additionally, adding a flag to track histogram data validity. Together they ensure that the histogram is not started, stopped, or read out of order. CRs-Fixed: 310429 Change-Id: I276974811a5e673b05c68b41f5fbff5b178165cb Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 562c58fbf58a55b9dc8cde472361cb8d3cb6a1e5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Dec 8 08:47:33 2011 -0800 Revert "msm_fb: display: decrease mdp_timer_duration" This reverts commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00. Change-Id: I3312c878370ce72a611423085c8cefe42028d21e Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fc6be921eeb73aea9bd625189f225d199908b685 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 4 15:22:39 2011 -0700 msm_fb: display: enable border color fill on external display Enable border color fill feature on external display. This avoids usage of RGB pipe for background border fill and can now be used as overlay layer for UI display. Change-Id: I652ab3ffe2c43260590e4e5a2ffc986340c4a8c0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d2fb0bd826f83b6bc3fc2d0819773f25bd2b049f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:38:14 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Reset DDC control logic upon failure This change toggles the HDCP_DDC_CTRL_0 register to reset the DDC control logic, in effect enabling the DDC controller logic to continue to function after hitting a DDC failure. This is needed to pass HDCP compliance on MSM8960. Change-Id: Ic11a4d4de375aab9b3948cbde7eda5aca7aefbd6 CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit daf5e17901e7519de3bfc5752dbd95093aeb2527 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:34:40 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Disable HDCP interrupts on de-authenticaiton This change disables all the HDCP interrupts upon de-authentication. In addition, we also clear the HDCP AUTH_FAIL_INFO register upon processing the AUTH_FAIL_INT interrupt. This is required for passing HDCP compliance for MSM8960 Change-Id: Iefe544c8c972e4d3b5fa4ccdd513c411d1781b3d CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 34c5f958890c8881e92a05e05ac6f95b5a48eaf1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 13:56:59 2011 -0800 msm_fb: display: cleanup overlay0 writeback funcs and config flags The writeback blt mode is controlled by assignment of blt_base (NULL or not), only the #ifdef in board file is effective. Those flags and funcs on the driver side is cleaned up. Change-Id: Idc9a7fbb5525071bf3cf68e5182bc7f6a5693932 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a12cc95a7e8b5f4882307f0ec7516f62ef8ab21e Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 18:14:50 2011 -0800 msm_fb: Discontinue use of clk_set_min_rate() This proprietary API will soon be removed. Replace use of it with a combination of clk_round_rate() and clk_set_rate() where appropriate. Calls to clk_set_min_rate() with a rate of 0Hz followed immediately by a clk_disable() served no purpose and are removed entirely. Change-Id: I56d680ee36cc6292dcc436eeec7acdc57f3c243a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 2aab6fd9b00955b2e836a873cd5a27bddd2f3644 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 7 07:23:34 2011 +0530 msm_fb: hdmi_msm: No HDMI for 8627 The HDMI driver should not register for 8627 target. Change-Id: I3ef882e76d374eabc15ed5c3121ac7d6f618f616 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e8943499da4389b9f32658f19da0ced6b7ff565f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Nov 1 13:04:10 2011 -0700 msmfb: display: enable the blt mode for bigger line length blt mode is enabled for bigger line length to avoid the underun on qt devices Change-Id: I6055f494034b1e64fbf6fb083442f9513634659c CRs-Fixed: 316327 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 954620c40355894763ea1aeff4646b2adb30a594 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 14:50:48 2011 -0800 msm_fb: [HDMI_COMPLIANCE] HW reset on HDCP reauthentication We need to add a small delay before reading the AN0 and AN1 registers once they are ready, in order to avoid hardware reset. Change-Id: Iba9465ee83dce66ae99ab5885015d977d54c0612 CRs-fixed: 319542 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9a2673aca6aae756ef36b35e981c7c349845edf1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:03:25 2011 -0800 msm_fb: display: fix invalid receving length bug Since expected receiving length need to be divided by 4 evenly, it need to be &= ~0x03 instead of &=0x03. Change-Id: I68912245c6fc499bdb652ed327d60bcf60487d40 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e22c42d680cfa7abedb0b29431bbbd83451f19c1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Nov 30 17:35:51 2011 -0800 msm_fb: display: move the prefill function inside the config flag There is a compilation error if the config flag is not set, so the func has to be moved inside the #ifdef. Change-Id: I6163606c389e8e4767239cf74eb8260fca728728 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ebefc805a139e8222061b32cbf7686d76122de5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 30 09:15:12 2011 -0700 msm_fb: display: decrease mdp_timer_duration mdp_timer_duration decides when both mdp and vsync clocks be turned off after last screen updated. Decrease mdp_timer_duration to 20ms to have clocks be turned off sooner. CRs-fixed: 315271 Change-Id: Icf7f0a64ab38dd5184a12242cfc190efa31016a9 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit edcb9567783846d292410c14fc4b99612ef1caff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:02:50 2011 -0800 msm_fb: display: remove mutex from mipi d2l register read/write Mutex had been acquired at dsi_on() already. Hence no need to acquire same mutex at mipi d2l registers read/write function again. Change-Id: Ie47590771c287a8e7c42aae568c1703a7e9107a4 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fa14cb039938c7a60007b6e5f1c4db2541faa18e Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 19 13:00:16 2011 -0700 msm_fb: HDMI_HDCP Compliance: Fix for test case 1B-01a In the case where there are many downstream receivers connected to a repeater, we need to poll for HDCP_SHA_BLOCK_DONE bit everytime after writing 64 bytes of the KSV fifo. Change-Id: Ic304250a73ad6573c43b4eb910a7eb7eb2b4dee9 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8863118c485d2dff94dfa259a95d069d15994b29 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 28 23:55:53 2011 +0530 msm_fb: hdmi_msm: dynamic sample rate change for non-hdcp Adding support for other modules to dynamically change the sampling rate in HDMI core for audio which is supported by NON-HDCP surf/FFA as well. Change-Id: I2e4f239e43251b2dc5f8529b7c352a94456ad974 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 0948c68fe35913119f2d025168b381e6ca1d2db7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 16:50:43 2011 -0700 msm_fb: display: update mdp statistics Update mdp4 statistic information so that it becomes more useful during debug session. Change-Id: I0b88428bc692c28284f9091e143f0cf10079225d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0fc5d36176b8feaa360bff9c5d46c481cea8a42b Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Nov 16 05:48:33 2011 +0530 msm_fb: hdmi_msm: Add support for audio sample rate change. This patch provides the support for changing the sample rate dynamically. Change-Id: I973e5240e6f545b85ab2872aa0786b2d80ee2d2f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a077d0063dfb8a39a869f56099dd0ffe85301180 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. Change-Id: Iee8d5d019b74edd675b23ac8dd34535766714eb2 CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 6b2d8af94b0fc441eefb65e87a964208783dac3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 16 10:02:01 2011 -0800 msm_fb: display: commit BLT to mdp register during video kickoff BLT (writeback mode) need to be committed to mdp register before kickoff. Normally, UI kickoff will follow immediatly after BLT enabled/disabled. However sometimes video overlay play happen before UI's pan display after BLT enabled/disabled. In this case, video kickoff need to commit BLT to mdp register too. Change-Id: I7b085f516f869009e7fc4b443f7858a61fce5ba3 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 3875379164cd350591eb8a1f4ea06994004a21ce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 18 13:14:08 2011 -0800 msm_fb: HDMI: Support for 576p 4:3 in HDMI Driver The firmware upgrade for the QD 882EA box requries us to have support for 720x576p 4:3 aspect ratio. Until now, we have only supported 720x576p 16:9 aspect ratio. This change adds the appropriate values to the AVI Info-frame lookup table. Change-Id: Ibc1165ab2445977e7b253a20b0d9396e1ae88ce1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4b910f252587e25699eaa4daa5036ab3bfb73c3f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 15 09:43:04 2011 -0800 msm_fb: display: enable mdp chip select controller Enable mdp chip select controller so that CS signal is asserted or de-asserted by MDP according to activities of memory access on both read and write to save power. Change-Id: Ic0acc1c8cbe06c5f3cf25627af209abadeb1350c Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 465c15903f44453a235d7eb9be4b6bde51368370 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:06:15 2011 -0700 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Change-Id: I9ab9bf2b6c02d73e40cd1a28241ffb20cdd69516 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b16b8f13507e9ea078b2f612d74b024a11afd13 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 16:58:21 2011 -0800 msm_fb: Use clk_set_rate() to vote on ebi_clk rates clk_set_rate() and clk_set_min_rate() share a common implementation for ebi_clk, but the clk_set_min_rate() API will soon be eliminated. Remove its use in preparation for this. Change-Id: I5a4a4a2f5e2e0ba4989bc7c1f9423653bec0af0f Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit cb8fbbcbe0630451ba582a0747987c48b2c603f1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 26 13:00:18 2011 -0700 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Change-Id: If723802d9405001baa69f132a143d21c8aa85613 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. Change-Id: Id79795dd4c17c3a75337a4c3818219ba6d87ff25 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d973663b4a2086c7fe1bf0264f16d413673c36c3 Author: Liyuan Li <liyuanl@codeaurora.org> Date: Fri Nov 11 13:47:59 2011 -0800 video: msm: Adding support for MDP4 HSIC controls Adding support for users to adjust Hue, Saturation, Intensity and Contrast of the display. Change-Id: I79cb69c871686ccba115798f635f768b9a50affc Signed-off-by: Liyuan Li <liyuanl@codeaurora.org> commit 4b1bde4cd20b889b3fc49972d3210c5308044ca1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 8 15:26:26 2011 -0800 msm_fb: display: add mutex to dsi_on During resume, backlight dcs commands to client may be issued before dsi_on completed. Add mutex to dsi_on and check dsi state to make sure dsi_on is completed before sending backlight command to panel to avoid conflict on dsi link. Otherwise screen will stay blank if confliction happened. Change-Id: Icfba079b228f02aeb89949befb10cca29bf6d744 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e69bed86ffa5b7cc05545fd986a21ebef5123775 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 17 16:21:42 2011 -0700 msm-fb: display: ion framework support Add support for the ION memory manager to the framebuffer driver Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> commit 6a3a01ae8eca6d615ead5be9ed28720bc0c79dab Author: Deepa Madiregama <dmadireg@codeaurora.org> Date: Fri Oct 28 06:34:17 2011 +0530 msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue LPA_IF dma channel is disabled without checking the per count value. Because of this dma channel is not functional after few iterations of continuous playback. Fix this issue by checking the dma per count value to stop before disabling the LPA_IF dma channel. Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89 Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org> commit 81be67988ef149f601064a9e8e5d91705e636ff5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Change-Id: If2622631a7cd03276ae7fbd8326155d0e9c7b66b Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 27020d1b5db194e11b08dc46dd7b89078895b6eb Author: Vinay Kalia <vkalia@codeaurora.org> Date: Fri Oct 14 17:50:29 2011 -0700 video: msm: Writeback support in mdp for WFD. Adds writeback mode in mdp for wifi-display(WFD). This mode can be used to get the captured frames from mdp. This is added to support wifi-display capture device. Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit 584b96a4a3b0f5842178fb8fd1b1235501cf7ef0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 10:33:30 2011 -0700 msm_fb: display: add no_max_pkt_size flag Add no_max_pkt_size flag to allow toshiba dcs to lvds bridege chip work. Change-Id: Icaed4bc749dec96f12e3e0e78c098294658a2c46 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 4c4c286176e91b24f2399309ce9f379902be58d2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:28:55 2011 -0700 video: msm: Clear and disable histogram interrupt When the histogram is disabled, its interrupt should also be disabled and cleared. Note: only applicable to MDP4.0 onwards as earlier versions of the MDP expect the histogram interrupt to be left enabled after running mdp_histogram_ctrl. CRs-Fixed: 310429 Change-Id: I5a8df4fdcc41520e1ed0af970a8628479a4645a6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e19a2869b3db914e93335746ef80878103d5c0cd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:26:24 2011 -0700 video: msm: Remove redundant code in histogram collection Rewrites start and stop histogram functions to better use the existing mdp_histogram_ctrl function. CRs-Fixed: 310429 Change-Id: Iecc97c1376319021f99dd00eee6fb154bf7a5740 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 13f48ed4a9141772385eb44bd8c1923668ae32df Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 13:44:31 2011 -0700 video: msm: Remove ifdef from mdp_histogram_ctrl Replace the mdp revision specific code with reference to mdp_rev global var. CRs-Fixed: 310429 Change-Id: I09fe3707bc9926af89874966e7d640c5862cffa0 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 7484515be07eebc3a12a087921416f1b373decde Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Oct 11 10:24:32 2011 -0700 video: msm: Block histogram requests with powered down panel This causes MSMFB_HISTOGRAM ioctls to return an error when they are called after the panel has entered a powered down state. CRs-Fixed: 310429 Change-Id: I39c768c62a37ca83df2db2309230971cb6492bab Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 40a43409804073a0442d2a1ea09293c0b95fdab1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Change-Id: If8b6220c26ea8d08857f87f33609b1673238b2ec Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0737d65bb7faf91f3dbf87c32a86c5e7cb9e454e Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Oct 14 02:02:33 2011 -0700 msmfb: display: support for overlay wait ioctl this adds supports for overlay wait ioctl and it allows the userapce start overlay play and HDMI and can call wait later point of the time Change-Id: I8000cc52a497861e0a5fdfe58c0c049219724ab6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit d1b9d7ab0c98fe2bb8d6ab3f6dbd489dd17b3c5a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 14 18:18:51 2011 -0700 msm_fb: display: enable hw cursor for dsi video panel fix hw cursor updates not coming for dsi video panel defining callback during driver setup. CRs-Fixed: 309515 Change-Id: I12586e813c19ff4dbe1e3877eaf14b5a396b273a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit dee95105fdbc21ca2cecad26403e7c6a9942f445 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> commit df021cf202ea5f026c9d8862a06997e43346b2aa Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 20 12:53:27 2011 -0700 msm_fb: display: Fix suspend/resume for HDMI as primary display Fix suspend/resume for HDMI as primary display by setting solid fill for RGB pipe connected to DTV Change-Id: I2f6bf1892137ef40c55e26498c03cfb7a439219b CRs-Fixed: 310198 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d893034f3c7b3bc9435cd0cba78f220349b484ae Author: Taniya Das <tdas@codeaurora.org> Date: Tue Aug 23 18:47:05 2011 +0530 msm_fb: display: Add support for MIPI DSI Truly panel Change-Id: I499f050622e72c9f1daafa251b16ac67c35a7991 Signed-off-by: Taniya Das <tdas@codeaurora.org> commit 959fd6fc48da46199ac1faf8b7d8be18d50af253 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: Id8344af1a1607cbf4a6c01ad35441bbdd4fcbd49 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 4b99172a1df8b1ad2b48343bead39685f294e680 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Change-Id: Ib6fb8f2eab4b1e871a406a3a2d7274fcfdcdd9d1 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 8611e05dc5cb4b3ce155c04ab4e851dff1438582 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Oct 11 17:44:32 2011 +0200 msm_fb: display: Change the backlight PWM freq to 66 KHZ for LiQUID Change the backlight PWM to 66 KHZ, according to the backlight driver HW spec. Change-Id: I67bc02b7863d7e8721841edfb4cfe3a4414a1bab Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit a2c2767ee7fa7e55d9cb30873739dc42311d60f4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 30 17:19:39 2011 -0700 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I62ce418b7f1e887550319081cc4b78fbd564a6f5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5e48f5f6701a3cf0f8c325d252037bb49be67fc1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 23 18:56:59 2011 -0700 msm_fb: display: Fix DSI WSVGA Toshiba panel PLL control settings Fix DSI WSVGA Toshiba panel PLL control settings to avoid over-write on reset values from phy table Change-Id: Ia4b3a4a409a4601a3a2c9132ff66c164f1f8c9fd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7a95a8f6a93bbca3f1664cd12d516041f6d926cf Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Oct 17 15:20:11 2011 +0200 msm_fb: display: Fix dsi read packet size for LiQUID The toshiba DSI-to-LVDS bridge supports only packet size of 4 for reading its registers. The DSI host should avoid changing the bridge packet size. Change-Id: I08a4cb5921c90e9fa07db62e0310fcdb6155f131 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 051489246f2a6a4538e7dad2b985837fa06d567a Author: Praveena Pachipulusu <pveena@codeaurora.org> Date: Mon Oct 17 10:42:36 2011 +0530 msm: Change the permission of 3d barrier sysfs entry Change-Id: I64f7e028701d65d864d9ed30499bf0bfc00c8ab6 CRs-Fixed: 308897 Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org> commit 898f4bd8a9e7027e2fd9e50000e34abb41834e19 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 15 18:25:47 2011 -0700 msm_fb: display: Add support for HDMI as primary Add support for using HDMI as primary. Includes changing number of framebuffers to 2, using RGBA format, enabling HPD by default. Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 09ab565589a8a1409c222ce79b6885aa9e96d33d Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Change-Id: If9797a3b8490ecba05969d546fc70a80c0f76dd0 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Change-Id: I77e660f4b9843991a6948532eea4199b7377a6b9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 10 20:51:31 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Change-Id: I46139c2126b47ac6e1b33135b792ef702cc04446 CRs-fixed: 302409 commit a27bde25b4efd43946c19f1e672554ce0bce63c8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. CRs-fixed: 306936 Change-Id: I0e3776c7ca86f7c4a0f0d090da108599753b9997 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 8717a17a1a5555e53d2f8f8160462417105dda6c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I630cc47be806a8de383648aa80804b4d65210d4d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c430223b113ff533ef34c5acb0de6a6ccc3a1b51 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5a7f32c088bda86c7f0de08d06c8176920b28439 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e17a2ddc109e0691a25c69acd3ee16de354f5a82 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e1ed1ae1d4c6d17ddb2a027ced9524c23e878d72 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c719c541d8ec1c9a036002a80725457aab10e54f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e2833e9f0a24e1f1d3dc1a912977884920bc5487 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 27 13:26:01 2011 -0700 video:msm: Reset histogram when not read Reset the histogram collection if there is no one waiting for it when it is completed. CRs-Fixed: 308367 CRs-Fixed: 305674 Change-Id: I76de44f237f842a1163d8b9f0783bf3457ff1d3d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5a4f1ba19d0172fe3566f3df5bc78844d84c485b Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 1429568ba55646240d551e8f8f9bdd25e4cb249f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aff429ae7d2d1b272d98935907ddfbf43ff4aaeb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d48737e7b42e51a73d8084cc37d7c1b63fcdefc0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a591110794daf54865c88f3f3fcfa8b5b4ab45c2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a7c9891a83bb0dbb6729173b0e7a204f20220849 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 95169f2d316397b15f2666591951c937bdd3de4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a1b240fc59964122076812ea4c2f2ebcda99f4f2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2f19595abd7e55f302f6b50f39ed81a67cdbee6 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit daf1d2101d21f27ed21dbc8e9afe9e82f24083c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 1dcb24860f556c8e60b333ffbfa26f22773560c1 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 83eac3cec4e5957abd90a7a73a645f91d477a603 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c6ecb836e9afb41bc9475b2a4c39dad8888f5e5f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 419051b1b98b5f86ef72a6299ee9d73d039ce09e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 18f63087971116fc2af33f90ed42fd764d8ae7c0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c42862ab0b4149d6264b39d849aaf70b3de7a1fe Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 054dc107f98f31b2941489bd37e647e8be7b34e6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 7a7e46f6c1b48a5e2a3234bf0bb0e0ccfcd90323 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bbf9a472c9484c9e7a0b6ec15995a29afa0dfaeb Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9e4491612de7c7a322d061b85c8d42ee42ea831a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3d4d275bd9442307af9f0ffb36660114e842e529 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5c6cfbf2a4f8e76a0d14e37453c31561bca41019 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 074ee02cd301d9831de59b55d34e2ab5625cc983 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 07d19c35fd414757f4535f721522ed6379286b47 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 668d6d5e3e38f9aa55e78333fb8d200a83f32be8 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b84120b47e318d5144604e7249e0e0bc119e1301 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 21ef2feb1cddfa15f0a88c0838e3c941a84e9c7e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 073f1221221adb52039bc49f79c81e06335f9c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e91203dfd1bb3dda16c712a4accde6b2040e437 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8fef09a792fe01ec564d09a2b0b29d2bfa55fd21 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 33dc7b93d4fd73307bb8f68f8067cbe481c5bbcb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2ca30356bd3e2db7de9df06670ff9ba2f6dfafe4 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 57dcfff1206da4b1f6e3cdbbc63b5c27d57ded24 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bea4783bcd4a65f11a6c5c00995a04dcea72c002 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 3a8b8514533d94af2e9fcb4b215f968f07d14253 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit d5315bd98102b8a2f8e36bbd69b15b679dc43e84 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit e52976fc8742c1734c3fda80735d0dfd21c61826 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 48aef6d5c2dbe622a0c44440809f4860ff7a5770 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0a3249ebfc2d474378fb2a3e49dad2140fd6b042 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 4d3c779eb9d906b381225be5065976703d91872a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 1833754d1f71e8b52e3ac0fcfb4602048763f39c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9452ecb5b57e5bde9b880a2a1ddcd0f210ce9dea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 01d682803053d294ef11da8bef3e88b073c43cc8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 115d7975e66ab3e5f9c03d9660413a940517ddeb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 164fe8a429e39cad3f03d56dfa4dce85ff90a0b3 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 120232e5eed881f12c9d6196f2f5567106c2c98a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48551552f956565389a760cd46fd6db8ad79a044 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3436daeb9f5e1216c827a85252b4c35a6d8380e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3a76ccb3dff876cea6494d777c24c232c5964c4e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ed016bedc8c2af80b10a9d0558b537cf5e396636 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit e7833e230a3843070f4628532e5902442eeed2c4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 58b5555b7d19272e43732364b68e5d7c74b30870 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bb3d48517f5d590cb66cee5b2fe418abf4eb69d1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 492049ec4f59bf04275878a9d16ae20528159636 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e546d48310bbb1b62e56a4f361af923c8814de54 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b91fa71c588a9785f639193c49295b88031971d7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 7b57bb815b5287b0c8ef618459d989475aa2f071 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 405dc3051b06637b6a38aa6b1f4da1660cff37d0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4b8b2fb9d783be26b85381b3618bbe253a75b89 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f74d2edd791b3fddaf147c5e358a8f41463dc1f9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 49a83b2caa9718d35fab9a9fa9ad2d9436040ffd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a411f7e5195777253d4c3c94430787b4f19ea068 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 4aea274b69eeee685d87e159107f0d0eb9b35b70 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d1f8724f0d89d474a283f2ba6f51801d14daaee Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit ebca0c796cb22947a224c1afea9b7950886804e1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 3de11f35c77c7239a51c64254b00e400abaf93f1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9d28c3e809aac17dc2e3f6923e730293ae4aa977 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 759a8cf14ce1c2f0d6551a090fac84ec7f4705f2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Tue Aug 16 17:27:22 2011 -0700 Initial Contribution msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit 39fff5a3899f8d95886ba2e50d70001602b279c0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Change-Id: Id270b97eba6d01583dac3091cce0403a6aa96be7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cb472111d93fa119c52d56c102b90cc3ad2c8030 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Change-Id: Ib64ddaf9d887ac3250b40451fab70d7ca9df081e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b9047132b38c211d4d8a26896ceb4e151bf618a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Change-Id: I32a7c220efd33f748a7b46fb1006e5f0a59dc4dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 91be717084e45121fc1232e8309343c605603928 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Change-Id: I5f5167411ac2e5bbc4287148d22608a7e1f2af35 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d8a25911705d1baef68f3accf2bdcb4327152705 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit a2e6ec896e8d2e10965d6f8df6f0affdf162a489 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: Iff123c6046eb69b5d26e632ad507605774f6562f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5a95ccd976434514d06384c2684c187daf3925ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Change-Id: Ifb4f6d16967cb98a25a253c99a8af2da2a22404d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Change-Id: I1795bb154fcee4813b4a1e5e935ed7c9863cd849 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6e4e76632b3e8e109da4b63fdf653af246dcde1e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Change-Id: I39f263a8e0263aa04274d95fa43e2bd4b5815185 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 46e3767f9ec607dddb2fa6ac8f41a0c0e455a479 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Change-Id: I2f0ab81c2432d7d04fd685f0d104858b8342bd9c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit f076525d4ed93b77ca5a4cad20771e34dd5cbea1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Change-Id: I75d46e16564c4a7d1486f1ac59f79b8b218290c3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 96fbbf3272449febc1a33861af1d275200563965 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Change-Id: Ic007306a019956f565b0336d966cec7fdeefe918 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Change-Id: Ibbdbdaedf4ad5000e3f44d1e80888d68e23ff842 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7ec6eccf30ef970ec47444058f490530ac92600 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Change-Id: I89a8dce29c1ea41894eebdfd3bdb5ad7178aa8ee Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7e65d5e31f62a20ae919e0e70f04d000a353bd52 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Change-Id: I03ae784750eb4763569cf8faca43ecd46f995638 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c2177245161614a0302380d0eca57deae0cb10b5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Change-Id: I2012cc3cd9a69b7d5eadb690fee4faa1857ee059 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Change-Id: I462422e4b0d17013d61e841f66fd155db4b7ea00 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Change-Id: I00ab1fa277a86d721a78ea2d2c9d8139c92e0719 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9955cf6062327857c43947cc7ec78649619c8735 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Change-Id: Ie179e0281bff19ea69ec60fdabcf18190c390660 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7b31a46e449747c2ca79605450f57658c855c756 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel Change-Id: I47a4a55d85f4fe2555628d833220b7e72c69cbf5 CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 313e9c47ee295bff714ca1a535fe6681945d5421 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Change-Id: Ia7054e7f1d05740b765a6c9b88f8f844cb605bbb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Change-Id: I5b4f8e11262c60d286d98c79f0c32e0104a7d57b Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Change-Id: I5c0804854cb33d1fb875bf1f6c52acd0a0e0940c Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a8d17b9e9d8c1f980002994c81c9ae1ff25dca8f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Change-Id: I0ef69645fa08e8c756aa25be95ac5a9d038a3910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c60d7efe10dd5b2824464d3187bb8262ee25d2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Change-Id: Ia81a8d52c6f9a24f8107d62596eed3cdc966e4dd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 9f1bb9925e9d0ea9eb505695601941f48f8aed7e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Change-Id: I754a23592901225f3f52772b7ff4666f5b6d429f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 743f162911247ba260445deb01b5406d0067daf3 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Change-Id: I107af5cc0c1a914c53a22558085123798ca2b5f2 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Change-Id: I056c15de115367a33209c876a0d64cea85a02655 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 446d22d4641f699b741d16ea6086ce570c49dd7c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I7f493f1b850d40156b505cf88da308844ee34b42 commit 4f7e10164fc8f8477a0929cb910a849772620bc9 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Change-Id: I0409909ea6f24db3da6ebf4d92233e45da93c2a4 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9c08f6850dbd998adf7956887060eec599a8f26f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Change-Id: I5cf94a2523c453cf4e82f68f3167c3c2442d9c82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d93d76ca62d758fa6f584a5a6f86ed92b0ea845 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Change-Id: I3ede2a9fa25adc62c85b5514c1bb1600ec7ce460 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ee9289450d530ab1fdec2379859fca5845a7808 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Change-Id: I6f03e957983c4161499a26cfe2f9008a997a04c5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4d8813b4fd6fe7588c411e90a2603b23a772f738 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. Change-Id: I252df99c085bf3e9ada117aa7c08f3a1f3023475 CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c429f0a0d694ee7ef3471c1b5172b050bf17a1f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Change-Id: I8b054f61ae907735064da549e493964176ed3090 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bca2a2055432cdf78380ac070ba0ede9c5893083 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Change-Id: I6a0793ff049017785b75624d30d0fe862e41b210 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 871edcfd5a801feed587b6c7f72aa4e1387d245f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Change-Id: I06c21a6fb480e119ad4ec75e993203124b97f4b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ede104a0244a04ca6fa6ce8fe9fc98008462df9e Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Change-Id: Ic5714dad929cf56505569cba14722a20dee12c15 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 716e97e704c6591f05f5b88743fca7770f0c61cd Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Change-Id: I3c80e4307f84d32b02872e977858fb0adc293b94 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 64b4b03461e39a715b33a2ea1ab97f5b27850535 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. Change-Id: Ie2a0785d490dc92f7f14f64aa3c2e28e6a231202 CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Change-Id: I94ba3457311c58415ba29bccdc2d146891b17897 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Change-Id: I0ce9cf2a7eefd785ad161b10204e56285248661f Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit cfb68532d8d09c54564590fb8eeaa83383004472 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Change-Id: Ie3e020394492fdb0209b7eec2ab2303b4f2a9ebb Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ea9be62c230d982d6122b16b8717131f0df6f215 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Change-Id: I47d68ddb2565be4f3d131061a21c5d921142e933 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 60dc151a43093fad5f68d02323570d5efd58ee4a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Change-Id: I98bd1a4547bb7e310b0df2311aa41ed4115cf8cf Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit e6613b38e178e67f441936e6820c966f553074ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts Change-Id: I032883b9de9e51c6844cc66e3d1945a14ca05e19 CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ddc23bd81a174843ee09fe464e0afafa62bc7126 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Change-Id: I7188e5dac6d4eb2f4ca6a7833c84e1fb1251b1b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset Change-Id: Id2eb0be74e72c8982a2def8e333032174ec1d23c CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 14db758bfd64c473185b369b311e2cca443d01a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Change-Id: I960e441210deaf7edba38b2409954f938160e875 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a41b7a628978951a3d2b58409eaa131a65707f4d Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Change-Id: I37e0cc6394ffa8dce8aa8a4cc5fde61402f44334 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit fb8a7f9d09f3c068fdcdb7e880fd11688db2df95 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I39cdcb78455e07332351b7312ba149aa4f8c2f07 commit aa3c63a48f18740c0f90f2d85218891b0b3899b5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Change-Id: Ide2beb306ed09e4b5478877d2f000eb00f1c317b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Change-Id: I5fc29a314eb6eeb9a88ff7cca5779e95ca954ede Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2920965c1443096f1707888d2fe311cb79dd68dc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Change-Id: Ie55ac18e6b196276023d7f28f291e5410d309217 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6935ec9e55cb488fbbb377cc49697b6d37b254f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Change-Id: I0c30f41a5d46f357110b619ba90d16d95d9576af Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. Change-Id: I1b9e562c257fac563934b5b1477e58e5382b45be CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens Change-Id: I7448525e9f11638c4505e0ce39fa9da05813f5d9 CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bf2d82ddc93d20097fa1021b1c7629b9d9986384 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Change-Id: Ib794b76cc7b9e1a8e9ce53ff9ede57108f0eca88 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38bae35c81f7eee8605d854cda9f3854c3be2051 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Change-Id: I555cf7871da84a91806cb5b1c269e7ed79080009 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Change-Id: Id6fdb3249825405fae058d54772a86145de9d8e8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit bb597c0640d5f87aadec33d29c03eaa0d3718a4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Change-Id: Ie2e3bd1df66b5cb944cd0e28d97227c408cfcaa2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2be87760e94044f23ffefc7a753f9abaf14134ba Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. Change-Id: Ic691103e5d1de894f81d90ff1eb4c1a0f9830ecf CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Change-Id: I0057bb34c6bb90ba3c13861978c5cf71ac620ef2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Change-Id: I23c6ee2a6802baa98af495320f6bee94915ecfa5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Change-Id: I8f6374ed2e27529215a7d66dc32e65e7b4a79983 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1532e778ce5b8c30e8261f2b73bc78819f99ea3d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Change-Id: Ie052e986bf21277685d4f52205d3401a5d85c3bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f711ac25a68e521ce2bbb450d34f46eb76d39a20 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Change-Id: I0ea1d8797ae850fcfd21b8964ee967282b23910e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a34b0bc9e1e66f9e9c6ef6063bf3c858bca2e2f4 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Change-Id: I043abaf33ce6a5f926a3b27551a517e829b30af9 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 917fee282ae07cc98541a54204069bf7955e352d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Change-Id: If2722fc012aa97f0cdb2577589d2e51b82160c24 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3eaa215567715925b93e5d5d60f679de6028d0c1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Change-Id: I34148433f8fd946a9aa664df6ca7782cb02bba2b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 959f5c62d3b83b65567cd8088db9d9d84774273a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Change-Id: Ib7598cb8e4ce16be39d0586c718c0753f50056c6 Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 802cea1a8b7f850495f900b8519df1d4a064c880 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I0898f3eac7ecec85b499b73ff118d846ba32bc3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8cd1e18d1f8fe351e42a0ac5287536cdde7efcd8 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. Change-Id: I0bc92777a172a2ecf26ce34d8882a04165e859a3 CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 03522b71418c110c98c5982b9d28ffc97c9afdba Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Change-Id: Ib8865c8bd3390ac12a2fe1eac158b7e4fcab4bad Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8f43f4bb7d9d56c82aa2a7630116b9f44aa99a62 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jul 7 21:41:10 2011 +0530 msm_fb: display: Enable lcdc for msm7x25a Enable LCDC interface on msm7x25a with dynamic detection between msm7x27a and msm7x25a Change-Id: I935ae65f8ed43b5e524da100d38feba44c3c4a16 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit bd0ef9258776385559fd032134e0a28e9aad8f34 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Change-Id: Ic27d304ec6bff44c29b8d10c622363dbc5fcee75 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic3060030dece7ab531d3630eebf6e4ee7267804f commit fe926e8303dc6da0adf7be76c045ac93a9f8818a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Change-Id: I4a6d78ad939085128d261fdf8c70018fff424b26 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jun 25 15:51:14 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Change-Id: Idd3b9e6562acad96fc0f460f81e64d4483059b9d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0423ef3ca01755267a1f4e157c8ea7e468b145f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: I92bb11888b004a6fbd7af900ccb490cc7f9547e3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c1abee46365a0a8b976877a6ad5f2752f410ed7b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Change-Id: I7a3f274dd5472fa3842a6fda586539e85c7defd9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 16636524b5635644f554435a99553c097b74a605 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 15:12:21 2011 +0530 msm_fb: display: reduce display initialisation command for lcdc Reduce display initialisation commands for lcdc toshiba panel to reduce the time delay to resume. Change-Id: Ib36c2546423d1b7c5c0d0c1531c480b477c2d975 CRs-fixed: 291494 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 4e19f50c3e21f6be4595eab4ffb1d07abfbe8025 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 10:52:46 2011 +0530 msm_fb: display: Configure full resolution update in dsi command mode Partial update is supported only for mddi interface,hence update whole screen for dsi command mode on msm7x2xa. Change-Id: Iecfc8d5edac2f962c3710692ed87abaa90fbe184 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Change-Id: I57ee5704dc3ec2aaa16086727470b4f6dfd9ce9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Change-Id: I380a4727c0485bcdcdbfc9fad43476569f2b78ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. Change-Id: I90b3582fa73040bf66239f5258592a1f08cba0f0 CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit da07df81fe450fb08ec68511bd4ac5004ee96f3d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Change-Id: I2a941fafc92de61df9077cb3bb5bbb78964d1809 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9568223aa6d0fa91fd8f3a042d75e91b1895d494 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 16 18:22:52 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: I380b05d8d9158c49be5bdb9a52e52a114725c22e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 20 18:47:53 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Change-Id: I6d8b766fe316522451eb5e2c548799b17da431be Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f25bec14f4ab386015cd034c59ebdff9f3d266b5 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 28 09:14:27 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about whether the panel supports 3D display or not. Change-Id: I3f8f9d8eb4014a77f9b4f4752858999009ab2407 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7eee7cfb58b63b1e710e20d994b3926b4dd126ae Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 23 20:18:38 2011 -0700 msm_fb: display: Add HDMI PHY settings for 8960 target Add HDMI 28 nm PHY settings for 8960 target and separate 8660 specific HDMI settings Change-Id: I3fe023c28fe0bf3728f7dbba8cb16fd3096985d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 27f99bb784c6e390674373ae980d9fb15194f0dd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 20 17:16:42 2011 -0700 msm_fb: display: Fix suspend/resume for 8960 DSI panel Change-Id: If3716f131b7b5c9d5dc176d3995622355696c5d7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Change-Id: Ieae169e3ece870cac7f2c73922b60789fee11a9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit afc6ae9304f27c240546f15580555913f7e27644 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Change-Id: Ibbc77d3f369d4bf4e1a1311609039764a692d66b Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit 9322f759f8437a816e44aa921a64fcb566defcfb Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I60e4cfee8215139671248506caf0d625a1bec1ec Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 918ecc5201654cc8c1b5bfcaa7ef5ebc32304733 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jun 10 15:05:35 2011 +0530 msm_fb: display: Fill the last frame to NULL while suspend in MDP 3.03 Toshiba panel stores the last frame in its frame memory during suspend. This last frame gets displayed while resuming in quick succession which is not a valid frame to display while coming out of suspend. Hence fill the last frame to null before going to suspend. Change-Id: I605fbed97455298dcd00d884bb9f4b7256078902 CRs-Fixed: 290419 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit fc299bb8066e0325db239bb356c546e57c7ef347 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. CRs-fixed: 287700 Change-Id: I4ced3fa8927fb94e5457957aab274e7d07acdd79 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit 6de2b7363df7ad3bfe02b6752910675c749f910f Author: Vidyakumar Athota <vathot@codeaurora.org> Date: Sat Jun 11 22:52:24 2011 -0700 Revert "msm_fb: display: provide panel refresh rate information" This reverts commit 7b401565d2ab400a3e68e1112c3d601d13a34837. Signed-off-by: Vidyakumar Athota <vathot@codeaurora.org> commit 55e656e68cac78eaa367341df2e693a483a53f84 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Mon Jun 6 14:34:38 2011 -0700 drivers: barriers: Replace dsb() with mb() Replace explicit dsb() calls with mb(). Now that the generic ARM implementation defines mb() to mean (at least) dsb(), it is appropriate to switch back to the generic kernel version of the barriers. This is also needed for correctness on certain targets (such as 7x27) where dsb() is insufficient and other operations (such as outer cache sync or writing to strongly-ordered memory) are required to ensure proper I/O operations ordering. In some cases, remove explicit calls to outer_sync following a barrier since the barrier will now have an explicit outer_sync call. Change-Id: I2c53b8534af9c3cbac4d4d77b322f897a39e7758 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Change-Id: I2593b225353ec3758f18e33ea58fd867b30ec062 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 47c54ff0e010190f0a11e7e2792642d70caa339c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Change-Id: I10dbb23a7f13f472c8de3014115890e689a2b6e9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b35d093b7b22e380ffc9f066a92dc0ef218944b Author: Gregory Bean <gbean@codeaurora.org> Date: Sun Jun 5 11:34:02 2011 -0700 msm_fb: fix forbidden compiler warning. Providing forward declarations of functions and then redeclaring them to be inline later produces forbidden warnings on some versions of the codesourcery compiler, breaking builds. Change-Id: I4a65e1af002f4bc412c30b5c96601f8e650c74d1 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Change-Id: I5657379eb4593eb551127a016393f231f445f423 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 63a81111eb3e7143bf37e125c3abeb94fcc611ac Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I7e98935f0bd4f29c188f46601d8df09c37cd20d7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6a194de79ae35f9785c5a5c63cda330c7dab1a80 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 25 08:44:37 2011 -0700 msm_fb: display: waiting for vsync for UI frame push Add waiting for vsync for UI frame push through pan display. Change-Id: I9be701c6615c139d6d07b16c32039074d5b5a431 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b11c3b46619d3eaee600223859041a51fa0af218 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Change-Id: I620d133941739eb8024cdb6d79227078c3193fac Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit cef59b7b35b714df7b81f9bc2e96b8d49181f95a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Jun 1 15:38:08 2011 +0530 msm_fb: display: support suspend/resume for lcdc toshiba panel Add support for suspend/resume and backlight control for lcdc toshiba panel for msm7x27a Change-Id: I49916776cc532974eed7f858cd7e2fd85b6c8fda Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e8f469582b62d0d76faa4051227228734f226325 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Mon May 30 18:04:44 2011 -0700 msm_fb: display: Tune DSI setting for Toshiba wsvga panel Change-Id: I71df1f019b1604f806af6b7ae7f379edb810a583 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 6a11cb6f4d7bf536d2881512daed6e3324f65b64 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 23 14:17:53 2011 -0700 video:msm: Updating QSEED table2 values This patch updates the table2 QSEED filter values so that they apply visible filtering when using the QSEED smoothing/sharpening API. Change-Id: I4431a02e24f9bcae035898b758e8c462c9c044de Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 589c897daefbcf28e8610226225bd2d8fcddee4e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 28 13:53:07 2011 -0700 video:msm: Initial QSEED sharpening/smoothing API Adds an additional parameter (.dpp.sharp_strength) and reuses flag MDP_SHARPENING to mdp_overlay, to allow for overlay_set to request for sharpening/smoothing. The overlay parameter is designed to range between -127 and 127, with negative values infering smoothing, positive infering sharpening. This range of values is then mapped onto 7 levels for both smoothing and sharpening (i.e. ~ every increase/decrease of 16 aligns with an increased sharpening level). This commit only adds the API for sharpening, a patch that updates the QSEED table2 values is needed for the desired effect to be visible. Change-Id: Ib6522e43bde4f4a54e752258553822e78a95749d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 4298b4f972b395b92ab0346978a9e9e9999c2e9f Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 24 20:10:15 2011 +0530 msm_fb: Display: Add support for DSI Single Lane for 7x25A Add changes to support QVGA resolution and Single lane configuration with DSI on 7x25A Change-Id: I3f33e3b41a860b7339abfb824aac00435606e5a2 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 54aafeb90b88663a423be3459f4c05c38ccafd97 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri May 27 01:16:55 2011 +0530 msm_fb: display: Enable backlight control for mipi dsi on 7x27a Add support for Backlight control on mipi interface for msm7x27a target Change-Id: Id22cba59929eeeaecb6383b273242f12c52535f4 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7b401565d2ab400a3e68e1112c3d601d13a34837 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I738b254bf8d2db0bd79864c0731ad0542f657bf6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c394da5a206ccb6aab93b0a3beba9d38f479d7e3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 25 12:55:58 2011 -0700 msm_fb: display: Fix for the color swap issue for mipi simulator Color swap was wrongly added for mipi simulator panel, which makes colors to invert on simulator. It will disable the color swap at DSI controller. Change-Id: I1f00cdfaaa9e60804045d81581d3a1de059e21c6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Change-Id: I382aab2bf908f0140004a6713c8e77a16f5aa925 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 395c7c1d9c82d56977a611080d305aee0d974372 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ief48dca2b596ac4f2c6fb23a5f20802e8b3ef4d9 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8ad47e5a01f5e95cc0e41c1a4a71317d4d8a9a17 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure. Change-Id: If4546501eae383755d0a5ddd059e166007f64bf7 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 2604c2884489e8c76474249fff6f8d1103503f21 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 23 15:36:47 2011 +0530 msm_fb: display: Add histogram in MDP 3.03 Add histogram functionality in MDP 3.03 required for Content-based Adaptive backlight Change-Id: I24dd8a42c12b2311823fc25b2aca568a8c391b0e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9925e41f075235b620b9d6918f9d00662a60e9d5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: I4247b600e31e7a5f39b44e77a49c174b8c0bd11f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit dcc36cc4b33d1b82b803fe1dbdb904656eef0aa8 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri May 20 13:06:06 2011 +0530 msm-fb: DSI: Add Support for DSI CMD mode on 7x27A Add changes in MDP, DMA-P and Panel Configurations to support DSI Command Mode on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Change-Id: I912866f9072dda690d5e6354a05d74dcb2d2aaa0 commit d567f25ae4afa37f8f7e2fda53bade2099f7ad87 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: I508d250c9193449e6663e13570c2c9fac3b8feca Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit c7163d9a33d86d1001aa4083423c68c07743861c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 16 14:07:15 2011 -0700 msm_fb: display: Reorganize DSI clock and PHY settings code Reorganize DSI clock and PHY layer settings by moving code to different file from base driver Change-Id: I7d02a4cd0f5322b80462e3721d5c8fb4f83d002f Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ae66ded8ca3d1e7184dc04f1c165fae30ba8a203 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Clock changes to MDP driver Adds the mdp_axi_clk, mdp_lut_clk to the MDP driver. they are the new mdp clocks added for MDP4.2 hardware on 8960 Change-Id: Ib936a280e83a414806365836a839b5555f445724 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 46ad60f0cff5c2222ded7a639f337417e59b2375 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. Change-Id: I077d497c2ac9b1dd181f4f4ea874bd2ea4dfede8 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 4217a1dacbde157ce26238904450b091778fe872 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. Change-Id: I76f7246f855d7a3e99de29da7297053c477fbbef CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3700ca00ba19855081822169e144c87aa1d4953f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Change-Id: Ic635065f2bc42cdfb422f440fe65fc01a246e18f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 22cff13e1115962207254980acffac8d20bd9b26 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Change-Id: Iee5ea7287ae8879f961a095327b71a38b8b60f57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cd0bd24a3fffff873821618009389378372fb73e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. Change-Id: I55316d9dc96fa17d275d87e75480a2209b1fa46c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d89efdbbdf521f05a7b9f191e98914b40bc1962d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Change-Id: I630f1df16212d02bd694e086d695067262b6203c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 757e2ea8064b379ecfd02a6fdd36f6f2894066c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Apr 6 11:15:36 2011 -0700 msm_fb: Display: Enable WSVGA Toshiba MIPI DSI video mode panel. Add code to configure and enable MDT61 Toshiba MIPI DSI video mode panel. Add new command set to initialize and configure the new panel. Change-Id: I8c543677f75ade967a77100a7878b9e487dc991b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. Change-Id: I83cf278310a902c263e191b714b550ee29afa5e5 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 8dae3d06d1c41aa2de609056811646ff50e77791 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. Change-Id: I436f1eee110562587223fd1de97821968d494034 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. Change-Id: I3df0dd292ac7d28f9eb6028ee16e5c60180e5c35 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 065b9f72784c2686aca0233e8e510229efd329c4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. Change-Id: I0ee5412dc5801172c00570748fbcc9a9efe04582 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit dfcf3ef2212026dfb53e87f571b294627f34a4a7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If69a6781dfc493125b5f57b937c24d17b4cbbea6 commit f0771a155634cae4052dab0c0c7ae2fc0abc4b56 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 16 12:19:53 2011 +0530 msm_fb: display: Enable suspend/resume for mipi dsi on 7x27a Add changes to configure Soft Reset of DSI Controller. Also, add changes to control the power of the DSI Client. Change-Id: Idb72327da1219c215c36e6b3a94d4a763e071fb5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I450a46cda3f18f1a54cc5e2cd0500c9d54473b7d Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e814b7842af3b7f15047f3f922c1f1648bb2705b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. Change-Id: I77dcf3d91046f4f6f71f4dd5c1aea90bd766e7ef Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ccdb0372092c3a359754897ebec2bb8be37d6a3e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I1e00a561774779703b343e08868f3da633f6dbdd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication Change-Id: Ibb25f7cab29c2c361020cac868b58c298ae74560 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. Change-Id: I98fb0e3b09501aa30a23eb6939102de08665f66f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ce25d616d046ee3db897fe921d300f44553d83c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 12 17:26:39 2011 +0530 msm_fb: display: increase max BL level in panel driver Increase the maximum backlight level for all panel drivers supported by msm 7x27a Change-Id: I534b8e5e3ee296e68e81d4dcdceea70319cbd0da Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 829c88376705c6b58e62dd93e9802ffb905ad49c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. Change-Id: I8a058147f8bd147ee2330d445f27b2ee58e5ef99 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d8df7faccb2ec330eb859179ed0db07313626b7c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Change-Id: I45a92c91dc5c250a91a6c069e0695f72c97a6272 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e80420254616b39d0c350dcadf8f6954394e7647 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Change-Id: I95dd4b8bc654a923730a9e4ecf16499c556201d9 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 15bd60d7b277f7850bbdc814ae1e151c5cea31ba Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 9 18:45:45 2011 +0530 msm_fb: display: turn off dsi ref clk for 7x27a during power off sequence, dsi_ref_clk is not disable and hence TCXO shutdown fails. With this change, dsi_ref_clk is disabled during off. Change-Id: I9424120370a6a6feec98ca228777ecaac9249f30 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3d3439c820a1a0e79f3c3b706556a6ea11b6ee76 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 5 10:48:02 2011 +0530 msm_fb: display: Resolve compilation errors for dsi on 7x27a Change-Id: Id7cc3e3df2c0005f0442e03625567c40797feea3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Change-Id: Ibe731d0c562d46a0c3888704f50b2010ec1769c0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Change-Id: Ic31ca511afe2c44bc045442c807c2b2fc554bb5a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 894c60beca1296b1cc16f948f45ed140a016921f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 2 17:38:17 2011 -0700 msm_fb: display: Configure 8960 serdes settings for DSI host Configure 8960 serdes(Serializer-Deserializer) specific PHY settings for DSI host based on target type in platform data Change-Id: I433e61f13f19a582fe3e21dc6832fcf93046a3f1 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c7711029d933b918a97749af7e31beafef3e0d96 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 3 05:59:44 2011 +0530 msm_fb : display : Correct DSI Byte Clock configuration To configure the DSI Byte clock, clock string ID is different for 7x27A and other platforms. This change handles the difference appropriately. Change-Id: Ib5bad3283287e7d36d428aa4721c87985c112d59 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 64189b417cc545add2f496609ef11df6b491d177 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 13:29:40 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. Change-Id: Ic68a2dc646a2e2693e5eea5d9c81e629a0a84244 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dee181e845c10b3b9a68fff89d965d6b99691c09 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. Change-Id: Ia0f5ff8a55322546dd7d18fca4e1d7b3ad02f8ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 393e367e14977c42f62df3101535712503f1f133 Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I3d567d73d1854d62c86aed95824c39bfd1f20859 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 0b0d5c46c0fd92350be9cd838f621aef566ce7d3 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Apr 26 19:01:21 2011 +0530 msm-fb: Display: Add changes to support Renesas DSI panel on 7x27A Added changes in the DSI client and panel drivers of Renesas Tremolo-M panel to support it on 7x27A Change-Id: Ibacec50454e573a065a3eabfe30e02b22896e44d Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c192a65bed1be0d4d8cd80be809ca59a9fe100ee Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 11:17:56 2011 +0530 msm_fb: Display: Add MIPI DSI support for 7x27A Added changes in the DSI driver to extend support to 7x27A Change-Id: Idd55b0aae9aed653721357ff2c414ce081d6bbbc Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 551c692934c576d7105a0d65b39aca126652ec3a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 12:37:54 2011 +0530 msm_fb: mdp: Add support for DSI Interface in MDP 3.03 Add new interface support (DSI) support for MDP v3.03 Change-Id: Ifc85b8d1f84a91e97ac11c8e62480568096f1845 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5e744543c3f81650a1cea1402c58c01ae6ee421d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Change-Id: Idc788125da12f3c3aae3c2a64292e8ca8580e7c8 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2afd5ab819fe894511ed58fc1262d0452a4c70fd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 21 16:11:20 2011 -0700 msm_fb: display: Disable MDP clock directly during suspend Disable MDP clock directly during suspend bypassing the pipe ctrl workqueue CRs-Fixed: 284441 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic04fe003c51c2081496760531e5c7379fcfd39f7 commit 902ea8d6bcc516f383e3335cd690ef5e384c267f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 25 18:53:29 2011 +0530 msm_fb: display: add initialization of toshiba LCDC panel only on surf Only mipi dsi has support on FFA but not iLCDC. Hence the change to have LCDC panel gets initialised only for surf and not FFA. Change-Id: Ifd6526b0020c004bc413b12939701f1935c16dc3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 565ecc608d46993c4afe6dd15c95942c75f1e932 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 Change-Id: Ife0af10358d3e61112f6f70349262d1bf2105c62 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 801290d61d4426c1504079bbaa702f5439dc96d3 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 12 19:19:17 2011 -0700 msm_fb: display: Add DSI PHY settings for 8960 RUMI Add DSI PHY settings for 8960 RUMI Renesas Command Mode panel Change-Id: I4323413414f89f60e16962887362908458bce400 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a6a1618edcdfa45b8a03dceb768e873ac5cec731 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Apr 21 00:12:44 2011 -0700 msm_fb: display: Mipi driver for 8960 simulator Mipi display panel driver support is added for 8960 simulator. It will control the data flow between dsi controller and the mipi dsi panel. Right now it supports only video mode. Change-Id: I3712907a0e0c07b9ebd7e9fb2678f37a3058d5f3 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 708f3b8c4c8115e9a6543b6cef50288dc94aedfd Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Feb 17 01:13:07 2011 -0800 msm_fb: display: Add support for MIPI DSI Renesas panel Adds basic support for renesas mipi dsi panel driver. It will control the data flow between msm dsi controller and the renesas mipi dsi panel. Change-Id: Ib92a342bfb3d596d99dbcf564c86a684c2d2f8c4 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit c5ac53e3e4aeb1d73587719f639210a1b7610481 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Change-Id: I8970ca2ad9481c4b725b6431309d6153f18b9435 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8825c2547168a36b5fbb30a14add7509e33f9b41 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 20:41:54 2011 -0700 msm_fb: display: Adding the Interrupt in MIPI DSI Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MIPI interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I04ec4b3d1230dd4e5e9be0041db6efdd31045a32 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 994b7d8d34a81ddc9c6fd9bbf8c71791e8f36bd2 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 19:10:53 2011 -0700 msm_fb: display: Adding the Interrupt in MDP Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MDP interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I84d2825dad00fd8b6c4425b290aca070b847e9f5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 75df47a6dc38b5bd08d0c8e2d7595662f9a3ddfe Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 18 20:17:53 2011 +0530 msm_fb: display: Avoid EBI1 clock setting by Display in 7x27a EBI1 clock is already set to a higher rate in 7x27a and hence there is no need for display to set it explicitly. Change-Id: I316f61dd8d345d6b66a070b75c6be804ce9db0a4 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 04a6f98fb77c9749cfa50fa9e5cbfda132fdd28e Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sun Apr 17 03:42:22 2011 +0530 msm_fb: display: Add support for LCDC Toshiba FWVGA panel. Add driver file to support Toshiba FWVGA panel with LCDC interface Change-Id: I15dd2abcfe474ec7737e7915884ea33ea78da689 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0df29adef313157f99c814e86f3a73e7d3c657db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 17:49:59 2011 -0700 msm_fb: display: enable vsycn on mipi novatek panel Enable vsync on mipi dsi novatek comamnd mode panel to prevernt tearing. Change-Id: Ib71a0204e5ef4cc8a0e0b977dd3744fdb74c8af1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 605a44c18620ed364e53d1e4cc0f03fd2f815029 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 Change-Id: I930c3e9869c6bbabfd70203ddbddd15c84fbae92 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 14:59:21 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. Change-Id: If54c4cd125a8504eee4cd468282f4dccabb0398f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4a80d9e8bd74410f4f9a3e636c3c617e8afa7b8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:59:02 2011 -0800 msm_fb: display: provide option to pass chroma pointers seperately provide option to the user space to pass seperate chroma pointers instead of deriving the chroma address based some assumptions. This gives flexibility to derive chroma address that has size alignment restictions for luma. Change-Id: I384ade86993810627655a8a446e6b9316979aca8 CRs-fixed: 274238 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47 Author: Michael Bohan <mbohan@codeaurora.org> Date: Thu Feb 24 12:10:11 2011 -0800 Initial contribution This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.38. Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> commit 1ad6a901db3038e67a58b98ac60cf048deb7d7aa Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> (cherry picked from commit 514b1c651a33b7b73fb6f654d04355eac5ecb146) Change-Id: I15ae4a26a1d1f964b41bb6174e5ea31bc4da8a59 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 837fbaa4e02d07502c8969503ebb936c0c1716a1 Author: Swetha Basineni <sbasin@codeaurora.org> Date: Thu Mar 15 17:08:38 2012 +0530 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63) Conflicts: drivers/video/msm/mipi_dsi.c Change-Id: If7adff01a7fd50177761f015227986a3f93d1e49 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 5fa503114b95e1cd0e4650a543184e36215e2522 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 1573599adbb42c606d8b91854c76461b3f212c3e) Change-Id: I60a2fb051add9973d98c177b58c33445260cb359 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 08c0d505198f988d10f4f55fe30c0448b33a815e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 81be67988ef149f601064a9e8e5d91705e636ff5) Change-Id: Ia0552b3b645389efeaf2b8d3986f5ba10c4d9142 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit e4326532759c3e05741616760bb11e456ba31cff Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 228895ae217589ca71aa464f7c22bc4cedd06f77) Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: I06b2cc1658e49fc5a82f156911726a41a8467bf7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 8b7fbe6ed5f4f38b34c69a82d711438a570304cf Author: Swetha Basineni <sbasin@codeaurora.org> Date: Fri Jan 20 12:43:12 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> (cherry picked from commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980) Conflicts: drivers/video/msm/mdp4_overlay_lcdc.c Change-Id: Ic8a2d59163c807c24ffa54a5b72d5bdd70712301 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b77817fa07694f7fe1bd56d11e1765a66787b4e9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> (cherry picked from commit dee95105fdbc21ca2cecad26403e7c6a9942f445) Change-Id: I43abe64ab53feb09a0494c9f642241e5791ce9a7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 721d78d25c007c5e8ac9474d95f4a952e0a1ba76 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> (cherry picked from commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9) Change-Id: I395c49c3d6308c4ef2b9a7dab41167467be3519d Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9326c60c83647488f2e33d9112b07d70296f5a6f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9) Change-Id: I5069e50dea973895b67e21e60e335818c30fc142 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 184cd5a52d1ab1864f58baaa81aeed091897667e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce) Change-Id: I3f97aadf0a7635bf07b206a3477afd18a23b7b44 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit df013ad8114e7e8391c90df172da0a04609fae65 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 402adc6142598abcb2a41a941895003f57f289a5) Change-Id: I28d6f11b20f123c52d5872f0b550c3c4531356f7 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9882bb2dc947df434befbae40b0d681973a4b5e4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit ebefc805a139e8222061b32cbf7686d76122de5f) Change-Id: I7bc723e53244983b76937deedf3524c642194e62 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 63fcfdde892762d72a7ab15b0628167d584a2ce4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn CRs-Fixed: 311139 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0) Change-Id: I7410e176b0a2e09b87f623bdbfb08927d2525b05 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b18226c8a815117f985eafb06439bd0d692531f4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit a077d0063dfb8a39a869f56099dd0ffe85301180) Change-Id: Ib664232c07d00dad7a2d89875fe2903b8ab1016c Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 1e6428ce9512b074a2a586b403c331690a9813c8 Author: swetha <sbasin@codeaurora.org> Date: Thu Nov 17 19:08:30 2011 +0530 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit cb8fbbcbe0630451ba582a0747987c48b2c603f1) Conflicts: drivers/video/msm/mdp4.h Change-Id: I0f36f65db00884b017a5bad4670794cd65e2c5e5 Signed-off-by: swetha <sbasin@codeaurora.org> commit 5dcef0415fe4312e4fed83c6974780fe163e6523 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. CRs-Fixed: 316345 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f) Change-Id: Iaeb6b9b121d8c9eb4cf2413ddcaf0024b06e0d8b Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 0506478f4ef8b397b3916db47133c4d0cdc05c89 Author: swetha <sbasin@codeaurora.org> Date: Fri Nov 18 11:27:28 2011 +0530 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: Idf36ab257d4bb493c578529d4d8a7f0d68e2b1cb Signed-off-by: swetha <sbasin@codeaurora.org> commit 79d8f3eec036a1f0604bb296048a5c21a34a6a36 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Nov 17 23:54:16 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. Resolve GB HOUSE conflicts, below FR on gb house had conflicts. CRs-Fixed: 319078 Change-Id: Ie93aeb8837151ef98814a4cde463a3be58c6c1fb Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 0a693110809d2a782a137f242f6438cb0e32218b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 16 22:00:05 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I00ccf91c022d6b9962ec0231eb3c8f159a200e40 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c55b00c069de596e0d539314381b1139139c6932 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: I23fb10ea30117e20de654d9516f7d024b99f6c96 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6b5cabad0561eda616f892cb67306dc4231626a9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. CRs-Fixed: 311137 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178) Change-Id: I79a67ebe0a24be65c2f588d06e80e437d850dc16 Signed-off-by: swetha <sbasin@codeaurora.org> commit 1b0fe24150908a0474460c32347e71d1f904008e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 40a43409804073a0442d2a1ea09293c0b95fdab1) Change-Id: I46ab957bb1f6f9289ea62f49c4c012450965cc9a Signed-off-by: swetha <sbasin@codeaurora.org> commit d8b5b8b42652bdf50d9d2f32c9f5df9a683bec0d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 5a95ccd976434514d06384c2684c187daf3925ea) Change-Id: I645e953bcb614f18ee0d0469e7e05a81c90d6027 Signed-off-by: swetha <sbasin@codeaurora.org> commit 8da556479db6a5798cd64278c0a59098bab1b89f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Wed Oct 26 11:19:57 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6) Conflicts: drivers/video/msm/mdp4.h drivers/video/msm/mdp4_dtv.c Change-Id: I5a2bb2982f49d9e3f5fa04addf60d498e8177931 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0716a0cfbaa4b71cd46359b97d0595fa5eb13dd9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 09ab565589a8a1409c222ce79b6885aa9e96d33d) Change-Id: Ieb7db1ec90fb6e57b7e3cbc1929ffb74a1d96d8e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit e2a4d84ae6cea7d8c32186e3d94d66814ad8f5cb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. Change-Id: Ib8c95024dc593794909893bd7daafc68ecb77769 CRs-fixed: 306936 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 5f775050abd5416a04e2999101e98b9206fe8a25 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I096939b519c0e007e69e58d0665408799e7f5e83 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b5b8af371375fad123b3b26a1c8f85bc6b6c72e7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: I5261356f75205eb1d3ec17522779693deed09562 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6fb10dc13bdcbec93462149c90ee11a8f3101118 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb) Change-Id: I85bbb414a9d34981487bee63ebd7b10e76711c89 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 30e1b13055d905f4276d3e9fc9e0a93d9dc1f9f5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit 4b99172a1df8b1ad2b48343bead39685f294e680) Change-Id: Id54327394748cc4a80864967b21caf8a378f37c3 Signed-off-by: swetha <sbasin@codeaurora.org> commit afff1683341cc4ae64ec618a86aecbbf1a1b83ff Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7) Change-Id: Ia3ec88bb19cd2f06fd9784afb2302bce4bbe2858 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f00cb084795b659746359544e2d2c80acf15bd5f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 18 00:37:14 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-fixed: 302409 (cherry picked from commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87) Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: I54afdaacc9b3b96be22ef5c0bd1ca2a2478a8f16 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3c12051aa756e8ad7c9fc40bdff1171d401fea42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 39fff5a3899f8d95886ba2e50d70001602b279c0) Change-Id: I4f81ec5a61e0e12013bb866e41301b95a10c7e45 Signed-off-by: swetha <sbasin@codeaurora.org> commit 7a851968932a82b4b21acae0fe788fc2c48b053c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit cb472111d93fa119c52d56c102b90cc3ad2c8030) Change-Id: Ia4586f17bf7696d422c25be7c6a55c4ebfa403e1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3d3a9c230489cebc3c20eece3639e175923d604c Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee) Change-Id: I9a4355eaec13aca70f9c2890e3eba96fbedf3454 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0f189a55ed89593cf430e850c923369d3acb2e7b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler Change-Id: If0ede3234d0ab844d2d49119873af5160e8a3e70 CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1df2948178c9ff509f28fdd2757119ae0923a494 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Add revision to MDP driver Change-Id: Id86814725955c743df4a0f85548fa64c3656feae Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 96145b95dd0688ed0c83f33d129b4bcd8301ee54 Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 4 12:25:44 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57) Conflicts: drivers/video/msm/mdp4.h Change-Id: If070171b933f4b74d5ce817340ed04be0ccbf270 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 433b95fa866ea12a0acc768ce0378f992c1dd09d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 8ee9289450d530ab1fdec2379859fca5845a7808) Change-Id: I8eb4caee64a67863180dbfb45e7d8062488d493e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit b374b85bad548b148cc232c0045351a5b4d524ad Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32) Change-Id: I478dcd2a98d8825783e710aa751d89b9348f2782 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ad3f14bb1b57a8b3b41ed6559689f414a3d020bf Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 446d22d4641f699b741d16ea6086ce570c49dd7c) Change-Id: I4a7a22c5a0ac32120a7fec0a3fd22a62c8182556 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit cbf8fea88bfcff5134c5843bb46a4ba15ea75353 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> (cherry picked from commit 7b31a46e449747c2ca79605450f57658c855c756) Change-Id: Ib03d80616982f4b6febbf5216b5774780e9fb726 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fedb6a40b997178ad2d142ae1a4209b729320c1c Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d8813b4fd6fe7588c411e90a2603b23a772f738) Change-Id: I82c39cdfa4676293ec9a0c02b5f491ffe4b2e6aa Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 18174612d6683ca96b4f13528af46b1f7949174e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> (cherry picked from commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b) Change-Id: I8e26c37b9a54699315fda2cfcefd1f439945c67d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 776f9a5d02a45e7c580a494bda81cf58e6dc7242 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 743f162911247ba260445deb01b5406d0067daf3) Change-Id: Ic309e3b9311bcf0e47284fd5a13b8344a44d3315 CRs-fixed: 302527 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6676fee7d309ea699e302a8d039b85754acf10e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9c08f6850dbd998adf7956887060eec599a8f26f) Change-Id: Idc020deaee364116facc5db471f6f4e9bde4a09d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit dd5a748949a292fe22bcf7e8e8a4f8d9f8dca7f1 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Aug 31 10:04:28 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 64b4b03461e39a715b33a2ea1ab97f5b27850535) Change-Id: I2ad23f7a384b4f149bd3e4529e1bf5a01de66dd8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit b0db685088e013e1af1378583e9798618b153f94 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 871edcfd5a801feed587b6c7f72aa4e1387d245f) Change-Id: I6c880c61b540e83072cc5ea54b120e630d5c0e04 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3dc8e34c9ccf719f476019a0c2abec9ebd38034b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit e6613b38e178e67f441936e6820c966f553074ec) Change-Id: I5e43c80137900b9c04519e1e052cb54068d0860d Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 69b0f5d57c7470195ee4126ceca6b52e16fc1868 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Mon Aug 22 11:24:32 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 60dc151a43093fad5f68d02323570d5efd58ee4a) Change-Id: Ica2d2026a5ea6ffdba8e53cfd3f40013435db009 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 7049edede74ae3ab929c0ae7261b014bb65d9ee5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c) Change-Id: I3aa9a1ab4984ef7bf7b56e83b69d7eb41355f7e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit db2b5ddcb77b564d0e569e27d7484dcb521f9498 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5) Change-Id: I72ceb2efe73ce6990b352f65cf3f36ddcd94b2b3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 78e1b670c1c6d43f45ddb4d1cd290839dfe8fdb6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit ddc23bd81a174843ee09fe464e0afafa62bc7126) Change-Id: I7e0dd6fdb6ea50a90ed44e0dc7e9b9d8b2f71f38 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 575799be2dc6eae0d576e676a3c335dc9929d672 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0) Change-Id: I3c6a115fc116beb96c0ddd5324359efe992d00a2 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit cde0d4265de0662e2f0b119477381e7f8c10aa77 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> (cherry picked from commit b11c3b46619d3eaee600223859041a51fa0af218) Change-Id: Ia57a4dd092811f1430367ba7285f15b4e37e6247 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ce2e933002ea2b6e044d8c0109e6787b3e4674b5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2920965c1443096f1707888d2fe311cb79dd68dc) Change-Id: I7599dc56b1c3a8bfe4eda7fa1b888cafd86a8df3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ee9a51030967ac3c293675da9e67b438c5467c34 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Aug 5 14:18:30 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3) Change-Id: I71790f25e80641c821a87275b1b37088f6402cfe Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ba5def9929507a7501e95c25cb815043d33655b9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0) Change-Id: Icacbafc93eb831ea681fd6815d6f3ff5055a5394 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6e113b50c4af73ee87e90f7fc103e3f339a00719 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce) Change-Id: I2fb8f17d6b94223ba9c35e429acfe571e80e0ed1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 514b196c41f9e2c978b0d540f7d27a748f0264b7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15) Change-Id: Ie22e272d2356289e0bf286464381e23ea9ef3581 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1bdb7c7482741d74e5bf85a14f5a0dbf3e700511 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83) Change-Id: I55c8d6844ff7eb676c7f8bc76e363a7769b35b23 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ea67ae814ceed3004bed07870545725ddd4aeb6d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit f711ac25a68e521ce2bbb450d34f46eb76d39a20) Change-Id: Iee4d72dc85d4042a6490dc9b4f3c593a0a325d54 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8782b22d00d1211ce80d9093e658d3bba3b1b57f Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374) Change-Id: Ib05a6ee172acf80a77418912da3a4f8a54fb64ce Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 296d3f254c3cd93a9296c80d9a654f86105f7343 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 917fee282ae07cc98541a54204069bf7955e352d) Change-Id: Ie3585ca85d6714e262c3fe724d6b5b5f8c8a26bc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 9afa1e2e91ccb4169ea6a2365b4d98cfe237d0e8 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Thu Jul 14 17:41:05 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> (cherry picked from commit 6caa28428d79953af20f6f65459b9217db260aa2) Change-Id: I6270dc95a85f3958c98bfffd429577dab79f408c Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ebc6dc50dd48e2c7fe6133dfd2873aa29d5bed08 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 13 16:51:06 2011 -0700 msm_fb: display: add spin lock to synchronize mdp irq enabel/disable To improve performance, UI push thread release mutex before blocked at waitting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I165f94e77164fa5091ac4f31a7a73ed0f735c576 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 93b1ca29a4ac08326bdfdf2ec618cd275613d71c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: Ic9d68781d02d6bd66be107c446a706936c70ab64 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e5c60572a13dd16426e7356e544e51d36c8a440e Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jul 12 21:07:32 2011 -0700 Revert "msm_fb: display: release mutex before vsync_push" This reverts commit 78318a7a0357fc96cf4a38c90e38be0848cde0db. Change-Id: Ic2dfc460517927e853dc907fc708287bae8a98f2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c0c86f1e14e98efc85f9866fff89f08d1432095e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit bd0ef9258776385559fd032134e0a28e9aad8f34) Change-Id: I6944f98caeb98bdb963d19596791469bf863e18e Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1ce934cf550c3f647c3eec8ddae54d1fbd891519 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda) Change-Id: Id12bf05976b26611e53fd9ed7d31c912bf6840c8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0ad0f07f95ff9cf373c3ea0053ea540701fd38de Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564) Change-Id: I0b7df64ef83329b769f3200ac4cfda975118b4fc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6f4be7effea2e7d42b209b83a53e29d0e599f24a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit fe926e8303dc6da0adf7be76c045ac93a9f8818a) Change-Id: I4c3e5f63a6d6b54bd0d12b1be609a5f0d1f73874 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 78318a7a0357fc96cf4a38c90e38be0848cde0db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: I4a16e8313399c55d71a2e406e56c0c5d3f8f33e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit eacd237f51c20c08c225b6b817e7a6e109ab0b52 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 6 11:21:01 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948) Change-Id: Iad796bc1dde524b600cd5fd37ac4b85ca6f47b81 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 85200a4e8aabf77e3df2bbb0d50b359ee54ba402 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5) Change-Id: Ib5b4a9d0be4c03eb0d6525ceb1d5cdd04e970a96 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 784b785c7c52ce1d74b1e2ab827f485e9b9cb759 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c) Change-Id: I05abf7a3b52d015a146fdfab82a7106523d39847 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 90e312fd2e0f238cd374aab1c7c88905c22d22ae Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit da07df81fe450fb08ec68511bd4ac5004ee96f3d) Change-Id: I3f8bff425a158592cd572e0c487be41590ceff32 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit d00fd730650f26f690df997c91243d0470b1cc3b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab) Change-Id: Ia2f794da7f0d4717833000b7c657d7fc31987d7a Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 53310ca7798873e4f48c426db8cd2f352cf25d33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 14:41:53 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: Ieaf6595baddcef945ad5606a4bbafa18bbd8033b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 59863dbc83da3fd3a06a8c8be50c28b08c60b9be Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jun 28 10:38:06 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e) Change-Id: I547f00f4500b40777686fc0491500c06b5b4109f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 6a50674d696213efebb93a5d9d109723aa69d758 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Jun 22 23:38:16 2011 -0700 msm: Display: Fix IOCTL ID for 3D ioctl. Add code to have unique ID for 3D Ioctl call. Move Novatek specific changes for 3D to novatek panel file and remove the usage of featurization macro "CONFIG_FB_MSM_MIPI_NOVATEK_3D_PANEL". Change-Id: I01e2ec5cd85d2778fc800fd452ee3b1e6d0602f3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 66c31a935e3d692aba41a8fcd419dab4c8acbd3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738) Change-Id: Ib5993ad1967be2244892fe02325094b4e40c7ec9 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fb47e7b99107e99d4b972d2b3c9f80c7d3b62b07 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> (cherry picked from commit afc6ae9304f27c240546f15580555913f7e27644) Change-Id: Iadc2b2df0f7418fa86c4cc69d35208e8b32d095f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ba5be4afb461abba65cd1f588dca788c0df307b9 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 47c54ff0e010190f0a11e7e2792642d70caa339c) Change-Id: I7061c82f24db6e70845a68d27d82dcded81b4b7f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1fbbeff4b9853054cca7d585596a16ae8bfb78c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: Ic8a96a1c2ef6473b9c95701dcebb19b43ed570e9 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 6a5a125bf8fca8b9dfe3b4cb10a536c148e81c77 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jun 22 11:49:45 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about wheather the panel supports 3D display or not. Change-Id: I1086b8deb2980ffcacae153ba5ac80c680e04eb8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e373013d44b00be5114ae6af212478a728eae68f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 9322f759f8437a816e44aa921a64fcb566defcfb) Change-Id: I658c08b4a0d06ca2c58a06a9dfba1f80ad541c9e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ef8a1203fa188df6f9c905b8dbaf13d640418d9c Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7) Change-Id: Ia7d9249dfcc6c85039304336b3f86b2e3194ec50 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3b6b2347a2b87e96c566d8460c6e697622a759a5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. Change-Id: I74898d7d80e9b4727eb417b0f1d831845d229c73 CRs-fixed: 287700 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit bce29e40828551984b3326f13d210d338edde5b1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1) Change-Id: I9c070246b5099664c62dc665dc27ccd8f69926d5 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 8f6405853a986f8e887d733b93386c705bae6c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I4b5ee7fcaf24b81a830320d1a47a9fe6b5095f7b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4efc6788d96403be44453d9d83ad0598fdf17795 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1) Change-Id: Ia30bbdabec6abdcfc2e17912d9d3506ab56283cd Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 884a69dc1ab07f18d5bec5a6868a7dc8ed0648c4 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Jun 3 14:12:43 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. (cherry picked from commit 64189b417cc545add2f496609ef11df6b491d177) Conflicts: drivers/video/msm/mdp4_overlay.c drivers/video/msm/mdp4_overlay_dsi_cmd.c Change-Id: Ie04cc7322fe7b53058f371941af5ba16c93174d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit a150e2043331160e9b996d1fead53d095ec1578b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 3700ca00ba19855081822169e144c87aa1d4953f) Change-Id: Iba7ef824baf4f95aa0fbb6bfa09446ca589f7648 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 297c5cba4110a4595f5e84082f5970c9a7f225d2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 22cff13e1115962207254980acffac8d20bd9b26) Change-Id: I3c1c3518db28d80e5a5a31bfd5b5740dbba65ada Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0ec06ef1a1ecf52b5408e4c0509bcbe0a70ead3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 18 14:46:20 2011 -0700 msm_fb: display: add memory barrier to mdp Add wmb() to enforce mdp registers are updated before kickoff. Also add dsb() to mdp_pipe_ctrl() to make sure mdp register updates had been finished before shut donw mdp clock. CRs-Fixed: 288084 Change-Id: I056143511cfa7e397983b7465fcebff06ada8a3e Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 52c880d22b6e58f259f02f956357e4b8650102f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 (cherry picked from commit dfcf3ef2212026dfb53e87f571b294627f34a4a7) Change-Id: I0083bab592975576d511ef8f6070d38acc40d117 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0f990641485d3340fb8bacd741eb6ccfcac51186 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 4217a1dacbde157ce26238904450b091778fe872) Change-Id: Ife220d4f0f756aba62e3c30dc7ea52a1e4814ebc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 978d4d142600a38bff5082b0ff2ea23fab5d2f91 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ia4578cc5c35f44c5708d9c4756600490df35ff67 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit d0244c6c479ee348493568556afe49ff9f80f2f0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 14:52:03 2011 -0700 msm_fb: display: remove un-balanced mdp_pipe_ctrl() remove un-balanced mdp_pipe_ctrl() called from both mdp4_overlay0_done_dsi_cmd() and mdp4_dma_p_done_dsi(). Change-Id: Ie47dbe02c7fa5938eef8414a6041b431e55cc986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 89f874aa1fce2e9d4f488a5e37d226e3ecbe7cf2 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: If8db70e22f7b5163fa7a0cfbbdd27d8560f64df1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9e8929676679717bee2f16bad6611bb0b94a7780 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure Change-Id: Ib323dc9ca806b1bab22baa2612e2f470f5c2ecaf Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fc3c8c0bb9e685052b7edc8040167d643c63b3c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: Id08a8d74a0b681dfce6d7635d280e5c31b7acbc3 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 13de0ca3217e379d2c2574b0f6f81ebe3400a13f Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. (cherry picked from commit 46ad60f0cff5c2222ded7a639f337417e59b2375) Change-Id: Ie6e8378aeca07644c69bbfede61d457446c88f5a Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3c809bfc5abd0c13a50ad773268efc1bbe442d8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. (cherry picked from commit cd0bd24a3fffff873821618009389378372fb73e) Change-Id: I700599b4926770dc7602f970a4bd5c30dc457969 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e60b4d1c7ba520319c5ddc60b68b8fbe1a6c72a2 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. (cherry picked from commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97) Change-Id: Ie3fbcb42e8b313a1f0861df324c10e370fdfbb2f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c2a00f21c60eb88ed17e348ae947fdffcf7aedaf Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. (cherry picked from commit 8dae3d06d1c41aa2de609056811646ff50e77791) Change-Id: I793b3aee06cac0bd62158c55ee9233dadf51c873 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fa6ee4594caaa7cf28fd33bcfb8a62165602224e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. (cherry picked from commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0) Change-Id: I0b054dcfb6e98b635cb4d8b6a14f6541d97f3287 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 199f5f94edd7c6c127dd4b402cf7866e641a3396 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff) Change-Id: I96b1d3c3ae55dd427c7270d419bbece05917c590 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 33381e73bfa8c51bf91e04d3e5f6fe0930addb9e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. (cherry picked from commit 065b9f72784c2686aca0233e8e510229efd329c4) Change-Id: Icf3c87bce4102fc1d24931f8dde15478bf71fd19 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 57c3657ebbd5273c1f84f28f460482a68b50c968 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. (cherry picked from commit e814b7842af3b7f15047f3f922c1f1648bb2705b) Change-Id: I524b700973062f51b123f100dc115b5c873d7346 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1fdcac8e3387d1f8435090fae2bffeec3eae6970 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit ccdb0372092c3a359754897ebec2bb8be37d6a3e) Change-Id: I02ee8d0ce604cda993f90158282544afb7490cb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ffe43137a4024e0941417d19fb2e51946c1f4e0d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication (cherry picked from commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd) Change-Id: I82fa0248329d56f0662785b1ff7b35ad94e657d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 73d05af290793eb0da55a556c4bbaa28c9706dd8 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. (cherry picked from commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3) Change-Id: I4ce8dc81a137a3646c9d508d682f3ef05b3bc435 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 645ebc3ec6214d0d9fe32a32fa7e10558c74af6b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. (cherry picked from commit 829c88376705c6b58e62dd93e9802ffb905ad49c) Change-Id: I55d1ee5918b05279abcfe63ab74d172e5e8671b5 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 5208a4caa32f8775a10c1567d2749599a2fb839c Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I6cdd36efe643b0bdaec0436e57a6364076d47239 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit b8b834d4da42df635254a5b656e5579bf9237f73 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 7ff0f5166ed9f2ff4f1a37b8bce2501a2029905e) Change-Id: Ibca9d3a2427f484227a6083b6ef11fbb7555cecc Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 3ad826161f59f6531afa19412f3c8b2f2d0362da Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d89efdbbdf521f05a7b9f191e98914b40bc1962d) Change-Id: Ie5cbe004768986dfd5f53d4cbdec9c28506fac03 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 0cb3d75a60e141d786e68fdb713382620d39e18c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556) Change-Id: I0c3fc7d4ebcaada2732eced5ea84b94f1a2d9a0b Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 66f2c07c8a78044fb26cc853702adfc106c99209 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d8df7faccb2ec330eb859179ed0db07313626b7c) Change-Id: I8c566c3dfa8c638e370aba384b80936a03bee88d Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 231a253c7248971c0a3881ec2fefea45ab20b775 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 11 09:46:07 2011 -0700 msm_fb: display: mdp_pipe_ctrl called symmetrically mdp_pipe_ctrl() only need to be called when write back mode is not enabled at mdp4_overlay0_done_dsi_cmd(). Unsymmetrically mdp_pipe_ctrl() called will cause mdp clocks can not be shut off during suspend. Change-Id: I1783a736c86e5a36a2edfb6b266832e3d691be7b Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 64eaf4972c8dea0368d3a4113d6b19a058fc3b3d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit e80420254616b39d0c350dcadf8f6954394e7647) Change-Id: I84df4bc1ca3b0df34d2fab559cace1ca740f2702 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 1323385de767733a659d397ca487e578315d887a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 (cherry picked from commit 565ecc608d46993c4afe6dd15c95942c75f1e932) Change-Id: I908ffa60cd820a47c49d25b1732f7f0f0f1748b0 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9d7f8859560ac2f3c6f84f35e28f24b33809ccb0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 (cherry picked from commit 605a44c18620ed364e53d1e4cc0f03fd2f815029) Change-Id: Ia1c487a95cc7fba7aee2b8d9dc522296446a7fb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ad6004f89f6972f513b0a71cff515f670db661c7 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed May 11 12:11:41 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. (cherry picked from commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b) Conflicts: drivers/video/msm/mdp.c Change-Id: I88901c3b3640dd1030246de0dbeee3109787bc23 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit aa53b629ae7c52ffaa50934a87a48e2887357d85 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 5e744543c3f81650a1cea1402c58c01ae6ee421d) Change-Id: I0d16f22a98e25b8366b6c3eaf60cd6277f5a76f1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 754ac15b2a298b38873fadc47ec4b89602aa71df Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. This patch also move footswitch out of mdp_pipe_ctrl() and have footswitch always enabled. Change-Id: I8beb66da6afb606da9460f5c8027f298227bf0aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2c5fc636989ba248384240b8f31ff82791790a23 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 6 09:20:08 2011 -0700 msm_fb: display: mipi dsi read function Re-write MIPI DSI read function to allow it to read more than 4 bytes of data from client. Change-Id: I016bb0accfd71526a32f96878e64c439f2e53537 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 58979b79f5ca8211aac7faad413934ee8f09bf8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Feb 25 12:23:06 2011 -0800 msm_fb: Disabling DTV timing Generator after hdmi off. DTV timing Generator should be enable for updating Audio Packet Control(0x0020) and Audio Configuration(0x01D0) register in HDMI core. Need to checks Bit[0] of both registers before doing the HDMI Audio Shutdown. CRs-fixed: 274278,274284 Change-Id: Id15e4bcbddea4a7c0c9926f5420c0b639ab599bb Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9e0698f6708ed4da35b2da7281fb7a5044ba0801 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Mar 23 11:38:42 2011 -0700 msm_fb: display: Configure MDP clock depending on dsi_pclk rate. In MDP 4.1, the MDP core clock should be greater than 1.5 times the dsi_pclk frequency. Add code to set the minimum frequency for MDP core clock depending the MIPI dsi pixel clock frequency. For LCDC panel, add code to set the minimum frequency for MDP core clock to be atleast 1.15 times the pixel clock. CRs-Fixed: 279386 Change-Id: I065bb0eb13c68ee191c8693fe5ca73b3587c1edd Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 70b65dca8d88287a259f88591255f3725a50026d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 31 18:21:47 2011 -0700 msm_fb: Display: Fix MIPI DSI video mode configuration settings Modify the video mode settings according to suggestions from hardware team. Enable High Speed mode during horizontal blanking period. Configure Novatek panel to run at 60 fps in video mode. Change-Id: I9e68f1175caece135ac4074fcc35a907f8006158 CRs-Fixed: 279535 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68848ff4fc21b2dbd068e29ddb391a088eba2137 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Dec 21 13:48:40 2010 -0800 msmfb: msm_hdmi: extract 3D information from EDID Header Extract 3D presnt information from Vendor Specific Data Block from EDID header extension. Change-Id: If5d94382a9c610f7a241a91ef5c61801366d5e9c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 07099e1ef27c0dd6bc6bea859211bb36239d53db Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Fri Mar 11 13:33:23 2011 -0800 msm_fb: display: Remove RGB performance level vector With RGB performance level vector requesting for performance level 1 for all RGB type surfaces, power consumption increases. Performance level 4 is sufficient for single WSVGA size RGB buffer scanning. Remove RGB performance level vector and add check to request performance level 4 for signle WSVGA RGB buffer scanning. Change-Id: Icfb6f00799fc510d23a6f048fc4729471576d00e Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit c85505b79eb8b10c0bba8ed6891ded008588a55c Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Mar 31 12:18:02 2011 -0700 msm_fb: add DTV vsycn push Add DTV vsync push to block on vsync so that overlay play calls can synchronius with UI push. Change-Id: I382c16fda3846f983b00f175619d18d7ddc5e762 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f6b6e3fdee8ed083e609204bbd05d99923104ac Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 30 17:12:36 2011 -0700 msm_fb: display: add a flag to know the rotated source content expose a bit in the flags field so that driver knows whether the source content is rotated, this is used by mdp to deinterlace the content in horizontal direction for landscape video if the video is rotated portrait. CRs-fixed: 281389 Change-Id: I303f6c5f03763b9f68d1f7388839764a69bb428f Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 7c0c2fe5ac873e185dfbad153bbc5d489b0a8906 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 30 13:39:01 2011 -0700 msm_fb: display: turn dsi clocks off when no display update Turn dsi related clocks off after have no any display updates for a second. This is feature for screen static update. Change-Id: Ifa25a6af18c78ec6ee619347f124e5600831e173 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ac5d4ab983a05ec976a391234a74bb9ceae4807 Author: David Ng <dave@codeaurora.org> Date: Fri Apr 1 14:37:50 2011 -0700 video: msm: mdp: Optimize mdp_pipe_ctrl handler Optimize pipe control handler by aborting mdp block power control check within loop earlier. Also, reorder MDP_BLOCK_TYPE enum to move high likelihood enums near the start to optimize value check in a loop. Change-Id: Id656f005863bebf7fc9d4e8543f5161b25a9b5e8 Signed-off-by: David Ng <dave@codeaurora.org> commit 4f5de8242637db49dfd7e96499dc6866dfad084e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 10:36:18 2011 -0700 msm_fb: display: send dcs commands at video mode during booting up Add capability to send dcs command at video mode to initialize display panel during booting up. Change-Id: I826a2045b9b883c207e450c95d76dbf341de026f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5b3193d6655a955ec0dfc6af7583b15dee5053ca Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Mar 18 19:45:13 2011 -0700 video: msm: display: Bandwidth requirement for 3D display Increase Bandwidth requirement for 3D display to avoid the blank display CRs-fixed: 277304 Change-Id: Iaf3ac31b17521320cd2b7b6a5e82a7fa9fe07819 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 869aac9b3eca7661e13147063e15c9996056c5ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 08:59:33 2011 -0800 msm_fb: display: enable/disable DSI irq dynamically Enable/disable DSI irq dynamically so that the power grill can be shutdown. Change-Id: I6f4a4a3f740743804ee720712b4c0f2caa6e20a3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 86bacb945b5317d6600abc7206c9b5ad3a1c2b8d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 16:43:02 2011 -0700 msm_fb: display: check x offset before enable mdp write back mode When destination x offset is not equal to 0 will trigger dsi command mode interface hardware bug. SInce write back mode will introduce bus accessing overhead, only enable mdp write back mode when destination x offset is not equal to 0. This patch also add writeback statistic. Change-Id: Ia97d2c4d8080e8b0ca9f61d3d24fc3f13d106f16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ad9506b0811e31107fcbefe437ac2c5390ddf3f9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 29 18:09:17 2011 -0700 msm_fb: display: Fix MIPI DSI Video suspend/resume issue Fix MIPI DSI Video suspend/resume issue by enabling MDP footswitch during device probing. Change-Id: I3461e4c69f24d09a84bcf9d626a4212e0434be87 CRs-Fixed: 278357 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cd4d51d521d351649ad91695069fac6842052a61 Author: Jilai Wang <jilaiw@codeaurora.org> Date: Tue Mar 15 15:52:52 2011 -0400 adv7520: add hdcp hw support check Add hdcp hw support check since fluid 7x30 p5 devices have hdcp disabled in hardware. This will disable hdcp in software. Change-Id: Icb8afd23f06a97ba549522d8af98c7968c172e1c CRs-Fixed: 272573 Signed-off-by: Jilai Wang <jilaiw@codeaurora.org> commit a9e0558e9f28c19733b3f40d404c26d64d87fe78 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Mar 28 09:13:17 2011 -0700 msm_fb: display: add panel type check before disable tear check Check DSI panel type and only disable tear check logic and free vsync gpio if it was a command mode panel. Change-Id: I7b075d75cbf75d3b20bba3e6a52d1435133c7aa2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e7a0f2d0a1a9cf51bf509cdb3642dd5c20c39da Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 25 15:48:51 2011 -0700 msm_fb: display: do not check dma busy while in video mode DMA busy flag is used for DSI command mode (push mode) to indicate DAM engine is active to prevent double kickoffs.It is not necessary for DSI video mode to check this flag since it is pull mode which has internal timing generator trigger DMA engine on every vsync. Change-Id: I2420b525cffcfda110e25d0295e66fa28bb2e423 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a0a73f93763280b7129314d95c130ea42c8d87a4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 22 11:35:59 2011 -0700 msm_fb: display: use 720p tile dimensions to decide performance level decide the performance level based on the samsung tiled format aligned dimensions for 720p resolution otherwise it will end up using 1080p clocks with overlay when the input video is rotated. Change-Id: I68f71dc2e6a0c74b5324af945d58cf1dd3f1f33b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b73ec6089ff89a43e31c48ca696c264d26294d6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 23 18:08:35 2011 -0700 msm_fb: display: add dynamic enable/disable mdp write back mode Add dynamic mdp4 write back mode enable/disable capability on top of existing mdp4 write back mode implementation to provide software work around for MDP4 hardware bug between DMA_P engine and DSI command egnine. Change-Id: I2de277e2a5b31335907088862279f4a5c7fc60e6 Signed-off-by: Kuogee Hiseh <khsieh@codeaurora.org> commit e924f3c470540de586acdf4cf03bc91c0ea3f653 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 21 16:55:35 2011 -0700 msm_fb: display: Configure MIPI DSI clocks using panel settings Remove hardcoded clock dividers and other clock related settings. Remove support for mxo clock. Add code to generate the clock divider settings using the panel frame rate, format and porch settings. Change-Id: Idfe301d389d5f71d09b36e6957e473bd53be009b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ffa68409df9960b4cb9303bba0fa673dd1c9215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 24 08:33:41 2011 -0700 msm_fb: display: fix mddi overlay interrupt handler MDP4 write back mode provides work around for MIPI DSI command engine hardware bug. But it breaks MDDI overlay interrupt handler accidently. This patch fixs MDDI overlay interrupt handler. Change-Id: I759a26e64202b2bcdf359e76d09f1cbff8343769 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f4a2361bbaad07a9e7eade0e42a1a0d20bd81914 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 11 15:41:04 2011 -0500 msm_fb: display: AUO WVGA LCDC Panel Adding driver for AUO wvga(480x800) 3.61" lcdc panel. Activated for msm8660 Fluid platform revision 3 and up Change-Id: I528894540ed1990b7d0e8ea763fd9c54c70cf276 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit a10db6ff521dd54b213533f4093565bfa1275761 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 9 09:48:12 2011 -0800 msm_fb: display: shut off dsi pll with correct register setting To prevent power from leaking, dsi pll need to be shut off with correct register setting sequence. This patch also fix the timer configuration used for turn dsi related clocks off when no screen update for one second. Change-Id: I33452bc02fb33ef3c780b9f9aa0e840f90f8598d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c3a958f6c0573ba0bce94df40e50c2b5550645fd Author: Wentao Xu <wentaox@codeaurora.org> Date: Fri Mar 18 15:28:37 2011 -0400 msm_fb: display: not to register platform device from AMOLED panel driver The platform device is already registered from board file Change-Id: I469b70af30dffc5a8e5f08516d942f441ff21f89 Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit 79e20ca76f1db3c2861c28681f0e16cb97d3ccc8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 13:45:31 2011 -0800 msm_fb: display: add MDP writeback mode to DSI panel Implement MDP4 writeback mode by using double buffers for dsi comamnd mode panel. Write mode for MDDI has no changed (single buffer). Writeback mode is enabled at boot up. This patch does not provide siwtch between enable and disable of writeback mode. This patch provides software workaround for the hardware bug at the interface between MDP4 and MIPI DSI Command engine. CRs-fixed: 277310 Change-Id: I28d4dab3b05bda02e2def474644ed045776d0241 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a7c0fe5e2f435e45d2ba1ac1be8b310681a3ad18 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Feb 8 17:32:12 2011 -0800 msm_fb: display: Fix LCDC underflow by downscale parameter validation Fix LCDC underflow by downscale parameter validation against mdp clk and panel clk frequency during overlay_set. CRs-Fixed: 271494 CRs-Fixed: 279382 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I363a87777311b66e5acc2c29afe8da6b2287694a commit a225d0e971254d2c49fc8d08537d22875b83f46a Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 16 15:30:01 2011 -0700 msm_fb: display: handle histogram during suspend/resume disable the histogram irq and clear the histogram registers during suspend and re enable them when resume. CRs-fixed: 280419 Change-Id: I54154a89c7a2f92dba8ee9e99943e61279b29c44 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 54afe26ae0f0800584d19aa9495bcbd48c52440d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 16 10:08:43 2011 -0700 msm_fb: tvout: Removing mutex_lock in ISR CRs-Fixed: 278755 Change-Id: I6e5e13edc9048757c87f57f8579776d7ce878bb5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b35b92b71ded97db1d1e2b8fe34c45bfbf5ab6fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Mar 20 12:19:32 2011 -0700 msm_fb: display: synch mdp irq enable/disable Add spin_lock() and spin_unlock() inside mdp_disble_irq_nosync() to synchronize with mdp_enable_irq() to prevent race condition from happenning. Change-Id: Ieb76a5a920d7d92b627108d033e34874c7acdd82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b74ce77d0cebd282fb6b17c959146db9620383f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 15 16:46:52 2011 -0700 msm_fb: display: remove redundant call to disable irq in off function CRs-fixed: 278326 Change-Id: Ib0ffca8862aa34438ae8575ea3b9ed21cf7418f6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit df448ca39305b85fc318c16d067e1cb6ba386a0f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Mar 13 19:41:51 2011 -0700 msm_fb: display: Fix MIPI DSI driver initialization sequence. Change-Id: Ifcb67a166b68db45d6d3b14ba9cc5caa48316ee8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit de64d12d9e0806e630e148d3da7f9d390a92db1a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 4 17:18:18 2011 -0800 msm_fb: display: Remove secure_io to MIPI DSI register access. Only clocks belong to MMSS_CC need to be accessed by using secure_io. Secure IO access for MIPI DSI register region is not required. Use normal io access using readl/writel to MIPI DSI registers. Change-Id: Ifc49b1812efa0fbe82d48bef7f5054064f55043a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 00c6dbec219e11a71bc0c077e53779d97365e5c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Mar 7 13:34:56 2011 -0800 msm_fb: Reading Ro' from correct HDCP port offset Reading RO's from correct port address and offset and start HDCP reauthentication again,in case of authentication failure. CRs-fixed: 275796,276921,277082 Change-Id: I984054384cedbcc96fb8cd68b4d3f533ff33a969 Signed-off-by: Abhishek Kharbanda<akharban@codeaurora.org> commit 715b3fe8316555da278042f6371c3bc9a0dcea05 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Mar 8 18:31:10 2011 -0800 msm_fb: display: Enable secure IO access and fix DSI clock settings. Read back register value is not updated properly for MIPI DSI clocks. Revert back to the older method of configuring the dsi core and dsi pclk settings. Modify clock control block access to enable read/writes using secure IO. CRs-Fixed: 278206 Change-Id: I5d5503d39ddd5d2ae0fa0dbdaa592686ae5e5ffe Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit e3cc2ce88868ee28f9ba4268b75e5a7bd671953a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 8 15:00:36 2011 -0800 msm_fb: display: Log cleanup for LCDC Samsung WSVGA driver Change-Id: Ia0372db34b3c9a74202ef692d9c30c5fd43f6a6b CRs-Fixed: 275930 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d4b31a95cc9477c47fe9b1c5b5c96ddfb075da24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Feb 25 12:09:06 2011 -0800 msm_fb: display: Call pm runtime apis with the correct fb device use the same frame buffer device for all runtime pm apis calls. Change-Id: I2dccf69f6f9ed115fbeceef0636e39bbdfd5c67a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8ae66ceb26dd7baecc85d2b334029903cb7a1bb8 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 8 12:42:21 2010 -0600 msm_fb: display: Samsung AMOLED PenTile panel Adding driver for the Samsung AMS367PE02 3.7" PenTile 480 x 800 16.7M AMOLED panel. Enable LCDC auto detect when MIPI detect is enabled Clear regulator handles after they are released to avoid crashing Change-Id: I6abf705fd19d5baa429fb2a7c47e4299f73c6b67 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d91951d2c7feec7b81b814434848cc28e8a167c0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 17:55:09 2011 -0800 msm_fb: display: Fix dsi command mode compiler error Remove un-necessary dma_busy_comp and vsync_start_y_adjust to fix compiler error. Change-Id: Id56568bb3d4cdbe091dd09584bf6d26183812e1d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 73b51ce75cba3caa4ac511503f46705a356896af Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 15:51:27 2011 -0800 msm_fb: display: add support of sending DCS command at video mode At MIPI video mode, set CMD_MODE_EN bit to enable command mode engine before sending DCS comamnd to client (display panel). Change-Id: I6462eef5c3c378176e8df61d3a5108148cda3047 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5ed1dca7d697327a9ff9dbbae45fb20e73a2c010 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 1 14:47:36 2011 -0800 msm_fb: display: initialize comp struct at pipe_alloc Initialize per pipe comp struct during pipe allocation. Change-Id: I48c919b3b520cfaf12f5b6fa713fde9f5fb866d0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 03dac3988c186dfd125b5f07501e2e3fe3d7b6e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Feb 23 08:54:33 2011 -0800 msm_fb: display: add dsi clocks control Add runtime dsi clock control to turn dsi related clocks off after screen update and turn clocks on before screen update. This patch also provide clcok off debounce mechanism by using kernel timer. CRs-fixed: 276211 Change-Id: I68f4cc48ba4887d2240d96936674eb460618de1e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 74ce95472814e2561ff258668ba6c9febdf54556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 14:46:37 2011 -0800 msm_fb: display: add support of DCS backlight command Add backlight control by using inband DCS set backlight command. Transmit DCS backlight command to client while DMA is not busy. CRs-fixed: 275660 Change-Id: I6954bb6e86d15a8f4076d9bb576667669459725c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2245b9e330cd54ac4e4580a5208da1f61209c340 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:04:47 2011 -0800 msm_fb: display: remove extra bracket to fix compiler error Remove extra bracket to fix secure_writel compiler error. Change-Id: I11ebda03004dd0a7fea648cb32675c8dc456bc47 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 252d99d19002242dfb78b4b1c1ac604787c3d83c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:01:28 2011 -0800 msm_fb: display: check mipi panel mode before enable vsync Checnk mipi dsi panle mode first. Only enable hardware vsync mechanism if it was command mode panel. This patch also remove the unio declaration of lcd_panel_info and lcdc_panel_info of msm_panel_info struct to fix vsync configuration over written panel's porch configuration. Change-Id: I1d0806df04b884e1fb5a596baedd4b5f3630d01a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ab42fa9b082706916123315e5647789b7f01a3d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:55:24 2011 -0800 msm_fb: display: Fix MDDI CRC Error handling condition Fix MDDI CRC Error handling condition to avoid looping of MDDI reads infinitely Change-Id: I4e65b635fc4041213e544f64919a9a6f074b366e CRs-Fixed: 275229 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 38c908beabb5f40225314642d88d09e299806b6e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:53:15 2011 -0800 msm_fb: display: fix a typo in using the correct packing format Change-Id: I0f522ea04ece89c6f387d22634d4d33139f2a631 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4a3fed28675ebf7bacd209a8baea84265dd664c2 Author: Matt Wagantall <mattw@codeaurora.org> Date: Wed Jan 19 15:56:14 2011 -0800 msm: 8x60: Use secure_readl() and secure_writel() for clock registers The application processor is unable to access MSM_MMSS_CLK_CTL_BASE register directly. Secure APIs must be used to read and write all registers in this region. Change-Id: I2906d3b8e28b45ff896a41103fecce9491b5a991 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 57ea567a20d102404287eb09ee2dabeae04093c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 15:06:30 2011 -0800 msm_fb: display: mitigate lcdc interrupts Primary vsync interrupt are always enabled which causes interrupts are generated at every 16 ms. This patch will only enable ingterrupt when has frame push. Change-Id: I062bf19a9b56ef6fea4c4374d8751625bbb86a42 CRs-fixed: 275999 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c315489fbe1a75c52b968c4a237d9f7f4334336f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Feb 7 16:58:43 2011 -0800 msm_fb: display: add chimei panel driver Add Chimei LCDC panel driver. This patch also incorporate backlight control through PWM of gpio-24 (channel 0) of pm8058. Change-Id: I2e00d6ce0f6a9858a56d929c660776fcbfc54732 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 030612a798461326d82d5fab950ca2a071d057a1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 17 18:21:25 2011 -0800 msm_fb: display: Enable S/W Vsync handler only if MDDI clock is enabled Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I3800f7b27f7730cd9e60e37b0f060ede9f79c83e commit ac9fd472e5832a56d20e06654e5a8fd04d3583e9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:16:51 2011 -0800 msm_fb: display: Fix vsync timer deactivation by shutdown flag Fix vsync timer deactivation issue resulting in timer handler run continuously during suspend/resume by using a shutdown flag Change-Id: I71806b491d15b454b1e56f01e78223e26df7062b CRs-Fixed: 274480 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52f6889f672d53e9c80cfde8335fde65e1022fff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 4 16:30:31 2011 -0800 msm_fb: display: add support of mddi MDP_OV_PLAY_NOWAIT Add support of mddi MDP_OV_PLAY_NOWAIT mechansim so that overlay requester can issue multiple frame updates followed by a single DMA kickoff. This patch also remove 10 ms timer from UI kickoff which try to consolidate multiple frame updates into a single kickoff. This is not necessary at NOWAIT implemention since both frame update and kickoff are controlled by requester totally. Change-Id: I901054eba78d946549b05e667dd580a95ee18a87 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e9bfe26bd022597402b9070c41fe89c2040a7227 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 31 10:01:13 2011 -0800 msm_fb: display: add 3D side-by-side to interleave support Add 3D side-by-side to line interleave conversion by introducing MSMFB_OVERLAY_3D ioctl to allow user to change frame buffer's width and height at run time. Change-Id: I5801425a1f03ceedf69522c28780bb200ab63c57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e908e0c469fb2fa7dc7ecb659158d91d082b5d08 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 8 18:05:10 2011 -0800 msm_fb: display: Fix incorrect fail in tvenc_probe feature pm_qos usage correctly with CONFIG_MSM_BUS_SCALING to avoid incorrect fail in probe call. Change-Id: I5677e0d10fef30ef1f41a87e6415782777612d87 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ec2908a70273dec14893222233530f7cf5664a1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 11 16:30:28 2011 -0800 msm_fb: display: Cleanup of Log messages Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Icc911682233d48e3dcae0b78e8aa0138fd3af027 commit d034fc1101365fd5593b8dc1da66da63d8a5f61f Author: Harshad Bhutada <hbhutada@codeaurora.org> Date: Fri Jan 21 19:42:49 2011 +0530 msm_fb: display: add 3 frame buffers support Add triple framebuffer to improve display performance Change-Id: I132c74f11f5ddcee62d12599c85dd615e14235d4 Signed-off-by: Harshad Bhutada <hbhutada@codeaurora.org> commit f5593a5556724456bb71754554e06ce91690108f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Feb 10 09:56:05 2011 -0800 Revert "msm_fb: display: soft reset mixer1 when external under flow occurs" soft reset mixer1 has side affect of blank display on primary intermittently hence revert this commit until the corret software work around is found for mdp pixel shift hardware issue. This reverts commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23. Change-Id: I75e319461e474394cdc35d3f5dbbd2f7502107cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 9ad8eed3ad1e5fcee31bafb36f89fc27c8587335 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Wed Feb 9 14:54:06 2011 -0800 msm_fb: msm_hdmi: turn off hpd on boot-up Ensure hpd is off on boot up, so that the power on hdmi rail will be zero. Change-Id: I80212511d30d58e4f65ee938621ee959e5623a79 CRs-fixed: 274396 Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit 65ec3d97b4df9de23c46f82cf62f1ec32c4d8c51 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Feb 8 10:03:49 2011 -0500 msm_fb: Calculate smem size with correct bpp value Always the bytes per pixel for the framebuffer format to calculate the shared memory length, not the panel. Change-Id: Ief3adced9c8f0265babfde44b9ca5c40af2423e4 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 52a629f3ccc8caf40b2a4796b7287f1bef9b3096 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:57:20 2011 -0800 msm_fb: display: Use solid fill attribute for no fetch in is_fg mode. In is_fg mode, when alpha is 0xff, use solid fill attribute to set no fetch, also set constant color to black for blending. With this FB is not fetched and we could save bus bandwidth. Change-Id: Iff88269c9e00bb7b6277cb4368c3d0efbbfe5257 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit df9278b93dbba60b8cdb8f043d851f21508a8764 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:31:55 2011 -0800 msm_fb: display: Add performance level for RGB buffers To request highest bandwidth on SMI/EBI for RGB/VG pipe, this change adds performance level for RGB buffers. Also, add one more clock level for corresponding perforamnce level. Change-Id: Ifde6d7ee295d8335e2c2dac6de8580a9f6ee5dd5 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 17f4ba96318300509d022d1ef56678aa6e1a9787 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 4 11:59:57 2011 -0800 msm_fb: display: Fix MDDI blackscreen issue by vsync pending flag reset Fix MDDI mode blackscreen issues by resetting vsync pending flag when vsync clock is not enabled. msm_fb suspend routine requires the pending flag to be FALSE to exit. Cleanup vsync timer usage during vsync clk enable/disable. Change-Id: Idb5fcb5f281cbc7cc41db47a63cde35b18c5a1de CRs-Fixed: 271317, 271775 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d11c910649c0d88d432abe0253d9bfd45e924f6a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jan 26 15:54:57 2011 -0800 msm_fb: display: Add cursor support for MDDI primary interface Change-Id: I490d362c2389f1ececb850340fc97cbd64e2b296 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ec31d4b82b67e43cebf9467c1531288b7b36f6ce Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix crashes in MDDI mode during fbtest/boot/suspend Fix register access crashes in MDDI mode during fbtest/boot/suspend operations. This change has been reverted once since MDDI clock was disabled during the execution of mddi_on from a previous pipe_ctrl OFF request. This patch includes enabling MDDI clock in mddi_on directly. Change-Id: Icc302ea312b5dc96b65bdfe5cb65b9f12341f7ef Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a8b2d85d754bd338a05a574006a1a81366898b8a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Jan 30 15:13:39 2011 -0800 msm_fb: display: Fix underrun during suspend/resume There is MDP underrun issue while doing the suspend/resume when the video playback is in the pause state. Fix is added to set the right MDP clock in this case. Change-Id: I8b488cc629766aa2671537bfe3a3b3804966a7aa Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fb7f5cf847e4fe37e2af6c5c1a642f9875320b9e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jan 26 09:24:17 2011 -0800 msm_fb: display: Add dma busy checking at overlay unset Add busy-wait mechanism to ensure mdp dma engine is not busy (not active) before un-staged a mdp pipe. Change-Id: I66982d75b75e114cd9129a341af147a0e6dfdef0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5db13dea0a21124d3e33fdbdc832dd433521a215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 13:46:41 2011 -0800 msm_fb: display: add MIPI Tearing Effect support Add MIPI tearing effect support by connect mdp_vsync gpio (28) to mipi dsi display panel and send set_tear_on command to panel to enable it. CRs-fixed: 267852 Change-Id: I364202c5b4c824ca5be1716619a4bee836618da0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9768b27ab8963102d56f2de38c626c91edef26de Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jan 27 18:30:24 2011 -0800 msm_fb: display : Implement mdp clock scaling support scale mdp clock based on various performance levels to save power Change-Id: Ia682325f4227c083a783cd2fb33e6d54003b944b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b7f5eba092f72a42edeb7fa72502502317c22ba Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 24 16:23:47 2011 -0800 msm_fb: display: do not reinitialize qseed during resume reinitializing qseed tables during resume is causing artifacts on hdmi since they are getting updated while dtv timing generator is active. reinitialization part is already taken care by checking whether mdp hw is reset just before resume hence remove this code. Change-Id: Ic448cafd69e8a4c66b5097d55d8e59acd0985d71 CRs-Fixed: 272138 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 0dff7e9161fdcb5fdde2ec387f1686b9324ab422 Author: Vasantha Kumar <vasant@codeaurora.org> Date: Thu Jan 27 14:59:09 2011 -0800 Revert "msm_fb: display: Fix clock crashes during boot/suspend/resume operations" This reverts commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d. Change-Id: I7a9b89c8a116445aae47ca6b7f128bdf24822ad2 Signed-off-by: Vasantha Kumar <vasant@codeaurora.org> commit ef072d28af4812966be54a33f5b51d785ac1e2bc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 10:57:36 2011 -0800 msm_fb: display: Add MIPI DSI read function Add MIPI DSI manufacture ID read during MIPI DSI initialization. MIPI DSI host issue DCS read and issue BTA to allow client to send DCS long read data back to host. This patch also add MIPI DSI ACK-ERR-STATUS handler at reverse link. Change-Id: I2106df419cd809cc862fcdb37112cfaf3ad811f2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a269fdf061c0946d704eeb4a487b7aaa86aa5dc3 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 26 09:53:01 2011 -0800 msm_fb: display: Fix mdp underflow on hdmi underflow during suspend/resume on hdmi is caused due to incorrect bw requests on primary during overlay_set and requesting bw after enabling lcdc timing generator. Change-Id: I1e6aadee03b7c4c0f678bdd387515dbd07587fb5 CRs-Fixed: 271912 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 5b3a94e9512771acecec016cb1a6d39c2bc71017 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Dec 20 17:18:49 2010 -0800 msm_fb: Migrate to clock rate voting Use the clock api, instead of pm_qos, to vote on the EBI1 rate. The transformation is as follows: pm_qos_add_request() -> clk_get() pm_qos_update_request(*, 0) -> clk_disable() pm_qos_update_request(*, <nonzero>) -> clk_enable() pm_qos_remove_request() -> clk_put() The rate a driver requests is almost always the same and can be set with clk_set_rate() after the clk_get() call. Change-Id: Id7f4d1fef62d9ce1e49f88daae1ca56608d3cd7d Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix clock crashes during boot/suspend/resume operations Change-Id: I80aebe2ad76892f16c27f6d68aaff0a3a4d13a86 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 15ad3e6e356b0cd963e91db6a2eb1d3f7f65726c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 20 18:45:00 2011 -0800 msm_fb: display: Set MDDI clock rate before enabling first time Change-Id: I1beeca0d57ae294d18cb337d5b93285f87215f05 CRs-Fixed: 271561 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit da220e2b85a730c980a30500792b815035bd6dfe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Jan 21 08:10:56 2011 -0800 msm_fb: Add suspend/resume support for ADV7520 Added suspend/resume functions for ADV7520 chip. Change-Id: I2aaeed91615e9be66f9abe79b0502ba53b851a04 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0e38a1c08495abb77a088fe5310d66c885201396 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 13 15:21:53 2010 -0600 msm_fb: enable HPD even when HDMI panel is off - Turn on LDO8 & LDO10 during I2C communication - Turn on LDO8 while HPD and while cable connected - Turn on HDMI_5V_EN during EDID and HDCP - Always listen for HPD IRQ Change-Id: If24d05b3dea81cb73004900ea23ab51e483f1b38 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 98b8a1a579cef545b9700d7838f117ab43518c0e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 24 11:03:26 2010 -0700 msm_fb: display: synchronous with vsync at lcdc frame push When frame push over 60 FPS at LCDC may cause display tearing due to previous frame was over stepped by next frame. This patch allow mdp to hold push thread until next vsync to guarantee the previous had been consumed by overlay engine to avoid tearing. Change-Id: Ic9bc96377649805211baba8e1e2570b18fb26954 CRs-fixed: 270946 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit edca916e571cadbc7f7262b5a537ac3884972320 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 20 12:20:38 2011 -0800 msm_fb:display: Fix section mismatch The mipi_novatek_lcd_probe was being referenced outside of a non __init section. Fix this by placing mipi_novatek_lcd_probe in the section which exists for device intialization code. Change-Id: I4c9dbbbb7ca1368beda8aee59c8bedb60efa8dc6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a11f5f7eea649696e4c12bc057815a615ee201d0 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Jan 17 14:31:16 2011 -0700 msm_fb: msm_hdmi: reset HDMI PHY on resolution change HDMI PHY needs to be reinitialized when panel resolution changes. Change-Id: Ib01be9f51668cb290b61360b3775993d232169bd Signed-off-by: Urs Muff <umuff@codeaurora.org> CRs-fixed: 263676 commit c1ee3af7b4b1580eaf83bfe875df7ff0c44bd6e8 Author: Alan Gerber <agerber@codeaurora.org> Date: Tue Jan 11 18:26:37 2011 -0800 msm_fb: hdmi: Hold idle wakelock when HDMI is enabled In our current implementation, allowing idle power collapse during HDMI output causes underruns/flickering in the HDMI content on some devices. This patch takes an idle wakelock during HDMI output to prevent idle power collapse as a preliminary solution to this issue. CRs-Fixed: 266067 Change-Id: Id91011067b7c808548e6ee3df00e53c4e2aa8013 Signed-off-by: Alan Gerber <agerber@codeaurora.org> commit 7ca0f321d7c0815c1dd13387fcad55266a87c0da Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 13:42:06 2011 -0800 msm_fb: display: Disable Optimal Fetch bit in FETCH_CFG of MDP pipes Change-Id: I58af7a86c7a9b27dcff5573b44534c968cf4fde0 CRs-Fixed: 270136 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ed91ea3ea225adfc3bc7091eac5d22413af0d20f Author: Urs Muff <umuff@codeaurora.org> Date: Fri Jan 14 08:35:59 2011 -0700 msm: board: allow to hide hdmi log entries Reduce kernel log spam. Change-Id: I05a650041e47f5abadccf5cecac303ebf0c1c830 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519c18879d14b3bda62765c66f222afe2ac97cda Author: Wentao Xu <wentaox@codeaurora.org> Date: Mon Jan 17 15:50:33 2011 -0500 msm_fb: display: change sharp panel backlight Kernel pwm_config() parameter has been changed to expect both period and duty_level with unit of micro second. Change sharp panel backlight period and duty_level to have unit of micro second accordingly. Change-Id: I00f3b7f3b45161ba2152f935147e0d5fd22d2a8f Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d42938452d1c005046b00b50d61ccd65a15ae3a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 17:02:05 2011 -0800 msm_fb: display: Fix backlight issues during boot Initialize backlight level to 0 in msm_fb probe to allow the userspace/framework set the required backlight level. Allow backlight settings always in msm_fb_set_backlight call. Change-Id: Ic42b76e6b8886957856683ee0343afd383ef42c8 CRs-Fixed: 270638 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 12 14:38:11 2011 -0800 msm_fb: display: soft reset mixer1 when external under flow occurs This is to avoid the pixel shift on hdmi during under flow. CRs-Fixed: 264718 Change-Id: I4b178dadc3f0f4266da427f584ce10cf0f339d2c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f5c41e7535e347fb0aefcc533d8c3f015baf484d Author: Urs Muff <umuff@codeaurora.org> Date: Thu Jan 13 11:38:57 2011 -0700 msm_fb: msm_hdmi: correct hpd power-on logic error codes are non-zero, logic introduced with hpd feature change e7164df63e7b87b19ee69ddc7f3db74c65b863b6. Change-Id: I178f5bb5a6ce006599322418bb1b6ddf6849bf62 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit b3cd5d6a4ca3c12425c48fd9586500f088653042 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Jan 11 17:30:40 2011 -0800 msm_fb: fill framebuffer with black pixels On MDP with Overlay, on suspend write black pixels to framebuffer to show black screen on HDMI. CRs-fixed: 266993 Change-Id: Ibcd5802059154d6431888a61d6ad4f4c5c11b9bc Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit a739b3bead1308a7c40f0820e72f2031f532832d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Dec 15 12:20:15 2010 -0800 msm_fb: display: Disable/enable MDP/MDDI/Vsync clocks based on frame update Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic5cbac3efdcd87ab3b44a5c2866fefcab09ab07a commit 002d6e11806ada7ac8cde6d05f15b69138cbfa4d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Dec 15 14:30:36 2010 -0800 msmfb: msm_hdmi: Turning off HDMI PHY on power off Change-Id: I9f2d39076df35963dff3d4608c182f0ee6d9abb6 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 655c7961d9bce8ccceab635343c4157584e409d9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Dec 3 12:31:27 2010 -0800 msm_fb: display: Fix for the pixel shift issue with VG pipe MDDI kick off is added to make sure the VG pipe is disconnected from the mixer while switching it across the mixers Change-Id: I708b37b1d9e60e19acc25d5ca2b3589bc7ae04ed Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-Fixed: 256671 commit 7f4053846ddb619a4a23b7bebbf814eef0773ca2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Dec 15 12:53:59 2010 -0800 msm_fb: Display: Enable two lane video mode for Novatek MIPI panel Add configuration changes for Novatek panel to operate in two lane video mode. Tune the panel settings to improve fps. Change-Id: I151018b39429af747ecdc991748bdb17aa7c2051 CRs-Fixed: 266737 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c7677581e46b2fb42de29ad2c709e814a232f34f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:55:12 2010 -0800 msm_fb: display: add sync between UI and video for MIPI panel Change-Id: I5b505c07c42d80ce5e42a0b27a70076ccfb71233 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit fb3b75f1c2eb222113b531c482ee9fe936b4eae4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Dec 13 09:43:09 2010 -0800 msm_fb: display: fix bpp of MDDI BLT mode At MDDI BLT mode, the output format of overlay engine is RGB565. Therefore set bpp to 2 instead of 3 accordingly. Change-Id: Ibc321a6c9817b972652797966571b35ddd941c5c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 227aa0adacf9f947af8d16c633e1d3afa33f650b Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 14 17:04:50 2010 -0800 msm_fb: display: Fix registering multiple bus scale clients Do not register bus scale client if it is already register in the earlier probe call. Change-Id: Icc14898ce28e9507540ce2419c3f41accf3af651 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f58ceb6b3442958cbb2866fe115a33926b1b5bfc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Dec 8 08:30:38 2010 -0800 msm_fb: display: add support of DE_INTERLACE_ODD The de-interlace is default as even line reference. Add support of odd line reference. CRs-fixed: 260959 Change-Id: I637c79c2f5236fc38116693b50c69415e41ebdda Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbc4b8738bdca502c2cccbcfe1ee0c1755488ca5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:25:33 2010 -0800 msm_fb: display: fix MDDI compiler error Add CONFIG_FB_MSM_MDDI compiler option to not to compile MDDI code under 8660 platform. Change-Id: Ia905636bbe6800996fcf9eb24f1487e28cfc9c97 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4334af8abf1ec212df6778a7405de0d3070abd6d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 13:53:14 2010 -0800 msm_fb: Display: Add two lane command mode support for Novatek panel. Add code to change the clock configurations for MIPI DSI to support two lane command mode for novatek panel. Add code to turn off of the novatek display when the device goes into suspend mode. By default, command mode for novatek panel is configured for two lane. CRs-fixed: 264213 Change-Id: I98df05199a1680375ab4c0274418d1730b052f6a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a809819d9d5d0b59f2c2eee0534bc68048b09016 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 30 15:40:46 2010 -0800 msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6ac2d1a19bcfce5c9c60eb4d063bce4eac924515 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 15:19:42 2010 -0800 msm_fb: display: Remove backlight control from blank/unblank Change-Id: I3f1b1958423c2970f72bfa71f2ac5615055687f5 CRs-fixed: 265531 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c75292d6e2a31323236482442148bacc57ae1d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 12:36:36 2010 -0800 msm_fb: display: Fix MDDI video leak during suspend/resume Fix MDDI video leak during suspend/resume by waiting on overlay_restore to complete before switching off MDDI and panel driver CRs-fixed: 265531 Change-Id: I8c3f15800aade087145e50fbd053e817a51a903a Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 25953d224b91e2cf230ae845d5db0f374818bcfa Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 17:07:54 2010 -0800 msm_fb: display: Fix suspend mode for MIPI panel Add code to turn off of the MIPI DSI module when the device goes into suspend state. Change-Id: I243e77c37d4332f5c67794a3922f24355cb8273b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c98ad9e172386b9a53ed7f01658837b596e86e05 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 7 18:42:38 2010 -0800 msm_fb: Fix detection of MDP4.1 core reset The MDP status register cannot be used to reliably detect a reset of the MDP core since some of its bits come from peripheral interfaces external to the MDP core. These bits may not be reset along with the core. Instead, use the MDP_SW_SCRATCHPAD_REG register to store a flag indicating that hardware initialization has been completed. This register will be reset to 0x0 whenever the MDP core is reset. MDP_SW_SCRATCHPAD_REG is only available on MDP4.1, not MDP4.0. CRs-fixed: 266140 Change-Id: I7ceccc1cfb22a8cd9355aa6cc39b82cf3729936e Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8abbc4bc0ccfcfda27895a889091f6a21af3674b Author: Philip Elcan <pelcan@codeaurora.org> Date: Fri Dec 3 12:07:28 2010 -0500 msm_fb: Make smem size a multiple of page size drm_gem throws a BUG if smem isn't a multiple of the page size Change-Id: Iaa1a96bb259238f6e5850a7012aa5408c4a44e41 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 0d841d87f7ec8b59ff009af94c379e5a7b674bd1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 7 08:36:18 2010 -0800 msm_fb: display: set MASTER4 bits to icrease MDDI throughput There has DMA_P buffer hardware bug which cause MDDI throughput is much lower than noraml. This bug had been fix at revision 2.1. However MASTER4 of MDP_AXI_RDMASTER_CONFIG need to be set to correct value to increase throughput. Change-Id: Idee0c388f6ca4c0953bba86d6ef6c2132c298802 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 071243a12712d740c33fc632431b43381dcb848f Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Dec 1 13:39:16 2010 -0500 msm_fb: hdmi_msm: Fix compile with HDCP disabled Can't compile without HDCP enabled. Need some ifdefs around some unused code when HDCP is disabled. Change-Id: I9682febae5ec4d766fdb62c51180d8295f111646 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit e7164df63e7b87b19ee69ddc7f3db74c65b863b6 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 19:48:12 2010 -0800 msm_fb: msm_hdmi: enable HPD on request only Enable HPD sense only when panel power is on or when sysfs/hpd is turned on. Change-Id: Ibbd45d2c673aeea08660a0087cbec8b82e497584 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ecdbbed83e693269918ca9d0e7f94b0fb15d9d30 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 11 13:29:58 2010 -0800 msm_fb: display: add planar support Add support of Planar (Y-CB-CR/Y-CR-CB) source format. Change-Id: I0bed22156fc6c327c48d94764d8283ec9491b85b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1dbf239b10fa4255770704e5957340cd118582eb Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Thu Nov 18 19:37:07 2010 -0500 msm: mdp: Fix MDP underruns on 8660 To avoid MDP underruns, hardware cursor updates should be made in sync with the dma completion interrupt. Change-Id: If6b4922e2087c8a3f4c8354d173019f76cdaa519 Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 2d55c0bd07cafc12c7ed23a38433e2944de04b6f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Dec 1 15:07:26 2010 -0800 msm_fb: display: do not do mdp clk scaling turning on/off dtv or lcdc during clock scaling has side affect of showing blank on hdmi. Change-Id: I4ab5dabef12ecbcee014bee21ffe695b2d74646a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c7701ba49d17276c20dd4c7e4375844fc568f5cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 22 18:27:53 2010 -0800 msm_fb: display: Support to reduce power for non QuickLogic clients Change-Id: Ica37e9748c280bfe12f2c220f5dc585eac608e4f CRs-fixed: 264628 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59bd6d8480c4cb529f80069a2a575ac0b5e4f7a9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 17 10:49:46 2010 -0800 msm_fb: display: Fix invalid image errors in PPP stress test Fix invalid image errors in PPP stress test by fixing the internal blit regions that are split from the original blit region Change-Id: I73a9f424459fb0c4f0ceebc4fddf89d20c4bc744 CRs-fixed: 263764 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94d57fd66777b0387e50d4c39a241f097a3558b4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 18:28:10 2010 -0800 msm_fb: display: Fix USB OTG None mode flicker for 8x50a_st1x Change-Id: Ib8f2ca21cb29e7de3a2f12e4de434eef4549de93 CRs-fixed: 259149 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5ac62b6a6fbfcd5506bf83e83d0b52337649e602 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 25 09:42:08 2010 -0800 msm_fb: display: do not re-fresh primary display for external interface Do not re-fresh primary display when external display interface, such as HDMI and ATV, issue unset operation. Change-Id: I0d8865361c5377dfae7bec5cdc10e80eb7caf968 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 434f989b4b52133c7a204b9c72e06321e53bf48e Author: Urs Muff <umuff@codeaurora.org> Date: Wed Nov 24 08:57:25 2010 -0700 msm-fb: msm-hdmi: reinitialize HDMI core on HPD Ensure HDMI core is properly initialized after each HPD event. CRs-fixed: 262669 Change-Id: If96a9e0c0fb7c785c640254247adaac4b5fb8a77 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d0e8d669e6e1a9aa3924621b57b6bc314a75f895 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:43:01 2010 -0800 msm_fb: display: reinitialize the mdp hardware during resume turning off the mdp footswitch during suspend doesn't retain any mdp hardware registers that are initialized one time in mdp_probe since it turns off the mdp power rail. Hence reinitialize the mdp hardware during resume only when the mdp status is not active. Change-Id: I95c6b04be26ddbb6fd6f8346b9f44eacab698f59 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2d5b134c38b47c5f5d5aae81a60a59555ca2a9f0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:39:22 2010 -0800 msm_fb: display: remove redundant turn off mdp footswitch. mdp footswitch is already turn off during mdp clk_disable in mdp_pipe_ctrl function hence removing the redundant call. Change-Id: Id0e6178210b836703618137e4c877f1e7036277a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e4eb02a22a66ae82af4638a03ffde2b87878269a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Oct 9 11:33:32 2010 -0700 msm_fb: display: Add new pipe alloction to support 3D Modifiy pipe allocation algorithm to to support many applications including 3D. Change-Id: I3688ab44bd86b6eedf94bd7cb904e7b6fac4f89b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f773d073fa24a571b299034aeeb01a4c464a0390 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 16:41:04 2010 -0800 msm_fb: display: Set QuickLogic panel to MDDI Type 1 mode Change-Id: I32dcb588c4a583474f9c57fcda06e902ab94247c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit aba3918a084d9a914ce7cddfd2acbd1e4dad8c1e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 8 18:11:20 2010 -0800 msm_fb: display: Fix SPI read API for Quicklogic panel Fix SPI read API for Quicklogic panel with configuration of TLEN and TX0 registers Change-Id: I6728322e562f525c9a5cee1afa73bb47f173418e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e69f641acbe060badb10a354bfbf46076f8ad7e7 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:20:01 2010 -0400 msm_fb: Add VGA resolution to 8660 FFA panel On 8660, the LCDC panel and VGA display are on the same bus, so specify the maximum VGA mode as the secondary mode in the panel definition and the Samsung WSGA panel settings for the primary. This will allow userspace to change the resolution when using VGA mode. Change-Id: Ia805ce6477cf9b300a1f969679f2012980d14a61 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit be482dd056b5ff02c8a3f98d60875e7f80fe0aec Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Nov 9 16:57:21 2010 -0800 defconfig: Add configuration macros for MIPI DSI display Interface. Add configuration macros for Toshiba and Novatek MIPI panels. Add macros for both command and video mode. Disable MIPI panels and enable SAMSUNG display by default. Change-Id: Id2a9dca3a2467e588ffdad1ec9d149ca6a4d4d76 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 85e5df5ed487db598f06bd37436629ea2b637b49 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 08:37:11 2010 -0800 msm_fb: display: add control of dsi_s_pclk There has problem at dynamic clock gating hardware which may cause glitch of dsi_s_plck. Move dsi_s_pclk control to dsi driver. Change-Id: I466eebb0309b82ad83c54bed0840cd42d1f1b4ff Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3661713ece532d5b50fd0fa1ab415058736fd0ce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 3 09:19:57 2010 -0700 msm_fb: display Add Novatek video/cmd panel support Incorporated both video/command mode panel configuation to mipi_host_init to support both video/command. Change-Id: I51555e9065038607765de54e98c36128aa611d8f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2c8a3a62f8f9bdb45a606764edfb0efd25a7c24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Nov 15 10:49:41 2010 -0800 msm_fb: display: Fix command block power on/off sequence. Command block is not power off in all return paths that prevents mdp clocks to turn off when display is off. Change-Id: I4aecc8be8e25780a5e45d304dc2982df40433a4f CRs-fixed: 262107 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 667560bf45d30464fb82ccec0bce9a09653eec4c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 1 15:49:47 2010 -0700 msm_fb: display: add mipi panel and cmd mode support Add mipi dsi per panel control configuration along with mipi dsi command mode configuration. This patch also including supports of video mode suspend/resume. CRs-fixed: 259499 Change-Id: I6be8f8edb342874c1d90ce06df094157f320ffa1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 547f7aca18653ef13bf05da91c23c4a1b607fcfe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Nov 12 10:59:39 2010 -0800 msm_fb: display: add auto detection for dmas dmap switching Add auto-detection mechanism base on the mdp_hw_revision to enable/disable MDP switching between dmas and dmap. Change-Id: If9dbae23886c94ef52350614c1f27c568ff79ca4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5e8f857b0ececc25dbc5dbbc9967d2d80e40f90 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Nov 10 10:22:56 2010 -0800 msm_fb: Add support for AHB master and slave clocks. Enabling AHB bus master and slave clocks in driver to avoid glitching by dynamic clock gating hardware. Change-Id: I66facbc85374f30c28c4b93890fd29bb88559d88 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c7ab3f03de38180c7081b48fd29fce8caaef735c Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Nov 17 09:05:08 2010 -0800 msm_fb: Fix section mismatch of prism_probe prism_probe was being reference outside of an __init section. Fix this by placing prism_probe in the section which is the place for device initialization code. Change-Id: I4272e2bf283a8f2a59ecabf6287683b32f6601c1 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 249a736ee2ee7fd206cad6cf5a99a643ef78246f Author: Laura Abbott <lauraa@codeaurora.org> Date: Tue Nov 16 16:32:22 2010 -0800 msm_fb: Fix section mismatch of lcdc_panel_probe The lcdc_panel_probe function was being reference outside of an __init section. This fixes the problem by placing the function in the section. Change-Id: Iec1f60d98249802f9c9aff795b085bc0518c26ee Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit abf906b0506d2c38faf0deaafd3e1c26e9b52a99 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 18:31:52 2010 -0800 msm_fb: make HDCP enabled on all panels. Try to read DDC with different alignments for different panel for HDCP protocol communication. Change-Id: Icfb51764f42497375df4c58d0977105c8f6b757f CRs-Fixed: 261508 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7b0d8cbfa4f86a197bd88d99063df8fca1a23b32 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:02:39 2010 -0800 msm_fb: Fix section mismatch of hdmi_msm_probe The function hdmi_msm_probe was being reference outside of an __init section. Fixes the problem by placing hdmi_msm_probe in the section. Change-Id: I4dcfcbeaefde7e71ef9f18140dd64648b46891bd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 96c1a7422faeff26cbd70629ba1fbd838b988f50 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:53:23 2010 -0800 msm_fb: Fix section mismatch of samsung_probe The function samsung_probe was being reference outside of an __init section. Fixes the problem by placing samsung_probe in the section. Change-Id: I39de06c0692ddf963d2d11f069ff5dd0d8714d43 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 3f466d9a313a64af18e036d002d1738fc23c29fe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:47:19 2010 -0800 msm_fb: Fix section mismatch of mipi_toshiba_lcd_probe The function mipi_toshiba_lcd_probe was being reference outside of an __init section. Fixes the problem by placing mipi_toshiba_lcd_probe in the section. Change-Id: I9f0f2b1e0ed65edf9adbcf1dfb9a424aa379b7ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 596c4c2dafbb59ade4616387fe1531efaf738a4b Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:51:22 2010 -0700 msm_fb: Fix section mismatch of toshiba_probe The function toshiba_probe was being reference outside of an __init section. This fixes the problem by placing toshiba_probe in the section. Change-Id: I2d992ff67abf4f34ccb3c91f1b438df9fe7f0295 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 03b098b26bcb79921b55399dcf82a38e9770b560 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:53:50 2010 -0700 msm_fb: Fix section mismatch of sharp_probe The function sharp_probe was being reference outside of an __init section. This problem is fixed by placing sharp_probe in the section. Change-Id: I3d45fa65f34a91f9d28aaa812832a9e6d778a55f Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit f1fd48f9199f7695d7475a02e0ddfe489f49274e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:32:23 2010 -0700 msm_fb: Fix section mismatch of mddi_orise_probe The mddi_orise_probe function was being reference in a section outside of __init. This fixes the problem by calling platform_driver_probe instead of platform_driver_register since the driver is not hotplugable. Change-Id: Ic79081dea2775354dc9695747e91a6f96cbb6b23 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 23ad01dfe9d9bad23138e41c65ae7744235d2b90 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:38:24 2010 -0700 msm_fb: Fix mddi_quickvx_lcd_probe mismatch The mddi_quickvx_lcd_probe function was being reference outside of an __init section. This fixes the problem by marking the function as existing in the section, which is for device initialization code. Change-Id: I31dc111643915860a0ce9644c888240e611758db Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 5b1d692a8deae3fc06d1855bd84dfe18958d9e21 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:48:58 2010 -0700 msm_fb: Fix section mismatch of gordon_probe The function gordon_probe was being reference outside of an __init section. This is fixed by placing gordon_probe in the section. Change-Id: I11f58d7157a4bdf00fe0cc631fac9b24f6a12e49 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 8e8a8451d6b82a28b1606be1d54d60cd8df40500 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 19:13:27 2010 -0800 msm_fb: Bound checking variable "count" Put upper limit bound check on "count" variable to avoid acknowledging corrupted values from user space. CRs-Fixed: 262787 Change-Id: I31517a486803871be2e304747aabfc3d4f230c86 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit de90534498bde43541e7a8bf59ac640124b3e72c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 10:37:44 2010 -0800 msm_fb: display: add synchronous between DMA_P and DMA_S. Change the execution order from update --> wait for completion --> kickoff to wait for completion --> update --> kickoff to prevent un-necessary flicking. Also remove piggy-back kickoff mechanism to prevent frames from being dropped. Change-Id: I25cd4ced51d2f5cc72d9b83e938a93d92d6f5ed2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d2d3ec7c1cf9b0969d0b8f13955688063d1335c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Nov 11 10:19:05 2010 -0800 msm_fb: display: Kick off histogram when primary underflows When underflow occurs MDP clears all the histogram registers and driver need to kick off the histogram if it start before. Change-Id: Ib15e4084da5d9d170484e9e1b6d260d17035a864 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 82f8fe684610a3cfb65f3195912d3c0e870fcecb Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 18:41:43 2010 -0800 msm_fb: properly handles return value of sys_lseek handle error condition of negative return value of sys_lseek, to avoid allocting large chunk of memory through kmalloc. CRs-Fixed: 262768 Change-Id: Ide303f955de30c05fe56e9f528508b8bb6e027ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7ef97f597ece29145a252c95f3707961377d9d30 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 10 19:19:42 2010 -0800 msm_fb: display: Fix data size in MDDI host register reverse read Fix data size in memcpy in MDDI host register reverse read path Change-Id: Ia75bac5576898a510937cb0f6bc10304b7015314 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3e44b7399750352bd375a2d41a919fe4d737f437 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:18:24 2010 -0400 msm_fb: Allow panels to specify a second mode This allows for panels that support more than one mode to specify the maximum configuration. The framebuffer size is now based on the larger of the primary and alternate modes. The alternate mode is also used to check parameters when userspace is requesting a change to the framebuffer configuration. Change-Id: Icf644b0fb5e54fc95f45ea8c5ed97f6243cb886c Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 9a2a724813bada5684f6bf9eeef4ba1b13db315d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Nov 7 15:23:49 2010 -0800 msm_fb: display: Implement bus scaling for TV encoder Add usage of bus scale apis to scale bus bandwidth for TVOUT. Change-Id: Id0d9a147c3d24c94b1351656b6c8938c3db10706 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e9736b53a5642d93abb3631ea572d11f25c40b6f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Nov 6 23:29:55 2010 -0700 msm_fb: display: Implement bus scaling for dtv Request bus bandwidth for both SMI and EBI while using DTV/HDMI. This needs to be optimized once the bus scale api is integrated. Change-Id: I71162923ae8a11e7737c702b5f7b2078b995426e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 12b28ba64a3fce1b9c97432b0f54027c4436d3f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 16:34:23 2010 -0700 msm_fb: display: Implement mdp bus scaling Add the usage of bus scale apis to scale bus bandwidth based on the performance level to save power. Code assumes that FB is EBI and overlay is from SMI this need to be changed to find the correct buffer source whether EBI or SMI at runtime. Change-Id: I9936fef798379ce4698840f951dbf301430055dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2f6cc1402dc448174721be73c2d48a8f12a8e347 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Oct 22 19:04:46 2010 -0700 msm_fb: display: Add MDDI Type 1 Forward Link Skew calibration support Change-Id: I344403d67a9361b626eb67bd3c9e8ad5f21660e5 CRs-Fixed: 246784 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a179efda6e7588b3e3f56b8819c21b16647741f7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 1 10:18:10 2010 -0700 msm_fb: Fix hdmi driver for enabling/disabling HDCP Fix for enabling/disabling HDCP feature from kernel config. Change-Id: Icd7f76f263780212064833084d967ab10f001b70 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c1f05d2d08eec5e95b47088a6de5c6f560d6a7a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Oct 20 16:01:50 2010 -0700 msm_fb: Added support for premultiplied alpha. CRs-fixed: 258209 Change-Id: I891a81d76030b66e0133a689b695bb39af923b98 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 997d3c514075eb1246552aa313dd6964de36e6fa Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:43:27 2010 -0600 msm-fb: msm-hdmi: adding additional DDC request options Some panels succeed with 128bytes/page read for EDID, and some panels will fail. This will try 128/64/32/16 bytes per page in succession. Change-Id: Ibef7af8f6da57d2ecc12ed26ba5f2acb13fe4f1f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 8e230203d3a85e610bc4ec23993dcff8660474d2 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 16:45:47 2010 -0600 msm-fb: msm-hdmi: fix 3d info packet Use GENERIC0_LINE=1 for GEN_PKT_CTRL according to spec (bit 16). Add Top-and-Bottom mode as new 3D-mode. Use no Generic0-Line for none-3D mode, which fixes the VT issue. Change-Id: Ib1a6621bc4364fe3c56d3e26869894f52010c855 CRs-fixed: 261085 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3d480fcff95309472e8256829b5bde8f962565d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 25 17:56:55 2010 -0700 msm_fb: display: Handle Zero MDDI Reverse packet count error Change-Id: Ib4699b17524abff43cadda36856fa7995060b3b8 CRs-fixed: 260745 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 70b380c25316d37edc1da15cc3765b07dee175c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 26 15:50:22 2010 -0700 msm_fb: display: synchronize dma_s kick off with dma_p During switch back from dma_p to dma_s, check dma->busy flag and wait for dma_p's completion before kick off dma_s if dma->busy was set. CRs-fixed: 260626 Change-Id: Id22b65b410ddb3e5f9faca0b8423f0e74ee6ccbe Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aea07835e1659c9be68ff074b8f37654eb921799 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:45:46 2010 -0600 msm-fb: msm-hdmi: remove HDMI audio teardown from HPD event Leave HDMI audio running, so that audio-flinger can switch away from HDMI before tearing down the HDMI audio setup. Change-Id: I4090c8771143e50f9202e9e8c5902f5ce893c74a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 957bbadab433ec4a4f24830dcdd38bd30394eaf4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 11 12:09:21 2010 -0700 msm_fb: display: Add MDDI multiple data read/write support Change-Id: If34dcfb0ffca650f00d5cc897fc79ff42ad939bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 258225 commit 27c0c5d6471e1af1adaae6394717701f5f0949db Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:19:50 2010 -0700 msm_fb: display: Add new ioctls for histogram. Add MSMFB_HISTOGRAM_START and MSMFB_HISTOGRAM_STOP ioctls to reduce the blocking time for histogram generation from two frames update time to one frame update time.These two ioctls help to start the MDP histogram generation process for the next frame in the isr itself just after reading the histogram bins for the previous frame. Change-Id: I8adfe2314284703ea1f51a8bb76c586f553d065c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c6536fd7aa0b92270175f4bfc03a57428a75412f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 20 10:49:19 2010 -0600 msm_fb: msm_hdmi: HDCP support for 1.4 panel Ensure to retry HDCP when failing during phase I, II, or III. Change-Id: I60a1523a5ccca70cc660d5211f23f53e75827e0f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 164a5b01b3708c4c0e688ef93d628ef884a85aad Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 15 10:43:18 2010 -0600 msm_fb: msm_hdmi: handle EDID on different panel This HDMI sink does not allow to read the second EDID page in one shot, and does fail to read just 5 bytes. Changing to 32 bytes reads solves this issue. Change-Id: I36e65da1e5e67bf9b5a0bc00c0c8c1e8d67bae8f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit da8794fcb39dd8fb3a7daf994f693e1b06474047 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Oct 21 14:44:23 2010 -0700 msm_fb: Change Packet Memory map I2C default address Changed default I2C address for Packet Memory map to avoid address conflict with BMA150 accelerometer. CRs-fixed: 215783 Change-Id: I22f76f0b888cdb377bd91e00b54bd4ad8c46d4f2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c438f987bde833284286fb2e5434036c8def7c9f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 12:07:21 2010 -0600 msm_fb: msm_hdmi: add debugfs entries Adding debugfs API to debug HDMI registers. Change-Id: If0fd415c53cf49fcaa0d38387eeef33dc14fcbc7 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fffb24688cfd3560ecca5b8d162427c21467ecd1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 15:49:07 2010 -0700 msm_fb: display: Correct Initlogo filename Correct Initlogo filename accessed from display driver CRs-fixed: 257109 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I95e5ff1f473e3c0a73a7a693c1965ad6e7653ee5 commit 05ca25d7023b90920ca241058e5b3266846b833b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:46:50 2010 -0600 msm_fb: msm_hdmi: add HDCP status to AUTH_FAIL error log Add log entry detail for diagnostic of HDCP failures. Change-Id: I0f5520346952f85562e872795dde114247d5aae4 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 2c3fcdb2978ef1902717ab48c74214fa857346e8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:13:34 2010 -0700 msm_fb: display: enable runtime clock scaling for mdp_clk scale the mdp_clk based on various performance levels. increase mdp core clk to 192Mhz for lcdc/dtv when playing 720p video since 122Mhz is not sufficient. CRs-Fixed: 254222 Change-Id: I9454cfc324c74e99a2fe6d44dd58ae5d575b60cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 166854ea7e67749badf61ab7df82e833f7fbfc50 Author: Laura Abbott <lauraa@codeaurora.org> Date: Thu Oct 14 15:25:15 2010 -0700 msm: video: Fix section mismatch The function tvout_probe is referenced outside of the __init section. This fixes the problem by placing tvout_probe in the section. Change-Id: I14ae9a028f32d1b0de65c99d8eea740a929721e9 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit d4a6fbcb997b2800587eb5263c9dfc44d3843e66 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 14 19:10:13 2010 -0700 msm_fb: display: Fix screen split issue in suspend/resume Change-Id: Ic5ccffaa12e0e546750d65e604326a4a39281f51 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 253026 commit d5d9778a48d988002f87359973193749a924f3dc Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Oct 1 11:08:54 2010 -0700 msm_fb: display: change the pixel clk to 30720000 Changing the pixel clk back to 30720000 because the maximum pixel clk supported by panel is 30Mhz.Since making it higher clk is causing display corruption issue while playing some 720p video clips where mdp clk is not sufficient to push data even though mdp is running at maximum clk it supports. Change-Id: I7d68d8728fdc7c30c6ba9549eaffef748d1147df CRs-Fixed: 254222 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 414f630f8f60ede6a0d5982d7e41dd4fa9948a08 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Oct 18 14:42:09 2010 -0600 msm_fb: adv7520 hdmi: sysfs hdcp integration Use the external_common API to signal HDCP availability to the user-space. Change-Id: Ia5e8f51620ae29c84cf5dd8e16c81d3746b82228 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1ab44dda69fe0e7ee3995260ff06b0cdcc430746 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:27:47 2010 -0700 msm_fb: Fix section mismatch The mddi_sharp_probe function was being reference outside of an __init section. This fixes the mismatch by marking mddi_sharp_probe as __devinit, which is the section for device initialization code. Change-Id: I3c1103a956279e75db3bc9025186b260f901325d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 74213166390c1d70147bdf601892881ad8103c06 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Oct 15 22:47:09 2010 -0700 msm_fb: display: reset client_status_cnt to fix MDDI RTD Failure Reset client_status_cnt to 0 during system resume to make sure host does not send RTD cmd to mddi client before mddi client be powered up. CRs-fixed: 260405 Change-Id: I90194791521dd192ba1d7260ffcd2241c07b8221 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b57dd4b598f6e8a3f42d56927dc4ffc371bbc9e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:23:44 2010 -0700 msm_fb: Fix section mismatch The mddi_toshiba_lcd_probe was being referenced outside of a non __init section. Fix this by placing mddi_toshiba_lcd_probe in the section which exists for device intialization code. Change-Id: I1a43bc7fa61541b9be5e7aeed701071e2c756007 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 4611e9a0b0b7ce7f7f884ff28029500c5da281ec Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Sep 22 09:58:36 2010 -0400 msm_fb: Make lcdc use resolution from fb driver The lcdc overlay uses the fixed panel resolution. However, it should use the variable resolution passed to the fb driver in fb_var_screeninfo. Change-Id: I77818af8722be715b5281c00b5e6e752389e3dba Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 302e36a9907723d9b48d37297072b64ac078cd76 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 12 19:59:42 2010 -0700 msm_fb: display: Add dynamic MIPI panel detection support Change-Id: Ie1281a353c15c7d7575eb1b591d325382d61c303 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 75f34ead5e0489b5cae23339e0fe57dd7bb51ee4 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:43:51 2010 -0600 msm_fb: common_hdmi: add support for audio EDID packets Add parsing for Audio related EDID packets to the HDMI common package. Change-Id: I55ff5adba4382a30fb4a686cca63bdeabd21e77d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit c5c8c4cb8c7e9c7f0a48634f8b2965ccce2c4570 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Oct 13 15:40:54 2010 -0700 msm_fb: display: fix MDDI compiler error on 8660 Since msm8660 does not have MDDI, MDDI ISR handler need to be excluded for 8660 platform. Change-Id: I0bcc5e413e299cfdbf91fc5275388ba4e42ff1de Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e8aa64ba20b7939c4fa86aecec4101af9c248a04 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 23 10:02:42 2010 -0700 msm_fb: display: add panel info to mdp4_isr Since new panels such as dtv, atv, mipi video are added into system, They need to be handled diffferently at mdp4 isr. Change-Id: I25d720df12a0aaf0b3984683e283aebe7cd843b7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5c1074bff79decc6b1a52aa8db2cff198b288eaf Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 17 18:59:52 2010 -0700 msm_fb: Enable/disable MDP core power rail as needed On newer SoC like 8x60, power to the MDP hardware must be turned off and on explicity. Introduce use of 'regulator' APIs to turn on and off power with the clocks. Calls are introduced to both the MDP and LCD drivers so that MDP is now powered off unless both MDP and LCDC are idle. Previous SoC that automatically turned power on and off as part of clk_enable() and clk_disable() calls are still supported. The MDP and LCDC drivers now assume that if the calls to regulator_get() are unsuccessful, then the rail will be controlled automatically. Change-Id: Ica87d8ca439130cdd6d2df04801de76a888fbdc9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 63c1090c30f76a955d4a894f619a30c309101d61 Author: Michael Burr <mburr@codeaurora.org> Date: Mon Oct 11 10:14:50 2010 -0700 msm_fb: display: Fix framebuffer format used for MIPI devices Select the MSMFB_DEFAULT_TYPE framebuffer format instead of the 16bpp MDP_RGB_565 format. CRs-Fixed: 259512 Change-Id: I13ad0f3920baf286d9be994378c4e0538dbdbe9d Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 179e0ae68264329d3887d4d076623afd84e73171 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Oct 7 16:09:07 2010 -0700 msm_fb: display: re-program qseed table At msm8660 FFA, the qseed table corrupted during suspend. Therefore display garbled at both camera/camcorder preview and video playback after resumed. Re-program qseed table to fix this problem. This is temporary work around solution. Change-Id: I8d716f706f4926855ed008f5012bc2f5853161f3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3424827245f23f9423ac7671ecb40d9b6c5ce0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 13:35:29 2010 -0700 msm_fb: display: base on is_fg flag to apply alpha effects Change-Id: Ifdf7d9f247a3619c2d710367e63ca368c1762ba8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 82506520a0631fbc25bee646f410f8ca920d89ab Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 22:21:17 2010 -0700 msm: video: Fix warning in switch_3d The entry for switch_3d does not return a value, and no result is expected when called. Change the type and function to void to avoid a compiler warning. Change-Id: Ice08a08735a6d058e09a079cbe63fdc9681d66f5 Signed-off-by: David Brown <davidb@codeaurora.org> commit 80726b692d586d1d7d10d75db1966128f468f27a Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 14:56:56 2010 -0700 msm_fb: Warning fixes Eliminite some unused variables. Change-Id: Ia8d6d1edb99eb67bf60cc183a87482d5871a129a Signed-off-by: David Brown <davidb@codeaurora.org> commit a0f19d22dd7698cfd851c1ce75259c277d7b03bb Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Oct 7 11:23:19 2010 -0600 msm: video: fix for sending tv-out cable detect event Fix to send cable detect event only when connection state changes. Change-Id: If14f32b72f22f30dcb6ad869c5be69817ebc0996 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e91fcab88f81f3e8304f2040a684658816436018 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 15:32:27 2010 -0700 msm_fb: display: cursor update align with dma completion To avoid under run during cursor update, it is necessary to synchronous cursor update with dma completion. Change-Id: Ib2e6e18c88adacfe1b5235d42affa69ead5a3a11 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 07240c18f405c0a9a7c071635b5507072a2d2566 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 5 10:22:45 2010 -0600 msm_fb: msm_hdmi: change EXT_INTERFACE prefix to HDMI allow DEV_DBG to use a more specific prefix. Change-Id: I00b484f8f7f218ff6cfa1c6b17d4f6454da32519 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe019f3c4070a1945b8ba4d44943576ced22cc33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 5 08:22:49 2010 -0700 msm_fb: display: fix MDDI_LD_PARAM_SEL for DMA_P During DAM_P and DMA_S dynamic switch, the DMA_P's MDDI_LD_PARAM_SEL was over written by DMA_S. CRs-fixed: 256428 Change-Id: I79f96e8c3e5e61e0fc328fd7f83c2c6e60b50869 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aeb5596d9be836ab19e75d4db4ada457b26ec64c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 4 14:33:03 2010 -0700 msm_fb: display fix compiler warning message Change-Id: Ibf3609b882a99b9cbac33f6557bc633a6931a59a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e662af7106510eddc6f6144df0afd54704fff1c2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 1 17:32:16 2010 -0700 msm_fb: display: Add QuickLogic MDDI panel driver Change-Id: I2829ea3c91cbb658544a46fc1de5343a9883637b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9f1dcfb0004a4ebfbe6a4241895b40650a03a5b0 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Fri Oct 1 10:00:17 2010 -0600 msm: video: support for tv-out on 8660 Added support for tv-out on 8660. Cable detect is interrupt driven on 8660 & polling driven on 7630. Change-Id: Icdc6e8ae512ddcb91b766fdff2583e8157bc868c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 07cefc8f36b8d8f1827358e6000e8691697586f4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Sep 21 18:56:33 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: I0603f3a351a92b576a78370d3f974926e0441920 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2af9f6215c3ff34eb01d1c1032cbb026c2ae6dfa Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Sep 30 11:19:14 2010 -0700 msm_fb: display: Add error check for source and dest rectangles return error if source and destination rectangle parameters set by the client are invalid. Change-Id: I8c93e84005655a62b8f4f441cc6055d3d1af46d0 CRs-Fixed: 254320 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 870cbe2b5127a8cf5615249cc2c9aeff95283ded Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 30 16:21:36 2010 -0700 msm_fb: display: Enable H/W Vsync in DMA_P for MDDI type 2 panel Enable H/W Vsync in DMA_P for MDDI type 2 panel to avoid tearing issue Change-Id: Ifd0ad38f9c98b430c2c3c3fd01df8343684f5394 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255990 commit a38e51d5349c52705dd3baab850c1ba65988bee7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 28 13:15:16 2010 -0700 msm_fb: display: check power status before restore screen Always check current power status before restore last screen. CRs-fixed: 256126 Change-Id: If5b46683b7c112b32955bd0475a4cbe898f3ea9c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit de437f1260ebca32dadcf01fd15e8a8ea7b6085c Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 1 10:52:08 2010 -0600 msm_fb: hdmi_msm: fix CONFIG_SUSPEND undefined case Since 'pm_suspended' is not defined when CONFIG_SUSPEND is not defined, the guards have to be conditional as well. Change-Id: I6c8fe29999e8c18ee2d247ca87b0162e8dd8c18b Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4ae1f467dc6576fa4dfe0f60b14f047b78c0a275 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Oct 1 19:43:04 2010 -0700 msm_fb: display: Fix MIPI DCS Short Write, 1 Param packets The parameter byte of DTYPE_DCS_WRITE1 packets was being written into the wrong byte of the packet header. Change-Id: I6bf00d6cc287f8b6f88a9c332bf94db5f119bc89 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit aabef1e74db50ce5342171daf0119c2cee77ddb8 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 28 16:01:42 2010 -0600 msm_fb: msm_hdmi: support 3D Side-by-side mode Adding support to send 3D mode over HDMI. To turn 3D on write 1 into /sys/class/graphics/fbx/format_3d. This can be done during actual playback, switching in real-time. Change-Id: If933332b84ecbbe6b75fd896b3acf804216a6abf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe5ce8d4bbcd99721b6e914a863b85cbe1f888c1 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Sep 29 19:37:14 2010 -0700 msm_fb:display: kickoff DMA when there is no update for video When video overlay is used DMA is kicked off only when there is a video update. This prevents the UI bar update if the video is smaller than audio. CRs-Fixed: 255766 Change-Id: I19c54ee051ddeca3e89a183f878b5c2bb2f60461 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 61802d15a50c90f7ba01d308503f4d67c520914b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 29 14:22:32 2010 -0600 msm_fb: msm_hdmi: protect worker/isr from NULL pointer When probe fails HDMI_BASE can be NULL. Change-Id: I90d185e338df4fee9f37a62c1005c3b83f2619d5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 9391f66a1674cb0de65a91275bb355772c68c8fc Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Wed Sep 29 15:53:04 2010 -0600 msm: video: support for switching TV encoder mode using ioctl Use reserved[3] field of struct fb_var_screeninfo to switch mode. Change-Id: I5f027612410f26e1e9d440235c4d1924b490fd9c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit d7801961dc00f7c57f948296307610c35f541a75 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 27 15:38:01 2010 -0600 msm_fb: adv7520: fix audio mute after HDCP error Use Av-mute during HDCP negotiations, but turn off Av-mute after HDCP success or error. Change-Id: I82ef4e67e45c38f38f1fdd28b19028ab63a0d092 CRs-Fixed: 257430, 257702 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 770f7448a6ae89d0e20aa1f5724dc7283c3cc69c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Sep 18 16:42:20 2010 -0700 msm_fb: display: remove early suspend/resume from mipi This patch contains: 1) remove early suspend/resume from mipi 2) add pm_qos to mipi 3) register MDP4_PANEL_DSI_VIDEO Change-Id: I563fbae57dca0042355637e3f0da2fd3fbbd3b6d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 39e957faae7f1d0d0fbd3dec411f751a72fad64d Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 24 14:46:24 2010 -0600 msm_fb: msm_hdmi: guard against double suspend calls Suspend / Resume can only be handled once, and independent entry points are now guarded against failing while in suspend. Change-Id: Ie964db014354f4b649e153ac2d6077d17f18db85 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0a70e5f17ca65e8449a53585c89959e375e5bc69 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 21 11:25:30 2010 -0700 msm_fb: display: upscaling ratio to include 8 MDP4 support scaling range from 1/4 to 8 included. CRs_fixed: 255497 Change-Id: Ib3f846a71f126c7c36a72059e463027898bad7f5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aa117d04153ab8eda2a53bc60f1ed80a8caaa777 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 17 09:59:24 2010 -0700 msm_fb: display: add MDDI compiler option Add MDDI compiler option to prevent compiler error for 8660 platform since 8660 does not have MDDI interface. Change-Id: I6ecd990906667dd38fc6d50b94c1c0a00b9ba726 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a23179efe8a5b7f99c67eb046cec4f99601ab5a0 Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Fri Sep 24 01:40:40 2010 -0400 msm: mdp: enable framebuffer caching on 8660v1 for chromeos Enables FB caching on 8660v1 for chromeos. Xserver decides the caching policy. Change-Id: Id97a47c511270312614264b353b60c98f9cf96ac Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 45ec8d7a220095ef6e0ca6bf3240288a979a1d33 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 23:54:35 2010 -0600 msm_fb: msm_hdmi: completely reinitialize core after HPD Turn HDMI Engine off, init PHY, init video, init audio, turn HDMI Engine on, init HDCP (if available) after each HPD online event, and after a panel-on event while connected. Change-Id: I4f12d91885a6195c6fee1d09458183d615ac10ad Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3a154cdb742e479b0939107297465ec45c92318f Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 21 10:10:56 2010 -0600 msm_fb: msm_hdmi: move audio init to panel on Since the panel resolution may change, the audio needs to be initialized once the panel resolution is set. Also handle the case when panel is on but cable is disconnected. Change-Id: I857de36c4d42f9e2df14205cf498f02a049c3357 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 92df7eef80e028adfeb30445c6cbf66b1fbe830e Author: Neil Leeder <nleeder@codeaurora.org> Date: Tue Sep 21 17:54:34 2010 -0400 msm_fb: add qrdc lcd panel support Change-Id: Id8f57b99300075d4b4a0f7a53b222c8f9614b2ef Signed-off-by: Neil Leeder <nleeder@codeaurora.org> commit 33b773e2dbf0a973c0bfa187123271388b44be9a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 15 16:37:50 2010 -0700 msm_fb: display: perform down scaling check base on mdp revision MDP4 of Halcyon V1 has down scaling limition. The limition had been fixed at V2 and V2.1. Change-Id: I62ca1e62178fc1b69ce80aaa38d1e65cf242ba7f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 65dd5e92304aa362582c72def459c04141a171c9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 18:36:21 2010 -0700 msm_fb: display: Add common Debugfs support for all MDP versions Change-Id: Ifd57e1d9072444678d5d325ebaee1aecbb788a43 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 569245db188004bf6f76fc2fc25de7fc9b833840 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Sep 14 17:29:57 2010 -0400 msm_fb: Add toggle for VGA on 8x60 FFA Add sysfs entry to allow for toggling the external VGA out on/off on 8x60 FFA. Change-Id: Idb42de126daf0c4a8def9f85e80d55a586130591 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 34a939d02afa388b911070b3b872f6f12cfabbc2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 13:08:24 2010 -0600 msm: video: cable detect feature for tv-out Cable detect feature for tv-out. Interrupt-driven when external display is on. Polling-driven when external display is off. Change-Id: I41e9005c61d65657b9db54531306bd664d839cde Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 3f5bd44db5ebf8d27fefb386e81dc00bc0b2c20d Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Sep 15 17:30:12 2010 -0700 msm: Use VG pipe for all the userspace requests RGB pipe might be allocated when userspace requests comes. Use RGB pipe only for kernel requests. Change-Id: Ibb5dbd8f57f1d5bd656b719ddaac9b5d973df8eb Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 46e08cd2287d3f56715d6e6ca8f7e3d166fd0eaa Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 10:27:45 2010 -0600 msm_fb: msm_hdmi: Use mutex for synchronization The ISR and worker function (queued by the timer) both access the state variable. Rather than disabling the irq from the worker function which may not guarantee exclusive access to the state, use a mutex. Change-Id: If6aded298f6f40bbe374b4436fb43117c2501b8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0181e48defeac5f43304f78e32f3e08e4fb42e9b Author: Urs Muff <umuff@codeaurora.org> Date: Sun Sep 19 00:38:34 2010 -0600 msm_fb: msm_hdmi: turn on HPD on probe HPD needs to be armed outside of panel-power so that proper HPD events can be sent to the user-side Change-Id: I50c4c23617c9ae8905678250276169d0b688a90a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 515a37dfae03a50b16cc72c0a58952075e9e6f4a Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 12:52:02 2010 -0600 msm_fb: msm_hdmi: use regulators on demand Turn off regulators during suspend, and use board API to turn 5V HDMI and HDMI Core VDD on/off. Change-Id: I9c8736f81d212d80ad76440b5fd7bebf781f8bc5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 15556a05cdf0bee96e55df4e09415c02c364beb6 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Fri Sep 3 16:28:59 2010 -0700 msm_fb: Round lcdc rate all the time We need to round the rate before calling clk_set_rate() on 7x30 since local clock control clocks expect an exact rate when called with clk_set_rate(). Round the rate all the time to make sure we never fail to set the rate appropriately. Change-Id: I4aeaa70df728a614fe54ec7fb06bdf974ffafdc6 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit e3530ce520cb0622d58a0f9f8958199f16f80cd5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:36:58 2010 -0700 msm_fb: HDCP feature support on 7x30 Read EDID,set HDCP start bit,set internal keys bit, wait for BKSV interrupts,read BKSV keys against revocation list,shut down A/V transmission on HDMI interface on getting HDCP controller error interrupt. Change-Id: I5cf518598f2ccde8327757e5da39f5b8de46b765 CRs-Fixed: 254800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 8ed64a02c290b0cfa5071a31a4073fd2e5516309 Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 17 12:12:49 2010 -0600 msm_fb: hdmi: fix sysfs entry creation sysfs entries are attached to the fbx returned Change-Id: Iada960f1688564185b9de42ec7b9213018b8ec0a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 207a747004c6ead4c7fe7b9d3dca789744eabf19 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Sep 16 13:01:33 2010 -0600 msm: video: featurize external interface code for hdmi and tv-out Featurized HDMI specific code to use appropriate methods and sysfs attributes. Change-Id: I9b67ec23a6c3debfc6e65e9776d05e059c3e3cd2 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 36b51586aa3958f1f70687f0dc4315e86ee00e86 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 16 11:10:19 2010 -0700 msm_fb: display: Disable MDP DMA dithering Disable MDP DMA dithering to avoid double dither effect after PPP dither Change-Id: Ib218e6670deb2b9c0cc9cc18371495f75e66dbeb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cb25ff4fb1b15a0b2cc036fab46588213936acde Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:56:53 2010 -0700 msm_fb: display: turn mdp clock on/off during histogram Change-Id: I83b602ec4a01fde0b5531df7fa4b1f66295d69b8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b8ff10a55a733c83f9f9ab4eb4f308bd75c16be Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 15 11:17:59 2010 -0700 msm_fb: display: Don't flush img buffers unless it is cached There is now a bit in mdp_blit_req.flags to indicate if the input image buffer is not cached, in which case there's no reason to flush it for DMA. The upper framework (eg. SurfaceFlinger) should set this flag accordingly to avoid unnecessary cache flushes. Also removed the destination cache flush since the composition engine doesn't read back the framebuffer directly. Change-Id: I1916c6a51c335eb0bdc0c765319b603deca82f92 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 80225245ec846957a19d3c5cf97ef8e67ed0b0b8 Author: Michael Burr <mburr@codeaurora.org> Date: Thu Sep 2 16:55:27 2010 -0700 msm_fb: display: Add early_suspend element for mipi dsi Add a struct early_suspend element for MIPI DSI's use in the msm_fb_data_type struct for when HAS_EARLYSUSPEND is configured. Change-Id: I39357a9ef992881201a8a9f735b91dc6674de4aa Signed-off-by: Michael Burr <mburr@codeaurora.org> commit e0d8a781a00c43726baa32864925fa04f373e534 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 21:57:35 2010 -0600 msm: video: rename hdmi common code for reuse with tv-out Rename hdmi common as external common so that it could be reused with TV out Change-Id: I110fb77df6db097f9f60d1845b692fda5b9a1b42 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit b7c94c54bd67f784d5f109de6a6700fae40d2810 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:38:32 2010 -0700 msm_fb: display: Correct pixel clock frequency for LCDC Prism Pixel clock is set to correct value to achieve 60 FPS Change-Id: Ibcdbc6780a4fed6a81020edcc43cf6a6a605a43c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 251463 commit 4c5175576868064d48651819d0bbdc473b7ab49b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jul 31 11:40:02 2010 -0700 msm_fb: display: Add MDP4 BLT mode support Add BLT mode support to have overlay output to an intermedium buffer before dma to display panel. Change-Id: I14c6fd383d8d498e56620389c6a5a69768b5bffd Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c55ad5731465eb43c781b6d880e9bfe791ec4041 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:06:29 2010 -0700 msm_fb: display: fix op_mode over written bug Fix op_mode of overlay over written bug which cause some settings never executed. Add deinterlace enable bit of op_mode. Also correct DMA_E fetch configure address. CRs-fixed: 252617, 252845 Change-Id: I65ea5a2e718e7d34b7400394a20dbcd7d4891533 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8cbfe60ddfb5306f13267f1fecb866c04f0c6df Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 8 11:25:32 2010 -0700 msm_fb: display: Implement Forward Link Skew Calibration Packet Change-Id: I59d6e2f9cdc44cc702fd244356959931c30e616d CRs-Fixed: 246784 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit f5eeb754e03385d1b3e89b055626effca2bb1eee Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 11:42:51 2010 -0600 msm: video: Set clock rate in TV encoder driver Set clock rate of tv_src_clk to 27MHz and correct clock dependencies. Change-Id: Id7ffdc2de039f1ccc68f464e184409774e1dbb15 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit a0cede5868c6da21bdbb15ffc29e8bd734fbe18e Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: hdmi: power control entry points create required entry points to control the different use cases for the HDMI driver, so that the power footprint can be optimized. Change-Id: Ied0551077a33c63f1f6e250a12259fbcd30aff38 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 38dbe553fc35d1d3c0d1c2c2b5749101ea139768 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: adding sysfs entries in probe moving up sysfs entry creation from panel power-on to probe, so that user-space daemon can read the cable state before panel power is first turned on, and so that the driver can send uevents during initial panel power off phase. Change-Id: I43388c37dfbf048bd0c14130b807446cb6eaacdf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4d8d83fb198a309f1c99494d5863d68c673e1b1a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 16:47:48 2010 -0700 msm_fb: display: Enable EMDH PCLK Change-Id: I2a674dfec9c140e49250cb644126812d069fbb4c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255313 commit 74a75835cef8cde911a560fb5aff13756e30d7d9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:15:10 2010 -0700 msm_fb: display: Enable BG Tile fetching HW workaround only for MDP2.2 Change-Id: I483fe5182302293d0f967b99ce49de2109247858 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 249932 commit 4661621e735ac029293c6872bd7d342a351247cc Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:29:59 2010 -0700 msm_fb : Set proper FPGA setting for 8x55 platform Enable proper FPGA Settings for HDMI interface on 8x55 SURF platform too. Change-Id: I5da9539c008f05c32a9f7cea6b6af56d2305570c CRs-Fixed: 254427,250608 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 95079ae135cecb86a88e620f92de766c89ec0006 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 13 09:08:48 2010 -0700 msm_fb: display: add pm_qos to MDDI Use PM_QOS to request basic axi bus bandwidth for MDDI. Change-Id: I858706d224c7037d036e8c2e96649da4c9540bc4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Wed Sep 8 18:01:18 2010 -0700 Initial contribution. This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.35. Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit cd238df6940e8f3515c43e34e00ff825a4a8f9c7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:17:24 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: Ia11784f64216e58564b65da4935fca8f26ff5d2b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0bb93216c642f90e9be8904150943342b16f5b43 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 13:57:03 2010 -0700 driver: runtime pm annotation for drivers/video/msm/mdp4_dtv.c Change-Id: I1bacecbdec9e62dca1be99ab4fb8a593562d2cba Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 6c2231402b3d7a671939e8910589bc2b895e1a25 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 21:49:22 2010 -0600 msm_fb: fix dynamic resolution switching for 7x30 27.03MHz is not yet supported on 7x30, so we need to force using 27MHz instead, if clk_set_rate for 27.03MHz fails. Change-Id: I874d242b42e3e3b85d3370e1e277dea8db9e1d4d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1266c58750bd52a48be70514dd150975e1684180 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Aug 27 16:07:57 2010 -0700 msm_fb: display: select MXO or PXO for DSI PLL clk-ref dynamically A future hardware design will not have a 27MHz MXO crystal, but will have a 27MHz PXO crystal. Detect when PXO should be used instead of MXO and set the DSI PLL clk-ref appropriately. Change-Id: I4ae91435aad99ac34fdfb7540b49b901cea96fc4 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 625cb21cd30bafc1e7ac7dd0e45c5cfd244060d6 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Tue Aug 31 11:34:54 2010 +0530 Revert "mdp: Add support for MDP composition for QSD8650A target." This reverts commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2. Change-Id: Ia9e7d03d405cd9ec62dffa620081e52d4607c3b2 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 6aea65b1cabafdf0c37b4c3d1cb3e8f309117d3a Author: Philip Elcan <pelcan@codeaurora.org> Date: Mon Aug 30 15:00:09 2010 -0400 msm_fb: Add sysfs entry for panel type Add an entry in /sys/class/graphics/fbX so a userspace app can know what type of panel is behind the framebuffer device. For example, X will know if it is an HDMI panel and do any extra steps required for setup. Change-Id: I951041a0613502be1fbfaca3d7ed8b5a10fec3d8 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 444aa5a8324427cc42f7d757ad8eef42b22838c2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 11:37:40 2010 -0600 msm: video: sysfs support for TV out driver and replace old files TV out driver with sysfs support for switching video modes. Merged files for better management of sysfs attributes for TV out Change-Id: I3f71e8f92a3e420762190824265ad4209bd3f42d Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit f91289987a77d8d86199feb34c802dd86c7ce922 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Aug 26 07:47:17 2010 -0700 msm_fb: Add feature support for HDCP protocol. HDCP is designed to protect the transmission of Audiovisual Content between an HDCP Transmitter and an HDCP Receiver.Enable support for HDCP encryption in ADV7520 HDMI chip. Change-Id: I9704f64b9b0df169a0370ff8c5a6e96d8b4ac4b4 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0ef61e3116045dfd3af2d44598b90aa527551a58 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 22:55:16 2010 -0600 msm_fb: add kernel logs for ioctl failures fbtest was causing unidentified ioctl failures; this is helping identifying the cause for those failures Change-Id: Ic3980b2ee27b423f2936a468ef66f725a89fe8df Signed-off-by: Urs Muff <umuff@codeaurora.org> commit dec207bf6bd3c32c1965b07bd53ab7143c058741 Author: Mansi Patel <mansip@codeaurora.org> Date: Thu Jul 22 13:22:44 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HDCP Adding HDCP support Change-Id: I6f6f9a6cd3f3b0ed62973095a5abb91c9fb69583 Signed-off-by: Mansi Patel <mansip@codeaurora.org> commit 815a8e7bf3d8a1064ca2168a29bf98defb604ec2 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 25 02:31:22 2010 -0600 msm_fb: use hdmi common for sysfs entry creation Use the common HDMI functionality for the sysfs API. Change-Id: If42a4408469d262b72884b29fc69da42b8799c8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d7762c1f8c9dce3f410b0db65e78d459549b15cf Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 24 22:16:02 2010 -0600 msm_fb: using hdmi_common to parse EDID make use of common HDMI code to parse the EDID data Change-Id: I312942975067ae1bbfb10958d84e0f1ac2234142 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit e28154c9723ee7d232e7a9aab42a4d24b3390c3d Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 10:01:42 2010 -0600 msm: video: HDMI common code Move common HDMI code into hdmi_common.c so that it can be reused by 7x30 and other HDMI drivers. Change-Id: I41ecc78f9e68e8f80b3ce8da41eb27244e5b101d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4796e2b9f8c47659dca75d3eecd9e4068c5c5403 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 26 10:49:03 2010 -0700 Revert "msm_fb: display: fix mixer stage range out of bound bug" This reverts commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c. Change-Id: Ifc0a3be36b6b1e5c6db4e9c3b7c20671dbe95f71 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f876295641716521afe4b95d35465cde68ddeed Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:40:00 2010 -0700 msm_fb: display: Do not power on DTV at probe which will result in having no power on I2C for 7x30 until panel power on is call. Change-Id: Ifd50d9065432ad3a58764798405d04bdd9128700 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Thu Aug 26 20:08:37 2010 +0530 mdp: Add support for MDP composition for QSD8650A target. CRs-Fixed: 251979 Change-Id: Iba8281ea47b37a024bdd6239835909a90cb2a203 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 01ab957732bb79793d2ec4e7d0da02638a6dc6f9 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 15:07:39 2010 -0600 msm: video: TV encoder kernel driver: Clock fixes Proper error checks while enabling/disabling TV encoder clocks Change-Id: I13d9bec38968bf619f9b6258e4037faa3bb2df1a Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 0d41b4f23142deca25cb6d56a75944ab27ada063 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 14:34:05 2010 -0600 msm: video: ATV support for dynamic mode switching Turn tv encoder on before configuring overlay pipe to get correct resolution for the mode. Change-Id: I77f96633ce91df4658500e2cb7e7679ad0dbdeda Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e519e09063f60200d1397263c02845c639267972 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Aug 6 09:39:22 2010 -0700 msm_fb: display: reduce the delay during power off Do not have to wait for 100ms during power off 16ms is sufficient on 60Hz display. Change-Id: I06fe266de7f3848d2ad43f5837f95dd99c660329 CRs-fixed: 231755 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 6a2e3fc2cc64ae4e1b8ad30614271bd0f4e840bf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 7 15:09:53 2010 -0700 msm_fb: display: Add mipi dsi display panel support Add mipi dsi both video and command mode display support by adding mipi dsi host, mipi dsi client and display panel drivers. Change-Id: I67d6d6881993c021706f07d96b02902c9393f7d9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 730c676384f227032873f5066d78929d3baffdf5 Author: Urs Muff <umuff@codeaurora.org> Date: Sat Jul 24 01:45:52 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HPD Adding HPD and EDID support Supporting dynamic mode switching Change-Id: I95b7488ceffab919f76300f358ca6cdd15820b4a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519f339af23717cf871a12bf2458dba8c07647c9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 13:49:08 2010 -0700 msm_fb: HDMI should be powered ON by user space on HDP detection HDMI/DTV clocks should be enable only when HDMI cable event is detected, to save power. Also resolves the bootup issue with HDMI cable connected. CRs-fixed: 248533,249902 Change-Id: I13d8b2bcb1f17f2d6982636f749fef1e6b26e800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 150e5e7964e7fe4b8e77fe79c6770f6bcf28f239 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Aug 14 14:36:13 2010 -0700 msm_fb: display: reset vsync_handler_pending flag during suspend At both mddi_toshiba_lcd_off/mddi_sharp_lcd_off function call mddi_toshiba_vsync_handler/mddi_sharp_vsync_handler to set vsync_handler_pendign flag to false to avoid suspend process stuck at busy loop and never get out of it at msm_fb_suspend_sub(). This problem prevent resume process from happenning so display stay blank. This also contributes to "MDDI RTD failuer" problem since MDDI was power off and MDDI link is shut donw between MDDI host and client. CRs-fixed: 248624, 244906 Change-Id: I7ab0dc6420d80cda19ad43a4dd2ddbe7318bd698 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a469172a1c5884996d7d4cb66ebf6a8d0dda8d18 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 16:56:10 2010 -0700 msm_fb: Put last frame as black on suspend Put black frame as last frame on suspend on both HDMI panel and primary panel. Change-Id: I1620292c0abe0c81df1acfeffec54a5824175446 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 5455b12c4d410da95dd8a90f9934d494c122bd2c Author: Gopikrishnaiah Anandan <gopikr@codeaurora.org> Date: Mon Aug 9 18:52:09 2010 -0700 msm: vidc: Move 720p video driver into msm folder. Moved the 720p driver files from drivers/misc/vidc to drivers/video/msm/vidc Change-Id: I27cfd2e9258a95e9190ce0fec37fad2265fba8eb Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org> commit 9a72e92e095d14fffc8a31c3b9b1a7747057e253 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 17:10:14 2010 -0700 video: runtime pm annotation for drivers/video/msm/tvenc.c Change-Id: Ic9f6d859fdfc24d08ac27bc2d99898aba4e4bbcd Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 003b979f5e1e519a35b5697d1bf4bd423c4f6582 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:33:55 2010 -0700 video: runtime_pm annotation for drivers/video/msm/mdp.c Change-Id: Ic1531c6d31739a7d81de205692506f272888602d Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 93aba6dccc134cc2b14a0c3c8f18f0f0bc800902 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:20:12 2010 -0700 video: pm_runtime annotation for drivers/video/msm/ebi2_lcd.c Change-Id: I730e13dae48e04a5cc9b11586bd4526378b41e84 Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 17 09:55:18 2010 -0700 msm_fb: display: fix mixer stage range out of bound bug CRs-fixed: 251191 Change-Id: Ied2d51729e78dad6519d00e66e0cbf0d46920599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14d3db274a3eacea5878dd31e7e10927020d230f Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Tue Aug 3 17:40:00 2010 -0700 msm_fb: annotating msm_fb for runtime PM Change-Id: Id1b7ed4f8373b4431e33c8854d71658ebaab68fe Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 5fc970fd24f1d90a2fa371bf7eaf5780c3e310e9 Author: Gregory Bean <gbean@codeaurora.org> Date: Wed Aug 11 15:35:35 2010 -0700 msm: change GPIO_CFG enums to reflect .35 naming. Change the GPIO_CFG enumeration prefix from GPIO_ to GPIO_CFG_ in anticipation of the backport of the msmgpio driver from Google's 2.6.35-wip branch, where the symbols have had their names changed. Change-Id: Ie818d28f86f4c6c92aa052ddb9f594b81f067df0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit d2ebe7626ebab06648f9697515179e11e2c404c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 3 15:20:34 2010 -0700 msm_fb: display: remove DMA_PACK_TIGHT from mdp3.0 and above Change-Id: I853620cca00408b7e8da268e5066bc1393063b3d CRs-fixed: 245392 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2053340fb119a09a105ea110b37d9ae4b5fb08a6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 15 13:03:12 2010 -0700 msm_fb: display: create barrier when writing qseed tables workaround the 1K Boundary AXI Interleave operations from Scorpion that can potentially corrupt the QSEED table. Change-Id: Ia61076cbdb99b95aeb12a9ce4af7fcc12bc9d761 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 51edd49793e8567604efcc7d26376634af27288d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jul 14 10:08:04 2010 -0700 msm_fb: No Suspend/Resume function for DTV interface DTV interface connected device should not go into suspend/resume state for power savings to acheive continous audio playback functionality. CR's fixed: 244994 Change-Id: I69b46e5dc6c96a7138ff57ddaa545d5ba73e00c2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9d6106c7fa05809d972b95dc1834159aec0afeb4 Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 13:54:33 2010 -0700 mddi: annotating mddi for runtime PM Change-Id: I154695f4f9718464830e67e051b9e30f40dc0206 Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 42e1283c5f7d5928097e1d1b349ee8876d322c3d Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 14:06:08 2010 -0700 mddi_ext: annotating mddi_ext for runtime PM Change-Id: I5d53a2bb76e6ad535b55f60320593c7316c23dea Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 2768c4933148c64f318b7411ca3fd95bfc97ae9c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Aug 3 17:06:44 2010 -0700 msm_fb: display: correct pixel clock frequency pixel clk is set to correct value to get 60 fps Change-Id: I77fa24d148be1e1cb8f6b4874ebdd822a766b588 CRs-fixed: 248848 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c5cdaaa58e7b1bd6da45f4ab14caf749a9dc21cf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 30 16:04:45 2010 -0700 msm_fb: display: make TV_OUT is not set by default Make TV_OUT configure is not set at default configure setting to avoid confliction with DTV. Change-Id: I95b51f38ea9fcb3178639a161822880fe370059f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e29c212a71773a732f019b3d73b3c7a8d39dd4ce Author: Michael Burr <mburr@codeaurora.org> Date: Wed Jul 28 11:18:53 2010 -0700 msm_fb: display: cleaned up mdp_blit() to be MDP3.02 clean For MDP30 the tile processing is different and thus we do a different check. Also, 7x27 does NOT have MN scaling and overhang issues in the height so no height splits are required. ONLY split in the width for MDP30. CRs-fixed: 247272 Change-Id: I7bdc7832914eaa80d668fd00851272f162a0e0e9 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 1a9a814f18cdee2ff2b07b18222d5b6f6a0438ef Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver. Setup PHY and TX Core, and adding FB_MSM device. Handle Power on/off events by the controlling panel. HDMI Audio support (2 channel, 48kHz) HDMI SWI debug support (enabled by default until feature complete) MDP-DTV debug support (needs to be enabled) Change-Id: I74cdfe1489f8a981efa7b415f6f7ee0507643fe1 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 86b810f046b0d76146d46ae720dbbdc18fee4d5c Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 15:16:38 2010 -0700 msm_fb: MDP4 Analog TV support Add an RGB pipe as base layer to blend with a VG pipe to carry Analog TV YUV format and put it to tv encoder through dma_e dma engine. CRs-fixed: 241816 Change-Id: I847a7eeafe6f4b1b9977e144374eb3c1a6a2498a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e67ca29a62cac202adbf092efc28e76357d65a69 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jul 26 19:03:27 2010 -0700 msm_fb: Write proper FPGA value to avoid conflict with UART Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI driver to avoid conflict with UART GPIO's selection. CR's fixed: 241467 Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f6d4b96e080e6e3eebcc1f1b2a43e7535f62d377 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:33:45 2010 -0600 msmfb: Allow MDP4 overlays to use GEM objects Expand the MDP4 overlay structures to allow the user to pass in a GEM handle as a source for the overlay display memory. The GEM handle and flags will trigger the driver to query buffer information from KGSL rather then from PMEM. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 0f3a4677bdbb48e2df64de250b789a02167717a9 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:29:58 2010 -0600 msmfb: Allow MDP operations to use GEM handles Expand the MDP structures to allow a GEM handle to be passed in as an option for MDP blit operations. Rather then pulling the buffer information from PMEM, the GEM flags prompt the driver to query the information from KGSL. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 624e9899b6a4362218d5cdd073642fe367552bae Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Jul 20 16:41:23 2010 -0700 msm_fb: Added HPD and EDID feature support in HDMI driver a. Set Interrupt Mask register for catching HPD interrupt. b. Add ISR for HPD Interrupt on HDMI cable detection/removal event. c. Add kobject api's to send uevent to user sapce on HPD interrupt. d. Add timer control to take care of debouncing interrupts. e. Support for configuring framebuffer structure on reading EDID information from sink. Change-Id: Ic96ba3fc785d54bb2a882bff509655335d57165c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2a228e7612135c700d75917a69668942d8910d43 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Jun 16 09:59:15 2010 -0700 msm: vidc: 1080p video driver support for 8660 1080p video driver support is added for 8660 Change-Id: I0e2a491dd32d2a8eeee5d65cd70a7fe4fa719678 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit dea68ae99815fcdeecd98cb2cc60d0505957ebce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 20 10:35:42 2010 -0700 msm_fb: display: reduce pixel clock of display panel Reduce the pixel clock rate from 539900000 to 43192000 to decrease bus access bandwidth and power consumption at LCDC mode. Change-Id: If0cc46b70ebb86aad1efe1cbadeed3cdb67cb38d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cb514d96a5d4d66370e74d3ae98e7cbbf339515e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jul 19 14:06:10 2010 -0700 msm_fb: replace BUG_ON with error message replace BUG_ON call with error message to avoid the crash when incorrect color format is passed. CR's fixed: 246713 Change-Id: Ia5b84330bfc71e27cf09921f8def56da5784c0bf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 345475e974a6281be1b95ac5a060b5177291754a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 6 10:53:22 2010 -0700 msm_fb: display: initialize intv to 0 at first MDDI kickoff Initialize intv variable to 0 at first MDDI kcikoff to prevent mddi_kick_interval become huge number which prevent pan_display from working at first mddi kcikoff. CRs-fixed: 245197 Change-Id: I14d90129cf63988a1d63856527107fcffd4092e7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 51c4ae4090b8a20b243056f1b272a5dde307fe42 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 12:17:38 2010 -0700 msm_fb: Deinterlaing in MDP3.1 is enabled Deinterlaing in the MDP3.1 was not enabled earlier causing this functionality not being observed on this platform. CRs-fixed: 246029 Change-Id: I00a9495314f34f610791c55b6492d6caf96f6548 Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4b9e5b18bf2f97f153546a697d5ec7df5ee92d5e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jun 25 12:35:24 2010 -0700 msm_fb: display: enable irq before kick off histogram enable the irq before kick off the histgram process and disable it once histogram is done. when overlay is used on lcdc mode it is disabling irq after overlay is done so we are missing histogram interrupt handling. Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8b9675df4eb7d98a1709e069846a174edee3b9ae Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: setup DTV overlay polarity for low resolutions. clk_set_rate has to be called before clk_enable. H-Sync and V-Sync polarity are active low for low resolutions. Add mdp_tv_clk for HDMI drivers that need this clock (8x60). Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 781c6b0fbe05c56bda8d15359907d9e583231ee7 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 8 10:22:03 2010 -0700 msm_fb: display: remove spi bit-banging in lcdc lcdc panel drivers are using spi bit-banging and causing a GPIO conflit with MSM SPI controller driver.Hence remove the bit-banging and using the MSM SPI controller for SPI transfer. Change-Id: I37abe848ed5f486ba0a8709512a076421fc58299 CRs-fixed: 220233 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit b8edd675c91c8f6f92a6067356cacf01dff95393 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 11:08:34 2010 -0600 msm_fb: Set the default color depth from the kernel config Make the default color depth for the framebuffer configurable via the kernel config. Default is RGB565, but ARGB8888 and RGBA8888 are available. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 78f720650b1c5400baf067c6e766ef753dfa5b4d Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 10:55:09 2010 -0600 msm_fb: Use varinfo information to choose the proper color config Use the position of the transparent portion of the color information in varinfo to determine if we should use RGBA8888 or ARGB8888 when 32bpp is selected. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 410efd5af5b0a8f230e5c98c64eddac9061d493a Author: Naomi Luis <nluis@codeaurora.org> Date: Thu Jul 1 22:19:23 2010 -0700 msm: Return the correct size for tiled formats The tiled format buffers are 8K aligned. Return the 8K aligned buffer size for the tiled color format. Change-Id: I81d04ec1d7f55ee68c361aaa1c515cc4318e906d Signed-off-by: Naomi Luis <nluis@codeaurora.org> commit 450e38300a07cdb77b3ef36a4e61a3f0f835aba0 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Sat Jun 26 20:37:14 2010 -0700 msm-fb: s/w workaround for MDP3.0 ppp h/w lockup Pulling in the changes of s/w workaround added for MDP3.1 to MDP3.0 CRs-fixed: 242307, 244250 Change-Id: I7c5ecdd8c0e02ea6c1fb2ec3261f81d6c1171f3d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit f55b99553dc3ae09afb816e25cf657cff8e2356e Author: Ravi Bandi <rbandi@codeaurora.org> Date: Wed Jun 23 19:08:28 2010 -0700 msm_fb: Set correct video format for different bpp values Video format is not set properly across 16, 18 and 24bpp formats, due to which colors are not displayed properly. Rectified the issue by using appropriate video format descriptors for these panel types. Change-Id: Id79703b51aa3aceb02d080372a5696d41658f67d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4325aa8038ed6631aa49a272c8951ddd042288d7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 23 13:16:47 2010 -0700 msm_fb: Shutdown HDMI clock on dtv off. Disabling HDMI clock while dtv interface is off. Change-Id: Ib060580a79572d646b98687f4577f665ca5fdc0e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ee61d7178de4c8f986ae33ec5813ed34bac0a3e3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jun 14 18:32:01 2010 -0700 msm_fb: Enable Audio settings for ADV7520 HDMI chip Configure ADV7520 HDMI chip for dual channel audio through I2S inerface. Change-Id: I916acfc38fe497b54ce5147a07a700f57b305a4b Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f29603084ab9ae536eccdf741533e39fe6cae746 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 15 11:56:03 2010 -0700 msm: Add framebuffer read and write support in rotator driver Rotator driver can only read or write to PMEM. To read or write to framebuffer, we change MDP driver to provide framebuffer physical address information. This change is required so that we avoid copy of framebuffer in PMEM for rotation. The rotated buffer is then used to push on overlay engine. Change-Id: I17322fa77bb05f36f70ac0c225299614dd607fe9 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 4e2da5926dc4b904dcfa930219c4bc1a1e2f6233 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 17 15:57:43 2010 -0700 msm_fb: display: add HDMI mirror support Allow VG pipe can be shared by both RGB and YUV format (video). YUV format (video) have higher priority than RGB format during overlay play so that RGB format can be preemepted by YUV format during VG pipe sharing. Change-Id: Ie9bf1beb28095e157f5be4a573fc541780a54e09 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5eef0fe4e1eb1150166233425f42b05d307962b4 Author: Kuogee Hsieh khsieh <khsieh@codeaurora.org> Date: Fri Apr 9 16:05:28 2010 -0700 msm_fb: display: enable software vsync to prevent display from tearing Enable software vsync and adjust frequence of MDDI display panel to prevent tearing from happening. Also add vsync can be enabled/disabled from mdp4 debugfs. CRs-fixed: 221821, 227518, 241791 Change-Id: I482980ce1d12b083745e74aad1248a66b33d4cb8 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit b1703457d0b166d30fbea0ee1147cc8bbcf478e6 Author: Derek Kulinski <dkulinsk@codeaurora.org> Date: Wed Jun 2 15:34:26 2010 -0700 msm_fb: proper order of IRQ operations for ST1.5 Ensure interrupt is requested before it's enabled during panel-on processing. Disable the interrupt before adding fb device to avoid panel-on enabling it a second time. Change-Id: I38c16c4d2fd3a2aa1e8ab4589980dd8e753f9ed5 Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org> commit 4c018c787d601ad9beadaf8ada3b2dba8c5f8e82 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 11 11:26:06 2010 -0700 msm_fb: display: fix MDDI NULL function pointer bug Check function pointer before call it during parser received reverse MDDI packets. CRs-fixed: 239194 Change-Id: Ia4d371f4f4d1500b227ee6361dc5b81087e9735c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14abca9a4a199a325690aed620aa0adc659f6d86 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 9 17:27:31 2010 -0700 msm_fb: display: change fb state to FBINFO_STATE_RUNNING In msm_fb_resume, changed the fb state to FBINFO_STATE_RUNNING instead of a magic number 1 (SUSPEND) after resume. In addition, change all the magic numbers to macros in suspend as well. Change-Id: I5a854293a3577522c559fd90a2dbc84a06072097 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 91277807c75b4ed9844441da31d9a49c990c1334 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 4 08:19:58 2010 -0700 msm_fb: display: Add FB_MSM_OVERLAY dependency Add FB_MSM_OVERLAY dependency to FB_MSM_HDMI_ADV7520_PANEL to fix compiler error when FB_MSM_OVERLAY is not defined. CRs-fixed: 240734 Change-Id: I948b2b198f69ada3dfb2eb4903363230a48935aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a54aac47e202993920fae8e9297e6bf59221b765 Author: Ajay Dudani <adudani@codeaurora.org> Date: Wed Jun 2 18:40:14 2010 -0700 msm_fb: Add ST1.5 LCDC driver Change-Id: Ia592bed81e316118f4c301ad59931fb9502ce49e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 2c970e38fe13d77a00323897ac62a15423996329 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Tue Jun 1 13:28:42 2010 -0700 msm_fb: make 8660 backlight work with new pwm api The pwm api changed to use a callback function in the board file and to specify the pwm duty cycle and period in terms of usecs instead on nsecs. Update the 8660 display to work with it. Change-Id: Idfc67a88261ac099c50214d61ac55dbc0311d405 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 8bbb084294c576722b05e5d941528f5cf129bffd Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Wed Apr 14 12:42:37 2010 -0700 msm: display: backlight intensity Update the panel driver to handle backlight intensity calls using pmic's pwm channels. Change-Id: I3c63588e5244748da5461e43f7f0831ddf635c5c Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit d4ac1bbc8a7a10d457f5809728a481656a64da3b Author: Steve Muckle <smuckle@codeaurora.org> Date: Wed May 12 22:43:25 2010 -0700 video: msm: remove suspend_late, resume_early initializations The platform_driver struct does not have suspend_late or resume_early data members. Change-Id: Ice92977de598fd4bad6f607a8b1e1fc97e03b826 Signed-off-by: Steve Muckle <smuckle@codeaurora.org> commit f95c6bd8c07d38466c51d2c245aeaac3aac189d8 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:11:55 2010 -0700 msm_fb: display: Add panel driver for wsvga display Add code for the Samsung's wsvga panel (part number LTS480WS-C01). It has a resolution of 1024 x 600 pixels, runs over an LVDS interface and accepts RGB666 pixel data. Change-Id: I399a0c08257a645fe205d5f3cb766e7dfbf20121 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 404c2879aa60104da586011fc5504163cc5143b4 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:48:49 2010 -0700 msm_fb: display: set mdp core clock rate from the board file Rather than hard-coding core clock's rate, set it to a value passed from the board file. If it isn't set then the mdp core clock was not meant to be set with a rate on that board. Change-Id: Ic7ca1b830a8b1bf4bedb9449e58b7f4b58424019 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3224f712002dbf029fab77d9c848de3a01bde9d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 25 09:17:49 2010 -0700 Revert "msm_fb: display: add zorder check during overlay_set" This reverts commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42. Change-Id: I1ce7311f326a99b738d32055f98879754e5b25b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4fa05a83d4bcc394d536cd2490c3c95e74f5fb11 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 24 09:04:24 2010 -0700 msm_fb: display: retransmit set_backlight pmapp rpc request Re-transmit set_backlight pmapp rpc request in case of rpc failed. Change-Id: I2ed01bd7ec40da313a75d441a438491a13a875a7 CRs-fixed: 236277 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 14:25:57 2010 -0700 msm_fb: display: add zorder check during overlay_set Add zorder check to avoid same zorder using by multiple overlay pipes. CRs-fixed: 232438 Change-Id: Ia6e66aba70f01a9b77ac6f2e1c565cc16496e613 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 795d1b324ee9052b0d4ee96771bc87bf61088fce Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 17:03:53 2010 -0700 msm_fb: lcdc: Add support for clocks on 8660 8660 has different clocks than older platforms. Update lcdc to handle 8660 clocks as well as the older clocks. Change-Id: I0b57a525205af448207a1500e23910e5c13c3738 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3ca6eef9dff1c435fc48d51bbd71edc71f7b0c0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 14 15:05:42 2010 -0700 msm_fb: display: Fix calculating brightness duty level Calculate the brightness duty level based on the maximum brightness level supported by the panel rather than from a constant value. Change-Id: I4c8d371a59e38c084bddeaa827c3982b47bbc7ee Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 347a643f440b0ba370830d54cb85966df18d7023 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Thu May 13 18:23:59 2010 -0700 msm_fb: Fallback to correct clock The tv_src clock should fallback to the TV_ENC clock and not the TV_DAC clock. This was already fixed in the devices.c table but wasn't fixed in the driver. Change-Id: I9dbf17d9123d25142e8123b54b1c5856482b087b Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dc34a27a27d726d98b34046c9fa5175322d794ba Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 10:21:54 2010 -0700 msm_fb: display: initialize op_mode at every overlay play Re-initilize op_mode to have it update with new value according to new overlay play's configuration Change-Id: I7ee2489a93efa72e691746037bdf853d862a023b CRs-fixed: 230612 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-01-11 01:19:01 +01:00
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __MHL_DEVCAP_H__
#define __MHL_DEVCAP_H__
#define SILICON_IMAGE_ADOPTER_ID 322
#define TRANSCODER_DEVICE_ID 0x8334
#define MHL_DEV_LD_GUI (0x01 << 7)
#define MHL_LOGICAL_DEVICE_MAP MHL_DEV_LD_GUI
msm: fb: Replace with QuIC framebuffer driver This adds support for more recent MSM chips. Including the following commits: commit 5822924ac43b56586fbe0ddb720400624e70e111 Author: Ping Li <quicpingli@codeaurora.org> Date: Fri Nov 30 14:05:43 2012 -0500 msm: display: Add picture adjustment support for SSPP side Add picture adjustment structure input for overlay PP configuration, user can change PA setting via overlay set IOCTL Change-Id: I3b4679991ad4527565809e291fb13a73fbda2181 Signed-off-by: Ping Li <quicpingli@codeaurora.org> commit 486846820740c2cafea0c06442a3440ecb70b4d3 Author: Pawan Kumar <pavaku@codeaurora.org> Date: Fri Dec 21 16:55:24 2012 +0530 msm-fb: v4l2: Add user pointer support using ION for mdp3 target -Add multi-planar user pointer support in msm v4l2 display driver using multiple ION fd's (2 fd's in case of mdp3). -Handle multi-buffer use case using memory offset along with ION fd to calculate physical address. Change-Id: I1352512cbdfb9cf2c9fc20968416d369337e433b Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 5e4ba471fa7b26de394c3836b309c20c4082c19a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Nov 19 19:37:12 2012 -0800 msm_fb: display: Send current timestamp in case of timeout On timeout while waiting for the vsync, send the current timestamp to the userspace. This resolves the infinite wait seen during the bootup as SF will use this time stamp reconfigure the vsync. CRs-Fixed: 420244 Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 14547efa9af6eecb83243148b02cc1e0ea789202 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Dec 12 17:49:04 2012 -0500 msm: mdss: cache panel setting in suspend state Save panel on/off setting in suspend status to be used when resume, return success as a temp workaround. Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit c7966734d6fbdf5e542eb0349939cc02b0082143 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Dec 21 23:12:05 2012 -0500 msm: mdss: power setting protection When mdss is in resume process, other operation needs wait until it is done. Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 86ac956a061a1ea1e2c11214a1adebbe32511c42 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Dec 13 18:57:27 2012 -0500 msm: mdss: Clear performance request data at turning on MDSS needs re-request bus and clock when resuming, clear the cached related data, as they do not reflect the hardware status. Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 4e83b93ca279b21f0ab1e07fdee52ea41f2474f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Dec 2 21:15:47 2012 -0500 msm: mdss: Non-blocking display commit Schedule a workqueue, do the current job in the workqueue handler. Block the second entry if the first one has not finished Display commit ioctl will do what pan_display can do, addtionally has customized setting, such as non-blocking call Change-Id: Iccced7d7540c6a8bb066f58fa245bbff5ed36fcb Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 5295d8001001ceebc6392a42f3055c6c5188958d Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Nov 7 18:33:16 2012 -0500 msm: mdss: sync point support MSMFB_BUFFER_SYNC ioctl is added for hwc to pass in buffer fence, driver creates release fence and return to hwc. Before display update, driver waits for the fence to be signaled. Signal the release fence after update is done. Change-Id: I3d8cd5e8df1f0415832507d19cf629f4c0432164 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 1c374a84fd75e436d6a61c326fb055091b3d51e0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Dec 17 16:29:03 2012 -0800 msm: 8974: add MHL device discovery flag This change stores a static flag for keeping MHL device discovery and makes the driver flexible to function in either one of the modes. It would be very simple to make this dynamically configurable through boot param or module param. Change-Id: If3915c5861e61bc572a9b4e239a6133e5e9a138b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fcc33cdd9c2eccdcdde19e2b09d6eb3b01a783cb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 18 09:40:25 2012 -0800 msm_fb: display: add panel's late_init Some panels need to be initialized after panel is on. Add late_init to support this feature. CRs-fixed: 433011 Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbdfa637adf603082676a428f80f1260d3400b3d Author: Pawan Kumar <pavaku@codeaurora.org> Date: Mon Dec 17 09:47:16 2012 +0530 msm-fb: Fix sysfs node creation in mdp_probe for MDP3 targets -vsync_init null check not required for mdp3 target before creating sysfs node. -Set vsync suspend and resume flags appropriately in mdp_on for mdp3. CRs-Fixed: 393243 Change-Id: I3366df7385ca8e2ae15053c3e58332f8e32ce0cd Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 9f2514f819eced19b0880735d5d62727808ce30c Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:23:11 2012 -0800 mhl: 8974: notify usb about non-mhl sink discovery On cable connect, USB driver triggers MHL's device discovery through an API. This device discovery should inform caller if the device is MHL or USB host mode connection since both hold ID line low. If SII 8334 Tx discovery routine returns a result of non-mhl then MHL driver should notify usb of this result else usb will not be able to proceed further with it's worker functions and state machine. Change-Id: Ie20e0dd517a191ed6df75050042bdcb0ebd01233 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f45159b358add9d3bc955dce2cce5ef62a7a75fd Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:22:08 2012 -0800 msm: 8974: MHL set 3V reg. for the 8334 hs switch Allocate regulator from MHL driver for 3.3V which is required for the high speed switch to function and toggle between usb host mode and mhl mode Change-Id: I87a9db951ff004d0a10caa390723eefddfc0db5e Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 530a5227212b62d05732f4393cf06903b4646c6d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:20:34 2012 -0800 msm: 8974: disable mhl device disc This discovery mechanism puts the device in complete sleep mode (D3) while leaving the device discovery disabled, and wakes up when USB driver calls the device discovery API from D3 mode by resetting the chip. Change-Id: I7db8dd86c54285a4903c582ae35f6c9d4329ec48 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 80822c3dde2e63bcdb0490426b05105252572814 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:18:07 2012 -0800 msm: 8974: Add intermediate power state for MHL MHL has three power states, D3 - low power sleep, D0 - high power MHL state, D2 - intermediate stage which powers up the chip but doesn't activate the MHL/TMDS lines. Change-Id: I9282a32724e0ac4f7c23233f4bfba97f548d7ac9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit affabcd25a6b74ec95350ad36ccec5b522e8dc5d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:15:29 2012 -0800 msm: 8974: Set MHL Tx configuration to USB state All the ID lines, D+/D- lines are configured to USB by default in this change. All the USB interrutps will be routed directly to USB, which will trigger interrupts in the USB driver. All events on ID line are handled by USB, even in the presence of MHL, USB driver triggers the device detection mechanism through established APIs. Change-Id: I7e70965cf46dfa5734918b2e21db5a162c570706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 388c2a9db377945aefa85f06fa31dc8ac0ea9cef Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 14:01:47 2012 -0800 video: msm: Handle timed-out histogram When the histogram collection times out (usually caused by an underrun) the hardware does not trigger a histogram done interrupt. In fact, the histogram hardware returns to its idle state after the next frame starts to draw. Thus, in the case where histogram times out waiting, changing the software state to HIST_IDLE allows histogram collection to continue. Change-Id: Ideb431209067c7d7e5a2bb94a7352ad90dd46e50 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5240a97a72f320b927ffc6230a6f4f1443979acd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 3 15:52:38 2012 -0800 video: msm: Trigger no update notify on suspend Suspend is a special case in the update notify feature in that it is a known state of no upcoming updates. Cause those waiting for a "no update" notification to wake up. Change-Id: Ie415d6c8da36d9871ed1dffad095529a20ebdf88 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c9021777f4efbbe9dcb9293f54a0dc912e87e5fe Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 16:48:18 2012 -0800 video: msm: Initialize Histogram LUT Initialize the Histogram LUT during MDP probe. This is required otherwise the first histogram LUT request shows a brief period of garbled colors. Change-Id: I60b3077883d0f57dfe3987d7b459477a43da09a5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 004d4a2d2bd81fc8e147f0dadec2d8792e176d80 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 12:46:10 2012 -0800 msm: mdss: hdmi: Add support for new HDMI-Audio interface Using this new interface, HDMI-Audio codec driver can retrieve sink's audio capabilities. Based on this supported capabilities and current playback clip, it will pass appropriate audio setup information to HDMI driver for configuration. Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit b554cf695636e15504cdce72cbfe35bf89494c0a Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 27 21:27:38 2012 -0800 msm: 8974: MHL-USB handshake API implementation This change adds the implementation of mhl discovery detection procedure, USB hand-off function. Three APIs are exposed from MHL driver to USB driver: for register/unregistering callbacks from USB and triggering device discovery detection in MHL hardware. By default, all the USB interrupts are directed to the USB hardware which is detected by USB driver and at appropriate points the USB driver triggers the MHL device discovery and uses the results to either hand control to MHL driver or continue with it's own detection mechanism. Change-Id: Ic1e22bc4c446de209f2e72d5dda8b823bfd398c8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5feb9b23208394f5261b330adec2cfb475706c43 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 12 18:18:19 2012 -0800 mdss: hdmi: Use delayed work instead of timer for HDCP reauth Upon detecting HDCP authentication failures, reauthentication attempts should be kicked off after a small delay. Instead of using kernel timers, this is achieved by having the existing HDCP work item as a delayed work. Change-Id: I7d04b33b159c718cd347576d18cffd1b705bb790 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 3aafea1d26621d712790742f2bcc70bf7bf374ab Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Dec 13 17:43:43 2012 -0800 mdss: hdmi: Correct HDMI Tx controller settings for DVI mode When a connected sink is operating in DVI mode, the HDMI Tx controller should also be programmed accordingly to operate in DVI mode. Change-Id: I63176b55be86a0fe73b23880fc1d45f7a2272d32 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0f685f270692aeb54b8eed0df5e37897d77f6c7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 12:52:18 2012 -0800 mdss: hdmi: Fix suspend/resume watchdog crash during HDMI mirroring During device suspend, HDMI driver holds MDSS suspend context until audio is turned off. Continuous polling for audio off results in unnecessary delay in MDSS suspend as well as watchdog crash. To fix this enable/disable MDSS GDSC regulator during HDMI hpd on/off. This will make HDMI independent of MDSS module in terms of register accesses. Also increase the sleep time between consecutive poll reads in order to prevent watchdog crash. CRs-Fixed: 425536 Change-Id: I7969f0ed8bcce4a356ee6a1e29ed2af76dd345ef Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 38e405e9ce2c9723a633ad75d6c498dd178d3e4a Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 11 14:19:04 2012 -0800 msm_fb: display: wait for a vsync time before dtv_off At DTV interface, wait for a vsync time to make sure previous stage_commit had been kicked in before un-stage pipes and turn off timing generator. Otherwise iommu page fault may happen after RGB2 allocated to mixer0 due to RGB2 pipe still hold previous source address. Change-Id: I6b8bb1429b863886601ebb64b7c73771bee86764 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6d260d9645b5032b41d14b8e7d14ec12af24cd1a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Nov 1 18:09:06 2012 -0700 mdss: HDMI: HDCP Implementation Implement HDCP (High-bandwidth Digital Content Protection) feature which is used to encrypt audiovisual content transmitted over the HDMI link. Change-Id: I6ab92585f979d796d1a40c0ff86d4e7363506b6a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f9ef2416165fa7cc4230fd1fad7ecd0cc9c1be3 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 16:30:18 2012 -0800 msm: mdss: Fix porch value assignments based on VESA standard Panel driver's porch value representation is similar to VESA standard but framebuffer API's representation is different. Correct this conversion from one representation to other. Change-Id: I1fdc7e664de99a5ad646beef2e74f7066a00c2e0 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit ad43bed51e95782097e68840673b8abf2d096058 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 16 16:08:00 2012 -0700 msm: mdss: enable border fill setup Border fill setup can be used to unset MDP pipes allocated for framebuffer replacing it with border color fill instead of contents fetched from memory. These pipes can then be used as overlays by userspace apps. Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0d62d721aaa6ea760e4d54076aa782352dca13a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:56:06 2012 -0700 msm: mdss: change smp blocks allocation based on fetch width Currently the ammount of shared memory pool blocks allocated for fetching latency lines is based on the full stride of image. There are cases where only a small part of the image is fetched, smp blocks should be allocated to acommodate the fetched width only, and free some memory to be used by other surfaces. Change-Id: Idaa7fbc583a2c4a5166f9e05010a0ae2ff56747a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d27afb2e7eae9d8049f11094b686c513dbc7eed4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:58:59 2012 -0800 msm: mdss: add timeout when waiting for vsync To avoid any possible freezes while waiting for vsync, add a timeout while waiting for vsync interrupt and report a visible warning. CRs-Fixed: 428821 Change-Id: I328ac05b98741fc77eb424c313a3b3afb3e206d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d691c2352dca906061899dac24bd21fc2ce91e6b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:48:12 2012 -0800 msm: mdss: remove wait for ping pong done for video interfaces Wait for ping pong was used to ensure that hw is idle while programming any double buffered registers, however most registers that really are changing are double buffered. Remove for ping pong done as it's only causing frame drops and some freezes in some cases. CRs-Fixed: 428821, 426136 Change-Id: Iafebebab7faf0efcb1b3f6a8d2723d67a93d5cd9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 26 12:44:26 2012 +0530 msm_fb: hdmi: HDMI suspend resume event handling This change makes sure that we do the proper HDMI ON settings at resume and also send the events to user-space about current status of HPD after resume. CRs-Fixed: 422372 Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 598d1170a005fd7b8b746e3e3d262635047a85b5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Dec 10 17:06:20 2012 -0800 msm: mdss: update bus bw calculations to account for is_fg flag Overlay flag is_fg is used to disabling fetching of buffers for a layer and all previous blending stages. Need to consider this as part of bus bandwidth calculations and only request bandwidth for layers that are going to be fetched by MDP. CRs-Fixed: 425643 Change-Id: Ie964f5e4ac77945ea6f84a47d337591ddfa1721c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d0bf99c8cbbbb43ad5bb1c426efc7d8004f6bf6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 16:37:01 2012 -0800 msm_fb: display: fix frame rate wrong calculation For cmd mode the frame rate calculation result is wrong. Also in mdp driver there are several places to do the same calculation. So fix the wrong calculation and use a single func to do calculation. Change-Id: Iab498fb446a1d9b8295d710ffa82618d2ab6fc07 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 14:04:00 2012 -0800 msm_fb: display: add wfd clk ctrl in pipe_commit mdp_clk_ctrl on is not called when commit is from overlay commit path which can cause mdp hang. mdp_clk_ctrl off should be after mdp overlay2 is done, so schedule a work in overlay2 done isr. Change-Id: I94fd08da27cfda114f5cc0056a5103f0a9b772f6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8a9762e653e6f43fd361b3ccd632a1a78c1ab6fa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Dec 7 20:23:53 2012 -0800 msm_fb: display: add mdp bandwidth runtime calculation Currently mdp bandwidth request logic is based on source image size and number of layers. This logic can not support complicated mdp usecases and it is not power efficient. The logic is improved by calculating mdp bandwidth request at runtime from all pipes and mixers. CRs-fixed: 425823 Change-Id: I63206f00f8d3017a2449f8ac617fce3ba2a4d36c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 474f8d7fdffb8405676455cfbfaebc14d067862e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 10 10:14:49 2012 -0700 msm_fb: display: replace cmds_tx/rx with cmdlist_put/get Both dcs command and mdp pixel stream share dsi link. Dsi link confliction may cause mdp to hang up. cmdlist mechanism is introduced to serialize both dcs commands and mdp pixel stream. This patch replaces legacy cmds_tx/rx with cmdlist_put/get. Change-Id: Idfecd196d6efa281fc2c319be4ee3e76b8d49136 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d43ae7260e1b79b9930036347ce568c176420287 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 18:06:56 2012 -0800 msm: mdss: hdmi: Add support for new resolutions Add support for following new resolutions. * 2560x1600 @ 60Hz (DVI) * 3840x2160 @ 30Hz (HDMI) * 3840x2160 @ 25Hz (HDMI) * 3840x2160 @ 24Hz (HDMI) * 4096x2160 @ 24Hz (HDMI) Change-Id: I14262448fea80615c6c77b4638b0a9815efc3297 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 793bd7b68f7ab5e2899b977293cfb67157493c77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Dec 7 14:25:47 2012 -0800 mdss: hdmi: Correct configuration for DDC ref timer This change updates the (Display Data Channel) DDC reference timer in mdss domain to the optimal value which is calculated based on the correct HDMI application clock frequency. Change-Id: I0b9f32f2fb0f16cf79bca86e270039c8cf90ed94 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 248dda2a1cacae6035fcd926a97fc8849229afce Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Oct 29 11:27:15 2012 -0700 msm_fb: display: Removing extra disable irq in cmds_rx API's Disable IRQ for DSI_CMD_TERM was already called in the isr. Removing the extra call present in the cmds_rx API's. Change-Id: I0000dd3166beb2a3b0c788327e1d7520e0c11a13 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9b697535117c56cd385a0b71411e05e62776e6f5 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:53:35 2012 -0800 msm: mdss: hdmi: Add support for dynamic resolution change Using new panel event, provide facility to check if HDMI can support requested resolution or not. Also if resolution change is requested while HDMI mirroring is ongoing then current mirroring needs to be shutdown and start again. Propogate this message to mdss using new panel event, MDSS_EVENT_CHECK_PARAMS. Change-Id: I87aed1b37b532724b6663509aa020b1008abfdcc Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bc2796befca2fa535952ced7c85f7221e3dac0b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 28 18:41:33 2012 -0800 msm: mdss: support panel resolution changes Allow framebuffer resolution changes to be propagated to panel driver to support different display resolutions. Use a new panel event so that panel driver can take the decision of accepting new params. Change-Id: I04b26cbb4d06a3cbc9c4416fbb7202bb185eee9b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0d7257935376fdc7293a0b9ddf1d2f8056fec201 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:16:03 2012 -0800 msm: mdss: cleanup usage of panel info Panel info is used to communicate between panel, mdp and framebuffer. Currently framebuffer maintains its own copy of panel_info which might cause mismatches on the latest information from panel. Change framebuffer panel_info to be a pointer to information provided by panel driver. Change-Id: Ic7ae27564d98d6b6843d1368481dda0601befccf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit cc13101bd21479dec3a629d93655bcf62462b0ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Dec 3 15:36:14 2012 -0800 msm_fb: display: delete dsi clock control from cmdlist_commit cmdlist_commit perform dsi clock control which turns off dsi clock unexpectly when dsi controller is configured as command mode during booting up. This cause display panel can not be lit up. This patch drop clock control mechanism from cmdlist_commit and move dsi clock control mechanism to caller. Change-Id: I1882ea3ee1c90ac5d76958c986740582929a5e3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 946ca6389b8f8c70b62a2f1ab4d81b475395f7d8 Author: Prasad Sodagudi <psodagud@codeaurora.org> Date: Mon Dec 3 16:57:51 2012 +0530 video: msm: Do not use disable_irq in the spin_lock_irqsave context Both mdp_isr() and mdp_histogram_disable() uses the same spin lock mdp_spin_lock variable. One core waits for disabling mdp_isr after acquiring mdp_spin_lock and other core in mdp_isr() waits for spin lock mdp_spin_lock and dead lock between two cores. Change-Id: I73a10494ab78e92fc88a348aed4f526091b51f89 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> commit 889748cb28feb2d88ee74c7c3ce29409b857ea23 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 19 16:23:58 2012 -0800 msm: mdss: hdmi: Add dimension overflow check for video resolutions MDSS based HDMI Tx controller can output 13bit h_total and v_total compare to 12bit wide from previous generation chipsets. Add overflow check to insure that controller is not programmed for incorrect dimension. Change-Id: I6c3906020da6f4aad3f1fcf8a5633731515a7569 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 554c0755b48b77e463b7ede2a1b74abf41120370 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Dec 4 11:12:04 2012 +0200 msm: mdss: Fix the order of enable/disable edp clock functions Being compatible with the required enable/disable of msm clk sequence. Change-Id: I179685a5bb4c0d7e6f4b84e18f0749b416f5e2ba Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 137dfdf8781f41270dd6ff10242c082940300e75 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:20:49 2012 -0800 msm: mdss: remove pm suspend handler All suspend calls are handled through early suspend, using pm suspend/resume as well can lead to HDMI being resumed before MDSS regulator is enabled, leading to HDMI hang during resume. Remove pm suspend handler completely since it's not needed. CRs-Fixed: 425657 Change-Id: I0b9d072037dfdceef90d24fba50813390191f4e0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 32547051b65943bd1c07c08630528741fdcfdda4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 30 18:00:16 2012 -0800 msm: mdss: fix iommu fault due to incorrect buffer unmap Any buffer that is being fetched by MDP to display on panel should not be unmapped until there is a new buffer to replace it. Ensure multiple buffer updates without a commit to display won't cause displayed buffer to be unmapped. CRs-Fixed: 420561 Change-Id: Ibe720976024d7739c36bd4f05f9f70a061ed1eb9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cda3246cba44c0756c2038f0fea34858e72f8555 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 10:47:46 2012 -0700 msm: mdss: enable display debugging through debugfs Register debugfs nodes to allow dumping and writing of MDP and DSI registers for debugging purposes. Change-Id: I14d9a7f441292eef5564144707184dfa5da75d85 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 63e30558ba162cae303f7ae655b0ab61f4253005 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 9 10:04:20 2012 -0800 msm_fb: display: mdp4 version assigned at board file Currently, mdp version is acquired by reading mdp version register. This patch use mdp version from board file instead of reading from mdp register. Change-Id: If71be4f28caa45beea58789ca1025a338eb64de5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8e389593cd695957834a2de6db769264c0237a9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 15:56:25 2012 -0800 msm_fb: display: add mdp blt mode and switch control Switching mdp blt mode is done in isr or by turning on/off timing generator. Add other options: by polling, always-on or always-off. And add support for external dtv blt mode. CRs-fixed: 390953 Change-Id: I5e9f52fc459a34cc99a0f71c04b8320edd821ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4eb6ce68540cb523348d624b7193518fdd970898 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 16 11:52:15 2012 -0800 msm_fb: display: Do not use ION_IOMMU_UNMAP_DELAYED Since iommu buffer will be un-mapped after two newer commits had passed, there is no need to request iommu driver to further delay un-mapping an iommu buffer. Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d5e1c57b4a6d2d25c5ce04923205073fafa3898 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Oct 30 14:59:26 2012 -0700 msm_fb: HDMI: Cleanup of HDMI switch device notifications HDMI switch device is used to notify userspace components of the availabilty of a connected HDMI sink. These notification should only be sent whenever HDMI cable is connected or disconnected. This patch removes all the redundant notifications. CRs-Fixed: 412575 Change-Id: Ia5e60690a87569fce5d61a9af75d446648443e9b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit f3472aede02906f6e213a5a8459ca4e6f84b17d6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 15:34:44 2012 -0700 msm_fb: HDMI: Turn on HDMI core only for supported resolution Upon receiving the notification of an HDMI cable connection, turn on HDMI core only if the default video resolution is supported by the sink. Otherwise, HDMI core would be turned on at a later time when it is configured with a supported resolution by the userspace. CRs-Fixed: 412575 Change-Id: I67cfb09bafa39646839877a66cd94f193c127a76 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit cdc118275788b10175f34560470d8afedc5255eb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 12 14:56:43 2012 -0800 msm: mdss: replace uevent based hw vsync events with sysfs poll Replace hw vsync ctrl logic with ability to read vsync timestamps through sysfs file when vsync ctrl is enabled from userspace. CRs-Fixed: 407684 Change-Id: I0fb973592090ed9ee81bc3d54f53a18f4c131e0f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit edf70c335df7938a1e181286f8165250491884de Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Oct 26 18:11:23 2012 -0700 msm_fb: HDMI: Add support for HDMI audio switch device node Add support for audio switch node in the HDMI driver that would be used to notify audio userspace components of the availability of an HDMI device. CRs-Fixed: 412575 Change-Id: Idc41caf234810db52af9fcc89d2ed4ecbcaafc3b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ae93bc59e2fc68591b76d3911ed6c29537efe949 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 14:32:41 2012 -0700 msm_fb: HDMI: Cleanup HDMI audio off sequence HDMI core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI core. This change increases the time for which the driver waits for the audio engine to turn off. CRs-Fixed: 412575 Change-Id: Ie11ab6c8140f7289f74da4877c9acf9b8cd4a838 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e3ddd1499da99d52222f6d3dd031901082e8338a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 7 18:27:23 2012 -0800 msm_fb: dtv: Serve device off in a separate thread DTV device should not be powered down until the audio engine has shutdown. This change moves dtv audio off sequence to a separate thread so that framebuffer close system call does not get blocked. CRs-Fixed: 412575 Change-Id: I246a9e58f1367e653913773696510f375abf3d3a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 99a86cc6d78227ff566aefdfd83c195277bde02b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:49:30 2012 -0800 msm: mdss: Add suspend resume support in HDMI Tx controller For primary display panels, usually power off/on during suspend/resume should suffice. But for external display panels like HDMI TVs, there is an additional hw circuitry for hot-plug detect which also needs to be turned off/on based on the state when suspend/resume is initiated. This change adds such support in HDMI Tx driver. CRs-Fixed: 413722 Change-Id: I7640d13c08f86f1ae0ae13cb2d1411f0354ca3fe Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c183e1a69eeac2348a6e2a5ac92aaf1fef0fa828 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 16 18:22:02 2012 +0530 msm_fb: commit mixer stage for WFD during unset Interfaces with Borderfill pipe as base layer needs to be commited during unset which will reset the mixer cfg structure. This is needed because overlay_commit will not call stage commit as there is no buffer queued. Change-Id: Ib3347e52ae437b20d5a85a09777f13aee2672edb Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 36f267e093320a0f3b54887d0091d7d811e76d2a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Nov 20 10:41:54 2012 -0800 msm: mdss: enable secure content display In order to display secure content, secure buffers must be mapped to secured MDP context bank. Split current single IOMMU domain into secure and unsecure domains and check overlay flags to find out if content should be mapped to secure or unsecure domain. Change-Id: I510c253920b03cacf85085cb394f5281143e38e6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f270decc6b4cfd38070e4e867f01f043fbee3ea8 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Oct 12 20:51:47 2012 +0530 msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 17e116a8ba55957248cf799de54997cf249e14c2 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Nov 6 15:28:07 2012 +0530 msm_fb: display: Fix blend configuration for command mode panels For command mode panels, blend registers does not get configured as per the use case. This leads to incorrect blending of layers resulting in lower layers (eg. wallpaper or buttons in video playback) to show above the upper ones, making overall user experience to go bad. In order to resolve the issue, blend registers are now configured properly by as per the use case. CRs-Fixed: 410029 CRs-Fixed: 415553 Change-Id: Ibe7d594e0ad6a6f4d75ed2e59c7382c09b65d624 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b2c1661ac99c7b6821f702c810256dbaafbf7ec8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 22:28:23 2012 -0800 msm: mdss: release rotator sessions when all panels are suspended When all panels are suspended MDP will be shutdown, need to ensure that all rotator sessions are finished and properly closed to avoid access to MDP hw. CRs-Fixed: 409234 Change-Id: Ic1d95365a28c453ec8779d9c482a885857bf6912 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit eac7d2bb7d29f731840e96271268c545d0fe011c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Nov 14 21:53:34 2012 -0800 msm: mdss: hdmi: Replace of_get_gpio usage with of_get_named_gpio HDMI Tx driver parses platform gpio data based on index, using of_get_gpio api. Replace this index based lookup with name based lookup, using of_get_named_gpio api. Change-Id: Ic65aae1583c8c6f852c31fd454ac651fc6c8b907 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0791142a3e45f62ad674de0fff2437e4c58a4681 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:12:43 2012 -0800 msm: mdss: add proper locking during suspend/resume operations Add locking mechanism to properly syncrhonize user space frame updates with suspend/resume operations. This should avoid some cases in which suspend operations will complete while frame update hasn't finished, leading to unwanted behavior. Change-Id: I4b254a6a547320199a6da722ef99563696686a20 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bb08a42611e6149d0950d94126fa1143e53b8e9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 16:51:27 2012 -0800 msm: mdss: replace panel function pointers with single event handler There are many events in MDP that are important to acommodate the needs of different panel drivers, currently these events are propagated with function pointers. However as more use cases come into picture the ammount of events has increased, and not all of these are handled by all panel drivers. In order to provide all this information to panel driver and be able to extend it in future, create a generic way to propagate events from MDP to panel driver through a single event handler. Change-Id: Ide243f08bc4fa966ef9223b0a665cff95b9529db Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d450bd5c223d6dc729b0eff24a0547c8222be0c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 31 15:57:42 2012 -0700 msm: mdss: fix possible deadlock while cleaning buffers Move pipe destroy logic outside of mfd lock to fix lockdep warning regarding pipe unlock logic being called within mfd lock, when mfd lock is usually locked within pipe lock and remove SSPP lock when destroying pipes. This was previously used to protect SMP allocations but these are protected by SMP lock already. Change-Id: I1c47da5d33cb4f1eb687078639adf4c4cc94f33a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit adb3920dd00f1001355e4ebbf451a5b646b3987d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:46:10 2012 -0800 msm: mdss: fix possible null dereference of fb index Rotator data paths don't have a fb device assigned, assuming that it will contains a reference to fd data is incorrect. Add check to avoid NULL pointer dereference. Change-Id: Ib91e96ddc56590f2f681673b162921191e3d86da Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5c06748c7decf51a63015579fa42cf8189727357 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 31 16:26:41 2012 -0700 msm_fb: HDMI: Cleanup HPD software debouncing logic Implement Hot Plug Detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. CRs-Fixed: 412575 Change-Id: Ia2c83f3446d09fe5bf6c6a1c4e6a9eb54ff465d6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9284a2701b6c030184848ba4b37c0b5019f62ed3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 2 20:55:30 2012 +0530 msm_fb: Wifi display changes for commit ioctl This change handles panel updates for WFD panel via overlay_commit interface, along with conglomeration of some common code across pan_update and overlay_commit ioctls Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit e41ba16cdf9d4aa7773fa33ef640ba32f5a17d7d Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Oct 25 16:32:32 2012 -0700 msm: 8974: MHL Driver for SI-8334 Tx The B-family device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I33f6c6f00011b590f9913cdbbe44544472b60982 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fe4abc1141a5620d42832137ad1dad15424b6b41 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 17 19:11:45 2012 +0530 msm_fb: display: Proper pipes solidfill For MPQ/hdmi as primary, solid fill the pipes only during suspend. This change also take care of the solidfill of the pipes unset during overlay and pan display at suspend. CRs-Fixed: 421461 Change-Id: I15096df681cbd94ae3cea63ecbfe915e01b7387f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 765bfd597fdc90610113cc9938c7152658d654ed Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Nov 14 10:41:12 2012 -0800 mam_fb: display: add per stage alpha drop detection Currently, alpha drop detection is done per frame which means multiple blending stages share same alpha drop status whcih does not reflect alpah effect truly on each blending stage. This patch enforce alpha drop detection is doen per blenging stage so that alpha effect applied properly at each blending stage. Change-Id: I90f8f6395c88e665b64ae90e64b65cea1d54b41a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Nov 16 11:36:29 2012 -0800 video: msm: Remove adjustment to MDP revision Remove the modification of mdp_rev during mdp_probe. Not needed since board files now have the correct MDP revision data. CRs-Fixed: 417080 Change-Id: I553cb2a8e8de43b6c7b7976c3eca67d00a3cfe4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ca24bda0148887716f250bbbc5debb2f80fa4331 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Oct 5 22:19:28 2012 +0530 msm_fb : Add timeout while waiting for vsync event Avoid eternal wait for vsync event when client tries to read the corresponding sysfs entry. This will avoid hangs when client tries to read in corner cases where the Timing Generator or the clock or IRQ gets disabled. CRs-fixed: 406752 Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit b6b7c0ef67d6bc2d82e4bbe63a946d3e8b815f69 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri May 18 11:00:11 2012 -0700 msm_fb: display: extend mdp debugfs with force blt enable Enabling/disabling mixer0 or mixer1 blt mode is a critical way to debug display issues, so add debugfs interfaces to force blt mode enabled/disabled with adb shell commands. CRs-fixed: 390953 Change-Id: I96a568f22398867571a796a863c098f749f5618b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bcafbe3fb1b630a844c4776f9bab4c65cd5cefa5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 4 15:55:40 2012 -0700 msm_fb: display: disable external instead primary vsync irq Since DTV is external interface of mdp, it should only control external vsync irq. Change-Id: I5f3a7087c7d4997cd40d4cc4907d8b054e37c6b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3eebb2e33570e32d11a757e493e12a8e79e08d6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 14:21:41 2012 -0800 msm_fb: display: add setting gpio-controlled backlight logic For the panels which backlight is controlled by gpio, add this logic in driver to turn on/off backlight, instead of calling board panel on/off functions, to avoid garbage display due to early backlight turn-on. CRs-fixed: 408728 Change-Id: I6f1b9bd78d96dbf1492e854edd59b05f8dec205f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5f91c9259a62b5dd2226bf46efc42152667b9e19 Author: Mayank Goyal <goyalm@codeaurora.org> Date: Wed Nov 7 16:58:09 2012 +0530 msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation.Add changes to support MDP_Y_CRCB_H1V2, MDP_Y_CBCR_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: Ibd1cb9803b8cf8bede28bc1d9830320dd505f5be Signed-off-by: Mayank Goyal <goyalm@codeaurora.org> commit a3b0e08b5c65b28c81a8a4511ebacd6985793dc5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 13:50:23 2012 -0700 msm: mdss: import venus stride alignment requirements In order to avoid mismatch in stride assumptions between Venus and MDP, import common header file with Venus alignment requirements and configure MDP surface with these. Change-Id: Idf849b3f476eb5e2d60fec190698efd487f035cf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c62976484ec5b681361a563d80fd5a5546287308 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Oct 20 14:08:41 2012 -0700 msm: mdss: disable fetch for all previous stages with is_fg The is_fg flag is used to disable fetch for all previous mixer stages, currently this only to disable fetch for base layer. Modify mixer setup logic to disable fetch for all previous mixer stages. CRs-Fixed: 413254 Change-Id: Ic0f101fe88a3c64db11cf43484f64f0f5e32d0d0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a21de442a3babb554d1a9a54eef2ef0944cbfa4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 9 16:18:07 2012 -0800 msm: mdss: disable overfetch done while scaling While programming pipe, src image size can be programmed when area outside crop rectangle contains valid contents in order to allow MDP hw to do overfetch of pixels while scaling. However for most cases in video playback the area outside the crop rectangle is only padding with invalid pixels used in order to satisfy alignment requirements. Since driver is not aware if padding is being used or not, disable the over fetching along the border to avoid unexpected pixels being displayed. CRs-Fixed: 404918 Change-Id: I145f34bcaef76a88116b6803eeaf4a5ffd19592d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20f0af9200e416d4b2f7949e2ecfd81182a5edc6 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Nov 13 17:34:12 2012 +0200 msm: mdss: fix enable/disable of gpio_panel_en in edp driver gpio_panel_en is always on even though driver is in suspend mode. The fix is setting gpio_panel_en value in edp_on/off function. Change-Id: Ib41681d31788b9a17a032e9b9e8dbe53eb9e4fa9 Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 6db43b58111cfd39eaee0d694c223cbc7461d16c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 15:25:37 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP3 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I18b05b8d2a65d489afc6e3274ec8dc7a5b9a5f9a Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b5292f0df4e06db2272c92d575e255f310793e3c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 13:54:39 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I983731481ea89bb7666be5f2a9f75a1e04fd963f Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 39e3fecb80703313621b22d2a8b5667a816265bf Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Nov 8 13:51:00 2012 -0800 msm: mdss: disable overlay operations while suspended When display is suspended all overlay operations coming from userspace should be ignored to avoid programming MDP when it's completely powered down. Change-Id: If43436915de33f89016ee2c85eb70bd57fdd2118 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b6d7e48e777e99e28dea95cb93debfd9d15d849c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 12:08:27 2012 -0800 msm: mdss: enable dithering for panels with reduced color depth In order to avoid banding caused by using reduced color depth as panel output format, dither can be enabled to produce an image which gives better representation of original image. Change-Id: I88a1be747332070d2b8b00dcbeb7e97936a47092 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6829d179d9ae8f3646a7a7204571ce15d35a997c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 31 17:06:52 2012 -0700 msm_fb: display: add option to switch mdp operating mode Currently, mdp switch operating mode without turning off timing generator. This patch adds option to have mdp switch operating mode (direct out and writeback) with timing generator turned off based on configuration of panel file. CRs-fixed: 405987 Change-Id: I92057757863218222d8647d33d57f6de9b3b3765 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a4567ac320abe5d74b3c7decdbddba4bd8c57463 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Oct 5 11:02:40 2012 -0700 msm_fb: display: skip one vsync event after enabling mdp and vsync clk Both mdp and mdp_vsync clks are disabled for command mode panel when no new frames are being played. When they are re-enabled if new requests come in, the first vsync event which is signaled by read pointer interrupt arrives in a random time due to the sync between mdp and panel, so skip it to maintain correct vsync timing. Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9bc28cf89a1619218fc1193409c4f614d1f826f6 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Nov 5 16:18:53 2012 -0800 msm_fb: display: add config of wb_mux_sel during update To make sure for each writeback play the reg is configured and avoid mdp hang. Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Nov 2 17:30:46 2012 -0700 msm_fb: display: empty pending queue during suspend for wfd Add the logic for wfd writeback interface. It already presents on other display interfaces. Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8befe49ddcd2952cfd60634153dc5caf440acb27 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 18:34:13 2012 -0800 msm: mdss: Add support for disabling HDMI while cable is connected Send disconnect and/or offline event to user-space when user explicitly asks to stop listening to hpd only if HDMI mirroring is going on. Upon receiving this event, user-space will trigger power off and HDMI mirroring will be turned off until user explicitly asks to start listening to HDMI cable connect. CRs-Fixed: 409880 Change-Id: I509a9a7ba04066e571b5f762be4804c7dd39c655 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 84639ef623c0f3301bda4893bae9eaa83454c222 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 14:48:03 2012 -0800 msm: mdss: correctly handle panel power on failure Check panel power on return code and correctly revert any interface initialization if any error occurs. CRs-Fixed: 417959 Change-Id: I4ad644b16efd51e5e8b3be1393c39195687feb8a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 074de641de0fab973a9efd9c3d57498453ef28ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:18:47 2012 -0700 msm: mdss: Serve HDMI Tx power off in a separate context HDMI Tx core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI Tx core. This change moves the power off sequence to a separate thread so that framebuffer close system call does not get blocked. Change-Id: I011c6612ec1b6be047e4adb39c1af48f6a105bed Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 2816e20c94fd5ee23c9784b3dbc3ac690fe1e88d Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:17:27 2012 -0700 msm: mdss: Clean-up hpd debouncing logic of HDMI Tx controller Implement hot-plug detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. Change-Id: I434a223a3d340d5759346e071d5350d412de2c20 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 3ca6a5691a83819c1b8c7123089cb85f5b4a58ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 14:58:28 2012 -0800 msm: mdss: Add error checking for incorrect state during HDMI power on/off HDMI power on should not be permitted if hpd is not initialized. Similarly HDMI power off should be skipped if power is not on. Add proper checking for above state conditions. CRs-Fixed: 417959 Change-Id: I9470c6d818adc403de05c25a7e96c8ab1c8a43fd Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1073b45c0b120f2ebbe1b5034d4088f9294b54af Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Oct 30 18:26:00 2012 -0700 msm_fb: display: fix frame buffer's ref count leak This patch clear MDP_MEMORY_ID_TYPE_FB from pipe's flag so that fput_light() and fget_light() can be applied to frame buffer evenly at end of pipe operation. Otherwise there has kernel unable to handle NULL pointer panic caused by frame buffer's ref count leak. CRs-fixed: 411394 Change-Id: Ib2b72e6277480b5ace23cda554be485d9d477b3d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f4796e811c00082db0414d4ad211aa3fcefd3a9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 08:41:49 2012 -0800 msm: mdss: Fix returning incorrect error number Instead of returning actual error number, current code returns boolean value of error present. Fix this issue by using PTR_RET macro instead of IS_ERR during error check. Change-Id: I61f0e57dd918c98ae4699993fa526e31654bebb3 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c30090ea5c28fce50a7c0ac829b9effd809f41e8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 11 15:30:58 2012 -0700 msm: mdss: add interlace video display support Interlace video contains two frames interleaved within same buffer. Since there is no hw support in MDP5 to display interlace content, support interlace video by taking even fields only for display. Change-Id: I92718d13eb7711d0c4252adf8751384719c862f1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 04d097801cc94a121751c9d5fde2ea458f3ae76f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 3 02:39:20 2012 +0530 msm_fb: hdmi: black out pipes on unset For HDMI as primary case, we need to blackout the pipes when they are unset so that any residue is not visible on the DTV during suspend. Change-Id: I2bf36f1002dd185c26fe6c4291977737daa73ae1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a5611de5f7d754d538706949bfdc9b8aa36fd0f0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:39:52 2012 -0700 msm: mdss: fix bus calculations overflows With higher display resolutions the bus calculations being performed can be very high which may cause overflow and unwanted results. To avoid such situations modify logic to perform calculations in kb and use 64bit data type to call into bus scaling driver. Change-Id: I7b975d750e316c6e79bcdcd54a8194c8ae40c155 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7fb9c21f04a8a87d2bf2e45ad1a5c9cd374f65be Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 11:58:29 2012 -0700 msm: mdss: replace disable irq with no sync to avoid potential deadlock Potential deadlock can happen when disabling irq after receiving vsync complete event in display if at the same time MDSS irq is triggered, at this point disable irq will hold spin lock which irq tries to get and will not release because it's waiting on irq to be disabled. This scenario can be avoided by using disable_irq_nosync instead to avoid locking on irq to be disabled while holding spinlock. CRs-Fixed: 416304 Change-Id: I1e367ac2b5d7b0ed7d1c15efc8d29a6ffa9fea5e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5328e4976369d5b4fc76183720168b58bdffd6c7 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Oct 2 15:03:44 2012 -0700 msm_fb: display: Enable scaling bit while setting x-flip bit To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d8bad5aaad6a19d65ae8d63451044455aceca46a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Aug 20 11:58:42 2012 -0700 msm_fb: Correctly setup splash screen flag in MDP probe The continuous splash screen flag was sometimes not correctly setup during MDP probe causing corrupted grey screen on resets. Crs-fixed: 389531 Change-Id: Id88d8a239ccfd1cbb5ce0f4f3db68756182f5ff9 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6ced23c4d1863316a72d7143a60ccfb547282940 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Oct 25 16:24:54 2012 -0700 msm_fb: display: adjust refx100 parameter to avoid tearing refx100 is used to calculate how many mdp_vsync clocks to complete one line in the panel. This info is used by mdp h/w to sync data transfer between mdp h/w and command mode panel to avoid tearing. CRs-fixed: 379223 Change-Id: I3880a350b77cb8165745ea343b1525e84100a62d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 66744e7a76bfa3f56818bcaa2d430468e50a1922 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 31 13:29:48 2012 -0700 msm_fb: display: force mdp clock off at suspend At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ef5abb017cee4c6bbacb6d064764bda8b4a1a0c5 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Oct 31 20:40:17 2012 +0530 msm_fb: display: Correct dtv pipe black out This change corrects the register values to black out the dtv base pipe. Change-Id: I80fefab3cc6dd006edbb673f41ccfe983af2cc3a Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 19a4f321dca81cbee29c934a9584412614a444c0 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 16:48:18 2012 -0700 msm: mdss: Enable stereo audio through HDMI Tx Add support for Stereo Audio in HDMI Tx driver which sends HDMI stream on/off notifcations to audio userspace using hdmi_audio switch node. Change-Id: I2c8e756adbbe2f9230dfb7735774ee194e32e446 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e2c2859bac8fcf41d39ba9cc614d028f0e1573ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 16:01:15 2012 -0700 msm: mdss: add smp specific lock SSPP lock is shared between pipe allocations and smp block allocations, this can cause possible circular lock dependency since usage is different for these cases: - During pipe allocation SSPP is held when acquiring pipe lock - During SMP allocation pipe lock is held when acquiring SSPP lock For this reason, splitting SSPP lock, and since pipes and smp locks manage separate resources sharing is not needed. Change-Id: I54a0997fddef893b99a4b01d3e3f62382e1e0ecf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ec339e96700b98faa170b06f73678f203c237291 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Oct 29 16:19:03 2012 -0700 msm_fb: display: change the location of wakeup timer call There are two pathes (pan display and overlay commit) to commit display buffer, so change the location of cpu timer wakup call to the common pipe_commit function to make sure cpu get waked up around vsync. Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Change-Id: Idbe6049d740a7e17a6a90e28566f7a9c74e348f2 commit b360fd40a5214595d7e9970431ef83653b76b13e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Oct 27 13:14:11 2012 +0530 Revert "msm_fb: display: suspend-resume on HDMI" This reverts commit 30befc28305440f30770a6545839fe4b55ee2207. Revert early suspend implementation for MPQ. Change-Id: I028a7f0d6997d2d09d718d3b5072466d28a95b59 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5f6d8314b2ad063da8a8ebf71fef8c713f76401b Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:27:55 2012 -0700 msm_fb: display: fix dsi_busy_wait race condition After pipe_commit() released mutex and before kickoff happens, There has possibility that dcs command may start transmitted. This patch add dsi_mdp_busy flag to fix this race condition. Change-Id: I0d9a81cd0719085c91c03386117261ad3bb6b182 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 366ca5c34117fde6329ea81112068d1dc177ff70 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:26:31 2012 -0700 msm_fb: display: add video mode dcs cmdlist support Add video mode dcs command list support. This patch make sure dcs commands committed while dsi video engine is busy so that dcs command will be transmitted at beginning of next BLLP. Change-Id: I11b0214ee10f3b1ef33b1da4c8e577800068cb06 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c405afa88ef5139132795757a7446a7081d92c38 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:23:10 2012 -0700 msm_fb: display: add sysfs and clock control to smart panel This patch allows both vsync enable and disable are controlled by framework. Driver reports vsync event to framework via sysfs. Meanwhile, mdp related clocks are enabled by framework at vsync enabled request and disabled by driver if there is no any display update within specifid vsync period. Change-Id: Ice5be3a6db5930b95bdd2f718d9256bf73936e23 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 64892009d43ca724c5ee1be5f7db6ad1f00cda6c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 25 09:07:58 2012 -0700 msm_fb: display: fix iommu leak during base layer swap Retain RGB1 iommu information during base layer swap so that iommu used by RGB1 can be freed back to pool later. CRs-fixed: 403277 Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bbd754882e8ec1a52ebba237e02ba8c49b00f135 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Oct 25 19:30:33 2012 -0700 msm: mdss: Fix error roll back sequence during core on. When core power enable fails for some reason, current code disables hpd power in the roll back which is unnecessary. Correct this mistake. Change-Id: Ia5ed63edb017ade44950058c9d6071e8eb5d7884 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 693e87a8e357add7444dbad12cb265deaa90d3e2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Oct 2 15:08:56 2012 -0700 msm_fb: display: wake up system before vsync for cmd panel Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 407e03a33eaa0880b87a2a6a7bf43e3516cb2562 Author: Asaf Penso <apenso@codeaurora.org> Date: Thu Oct 25 15:03:21 2012 +0200 msm: mdss: add eDP backlight Add configuration for setting different brightness levels in edp driver. This is done according to lpg channel and period values from devicetree. Change-Id: I4e9074d777102193d7678f7aac565be3a5a551df Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit b640c29b8b3b4a0733924a6e4ad0665d5218a7dc Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 20 14:14:40 2012 -0700 video: msm: Send ETIMEDOUT on update-notify timeout Send the ETIMEDOUT errno when the update-notify wait_for_completion times out. This is required to be able to properly handle the different failure cases in the functions that use the update notify ioctl. Change-Id: I0e46b0b0c89f6b2e5beb3fc0ed18ebbb75dfa434 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a3020ffbd3720f3aaba439b593db5a85dcb50bc0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 22 11:33:23 2012 -0700 video: msm: Wait for latest histogram data Old histogram API introduced behavior that calls to collect histogram data would return a frame's histogram once, and would wait until new data was available if needed. Follow old histogram behavior by waiting when histogram has old/not ready data. Change-Id: Ia1b6b5b7a5b63a570a641b5460eb8e0d72c458c8 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a80d082eeb5ad6a024bea9992d8dc74406c37752 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 15 18:05:14 2012 -0700 video: msm: Ensure histogram is fully enabled before kicking off Histogram hardware needs to have histogram enabled before kicking off histogram collection. Add state variable to track if histogram is ready to collect. Change-Id: I71380e89de1a61f446802f791e917f57d14f10a2 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 6011950da33ac430c1c6b677c25423d07f8e8c95 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 28 12:03:28 2012 -0700 video: msm: MDSS: Add Update Notify Add update notify ioctl to MDSS driver. "Update notify" is able to signal userspace processes when there has been a screen update or if there has been a 22 second period without screen updates. Change-Id: I90cf7f7e6650236186452c1a9f86850731ad785d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0af12fc4577d1dda6a0209d1a35cccaa716721b2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Aug 27 14:52:39 2012 -0700 video: msm: Add backlight scaling for MDSS Add backlight scaling functionality to the MDSS driver (includes the fixes with regards atomicity of backlight scale and level updates). Allow for power saving algorithms to modify the intensity of backlight without introducing race conditions caused by competition for backlight level. Change-Id: I97ae024055ca614648ffe2aeae09cc350d2577ec Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97ea71b93d1148c9127e59ba19a71f67b4808c2e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 27 11:44:15 2012 -0700 msm_fb: display: check pipes queued before enter wait_for_completion Timing generator will not be turned on if there are no pipes queued. Therefore wait_for_completion may never be completed if there have no pipes queued. Change-Id: Iafba086e4ba20b31470c9fd385c4f5c474ecadcf Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0edc1cb98a8af7a7c650c7f690e510e7c01b9b1 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Sep 24 19:52:16 2012 +0530 msm_fb: Enable H/W cursor for External Interface Add H/W cursor support for MPQ uses cases which use external interface. Change-Id: I5d1f71813769c7e86e576888463bceaa7ad37b68 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit c579c8770c6c0a9e823cc4a7d1349ea4e3d99d95 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 17:36:38 2012 -0700 msm: mdss: fix rotator hang for xrgb formats XRGB formats require constant alpha to be setup when writing back to memory. Change-Id: Ie819b88578a85923d1cde7efe54ca0819c59a611 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6ba5f1fb067410d097f973f311bfcc9eded6a1bb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 18 11:21:23 2012 -0700 msm_fb: display: add wait4dmae for hdmi as primary display When hdmi use as primary display, pan_display is used to update screen. This patch adds wait4dmae to pan_display to avoid source tearing on hdmi display. Change-Id: Ied31419590c51e4bc2218ee8dfdc7d5221c996dc Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7ef177524d89ce9bbd84bf0a54c28c335c2a2b14 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 11:00:19 2012 +0200 msm: mdss: add support for different panel formats Some panels have different color format requirement such as RGB666 for EDP Panel. Add logic to detect panel resolution based on panel bpp set by panel driver. Change-Id: I4cad59033b8b4f807c2ed38b00451aab89737bb7 Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b2372aeb5c33f7c49ad3133238b799ba9e60480b Author: Gagan Mac <gmac@codeaurora.org> Date: Mon Aug 20 19:24:32 2012 -0600 msm: msm_bus: Add support for 64-bit bandwidth requests With 8974, bandwidth requests are exceeding integer size. Update ab and ib to ensure values over 4Gbps can be requested. For 64-bit support, there are four changes in this patch: Changes in the bus driver structures and functions to update ab and ib values to uint64. Updates in client drivers to ensure that the bus APIs are called with the right types. Updates to the device-tree. Device-tree nodes don't provide a clean mechanism to read a combination of u32 and u64 variables within the same property name. So, the ab and ib values must be specified in kbps instead of bytes/sec from the device tree. The bus driver function will convert the ab and ib values read from device-tree to Mbps. Change the existing property names to make them consistent with the convention used by the new property name, which abides to the Device Tree convention. Change-Id: Id37407c349a9cea17f6621d3bef2401b856f7b7d CRs-Fixed: 408786 Signed-off-by: Gagan Mac <gmac@codeaurora.org> commit 327a968551e890838f471ce649748d03861465a3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Aug 23 17:08:25 2012 +0530 msm_fb: ADD AVTimer info to the vsync event for DTV interface MPQPlayer requires Avtimer time stamp when every frame is rendered. This change enables sending AVtimer info with every vsync for DTV interface. Change-Id: Ib36c9a152bf3454be984fed765ad268f9435933b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 523d93ac63dc5a0ae9b5c7d24278ca48fbb923d4 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 22:47:03 2012 +0200 msm_fb: mdss: Add EDP physical layer configuration support Add code to configure the enable/disable and PLL settings for the physical layer of EDP. Change-Id: I6e15e41fdd23cc5a4855a3addf85050ade802d8d Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 68b3fc5593916dc6d4b47d2434776c9dd91f77a2 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 21:47:59 2012 +0200 msm_fb: mdss: Add eDP controller driver support eDP controller is one of the output interfaces for MDSS. Add support for eDP host controller driver which runs in Video mode only and eDP related changes for msm_fb panel driver. Change-Id: I0a150f8d712f57bdfaee9051b2893e2910195567 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 4fc9350b124ded06f90c43410c2c0b512681c0db Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 09:03:18 2012 -0700 msm_fb: display: return fail if pipe still staged Pipe is not un-staged from mixer when it is unset. It expects a pan_display() to un-stage it out of mixer. Return fail at overlay_set() if pipe was still stage at mixer. CRs-fixed: 399193, 393979 Change-Id: I562f6e133bb239b30f4f53669dbf1cc5ddf80d02 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4aa5b44e20ba129a98fedff1cc6ea4a9495f0ebe Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use MDP_Y_CBCR_H2V2_VENUS as the output format for writeback For Wifi Display use case, the Venus variant of NV12 is required since the Venus core expects it in this format. Change-Id: I68ded4373212021486bc6b7b89514fdecf05d4da Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 636779a7ddbe69a6f8be39cba9755e352fce39b4 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Oct 12 19:06:16 2012 +0530 msm_fb: hdmi: Proper update of ACR CTRL Register While changing the audio sampling rate, the older data in the control register needs to cleaned before writing in new data to avoid mixed or wrong data writing. CRs-Fixed: 405772 Change-Id: I95d0807ea8cf544e4a0c8caed00de6cd60352efa Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 35c724bf61ef9432cd467152dfeab25e517b50a7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 10 11:51:20 2012 -0700 msm_fb: display: add dtv base layer swap Add dtv base layer swap between border fill pipe and rgb pipe to support hdmi as primary display. Change-Id: I127a301385d5d83e5d06507869132c6e124cc94f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0e53b6627814d52e3cf5604e0793f4780ec4a9c1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Oct 4 20:29:52 2012 +0530 msm_fb: display: Make sysfs read request interruptible Change blocking sysfs read request to be interruptible and protect vsync timestamp value to prevent corruption. Change-Id: I510d84134b0ab70d17729e8c53c91fa926035142 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 97104cc8bf4881f41dfd79e6bdc31383c5ccabfc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Oct 3 17:50:39 2012 -0700 msm_fb: display: extend mutex protection for mdp pan display When mdp commits a buffer to play, functions inside pan display, e.g. mdp4_overlay_mdp_perf_upd are based on the current state of play, so extending mutex to the scope of pan display to avoid race conditions. Change-Id: I2e55567fd21de3738be066a2dee298d8122f12a3 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5b567514a5cebae7b6fdabd0b94c29efa4aef18f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:50:16 2012 -0700 msm: mdss: fix rotator session not being closed correctly User space expects non-negative number as session id, update rotator mask to avoid making rotator session as negative. When rotator is closed, need to recalculate bus/mdp clock numbers. Change-Id: I6c0e3bfa5394fb64b78fb47be1f24462e320916d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6e923f52e81757c6fdb03fe4184f79be7b4068ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:30:03 2012 -0700 msm: mdss: update performance calculations to include border color Current clock and bus scaling calculations consider only source surface pipes to set clock rate and bus scaling factor, however since MDP also generates pixels for border color this area also needs to be considered for final clock and bus scaling factors for data paths that use layer mixer. Change-Id: I9463c01dfd0b7a301797bd036f563e15d5195dbd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 35143f7156a7f651f2cfcc511b2ebbb12b2ceb02 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Sep 13 10:43:15 2012 -0700 msm: mdss: move unstaging of overlay surfaces to display commit Perform cleanup of surfaces destroyed with overlay unset until next display update. This enables a smooth transition in case multiple surfaces are unset before next frame update. CRs-Fixed: 406645 CRs-Fixed: 406553 Change-Id: I843c7f11fc943d8351b7408116101ba20f25d116 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 70236f7a01bcb9278b99f2df7b8acd4d1cd323d2 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:12:14 2012 -0700 msm: mdss: remove display commit during overlay play All display commits happen with pan display in order to have a single sync point when using multiple pipes, and avoid blinks that can happen when updating surfaces out of sync. Exception for this case is writeback where commit is still needed, keep this implementation until this exception is corrected from user space applications. CRs-Fixed: 408105 Change-Id: Ib40c4872f43e6a939c45624677b2ab1f64a3b31e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 944b88e82e9baaaeb52a2ec38298ed2e48c33f1d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:06:21 2012 -0700 msm: mdss: implement commit ioctl for display commit Commit ioctl is used to update contents on display while avoiding console_lock done through framebuffer pan_display path, which causes additional delay on display pipeline leading to flickers on HDMI. Change-Id: Id3522d322ba08b110d540e10214cadfbbb0bcc25 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d74db5fcf24a223570137087aa5632593b315fcc Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 5 09:05:58 2012 -0700 msm_fb: display: wfd with vsync driven frame push To improve performance, hardware vsync event at mdp driver is passed to framework so that both composition and frame update are aligned at vsync event. This patch will upgrade wfd to incorporate vsync driven frame push in consistence with other interfaces. Change-Id: If088826ec387446301f1f6acc311d909edb04163 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f0d08071a4e97c9018b8e8def498e07720201da8 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 18 17:32:15 2012 -0700 msm_fb: display: add checking y direction for alpha drop Alpha is dropped when scaling with non repeat pixel method. Both x and y direction of scaling need to be cehcked for alpha dropped. Change-Id: Iba0df5a85011f179199c13ffdebac911e5c14c3c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6745082aec2b97f07dcfbc49ea7b8b79099f4d13 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Tue Sep 11 18:04:34 2012 +0530 msm_fb: Use background alpha for all destination alpha enable cases Use background alpha for modulation in all the cases where source alpha is not available. CRs-fixed: 366834 Change-Id: I300c04181ee3fa4f305a26a3e17e7eac2572564c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit bd556dc51ccf32a7ddc8d435d31f39e981815f8f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Sep 21 14:11:30 2012 -0700 msm_fb: display: check base layer pipe at irq handler There is a corner case when overlay and dmap interrupts are fired before base layer pipe is allocated. Therefore Check for base layer pipe before performing any operations. Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7d136bef71281855cd224ccc967e4e95286f5356 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 26 13:10:42 2012 -0700 msm_fb: display: add fput_light to frame buffer Frame buffer's (fb0) ref_count need to be balanced. overlay_play() increase fb0's ref_count (fget_light). This patch will decrease fb0's ref_count by calling fput_light after commit. Change-Id: I34ea738bf21d0858b7361ec8e289464a217a1231 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f08f2387cdc5a2d365c33bef1fe2a87b6c5911c3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 4 16:21:33 2012 -0700 msm: mdss: remove pan display no memory warning There are some framebuffer devices that don't allocate any memory such as HDMI or WFD, warning for no memory is not necessary and it just floods kernel log hence removing it. Change-Id: I8f9ba1cda1f55c741b99d462adf74531d73aaeee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a4c377fbf133bd53913d451b478c177c271ab365 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Sep 28 11:13:49 2012 -0700 msm_fb: display: remove background invert alpha option for alpha drop pipe When the blended background pipe has dropped alpha and it is going to be blended with foreground pipe on the next stage, MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is 0xFF, so we need to use this alpha value to show background, instead of its inverted value. Change-Id: I1fe0572f9bb54db6280bcc44117a21b8c0d8b07a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 19:31:33 2012 -0700 msm_fb: display: empty pending queue during suspend Overlay_play() adds a pipe into pending queue and pan_display() will commit those pipes to hardware and empty queue. This patch will make sure queue is empty at suspend so that no unexpected pipes will be commited to hardware by pan_display() at resume. Otherwise, iommu page fault may happen. Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a77eca6cee55531e81e21d83b474563f9c143e77 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 13 13:22:04 2012 -0700 msm_fb: display: add pipe commit ioctl currently, pan display serves as pipe commit. However it may spend long time pending on cosole_lock() which cause flickering on HDMI. Add pipe commit ioctl to allow commit from overlay in addition to pan_display. CRs-fixed: 391564 Change-Id: I163b5d96f727b70b4d5693e9a414b59339818998 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ee79b635fc78d5abe40e3918f2bf6f754f3516da Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 25 17:04:18 2012 -0700 msm: mdss: carve out memory for framebuffer Use carved out memory allocated exclusively for framebuffer instead of using up memory from ion pool. Change-Id: I4b248a21380a3ef737fe2fd8eed6de9747fe47c7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d7a09f0c134c61f3d3dd2239073c3363e4306858 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 2 16:48:16 2012 -0700 msm: mdss: remove play_cnt reset in overlay set play_cnt is used to manage currently displayed buffer, this value is incremental and should be initialized only once for new pipe creation, but overlay set can be called after pipe creation to change params. Remove reset of play_cnt to avoid reset on subsequent overlay set calls. Change-Id: Idef90a6123c4e1a9e8b1ab963bf78330cdd912bf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ac990ba5e32295c9efbffb56b7c659efa6cae6d0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 13:57:51 2012 -0700 msm: mdss: allow dynamic resolution change Modify initialization function to take changes in input paramaters including resolution and format instead of doing a one time initialization. Change-Id: I01c575fd1d957218296e658b3b4b8d72cd138614 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b4b75a59b665c0d1b3aa14a41fd81f754d4f093 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:25:22 2012 -0700 msm: mdss: use half of panel width when using dual pipe MDP layer mixer only supports up to 2048 width, if the panel resolution is greater than this dual mixer needs to be used. Setup each mixer width as half the panel width instead of allocating max width on left mixer and use left over for right mixer to have better load balancing. Change-Id: Ibc01591e2e6d5e5f98e81dfba766493abd9895a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6c6a597e45a2d7daafdfd2c63832cce638334d6f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 24 10:51:13 2012 -0700 msm_fb: display: remove extra dmap irq disable Both irq enable and disable need to be called symmetrically. Remove an extra dmap irq disable call. Change-Id: Ic51003c50431ebe46a9fc540163cda77a1c91797 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b453fc7adc6c02e0f23550c5703bf93f8f6bfea Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 28 15:22:37 2012 -0700 msm: mdss: disable framebuffer memory check when not allocated HDMI and WFD don't allocate any memory for framebuffer, in this case there is no need to check for available framebuffer memory. Change-Id: Id3fc6279e1b2a5d4b96d3b85e29ba6865a4dd38f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 105ef65f2db0be51711a5d3fc293064da0a38e2b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:26:05 2012 -0700 msm: mdss: fix height align for venus format Venus format expects luma height to be aligned to 32. Change-Id: I1ccd5ddb91d1067a68b576891ddf4d73360108ba Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c87b83203c2069c71a732e3164357b02649c12dd Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Sep 28 18:48:15 2012 -0700 msm_fb: mdss: Fix dsi controller reset sequence during dsi initialization Move the dsi_sw_reset from panel ON sequence to controller initialization function. Enable clock lanes and disable controller before doing reset. Change-Id: I570615a931214021360070cd1cfea4ed3b6812d5 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit ed1430f0336a587a63729d2b698f9e23de46c95d Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Sep 12 17:00:27 2012 -0700 msm_fb: HDMI: Remove HDCP Kernelconfig Remove the kernel config parameter for HDCP since enabling or disabling HDCP will now be controlled using a corresponding module parameter. Change-Id: Iae23b8fa66ca75d99423547e77f850f3c86615ee Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 16229f5a1ce7007eb44dc1d43482f85c03e07f57 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Sep 7 16:08:10 2012 -0700 msm_fb: HDMI: Driver changes to support HDCP module parameter This change removes the need to use HDCP feature flags in the HDMI driver and adds the necessary support to configure HDCP feature based on a module parameter. Change-Id: Ie0eacc5b447230927cfdedfcb979c22d60e81981 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d8d660a6011c903fef1d9c1a58ea578e6a58e1ee Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Sep 11 18:10:33 2012 -0700 msm_fb: HDMI: Add module parameter to disable HDCP This change adds a module parameter that can be used to disable HDCP at runtime by specifying hdmi_msm.hdcp=0 on the fastboot command line. Change-Id: Ifad5da9fcb86fb4ed663a5ef2bb14fe4dafd241e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 51d631dd2b8a301828b4780f6496a6fe5490e454 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Sep 18 20:34:16 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP3 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Change-Id: I22cfbd68c8bcbe4a47e94074393f1cbf79920c58 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d473df4fba1417b4d7d429849af2a4243869e55a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Sep 7 00:37:24 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP4 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Also, for smart panel, wait4vsync is removed. Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit a8d45ced76c79333af546ad63ae31972aa00b109 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 18:42:29 2012 -0700 msm: mdss: Enable hpd for HDMI Tx controller Enable hot-plug detect circuit of HDMI Tx controller to sense connect and disconnect events of HDMI cable. Change-Id: I4e5614d32f5c9885f23060d68ad5b6a72a045177 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4f56d21f84a2e2adea6e83b8c75501904feebf7c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 18 15:17:07 2012 -0700 msm: mdss: Fix EDID read failures in HDMI Tx controller DDC data channel is used to read HDMI sink's EDID information. Fix the request length for this read transactions to prevent EDID read failures. Change-Id: I74b2ce344cdd08721a78641a7553c85927a96831 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1e88b6e0ecdb4485d21e94ad3e87c1caabdcde37 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 15:54:25 2012 -0700 msm: mdss: HDMI Tx clock clean-up. Generalize and move HDMI Tx controller's clock access mechanism to mdss_io_util so that other mdss modules can reuse it. Also correct the name of iface clocks. Change-Id: If0ed2c4244a9a0fcdb819f63010555d968a0b036 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4e055b701f5600e391ed5d440b90fb1958924c49 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 14:10:48 2012 -0700 msm: mdss: Debug enhancement for mdss modules Move debug log macros to mdss_io_util so that all mdss modules can use the same mechanism. Change-Id: I960fc394c60b74d694a81ad636b7055a224a2c6f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 60a6b37db0caeb736291f0eccd99baa307d60a86 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 31 18:20:45 2012 -0700 msm: mdss: Provide generic io access mechanism to all mdss modules Generalize and move HDMI Tx controller's io access mechanism to mdss_io_util so that other mdss modules can reuse it. Change-Id: I097af956706dcbf2e9fa1f6b5983a550a462fed1 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e782ceab26e38590cd49a9bb273da1dbf1984ccd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Sep 28 11:49:26 2012 -0700 video: msm: Enable mdp clock for histogram and histLUT Enable the mdp clock for histogram and histogram LUT to ensure that the clock remains enabled when they are being accessed. Change-Id: Ic744f2ee96b64442f23ba19aa1c38552c0dad83a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 61832135cad75ef082a905fedb30d835c85611b5 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 13 17:41:46 2012 +0530 msm_fb: Return pan_display call on Vsync interrupt Till now, the pan_display call returns on DMA_P_DONE interrupt. For command mode panels, the DMA transfer starts only after the DMA engine receives a TE signal from the panel. Hence, return pan_display ioctl on vsync interrupt to improve performance. We still wait if the previous DMA transfer is not finished at the beginning of next pan_display. Change-Id: Ie92bc000a5842aa02a77a08b6bafdc8472bbebbd Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit f6044334ee63fe9553f5cce8aa65c172c88e1175 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Sep 20 16:57:51 2012 +0530 msm_fb: configure LM1 and LM2 CSC coefficients with RGB2YUV for WFD 1) Initialise the LM1 and LM2 coefficients with RGB2YUV as WFD expects these coefficients to be programmed. 2) LM2 is available from MDP ver 4.3, fix conditions accordingly Change-Id: Ifad2be0fb5c3c96fa1515e114097a87d250fd62a Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit ce328861aa1f4fa489e9abfc9d1e02b13af2ba47 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 25 18:52:00 2012 -0700 video: msm_fb: Ensure backlight is scaled atomically Ensure that when backlight scaling ratio or backlight level is being changed that the operation execute atomically. This prevents a backlight level change from being overwritten when it interrupts a backlight scale update. CRs-Fixed: 404017 Change-Id: I708513cfcec558c5d65f21f189dd52331fdf0f4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0f523bdb25b2af4f09e79eb58d3daee3775851d2 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 11:14:03 2012 -0400 msm: display: pp: histogram collection for mdss MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support Only read the histogram data when there is a new display commit Only generate the next histogram collection when there is a display commit Cache the histogram data in order to respond quickly Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit bf5fb4c17c220a91160e48a2ca65e709c0a35511 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Aug 19 14:41:01 2012 -0400 msm: display: pp: gamut mapping support Support gamut mapping via pp ioctl with logical display id. Allow changing processing order with pcc. Change-Id: Ia37afbe40b73c08fd8760bae84307889280368ce Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 7fb85777173a3048765a52fc1ec4a3178c1fb2a9 Author: Ken Zhang <kenz@codeaurora.org> Date: Sat Aug 18 14:51:33 2012 -0400 msm: display: pp: backend dithering support Dithering configuration from PP ioctl with logical display id for mdss. Change-Id: I4c8409b253dc1ab5625f342f45f61246d538691b Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit b9498c688a4a20d707233dda585a96b8e3681666 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 17 14:20:25 2012 -0400 msm: display: pp: enhance hist lut support Support histogram enhancement lut control for logical display for mdss. Change-Id: I915e1f1ca0ba1c53b8ce5b627a8d10cc15ebbf76 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 16e43d6c628bbfb14ba3a7e5024f60b9d216f9f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 22 17:14:19 2012 -0400 msm: display: postprocessing: argc lut support Area reduction gamma correction support for mdss. Support logical display id via PP ioctl for argc setting Change-Id: I8d1dedc016809f73de0605ea68e6a1bfda580648 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 824758e1c1d780014b4d404be9d7f85cb414fb46 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 15 11:02:21 2012 -0400 msm: display postprocessing:igc lut support Inverse gammam correction display support for 8974 Use logical display id via PP ioctl Change-Id: I9f1bec84a401f079690ecfd622a2e5f0f8307ff6 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit ea6a09511a1d812f3b0f836dac9193900ccb9a3d Author: Ken Zhang <kenz@codeaurora.org> Date: Tue Aug 14 15:11:39 2012 -0400 msm: display: pcc configuration Enable 8974 polynomial color correction support Cache the setting via logical display id, config hardware in the next display commit Change-Id: I11e3d2036c2ab8de881d394d53c6098932f810b5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit ad6db3d66cb2f826f4f223898012d7d7aa6ca645 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Sep 26 17:57:34 2012 -0700 msm_fb: mdss: Remove spinlocks for set_rate and clk_enable APIs The clk_set_rate APIs should not be called in atomic context. clk_enable APIs doesn't need to be in atomic context. Add code to remove spinlocks for these clock APIs. Change-Id: If5e543135bda681ee8ddae35ab91288f535a9e9a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit aaacec6420069ba21992ddd39db991b3717d6436 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Sep 20 16:59:10 2012 -0700 msm_fb: Fix display corruption with continuous splash screen feature During boot up, we observe random lines on screen between the splash_screen image and the android animation. MDP clocks were turned off during bootup. Fix this issue by enabling the clocks when this feature is enabled. Add check to see that the video mode engine is not busy before turning off the dsi controller to avoid any underruns. CRs-Fixed: 399634 Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b05e8b1ec779ab5cc94f0847a99baa4d97eb4e10 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 13:16:05 2012 -0700 msm_fb: display: turn vsync irq off at suspend Turn off vsycn irq at suspend to prevent vsync irq firing before vsycn enabled ioctl called at resume. Change-Id: I2428cdeb5cf7008e50f6d8dabfad52416db2fff7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 911b4b702a63fbd241863966cad45909e40e4665 Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed Sep 12 14:42:50 2012 -0700 ion: change ion kernel map function to not take flags argument Buffer flags are going to be specified at allocation time rather than map time. This removes the flags argument from the ion kernel map function. Change-Id: I91589ca7b1ab142bb5ac8e6b0f4c06fa1305f23a Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 7d72bad55a0e03392d81eee77a9a8c9df6b73a9a Author: Hanumant Singh <hanumant@codeaurora.org> Date: Wed Aug 29 18:39:44 2012 -0700 ion: Port heap mask change to ion Heap mask field passes as argument at allocation time to specify ion heap. Change-Id: I8881dfc491dc0f8f70581ad97b35756a6a33dd6d Signed-off-by: Hanumant Singh <hanumant@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 5e0fcdbf8b22bc9637413de9cd0592c159dd4e8f Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Sep 12 11:10:26 2012 +0530 msm_fb: Make Vsync IOCTL during disable sequence as NO WAIT Change to make the vsync IOCTL no wait during the disable sequence. This is to increase the performance. Handle the synchronization of vsync interrupt using state variables in drivers from now. Change-Id: Ia5ec14493f233a95f21d01ea627200a6c278239f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 57e2bed7fdf998d9dcb1a3bea98f43d75c7cf3a9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Sep 24 11:39:29 2012 +0530 msm_fb: display: Add support for vsync driven composition on 7x30 This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time for 7x30. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: I2acb83f871f16c2278dc10cb958580a2826efe70 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3545573720822ce97ec37586f10fdf74a6d4f090 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Sep 24 22:07:47 2012 +0530 msm_fb : display : Block RGB downscale in MDP 4.0 and 4.1 Downscale is not allowed on RGB pipes in MDP 4.0 and 4.1. Hence, fail the OVERLAY_SET ioctl for such configurations. Change-Id: Ia18de77e78b84ec5f10a03fe9b48ef0821222e84 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit b54b6d4974f0a7c42e66502fca3644fe3ae406be Author: Ken Zhang <kenz@codeaurora.org> Date: Mon Aug 13 14:49:52 2012 -0400 msm: display: csc configuration support via overlay Implement overlay pp csc configuration for mdss Reset the play cnt when MSMFB_OVERLAY_SET is called Change-Id: Ice2e3700a275c5375ee4939bd3484b7ee5def898 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 08065c0bd558140a26622f9bb15c8649a8333723 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 15:48:31 2012 -0700 msm: mdss: implement early suspend api Use early suspend API for suspend/resume to allow display more room to turn panel off/on before system goes to suspend mode. Change-Id: I70b8b1055c30b940eda49ebad0db341259e903b4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e977b389d047b630be6178b6f2588dc339498b2d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 16:28:16 2012 -0700 msm: mdss: cleanup suspend/resume logic Remove references to global variable by using driver data to access mdss global data. Change-Id: Icaedf0fffe22b6d375df8f87f555b415101c6628 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1121a7fab5548575f1a30388c5b1b0f5b773eb42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 17 18:52:56 2012 -0700 msm: mdss: fix vsync ctrl logic during suspend/resume Sometimes vsync ctrl ioctl can happen before panel is on after resume, in this case driver needs to remember state of vsync ctrl and apply after resume. Change-Id: Ia583bd9e3a858c5972623eae0512fa27da8452e1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 01b0d13ad1071385bb938ee69d268f799b7de6f5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:26:35 2012 -0700 msm: mdss: fix mdp suspend/resume sequence Free overlays used before panel off sequence to ensure source surface pipes are properly detached from layer mixer. Change-Id: I712bfc1961607e09dcb976e4888db1885de09871 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4a1fb9ce546b946a184601cbeb3a278dd351a0df Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:38:36 2012 -0700 msm_fb: mdss: Fix suspend/resume for panel driver Avoid disabling video mode while sending OFF commands. Add delay between the display reset line toggle mechanism and GPIO display enable API for proper reset of the panel. Modify the PHY regulator control configuration sequence for proper reset of the physical layer. Change-Id: I2c890d52d773faab6020267121ea4557a59bd108 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 37e723cfad97be59d5a28e59220f9dcafe24ce32 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Sep 5 15:43:02 2012 -0700 msm_fb: display: wake up system around vsync To avoid frame drops due to power collapse, wake up cpu right before vsync. Change-Id: I63385eb329ae5e74cbac5256823fd3a213e0a0e1 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 42f4dae926438b40ac3ba1a48f54c1fad31dc125 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 26 22:31:06 2012 +0530 msm_fb: Reduce the display wake up time for NT35510 panel Reduce the display wake up time during resume by reducing the sleep values of the DCS commands during the panel initialization sequence for NT35510 panel. CRs-fixed: 392321 Change-Id: I6b55e48582a97adc451105802f5b2ca826767954 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 7e73b56cb67779bc700938acbb226dd99d361882 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 11:26:57 2012 -0700 msm_fb: display: free base layer pipe at adb stop Base layer pipe need to be freed at adb stop so that same pipe can be allocated at adb start. CRs-fixed: 390644 Change-Id: I948bb27687cfe1c96cc3b071b7bb9bb84b2c52c6 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e5f3b4ff8a4a0d980e02fa38c2b70fec7095e79 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Sep 10 09:40:44 2012 -0700 video: msm: Ensure idle state before enabling histogram Disable interrupt, set state flags to false, cancel histogram collection, and clear the workqueue before attempting to enable the histogram. This guarantees that this is the only configuration of the histogram running. Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 2dd5234c094157bf77781b8646ac9ad114f819b0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 6 12:03:29 2012 -0700 video: msm: Defer histogram reset to workqueue Currently, when an underrun occurs, a reset request is sent to the histogram hardware. This has been observed to cause a hang in the histogram collection cycle. The fix for this hang is to instead rely on the existing checks for histogram validity in the histgram read worker. When the underrun occurs, the histogram is invalidated, which in turn causes the histogram read worker to reset the histogram collection when it attempts to read its contents. Change-Id: I66d33ddedef76fdcb6c4a3d8095c0e8ca695e33d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 9218ac41cc42b55de227d7b967e15395feff89ca Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Sep 17 15:33:10 2012 -0700 msm_fb: MHL: add fwd declarations If MHL feature is enabled from kernel config compiler throws errors. This is due to the re-ordering of the function definition in some of the earlier patches. Need forward declarations of a few functions to fix compilation issues. Change-Id: I486b3d6efc33f6557b5ef301bd7037867bb8c562 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1026832c51cbadeea9a717fa20fb42b6a7c5661f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Aug 29 19:22:57 2012 -0700 video: msm: Dynamically toggle histogram interrupt Make histogram enable/disable functions also enable/disable the histogram "interrupt enabled" bit on the MDP enabled interrupts register. CRs-Fixed: 398556 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Change-Id: I56f811e88cf3fd44ae0a2df8a6e5de32ba9a0c1c commit bc79d49dacc9e416c7f9ea98fcff21eec3050fcc Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Fri Sep 14 14:44:30 2012 -0700 msm: mdss: Return correct error value Return a proper value rather than 0 everytime. Change-Id: I0065a420c65e4800d114be4698618d66de89d105 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 8914c1ca05e90d80432c104a509eab129038de1c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 12 17:32:21 2012 -0700 msm: mdss: increase bus scaling factor to improve performance Fix performance issues seen with different use cases such as HDMI and MDP composition by increasing bus scaling factor used. CRs-Fixed: 398503 Change-Id: I2391f81c0cba1fa7f5849ce55ec89762765d7575 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ad3200279e62eff01fd1bb9136cc9c0d11e10380 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 23 18:26:09 2012 -0700 msm: display: Add DSI clock control for MDP GDHS power collapse Enable DSI clock and regulator before enabling/disabling power collapse for MDP GDHS. Change-Id: I9effb5b4e9ca8033c51085260c8fb9f32c422dd3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Thu Sep 6 10:33:12 2012 -0700 msm: display: include msm-specific ion header All msm_ion clients need to use <linux/msm_ion.h> instead of <linux/ion.h> Change-Id: Id079277f1f5688f08c8dec7f20308315ab46a081 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit d635cad054f3860f8ca13a8cf79f3e46f8892ce6 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 3 15:52:06 2012 +0530 msm_fb: display: Copy splash image to kernel memory The bootloader memory from which the splashscreen is shown gets reclaimed before frame update happens from framework. Hence, copy the splash image to a local buffer as soon as display is initialized. This will ensure proper continuous splashscreen functionality. CRs-Fixed: 378721 Change-Id: I55a7b97eeced56d2f108d34998d58966610c4305 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 77ce0197185ba16c4cf6c2745065f339aa32ef46 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 10 11:27:19 2012 -0400 mdss: display: postprocessing: picture adjustment Support picture adjustment(hue, sat) for 8974 Use logical block id as input. Apply configuration at next display commit. Change-Id: I0e35e50aecdd346ec91373d0c304e21185f28502 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit edd57ca52bd12fa42865557bc5cfcc70cbbb8e6f Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Sep 11 15:29:10 2012 -0700 msm_fb: display: Update mdp clocks based on perf patch MDP clock was not getting updated to the correct values causing underrun issues. Change-Id: I4902ede1a8dda7408384261ca352e1ca1057a69c Crs-Fixed: 395054, 395166 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7c31ee7933fff437acfaa69cf443c81638a495de Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 17:20:36 2012 -0700 msm_fb: display: add wait after overlay kickoff MDP writeback overlay kick off needs to be a blocking call to avoid WFD tearing issues. Change-Id: I03ce16b1e11c458bc8602880f22f1aed536a2e5a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a61ad91ac33d5ec756a39201ed4350f4af55f701 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 30 16:21:32 2012 -0700 msm_fb: display: add blt condition check at video/lcdc off Blt mode may be enabled during system suspend. Need to make sure blt overlay done before turn off video/lcdc timig generator. Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30e707acaba6cac235c86b84f9735ae1aa94b5cb Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Sep 6 16:48:04 2012 -0700 msm: mdss: Move HDMI Tx controller's regulator get to probe Move HDMI Tx controller's regulator get to probe function in order to support deferred probe in case regulator in interest is not available or not successfully probed before HDMI Tx driver. Change-Id: If0a5cf97a86c39fcdf649997c18121cc500f08a8 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Aug 22 15:01:15 2012 +0530 msm_fb: display: Program source address registers correctly Scale filter FIR uses the adjacent pixels as part of the processing. Source address registers should be program such that they point to the first valid pixel so that non-ROI pixels are ignored. This is done by making source x,y offsets to zero and adding the computed offset to source address. CRs-Fixed: 380020 Change-Id: I998fdd46f39dc67f32c422ec209da59d1add2e95 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit f9bc16bf6dcb8beb7d5d6405ee5dc767e6decdff Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Aug 21 15:15:13 2012 +0530 msm_fb : Add option to enable/disable mixer commit Adds support to enable or disable mixer commit during pipe staging operations. Depending on the current activity, this selection can be made. Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 8c13d2615b1c608f941137166efb649353cc0bdb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 25 17:02:52 2012 +0530 msm_fb: Update backlight level on resume after first pan display Use shared workqueue to delay the update of backlight after a first valid frame is displayed on the panel. This avoids any transients being displayed during resume. CRs-fixed: 361002 Change-Id: Ia2c2e39aae62e9ddfebe3a26fb4dbc969d0892c2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c3c52ddda318fcf7e15bd0674c2ba1903fbfa49f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:32:45 2012 -0700 msm_fb: mdss: DSI driver code clean-up Remove mmss_cc base variable. This is no more needed. Create new controller platform data. Move the needed variables as part of the controller pdata structure. Change-Id: Ic5c72911dbfe889e1f8ff6992d438b6631796507 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 00baebf181e4dc29d128a2fd16422333b81a8e43 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: display: Enable IOMMU for MDSS driver Implement all calls to iommu driver from MDSS driver to map all buffers to virtual address space instead of using physical addresses. Change-Id: Ia194bf53dd881e36c702bbe4c024b652ed34df13 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2fa3b134d43a6f9e47542fd25d288ed07205fa66 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 16:02:25 2012 -0700 msm: mdss: expose panel frame rate to user space Some framebuffer clients expect panel frame rate within reserved[4] member of framebuffer info. Change-Id: Ie74950366372af7211ef1c743f26657e89cb7283 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5cf85c06bed6b7bb416093555d347d9eb221f58e Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 19:32:52 2012 -0700 msm: display: fb blend setting via MSMFB_METADATA_SET ioctl MSMFB_METADATA_SET ioctl is added for the fb user to pass in additional infomation rather than using reserved fields. User can set pre-multiplied alpha for the frame buffer via this ioctl, overlay blend setting will take this into account. Change-Id: Ic2f6236d84691fb03174ec479874c6928489ea30 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit cbd2a940d95056c51f6cef0a1641a716c8ed292e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 29 10:46:31 2012 -0700 msm_fb: display: free iommu buffers for WFD Iommu buffers from overlay destinated for WFD (mixer2) are not freed after kickoff. This patch will free those iommu buffers. CRs-fixed: 394270 Change-Id: I6b58b5d1831e7c59c5107641b786730511803557 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b6843a3a56e60e73305c66369f8ad806353e22d Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Wed Aug 1 15:57:52 2012 -0700 msm_fb: display: Add timeout for waiting on update Content Adaptive BackLight userspace algo waits on UPDATE_NOTIFY to get the screen updates. When turning off CABL, this blocking ioctl causes the CABL threads to wait until next screen update, which may take indefinite time. Add timeout value to the wait_for_completion call, to make ioctl call blocking for at most timeout value. CRs-Fixed: 384026 Change-Id: I6715a36020c24ddd09823bd54d4321900429a6b9 Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org> commit f947731692cb9480b53edfb6008a9ab2965fda2a Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Aug 31 03:08:52 2012 -0700 msm-fb: display: double the lvds pixel clock for dual lvds Lower MDP clock causing the underrun issues on dtv boards. To arrive at correct mdp clock pixel clock needs to be doubled for LVDS DUAL lane panel case Change-Id: I202f0d16896f88090a9f8407e067a31cc47eb4ea Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 877932c6538689854e2b6a75ce24c8782fbe1fe0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Sep 7 16:22:31 2012 +0530 msm_fb: Return ioctl on vsync interrupt disable Before the vsync interrupt gets disabled, initialize the completion structure and then disable the interrupt. This enables the ioctl to return successfully in all the cases. Change-Id: I6a7c233f818a773d00497502213d1ecf8fe9dc24 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c5ac568e5050209ec2d2eb63995357cabfd43525 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 19:12:40 2012 +0530 msm_fb: Enable MIPI video mode interface on 8x25 EVB/SKU5 Change to enable MIPI video mode on EVB/SKU5. Initialize the need_wait variable to zero to make sure that during suspend, we wait for MIPI_CMD_DONE interrupt only when the command mode engine is busy. Change-Id: I61a9132a9a9343d136ddc70ce76d8682f9ecf7bc Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit eb868344503ed72b7a7a88913ab16250f934d9a2 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:17:46 2012 -0700 msm: mdss: Add EDID support for HDMI Tx driver Extended Display Identification Data, EDID, provides support to read HDMI sink's various capabilities like resolutions supported, HDCP compliance status, Audio format supported etc. Add support for this in HDMI Tx driver. Change-Id: Id9367a2f64557c385082bbd528afc24b54b98514 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e0a71b9705f4301c39e029f92c7e4c0ca3610f17 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:25:10 2012 -0700 msm: mdss: Add DDC support for HDMI Tx driver Display Data Channel, DDC, is responsible for transmitting EDID and HDCP information between HDMI sink and HDMI Tx controller. Add support for this in HDMI Tx driver. Change-Id: I58d10c61277d36425d89a2270f0ad0495ffd3a1f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 8bb5150587d79db7f60a5336f267666a7bf56bfd Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:14:17 2012 -0700 msm: mdss: Add power on/off support for HDMI TX driver Add support for HDMI panel power on and power off. Open and close of fb device associated with HDMI panel results in HDMI Tx's power on and power off respectively. Change-Id: I9becdffefe681ce104d631e798d196e23dae4995 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0b4ce9984ebbe740103568da1cc2db0d7648c4d9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:03:00 2012 -0700 msm: mdss: Add Hot Plug Detect support in HDMI TX driver Hot-plug-detect (HPD) circuitry is responsible for notifying HDMI sink's connect and disconnect events. Add support for this in HDMI Tx driver. Change-Id: I40fdc64007bffe063ce125ce2e819b06a49d0eb5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit d49fe89aa7eb042947a64f1d5b5f12f54d2c033b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 13:31:29 2012 -0700 msm_fb: display: fix division-by-zero bug Panel v_back_porch could be zero for virtual panels, so the check for zero is added to fix the bug. Change-Id: I6a29f3d8d771092bca2374cc9a1c11dd77ad569e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 108090e77d90ff15da5ef94dd72b7aa6f18b5e94 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 12:38:56 2012 +0530 msm_fb: Change refx100 value for NT35510 panel in command mode Change the refx100 value of NT35510 panel in command mode to bringup PVT command mode panel. Change-Id: I3e9a303a4f203bd7f2ca88f6cd2fe0b1134f8d65 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d6770da3eb24a8d617145526a7f04398bf44b328 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 8 19:35:57 2012 -0700 msm_fb: display: add support of mdp clocks controlled by vsync Mdp related clocks are controlled through vsync enable/disable ioctl from userspace frame work. Crs-fixed: 384482 Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ffe9cf9b1f49bcd8b140cef21c4655d1b69bb1f9 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 15 18:00:05 2012 -0700 msm_fb: display: add wait for overlay0 done Dcs command mode BLT involves both overlay0 done interrupt and dmap done interrupt. A transaction is start at kickoff and end with done interrupt. At some corner cases both overlay0 and dmap transaction need to be completed before kickoff of new transaction. Change-Id: I5a3cc6e8255acf2c61fc627d35f990182d226f63 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ac37f42a6428b4a1a8bc964ea17902ea41772ba4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: improve mdp buffers management Currently buffers are unmapped as soon as it's queued to MDP, however the buffer still belongs to MDP until a new buffer is pushed. Change current buffer managment to track of buffers currently being displayed and properly unmap buffers after a new buffer is received. Change-Id: I6932191fc787f6f5b673edfb690ce1317e283587 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f281368edca05e3171631b17c5767179bd0a77fc Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Aug 27 20:28:38 2012 -0700 msm_fb: MHL: Fix premature register access Until the information about the MHL feature through boot param percolates to the driver via probe we should refrain from accessing the registers or requesting irq. The init and probe functions are cleaned up with all the real initialization such as power, gpio and chip specific settings moving to probe functionality only if mhl is enabled from boot param. Change-Id: I68c0a2848493a7478f3046e439c42f8fb131f000 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e79dde6faab507c51994a8588bebd03dfc5fb57a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 24 16:23:06 2012 +0530 msm_fb: display: Fix blend configuration for MDP4.1 MDP4.1 blend operation registers are not double buffered and take effect as soon as they are configured. Configuring these registers at any place other than between dma and vsync produce flickers as new blend values would get applied to previous mixer configurations. Configure blend operation registers just after dma is over, before vsync. Change-Id: I377c11222f7a0cd77e98e90edec6e2e1dc0c17ca Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit e9d4bc826ca849b873f9e91bda68004aa7d78b25 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 22 10:36:46 2012 -0700 msm_fb: display: add mdp clk rate calculation for low vbp For the panels that have low v_back_porch, if h/w FIR scaling is used, during vbp time, mdp clk should be fast enough to output a line from 4 input lines. MDP rate equation for very small scaling, e.g. 1 or 2 pixels' upscaling or downscaling cannot cover this case, where underruns are seen on those panels. Change-Id: I4f35f98c2c1bc4ef04dfee193427bd3ff674945d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5d3e219fd4e44d67fb122b99745e5e4d4637257e Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Aug 24 17:43:31 2012 +0530 msm_fb: Keep LCDC timing generator enabled during boot up Keep the LCDC timing generator enabled during boot up on MDP 3.03 targets if continuous splash screen feature is enabled. Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5dcea9b4522d3bdc1a0fe38406881b264ce074b8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Aug 28 15:28:12 2012 -0700 msm_fb: display: fix the underrun issue when playing interlaced videos Interlaced videos require higher mdp clk rate and the current code sets mdp clk to max and return. However mdp clk calculation may still give a result higher than max mdp clk, for this case the result is kept and used later to enable blt mode to avoid underrun. Change-Id: I185d0d15e5b79e94561e790e41713cdb405f8bf4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit df6b645836bafcca027bd0820a477e86cf767823 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jul 30 20:12:34 2012 +0530 msm_fb: hdmi: Soft debouncing logic improvements Currently, HPD(Hot Plug Detection, a module used for detecting HDMI cable connection) soft debouncing logic implements around 1 sec mechanism to stabilize HPD event detection. In case of fast HPD connect/disconnect, it is missing a real HPD event. This change implements a new debouncing logic in driver which will make sure the first real HPD event is correctly processed and at the end of debouncing processing, if there is a change in HPD state, the changed state is also processed. This way we always process the change of HPD states. CRs-Fixed: 384513 Change-Id: I02d9814e4a55b7eec11a8e0d134c9ed9b5747422 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 26d04f92047ce213301596f167d84fbc05019f7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Sun Aug 26 00:57:04 2012 -0700 msm: mdss: Correct HDMI interface polarity for different resolutions. For HDMI, hsync and vsync polarity for resolution height greater than or equal to 720 lines is active high. And for resolution height less than 720 lines is active low. Program the these settings correctly for mdp's hdmi interface. Change-Id: I1a8889662f55676c13dfa8b7172bf7bcf7351cf5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c678e139570f7c1c4560c19f284926b6149e7bbf Author: Mayank Chopra <makchopra@codeaurora.org> Date: Sat Mar 3 06:51:20 2012 +0530 msm_fb: display: Add pseudo-planar 422 H1V2 support in the MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation. Add changes to support MDP_Y_CRCB_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: I8083bf44f9e2addf9e8732268147c1c3f6c0e2af Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 3c34bf24b6ba56d4a2633043d8be0c84d0f449f8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Aug 25 18:07:27 2012 +0530 msm_fb: Handle vsync interrupt properly on MDP 3.03 targets Handle enabling/disabling the vsync interrupt and mdp clock enabling/disabling in a better way on MDP 3.03 targets. This will avoid target crashes due to unclocked register access. CRs-fixed: 388751 Change-Id: I5c4a409772464ce7d06869374dcba5ad7e335955 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 330c0bf5f090f05395f0ae64994a6273853aa9e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 14:15:33 2012 -0700 msm: mdss: add color format for venus core Venus output format expects luma and chroma components to be aligned to 32 bytes, add new color format to support this type of input. Change-Id: I1fc9a61a0c8cfa8244460105fdab02d019d31556 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 248948310712bf710ba097a1d1ef8c840f17169f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 19:34:43 2012 -0700 msm: mdss: implement vsync ctrl and events Allow users to enable vsync events to be sent as uevents to userspace applications. This allows applications to listen for and align composition to hardware vsync. Change-Id: Ice480659f8c2adda3b5fe3f2d5bcfb9bf779933c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7e1ec9ab4a865e57372d3536991770f1773af6fb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 24 15:53:35 2012 -0700 msm: mdss: request bus bandwidth before panel on Panel on sequence requires access to bus, make sure bus clock is enabled before panel on by requesting bandwidth for panel commands. Change-Id: I2f92e81b20dba7875a8b1160d14e8fa1895c8f15 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c40f9f9bc1e83ce521759f03b6fd01d9699cd39f Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Aug 13 17:33:26 2012 +0530 msm_fb: Retain CSC values across suspend/resume sequence CSC values pertaining to various H/W blocks are stored in a global structure and will be re-applied during resume sequence. CRs-Fixed: 376159 Change-Id: Ieb151185efd106041e28feedf4fa271ae4ba2666 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 9ed0ef8c7d126938c453aa52c7b69ac869613cc6 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:12:03 2012 -0700 msm: mdss: Add support for HDMI Tx driver This patch adds the HDMI Tx driver in mdss domain. It uses device tree framework to get the platform data and then registers this device as dtv panel to mdss frame buffer domain. Change-Id: I55534919bacea5b044c1da5d44dda8db496e1528 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 907b7e097f61fb5dfeacd23dfddb75b92737b1b2 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Aug 8 18:47:12 2012 -0700 msm_fb: MHL: MSC cmd schedule to prevent overload MSC commands to be sent over the CBUS line need to be scheduled appropriately from the ISR. Reduce delay in any processing within the ISR. Schedule each command over a queue and handle them with a worker thread. Change-Id: I6cbde8ce9e4f8c69b7f0a40bcf12c5d3930d0b8b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f7110b8272c8b46c732f0cb9c9290ca9e7f688c3 Author: Manoj Rao <manojraj@codeaurora.org> Date: Sun Jul 29 22:29:02 2012 -0700 msm_fb: MHL: MSC, RCP/RAP feature implementation MHL implementation of handling CBUS interrupts to enable and handle MSC translation control packets. This change also includes implementation of RCP/RAP protocols with place holders in MHL driver. Change-Id: Icfc31ee1cf71a57cb9b3733d068ea4478b6c4e90 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 83fba4a6a627923fb358fd445a96df5cf9eacbe6 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 16 17:02:02 2012 -0700 msm_fb: display: add mutex on overlay_play to fix iommu page fault An iommu page fault may heppen When a pipe_commit is executed in between of frame dropped and pipe_queue during overlay play. An mutex is necessary to mutual exclusive between pipe_commit and overlay_play. Change-Id: I736e821c6c648a6ebd435303a1906a40e9b75791 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 79e294bf767b12470d08b4300b286403cb40aaa9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 23 19:26:56 2012 -0700 msm: mdss: fix hang when down scaling video to more than half its size When down scaling video more than twice, PCMN filter scaling should be enabled for all components to avoid MDP errors which lead to hang or underrun on screen. Change-Id: I237bc3a16e4916c9270382f55ecae21b46743a5b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e5612f210482d39d41966ebe003bc924f079db2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Aug 27 11:07:32 2012 +0530 msm_fb: hdmi: Correct checksum value This change writes the checksum value to registers after doing all the calculations so that the correct checksum value is transmitted. CRs-Fixed: 388272 Change-Id: Ia0543e458d5a11b148bd29e0d57ae355a051b2a9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bef3d659b9f7538c4a208fe4b29f93d1a9795f76 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Aug 12 09:17:08 2012 -0700 msm_fb: display: alloc/free writeback buffer done at do_blt() To avoid double freeing writeback at end of blt mode, let both alloc and free writeback buffer done at do_blt(). Change-Id: Ida5d24589c19be8f6f655eca6add00badca356b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 580e37bbcb2334315cb9535cd4d1e30147f1142f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Aug 2 17:38:12 2012 -0700 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item HDCP authentication should be kicked off as a scheduled work item so as to ensure that MDP is already configured and frames are being transmitted over the HDMI channel prior to the start of the HDCP authentication procedure. Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 73c7b2f7e9b25a3173aa00a5ea3d9d73484a5cf4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Aug 20 14:49:28 2012 -0700 msm_fb: HDMI: Driver changes to support MHL boot param Add necessary driver changes to support enabling MHL using a boot parameter. The MHL driver will now only be used if it is enabled using the boot parameter. If enabled, the default video resolution and available EDID modes will be set accordingly. Change-Id: I9c07a4bdd07ce1d9120296efb143e987390fa0a2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ea0dcd3f4ad4fd3142bf081795c17d05c42957a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 20 22:21:50 2012 -0700 msm: mdss: refactor overlay parameters validation Some checks done on parameters don't apply for rotation only mode where rotation is not limited by the bounds of panel resolution. Update overlay checks to perform correct validation depending on request type. Change-Id: Ic0cf9863231300f7190dd118b78fa753f77f217f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d2c48e228631fefef2e5a2d9406447358d910f9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 10 22:53:40 2012 -0700 msm: mdss: Add support to make use of interrupt data pointer in an isr Add support to make use of interrupt data pointer during an isr such that mdss panel devices retrieve and use their private data to service an interrupt rather than using global variables. Change-Id: I51a6b1c2814a23b3297556e914ce9601ef266533 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit f502022c101dc1c6d6af35d112be76a88c874a3f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jul 6 18:20:25 2012 -0700 msm: mdss: fix null dereference when using hardware cursor Null dereference kernel panic is seen when using hardware cursor because buffer for cursor is not allocated before using hardware cursor API. Allocate buffer once when API is first called to ensure buffer is available to hold cursor image. Change-Id: I2250c4dd93e54fa4e7122c2465fbaf1deef0fa1e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 15177f038fc05e5de18c437fa8dce63327b42d17 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Aug 14 09:16:37 2012 -0700 msm_fb: display: fix mdp crash during overlay unset Check real_pipe address before refer to it. Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9bfdbf0473204b0267dc86ac4b8cc351194c3ee2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:31:30 2012 -0700 msm_fb: mdss: Add DSI physical layer settings Add support for dsi clocks. Add support for DSI PLL configurations. Add strength, regulator and control settings for the DSI physical layer. Change-Id: I04a0eec869e40b4813cf5187e8eeef63ae2f5a1f Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68b9675c9c5d889e3fcc550fa39fd23ea960ceb0 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:23:11 2012 -0700 msm_fb: mdss: Add support for Backlight control and panel gpios Add code to support the WLED client interface to control backlight levels using led_trigger mechanism. Add support for msm gpio that maps to the lcd_enable line for the panel. Add support for pmic gpio that is mapped to the display reset line. Change-Id: Ie89692f1c0a38d7878271d4a91122d61fbba8c1b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 90e71d1da087b5690eee35e5e88d8faa689c5f8e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 22:57:11 2012 -0700 msm_fb: mdss: Add support for DSI specific regulators Add ldo2, ldo12 and ldo22 regulator support in dsi driver. Change-Id: Ia8e9907e87a293588688e7a47c74fecf155382af Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit d7784e051a508a667a13d431b7d834725cef0379 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Aug 21 19:16:27 2012 -0700 msm_fb: display: Removing clk_set_rate in atomic context clk_set_rate was getting called in an atomic context. This change is needed to comply with Phase 3 clock API's. Change-Id: If7fa9d624b07789803177da55e6c84c3686a2bde Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9cbd41158a2aabc9bc675fd8473bc1ed64251e82 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:29:51 2012 -0700 msm_fb: display: add dcs command list for dsi command mode DSI dcs commands and mdp pixel stream share same dsi link. Add dcs command list to serialize sending dcs command and mdp pixel stream to avoid contention which may cause dsi controller to stall. Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 076901a58037d533840ce6b59c33796a96c2d56f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 10 14:31:37 2012 -0700 msm_fb: display: fix page fault during supend/resume There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d1fff85a0074e6caa8e6136f18644670d76d8f06 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:57:38 2012 -0700 msm: mdss: fix MDP hang when using 2 or more layers Hang is seen when 2 or more overlapping layers are used in MDP, this is caused by problem with VBIF dynamic clock gating. Bypass VBIF dynamic clock gating and force clocks on to avoid MDP hang. Change-Id: I369d036aa059f79c48f3b2feec8ca2b0f49dd301 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 452289427cbf054e7830770333f663ec866ca61d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:19:18 2012 -0700 msm: mdss: add perf settings during hardware initialization Add MDSS initialization sequence, tuning for optimal performance. Change-Id: Icd44abf2707d74bbf29a8d095184067ae3a420d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 21c74c4c8bda9a1d62c052f6b93355de6ce935fa Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Aug 21 21:04:20 2012 -0700 msm: mdss: refactor mdp driver probe Remove references to global variables, remove untested support for board file in favor of device tree. Change-Id: If97536116f5b4ea64ade5938d713572c10415bfe Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 963bdc732baffeb24acc29d6e7e96460bc12ffdc Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:56:24 2012 -0700 msm: mdss: fix irq getting disabled when running concurrent displays Add check to make sure there are no other active interrupts before disabling MDP IRQ to avoid disable of interrupts. Change-Id: Ic2bb9398dfa67d2b210f988de6648d49fd8336ac Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d559ef1c0cfd13d3bef877692babab65a278bba1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jul 12 20:16:14 2012 -0700 msm: mdss: refactor mdss color formats Add missing color formats and reorganize color formats to have better code reuse and make it easy to add new formats if required. Change-Id: Ic7c6bb6f35a9c282d9ef99bd5e1d18b0b8033971 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 114c07229fc6f166e0e14d6f6f5e601e192be8f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 15:47:06 2012 -0700 msm: mdss: use framebuffer line length as base layer stride Adreno graphics core expects framebuffer to be aligned to 32 bytes, this alignment is observed in framebuffer and needs to be used for base layer. If not followed stride corruption can be seen for frames rendered by Adreno GPU. Change-Id: Iea5e729dc4e4613bd7270d7bcf616cff6377109a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ae341d162288d796e0d205897df8d010e059c8d6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 6 11:22:46 2012 -0700 msm: mdss: fix suspend coming to MDP before panel drivers If suspend event is received by MDP before panels, MDP needs to ensure other panels are off before turning MDP clocks off. Remove handlers from framebuffer driver and handle all suspend logic within MDP driver to handle this scenario. Change-Id: Idcda2dd29b28a9993edca78b7e0778985e44b664 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 05bb0b78d6eb80dfe1339f54fa24a4cec7529353 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 8 18:12:43 2012 -0700 msm: mdss: improve clock and bus scaling logic Current clock logic only considers panel pixel clock to calculate mdp clock speed, MDP clock speed should also consider other factors such as surface scaling. Bus scaling should also consider surface scaling factor. Update logic to consider these new factors and perform these performance updates together. Change-Id: If274a7f40f496e1a730e1d0e8d7c35fa4384a832 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a5a987a43f8a24592e0dcdd387dd5ae668f03410 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:46:01 2012 -0700 msm: mdss: allocate framebuffer memory from ion pool When panel size is increased dma_alloc_coherent is not able to find a chunk of contiguous memory big enough to hold framebuffer, this causes framebuffer initialization to fail. Allocate buffer from ion pool which has reserved contiguous memory at earlier stage. Change-Id: Ibf7e3f7fc2c7ad991d69c106bbb6a9dd4c7f0e79 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 67ddb9b38b1793c297ff431ef9f650f355c4abf2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 14 19:00:22 2012 -0700 video: msm: Move histogram disable to before panel off Histogram expects the display to be on while running, thus moving its disable call to before disabling the panel timing generator ensures this assertion. Change-Id: I308b3e0c24f0111fb8549d0a0ae025910d649b75 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41b206d0792724c3ee2e1d881dcaf6025cc200a8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 15:25:44 2012 -0700 msm_fb: display: commit mdp baselayer pipe When in resume or boot time, baselayer pipes need to be committed for mdp to play, otherwize underruns and blue screens are seen. The previous pipe stage up func has this commit which is removed now, so the commit calls have to be added for the cases where base pipe is initialized. Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 496f928dd8cdd2b1b554c379d9336e2e902e0540 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 17:41:34 2012 -0700 msm_fb: display: change implementation of updating mdp_clk and blt mode Currently mdp clk and bw requests are predefined in a 4-entry table passed from the board file, and the logic to decide which level to use is mainly based on source resolution. This patch is intended to address several issues with this approach. One major issue is clk and bandwidth depends on seperate things, and need to be considered seperately. e.g. with mdp composition of multiple pipes, bw request may be high but clk requirement may still be low. The current approach that binds these two things together causes inefficiency of power. Another major issue is that there is no logic to calculate mdp clk requirement of a single pipe based upon panel clk and downscale parameters. Further the worst case of mdp clk should be determined by all pipe usage. Without proper logic, many underrun have been experienced, and blt mode may not be enalbed properly. Also mdp_clk or blt mode update must be on right timing especially between these two pathes: overlay play and pan display. In the situations of performance from high to low or from low to high clk and blt must be handled properly to avoid underruns. In a summary, to support many different panels and targets and complicated mdp pipe usage(mdp composition), mdp driver related to clk and bw needs to be implemented differently. This patch is to seperate clk and bw, and maily to deal with mdp clk and blt. Later increasing granuity of bw will be added. Change-Id: I678fbf86d6997ed7b602ce81cf2e0fff6164d129 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit db0fb308df4830ce3586618c62e77fc157bb9e4d Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 10:25:22 2012 -0700 msm_fb: display: Set timing generator after register flush Timing generator was getting started before the register flush. Stale values were sometimes causing IOMMU page faults on bootup. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Ia671c3603e383af94197a23a8e5e5f32274a9978 commit 36898359d3e8c21b8fa45ce24d3fe472a3813d4b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Aug 11 17:33:04 2012 -0700 msm: mdss: fix incorrect programming of timing generator setting Fix typo in code which is causing incorrect setting of vertical front porch on timing generator settings and incorrect output to panel. Change-Id: I4de61209443fcb284b7d4064a2039b5f546935d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34e216d7db0466fef4b9114ec18cf684275607a3 Author: Lei Zhou <leizhou@codeaurora.org> Date: Wed Jul 25 12:52:13 2012 -0400 msm_fb: display: Correct LVDS bitmap setting In case ASIC 1.1 is used on 8064 platform, LVDS bit mapping misalignment is fixed and no remapping is needed. LVDS bit mapping should comply with VESA format to get correct panel display. Data line #3's bit mapping should be coded in this sequence: DE + VS + HS + .... Change the original codes to go with this sequence. Change-Id: Iaebcfcea9c52207e16bac54ec37dc63e97286ff4 Signed-off-by: Lei Zhou <leizhou@codeaurora.org> commit 8f0326e19752f9b2b083a433621d3581f4e9a9da Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 16:00:03 2012 -0700 msm_fb: display: add dmap waiting before turn off timing generator Wait for dmap done to turn off TG to avoid underruns before base pipe setup and after constant splash during boot time. Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 00c9a911ba43e3ddb4ea6ea1c843dc7101b3b1ab Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:35:16 2012 -0700 msm_fb: display: add stage commit before kickoff to WFD Since stage commit had been splited out of stage up fucnction, it needed to be called to stage pipes into mixer befroe kickoff mixer. Add this function into overlay writeback for WFD. Change-Id: I11e4486d92b89a15e58531033d474b3137b5935a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2a811f2a333ca0507eb98c35831af463f43fb011 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 17 16:54:28 2012 -0700 msm_fb: Display: Fix Dithering issue for rgb565 format Using RGB888 as source format and rgb565 as destination pixel format, will cause image corruption on the display. Fix this issue by setting the destination format as RGB888 in MDP and DSI controller pixel format as RGB565 for DSI specific panels. CRs-Fixed: 377484 Change-Id: If58976ee9cd4825efb39437170e54796fa2213e0 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 3c5ae1f883a8b6a7812d936c5f7e5bb4d0d3142b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Aug 6 19:43:42 2012 +0530 msm_fb: display: Update mdp clock counter for unsuccessful probes If a panel probe does not succeed, call mdp_clk_ctrl to maintain mdp_clk_cnt counter else mismatch in counter results in mdp clock to never go off in cases like suspend-resume. CRs-Fixed: 385560 Change-Id: I4ca54b051af98e823dc7f3ff7b9bcb960532c7e8 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit a28d1bb434e8505630fc5d03383a0ed6d4565885 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jul 29 08:56:58 2012 -0700 msm_fb: display: Add BLT support to dsi command mode panel At run time, mdp BLT (writeback) mode is enabled and disabled base on performance level to avoid mdp underrun. Move BLT enabled/disabled logic to pan display so that enabled/disable is done per commit instead of per queue. Since all panels are shared same logic, dsi video mode and lcdc panel BLT logic have been changed accordingly. Change-Id: I6e04bf0f7bf1c13634e19b18d8ac4368affbc4d8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1c15029f8551ca8f5ffa57973c4eabc471177333 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:19:11 2012 -0700 msm_fb: display: retrieve correct base layer pipe Base layer pipe is cloned and cached at satge array. Retrive the real base layer pipe before used it. Change-Id: I6fc606559684156348a57b500083ed4089fc71b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit df5e3279961b1f43a38ba50f787d785a81ed1e36 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 3 13:47:04 2012 -0700 msm_fb: display: free dtv iommu buffer Free iommu buffer after pipe is committed to hardware. Change-Id: I00506d6fd55d99fec7921c02953fd755a7536d3e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1bb4edf9242b0397975636a4442318713a53b5e6 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Jul 24 13:34:23 2012 -0700 video: msm_fb: Increase display timeout to 2 seconds One second time out for no frame update, as in current implementation, does not allow CABL to reach minimum backlight level possible because histograms dont get generated after one second. So increase time out period to two seconds which seem to be sufficient for complete black to complete white and vice versa transitions. CRs-Fixed: 370804 Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5d7e5b30a98110dd138fddee58bc2a4f3ffdc715 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 9 12:23:53 2012 +0530 msm_fb: Allow MDP hardware init for continuous splashscreen MDP hw init is getting avoided for MDP3.x targets to support continuous splashscreen. This avoids complete initialization of MDP and hence usecases are failing. This change allows the hw init. Change-Id: Ib0304b54bda4a62a20716bde85fe94b2dcfe6824 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5cb07af87572d44d74a2586dfffd1ee537f64941 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 8 16:52:29 2012 -0700 msm_fb: display: clean pipe free or unlock calls A few places have unnecessary mutex unlock calls, and iommu pipe free depends on pipe parameters so move it before pipe is zeroed. Change-Id: I7ef39c66be611907b1b0c38675b15f8bc919d0c0 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b50f747dee6db1d9413fe46cba3d7c42263b21b2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Aug 4 17:04:18 2012 -0700 msm_fb: display: fix fake iommu buffer drop During pipe free, some content of pipe is backed up and then after pipe is zeroed out, the content get restored, in between there should be no actions to change the content since any change will be wiped out by the restore. Change-Id: Ia6da0162d1f9b614682e1fc36edab1db003b42ab Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4a652002fecbd5d984d01fbe2f32515f1a98ba91 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 17:38:07 2012 -0700 msm_fb: display: clear correct pending isr Clear correct pending isr during irq enable/disable to avoid unexpected side effects Change-Id: I5e7afc778cb8d5feda40f359ff2aae6493dc7cd2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 45301d3beb046201b8d4a54a2de274dabf1ebc46 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 2 13:27:49 2012 -0700 msm_fb: display: fix iommu leaking Fixed iommu map buffer dropped after overlay unset by saving origianl iommu list before zero out overlay pipe structure. Change-Id: I498dd4cf62e93f4571883fe20a0298e9fad4ccab Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e2b559d1a1694e10bb2aa47826db24a8baceda6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 7 13:23:23 2012 +0530 msm_fb: hdmi: Give proper buffer size Need to give proper buffer size for snprintf function calls. CRs-Fixed: 378343 Change-Id: Ia4df74c9871b26255572bb3ba226317c3076b5b6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f3b0c231a85ceef488440ab02fba9b15e468faa0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jul 27 20:46:06 2012 +0530 msm_fb: Add support for Vsync driven composition on MDP 3.03 targets Add support for vsync notification to user space using user events. This is to trigger frame composition based on Vsync. Change-Id: Ie94edfcdb5e540dd2f9a4a5df4bc3b7c4eb9041c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c58fcce723e54466b85981bafe7179b717ff2371 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Apr 23 20:39:17 2012 -0700 msm_fb: MDSS: Add DSI driver support for MDSS Add the dsi driver implementation for DSI version 3.0. Use the panel information retrieved from the 'dts' to configure the interface parameters. Add the device tree binding file to specify the basic configuration and panel features. Change-Id: I6a3677401454ad1d2bc29b0b845b0366eb7842b7 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 17182d61f4cfdc990706bcacfb1ab02f631fa154 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Aug 3 11:14:36 2012 +0530 msm_fb: display: vsync support for HDMI as primary When HDMI is primary, dtv is associated with node 0. In this case, DTV vsync and ctrl need to be called for node 0. CRs-Fixed: 383877 Change-Id: I425cddf453dd159259883e71f92c32918ca8e6c7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 378fed12479c91893acbc56124b7d69ab7bd8166 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:40:51 2012 -0700 msm_fb: display: enable sending uevent as default Enable sending vsync uevent as default so that uevent will be sent to usersapce frame work when first request recevied Change-Id: If72248007d68cba8fc814d449b46a58d842544ba Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 68446e5773292eea8a7bb33e7240cf7a67c0194c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 30 15:14:55 2012 -0700 msm_fb: display: add iommu mapping for mdp cursor buffer address The mdp h/w cursor buffer physical address needs to be mapped to an iommu virtual address when iommu domain is enabled. Change-Id: I73b4492fc4d63632117074136e4d908f5089eb93 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit dc5cfefb1bd5a30f8f1a611fca61cc9d7bc7bddc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 12 11:19:20 2012 -0700 msm_fb: display: set pipe src and dst size same in solid fill mode When a mdp pipe is in solid fill mode, the pipe outputs constant color and pipe itself does not fetch data from memory, so pipe src size should not matter. However, when src size is greater than dst size in solid mode which means downscaling, underrun happens. In this situation, setting src size to be same as dst size can remove underrun. CRs-fixed: 368478 Change-Id: Ie3ffc34486129cddcc872fe6e5317873db985b97 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit efb6c143ea951dab6dc72586100999d5b94c1c8d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 26 17:45:57 2012 -0700 msm_fb: display: no early suspend for writeback panel Writeback panel is not real physical panel and no power consumption concern, so it is removed from early suspend registration to avoid open fb2 error during suspend/resume. Change-Id: Ic61f69e069f2da8c73f2b5a13d103a2f20034d20 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 98b3a61592b34d0f39ed2dd00ef56b3ad575e0d2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 16 21:12:33 2012 -0700 msm_fb: display: remove mdp_lut_enable call to avoid hang issue Calling this function is not necessary in mdp overlay2 writeback driver. If called, it causes command mode primary hang. CRs-fixed: 365332 Change-Id: Id7054c3e56224035ec5939d91f8ce152b038e858 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit f15aa8bcd2f3b4333e8f010c8af6be3a16cfb882 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 3 11:52:31 2012 -0700 msm_fb: Increase the pixel clock range for DSI panels Increase the upper limit for the pixel clock that changed with the newer version of the DSI controller. CRs-Fixed: 380003 Change-Id: Ibbeaa478b4d12ae8f350be41f959d53a6ae6c923 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit cc3df57a918118a1b70a43921d0377fb2790fa1b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 18 18:28:42 2012 -0700 Revert "msm_fb: display: Register MDP fault handler with IOMMU driver." This reverts commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b. This enables the IOMMU page fault register dumps from default handler. Change-Id: Icddd2394f5aa337e1a4998247cc4e3201f752e84 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5f3807bcf41ae01b17a4140b010db6ed02899c18 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 4 00:06:20 2012 +0530 msm_fb: Add "Continuous Splash Screen" support for LCDC panel Add changes to support continuous splash screen on 8x25 SKU7 for LCDC panel. Delay the MDP hardware initialisation, keep LCDC timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Ied091b01ad2f26acdff73e3ffe158d844198923c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0a3699b368fd72a86fb293e37a420b9a34dbd5d0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 30 16:17:10 2012 +0530 msm_fb: Add support for "Continuous Splash Screen" on 8x25 EVB Add changes to support continuous splash screen on 8x25 for video and command mode panels. Delay the MDP hardware initialisation, keep video timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Id5e635ca986e66abb3cbf7c5a174f952ea489708 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 14baef8b22dee8e1d5019a9ac9c6e6cdb48fbbe5 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use YCrCb 420 as the output format for writeback Use YCrCb 420 (NV12) as the output format for writeback. For Wifi Display use case, NV12 is required as the encoder requires this as the output format. Change-Id: Ica8851073476b9c05f3b5b41232803c2d71f7a3e Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit dbb6355114354211a5bcc2ba9f120d601d7a4712 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:17:53 2012 -0700 msm: mdss: Return proper msmfb_data back to client For local clients, return the relevant msmfb_data which contains a cookie relevant to the client. Change-Id: I9b845c0cd7fde1bc8c53a5063ba331460d67427d Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 3d36e64838fbd064ad4868e1a3770e27c183f83e Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jun 21 18:23:52 2012 +0530 msm_fb: display: Add pre-multiplied alpha support for MDP4. MDP4 blend logic differs from GPU blend implementation as MDP4 does not differentiate between pre-multiplied alpha layers and non pre-multiplied alpha layers. Check layers for pre-multiplied alpha and change blend logic accordingly. CRs-Fixed: 355755 CRs-Fixed: 361729 Change-Id: Id8253d3888f1ebbadba1b6bbd87e7d98bac22da7 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 5a19b70f2846822228d0ae0ef56d14162812ff9e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 25 11:15:20 2012 -0700 msm_fb: display: Map framebuffer region in Display Write Domain Framebuffer is currently mapped for Display read and rotator source domains. For MDP writeback mode, Display write domain requires framebuffer region and it is mapped at initialization time. CRs-Fixed: 382550 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iba6fd0201a48fe1864bf42e9576f063cd58646fd commit ec5b2ff6857134832d165b8c2db8174c0d0ef4a7 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 20:06:41 2012 -0700 msm: display: use the fb reserved fields same as kernel 3.0 Reserved fields of fb structure used for various use cases in qcom fb driver. Reducing the reserved fields caused lot of side effects and it will change the reserved fields same as kernel 3.0. Change-Id: I7bf82a9b5667cb5c84b54e428bbfcb6869157bd7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 071280769e98128452ce8773e7ac2bc353f0cc93 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 25 17:57:15 2012 -0700 mdss: display: expose panel parameters through framebuffer API Panel porch values and pixel clock can be used to calculate the refresh rate from user space. Assign these values with information from panel driver. Change-Id: I29995d27904e50892d72de5e8c7dd39285f9d421 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34c2b52441d968030b31841eda77a09d73b89b8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jun 28 15:48:10 2012 -0700 mdss: display: allocate buffer from ion when debug writeback enabled Debug writeback is used to output MDSS framebuffer contents to memory to for debugging of MDSS core. Use ion buffer allocation for debug writeback buffer instead of using memory from framebuffer base layer to allow entire framebuffer area to be used for composition. Change-Id: Ia1a91f5f14bed1d29691092142fc94f7a8b6f4d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 686c70adef370bb5b60a116bdf326b2062c946d5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 15 11:28:12 2012 -0700 mdss: display: fix incorrect rotator programming Source format should indicate that source is to be rotated 90 degrees instead of indicating source has been rotated 90 degrees. This is needed for hardware to fetch source in correct order and generate correct 90 degree output image. Change-Id: If8d1e12ef3e7a291e67ec9763f5ca92ec6fa983c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 38506ba57f21ea83fbb8adb6d6818e9f1611377a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 18 10:26:56 2012 -0700 mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bff7356885b596340c9701fd1a6b18b08f8e75a5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Jul 26 10:59:49 2012 -0700 msm_fb: display: free writeback buffer at correct time When mdp pipe is freed at end of video play back, Writeback buffer is freed while mdp still fetchs data from it. This cause system crashed and blue screen shows on screen. This patch will free writeback buffer at correct time. Change-Id: I46a5031c13d86f943d6604713e1841b482dffe96 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 586fd1628cdd10468e0d6496a77a236f18eaf9c7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 14 15:24:16 2012 -0800 msm_fb: display: vsync driven screen update This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: If630a6d94fd38483ee313f575b1a71ed8bd65a52 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe8e81ccadfb4ba621094c924f31f8c230daf63 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 9 17:54:01 2012 -0700 msm_fb: display: Set LVDS Chimei panel frequency to run at 60 fps Modify LVDS Chimei panel pixel clock from 75 MHz to 79.4 MHz and update PLL settings to achieve refresh rate of 60 Hz for better user experience. CRs-Fixed: 375510 Change-Id: Ifb4036c790552b1c43d5a3c817ed05691f86c7f6 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit dfe5751941ef2478c57565f8ebca09623d83a8a4 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Jul 23 12:34:47 2012 -0700 video: msm: Add CSC and QSEED support to Overlay API Add support for CSC and QSEED configuration through MSMFB_OVERLAY_SET and MSMFB_OVERLAY_PLAY ioctls. Provide better integration than previous attempt with the existing Overlay and PostProcessing APIs. CRs-Fixed: 380750 Change-Id: If895391074ef1e7d7a6824d289e1ed9da6a52180 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 3118cb077358e472adb0db8e207a63bd84fd267f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jun 22 18:15:18 2012 -0700 video: msm: Remove old post processing overlay integration Remove old implementation of HSIC and QSEED smoothing/sharpening overlay integration. Need to replace with new implementation that better integrates the existing functions of the two APIs. CRs-Fixed: 380750 Change-Id: Id3469fad16764ed88e74a8da75bb873f726ba366 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 382b00b9a664fa0bd9b8d8bee2dae3f4340d425d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:45:07 2012 -0700 video: msm: Add QSEED Table2 Support Add support for QSEED Table2 reads/writes. Table 2 is a table of coeffients for QSEED Table 1 to offset into. Table 2 is quite large, caution should be taken when writing into it. CRs-Fixed: 380315 Change-Id: I89be18c0047dcf1d9a3bcd538967b2bbe7b4efe1 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fbf467206a4b5d09f51268535364f0a1b462eef6 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:43:39 2012 -0700 video: msm: Add QSEED Table reading support Add support to read the tables of QSEED values. When the values of the QSEED tables are able to be written to, it is beneficial to be able to read what's there as well. CRs-Fixed: 380315 Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 43da18d00abc2a61834b6650a49bf7edcf4f4df0 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Apr 12 15:37:44 2012 -0700 msm_fb: display: switch blt mode on/off without turning off TG Turning off dtv TG may cause blink. MDP requires h/w idle to change blt mode, turning off TG can make sure mdp h/w is idle. If turning off TG is not desired, one way to do is to check busy bits of overlay and dmae and once they are both idle, the mode can be changed. CRs-Fixed: 363717 Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit fccacdf4e72f8b39c3087628aee41bf94652e220 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 12:01:01 2012 +0530 msm_fb: hdmi: Proper switching of switch device Switch device used to tell userspace about HDMI connection needs to be enabled when: 1. HPD connect 2. Authentication successful And disable when: 1. HPD disconnect 2. Authentication failed Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 53156f5794a1eb8625033cabe243bf35bde93d1f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jul 24 10:13:05 2012 -0700 msm_fb: display: add out of range check for display sizes MDP pipe or mixer size registers have 12-bit number, so boundary checks are needed for those parameters. If not, input req sizes could be very large 32 bit unsigned numbers, e.g. 0xffffffff, unsigned operations may have overflow to pass all later checks, causing MDP underruns or hang issues. CRs-fixed: 380469 Change-Id: I096d7022ede21d54266b46a140782ab0348dd54b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6957fa026060675c197e2aad0762065a6aba7e31 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Jul 11 21:08:50 2012 -0700 msm-fb: display: Tearing issue during video playback Tearing was observed while playing 1080p H264 videos in potrait mode. Enabled blt mode check for MIPI command mode panel as well. CRs-Fixed: 369365 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7 commit 62d4a8cb1a5a1a98b3a70988de9ff9e2c1368be6 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jul 17 11:44:25 2012 +0530 msm: HDMI: Re-initialize the scan details for every HPD After disconnecting the phone from TV which doesn't support underscan, and connected to TV which support underscan, underscan is not working due to non re-initialization of scan variables. Re-initialize the underscan variables for every HDP events. CRs-Fixed: 375862 Change-Id: I22b7b8785ec93f9cf226e9b646a851ffb3ceff62 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit df67a26bb4e4eb274ef367ad67b10d1c845ef7f9 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 17 23:54:47 2012 +0530 msm_fb: display: Remove unnecessary dtv_pipe checks In case of PAN display, PAN update function would return without allocating dtv pipe resulting in no HDMI display. This change removes unnecessary checks and enable dtv pipe for PAN display as well. CRs-Fixed: 379625 Change-Id: I533392a1120a21e962fbbbf0c07a89997832406f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 30befc28305440f30770a6545839fe4b55ee2207 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed May 30 11:04:00 2012 +0530 msm_fb: display: suspend-resume on HDMI When HDMI is primary, suspend-resume is not happening. For HDMI as primary case, early suspend and resume can be used. This change implements early suspend and resume for hdmi as primary case. CRs-fixed: 381097 Change-Id: I7b83d07a8b109294f3606c60f58b760836b88685 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6b82d2ba8296e956abcd4c0c2014138390439dee Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 17:23:26 2012 +0530 msm_fb: hdmi: Boot param support for resolution change Boot param support for dynamic resolution change for HDMI as primary case like MPQ. With this change, MPQ can also be configured for different resolutions than the default 1080p@60Hz using boot parameters. CRs-Fixed: 373211 Change-Id: I2c8537724ddd1ece7e81e6022afb9315c5147aa2 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2568be7b453fc06ac0ce2a293021f2309e3ebbfa Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 21:20:58 2012 -0700 msm_fb: display: Configure MDP clock table based on DSI Video pixel clk To avoid display underrun issues, configure the MDP clock table's rate according to DSI Video mode panel's pixel clock frequency by 1.15 times. Change-Id: I9bc864a754c2d51c9d86ece79863820eb72cdae8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 16c8ae2beba81d102bccd130ccf8cca06533cc28 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 21 11:31:15 2012 -0700 msm_fb: MHL: Adding MHL api's for USB interaction. Adding MHL api's for device discovery and registering callback mechanism.USB driver use these API's for synchronization with MHL driver. Change-Id: I0846951302e3b5f5d20d566c92c2f224528ca455 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c8430bd159039340c5a50e6897b256631f5dc7bb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jul 9 12:34:01 2012 +0530 msm_fb: Add histogram support for MPQ 8064 Currently, there is no support for histogram on MPQ 8064. Add support for histogram ioctls to support histogram testing. CRs-fixed: 375580 Change-Id: I24ccf73c6ea6d230da4624ea196cba2d8195f8b2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit bc49e8330d32669aadc012585e3a2bcad0f34b85 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Jul 14 16:18:02 2012 +0530 msm_fb: hdmi: Turn on switch dev when connect to HDMI Audio is not routed to TV after deep sleep and resume. Userspace is dependent on switch device to indentify audio route. When HDMI is turned on, this switch needs to be turned on as well. CRs-Fixed: 377159 Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f0a3914b984c75b66ca7d96a479c08230928e2d1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Mon Jul 9 16:59:35 2012 -0700 msm_fb: Remove control of HDMI PLL regulator The regulators required by the HDMI PLL are now controlled within the clock driver. Remove the explicit control from mdp.c. Change-Id: Ia2975a5a83b77cd9e21fc43cabea754b7b040dd5 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit f0fd8e7323ea0f60539918528a4cfa1edb39b828 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 3 15:08:20 2012 -0700 video: msm: Add user-defined backlight scaling Add method for scaling backlight based off of a user provided ratio and minimum level for the scaling to be applied. Change-Id: I74c2329c842dd9cbbc9eddfff38cd56fd0e939a4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 649ca22aba67cd429025ee026015b6082b38539f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 9 18:19:18 2012 -0700 msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch DMA addresses are configured after Layer Mixer is set to writeback mode. This leads to IOMMU page faults due to incorrect addresses read from DMA. Hence DMA is programmed before Mixer setting. Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3bb47a097c62b71c7f8f2be888a1f73c6cfb8142 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jul 13 11:51:24 2012 -0700 msm_fb: HDMI: Fix for high HDMI sleep current In certain cases, the HPD circuitry is not switched off when the device goes to suspend state, resulting in high sleep current on the HDMI power rail. This patch ensures that the HPD circuitry is always turned off during suspend operation by removing an unnecessary condition check. Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f7f94cef2a64930e1476c09a5a402631bd39d99 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 10 16:08:30 2012 +0530 msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 10bbb7da8663f44fd348d72fef24f08bbc789cd5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jun 3 07:56:23 2012 -0700 msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk Since dsi clock is accessed by both thread and timer context, spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing of dsi clock. Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 97c332da161665e9ec31a222dcd919267889af1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: Id007cf96588f817bcfe8559177abb073a9b00755 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3d297368b8199b07bda815915e94ecb5761561b0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jul 5 17:24:45 2012 +0530 video: msm: Fix corner cases of "read twice" error Fix several cases where histogram's completion structure is completed multiple times which causes the next histogram read to force the histogram software state machine into believing that the histogram is always being read by someone. When the timeout in mdp_do_histogram times out and then soon after the work that was being waited on completes, the next do_histogram call that is processed will not wait (and thus will not have its hist field set to NULL). This will cause all subsequent do_histograms to think that the histogram is currently being read, and will cause the "read twice" message to flood the kernel logs. This error is fixed by always initializing the completion structure before waiting for the histogram to complete. That way if the completion happens after the timeout, instead of causing the error, the completion's internal counter is reset to zero, which prevents the next histogram read from completing without waiting. Change-Id: Ic1bc4b8688cd191d226de1df15d389de09996106 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 18e97cde0f9875c41692139d30bce497df31b8fb Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Jun 22 00:33:51 2012 -0700 msm_fb: MHL: Driver changes for Integrated MHL Power up and GPIO functions have been moved to the driver MHL HPD event also triggers the HDMI HPD event since 8x30 FLUID device doesn't connect HPD line from 8334 to HPD line from MSM HDMI. The pull-up resistance in 8334 has been set to the recommended value so that the interrupts are sent over to MSM-USB driver. Change-Id: Ib8bb462c81706ff2dc027535ef766917bb7da39d Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9d7db4fd399109999f4ec0207651f335920f06db Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 23 18:49:59 2012 -0700 msm_fb: display: Wait for overlay done after DSI Video writeback switch After writeback mode is switched for DSI Video interface, wait for overlay done for prefill frame to avoid unnecessary fetches from previous buffers resulting in page faults. CRs-Fixed: 372389 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617 commit ef95ae33a328426b45f502eeb86f2edc120faf30 Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 50f0f86034c97484081e1bbf4ea36253a21474f2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jun 21 18:53:25 2012 +0530 msm_fb: display: Add ion support for PPP Add support for ion in MDP PPP drivers for accessing source images and destination images. Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a43f44b44ee221df11ad84b8536c1c8d5373cbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jun 28 20:00:42 2012 +0530 msm_fb: Handle multiple histogram reader errors during suspend/resume If a histogram reader waits for completion in the do_histogram ioctl and during this time the device is suspended, the complete for this gets called from mdp_histogram_ctrl_all() in the panel_next_off() sequence. This results in mgmt->hist not set to NULL. The subsequent do_histogram ioctls after device resume fail due to multiple reader failure condition since the histogram irq will be enabled now from the same mdp_histogram_ctrl_all() during panel_next_on() sequence and this by-passes mgmt->hist getting set to NULL that is present in histogram_start() ioctl. Handle this scenario. Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c45b820e3000c1c7f76cc1a3e1efcfaa33b75eba Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jun 27 12:00:44 2012 -0700 Revert "Revert "video: msm: Always queue histogram work"" This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90. commit 2423ba8... will be refered to as commit X Commit X should have been listed as a parent of commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue histogram work & lock histogram calls). commit 56a123b... will be refered to as commit Y Commit Y is composed of 3 commits that were squashed together after they caused errors when only one of them merged into mainline. Commit X was created to revert the first of these 3 commits, and thus resolve the errors. However, when updating commit Y, commit X was omitted as the parent commit. So when commit Y merged as a parent of commit X, commit X reverted part of commit Y. By reverting commit X, this commit restores commit Y. Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit b14ed96f74b1258b1f102831a2b0ccd56f991132 Author: Laura Abbott <lauraa@codeaurora.org> Date: Mon Jan 30 14:18:08 2012 -0800 gpu: ion: Pull in patches for 3.4 Pull in Ion patches for 3.4 upgrade. Inclues the following patches from google: commit 7191e9ba2508ca6f1eaab251cf3f0a2318eebe26 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Jan 30 14:18:08 2012 -0800 ion: Switch map/unmap dma api to sg_tables Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 6f9e56945d4ee3a2621968caa72b135cb07e49c4 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Tue Jan 31 09:40:30 2012 -0800 ion: Add reserve function to ion Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 9ae7e01de1cf03c77054da44d135a7e85863fcb0 Author: KyongHo Cho <pullip.cho@samsung.com> Date: Wed Sep 7 11:27:07 2011 +0900 gpu: ion: several bugfixes and enhancements of ION 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in those virtual address spaces. 3. Makes the return value of ion_alloc() to be explicit Linux error code when it fails to allocate a buffer. 4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and relavant call to ion_buffer_put(). 5. Checks if the task is valid before calling put_task_struct() due to failure on creating a ion client in ion_client_create(). 6. Returns error when buffer allocation requested by userspace is failed. Signed-off-by: KyongHo Cho <pullip.cho@samsung.com> commit 043a61468f395dd6d4fc518299726955e9999c59 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed Feb 1 11:09:46 2012 -0800 ion: Switch ion to use dma-buf Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 0d1259b5f84969bd00811ff9faa1c44cdb9fdbb5 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Apr 30 16:45:38 2012 -0700 gpu: ion: Use alloc_pages instead of vmalloc from the system heap With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit be4a1ee79a89da3ca705aecc2ac92cbeedd032bd Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Thu Apr 26 20:44:10 2012 -0700 gpu: ion: support begin/end and kmap/kunmap dma_buf ops These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 46d71337f9aa84694e4e6cca7f3beb6b033bbf76 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon May 7 16:06:32 2012 -0700 gpu: ion: Allocate the sg_table at creation time rather than dynamically Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 903f6c716db3d4e26952aae9717f81dd5bc9e4ba Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed May 23 12:55:55 2012 -0700 gpu: ion: Get an sg_table from an ion handle This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> The commit also includes fixups needed for MSM specific code. Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 24502cb2cfd176d72cc6884dbeb375c7fb054766 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 25 18:58:45 2012 -0700 msm_fb: display: Enable MDP clock's overlay block during panel on MDP clock's overlay block is enabled during first update after panel on currently. This is now moved to panel on to keep clock enabled right from display on time. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ie201186c1471201874f2eff246486bc4a73b5872 commit 89dd8eb788bc97479a7c7bfbcafc25f1b63ceda0 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Jul 2 17:05:16 2012 -0700 msm_fb: HDMI: Fix lockdep warning Locks must always be taken in the same order to prevent AB-BA scenarios from occuring: ====================================================== [ INFO: possible circular locking dependency detected ] 3.4.0-g55e6e49-00052-g71783d6-dirty #3258 Tainted: G W ------------------------------------------------------- kworker/0:1/15 is trying to acquire lock: (hdmi_msm_state_mutex){+.+...}, at: [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 but task is already holding lock: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (external_common_state_hpd_mutex){+.+...}: [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0341510>] hdmi_msm_hpd_on.clone.0+0x230/0x2c4 [<c07e5dfc>] hdmi_msm_probe+0x378/0x588 [<c03dcc00>] platform_drv_probe+0x18/0x1c [<c03db920>] driver_probe_device+0x148/0x334 [<c03d9f5c>] bus_for_each_drv+0x48/0x84 [<c03db7ac>] device_attach+0x78/0xa4 [<c03daa4c>] bus_probe_device+0x28/0x9c [<c03d97e4>] device_add+0x438/0x5e0 [<c03dd13c>] platform_device_add+0x13c/0x1a0 [<c0d255d8>] hdmi_msm_init+0x218/0x2d0 [<c0008708>] do_one_initcall+0x94/0x168 [<c0d002fc>] kernel_init+0xe4/0x1b8 [<c000f4f8>] kernel_thread_exit+0x0/0x8 -> #0 (hdmi_msm_state_mutex){+.+...}: [<c00cc6b8>] validate_chain+0x944/0x1080 [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 [<c0097420>] process_one_work+0x37c/0x694 [<c0099978>] worker_thread+0x22c/0x3bc [<c009ecdc>] kthread+0x8c/0x9c [<c000f4f8>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); *** DEADLOCK *** 3 locks held by kworker/0:1/15: #0: (hdmi_hdcp){.+.+..}, at: [<c00972b8>] process_one_work+0x214/0x694 #1: ((&hdmi_msm_state->hpd_state_work)){+.+...}, at: [<c00972b8>] process_one_work+0x214/0x694 #2: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 stack backtrace: [<c001521c>] (unwind_backtrace+0x0/0x12c) from [<c00cbb14>] (print_circular_bug+0x288/0x2d4) [<c00cbb14>] (print_circular_bug+0x288/0x2d4) from [<c00cc6b8>] (validate_chain+0x944/0x1080) [<c00cc6b8>] (validate_chain+0x944/0x1080) from [<c00cd744>] (__lock_acquire+0x950/0xa10) [<c00cd744>] (__lock_acquire+0x950/0xa10) from [<c00cd990>] (lock_acquire+0x18c/0x1e8) [<c00cd990>] (lock_acquire+0x18c/0x1e8) from [<c080c248>] (mutex_lock_nested+0x68/0x3c4) [<c080c248>] (mutex_lock_nested+0x68/0x3c4) from [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) from [<c0097420>] (process_one_work+0x37c/0x694) [<c0097420>] (process_one_work+0x37c/0x694) from [<c0099978>] (worker_thread+0x22c/0x3bc) [<c0099978>] (worker_thread+0x22c/0x3bc) from [<c009ecdc>] (kthread+0x8c/0x9c) [<c009ecdc>] (kthread+0x8c/0x9c) from [<c000f4f8>] (kernel_thread_exit+0x0/0x8) Change-Id: I251049edbc97a5fe0e6c67801cf472fdc48722a7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dbbca9b8710704bd0ae37acd40e30b6aba6d1462 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 19:04:08 2012 -0700 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call Attach IOMMU call is currently done from DSI cmd mode DMA update method. Move the attach call to kickoff which enables it from restore and video paths Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf commit 07876121525c631cbf914c8777e01875c293d0ed Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 12:27:49 2012 -0700 msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get() After regulator_get call for HDMI PLL footswitch purpose, set output voltage to 1.8 V to ensure proper state while enabling and disabling regulator. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24 commit 3ac0c174b21293d50773bb8b2bc5ad9ee2aedf23 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 22 18:46:33 2012 -0700 msm_fb: display: Fix Toshiba WSVGA panel porch and timing settings Fix the porch and timing settings for DSI Toshiba WSVGA panel to enable writeback mode switch efficiently. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ib768d13617470f75ae027970c6ca4779d6b5a367 commit 254d6740cfa0a32afe9bb66762199ea5931f53d0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 30 22:12:09 2012 -0700 msm_fb: display: Flush pipe registers before staging for Mixer 0 or 1 For Mixer 2, register flush need not be called. Flushing is done only for pipes on mixer 0 and 1. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I54758f79552790de2ad936703ba6140ac57b76c4 commit 37320fb657169e39aef13afb468ae551481658f4 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Jun 26 14:50:28 2012 -0700 mdss: display: Correct regulator API usage A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit b5085c57a43b2ba6cded7b4adeb646ed3c8ad095 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Jun 20 11:43:54 2012 +0530 msm_fb: display: Increase wait for VSYNC Wait time for VSYNC needs to be increased to accomodate 1080p 24HZ resolution which requires around 41ms. CRs-Fixed: 368521 Change-Id: Ideda24bb83e32a6d5035c6193ef3dfd5e0c947fc Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 4a4f2d591cebc94b179e58cc6418f4598146f3c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 20 18:30:05 2012 -0700 msm: display: Add MDP footswitch regulator control for HDMI PLL Add support for enabling HDMI PLL regulator along with footswitch enable/disable to avoid PLL lock detection failures during suspend/resume Change-Id: I9b161cab50d2b6c39de39b588e326f5ff97cbc65 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9c4743fd7d5e5230b4f05564432bd6d6b51b4a88 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:31:43 2012 +0530 Revert "msm: iommu: Split rotator/mdp iommu domains" This reverts commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a. Change-Id: Ie93cbb23eaa1e35bfbacc53cd18f05b345acea4b Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit fd233093130a8b11519630cf3b38f02491e634a3 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:30:49 2012 +0530 Revert "msm_fb: display: Add DMA and Overlay blt mode address to MDP driver" This reverts commit 5f979254a80b7a844df3d9c1f49e16427f2477cc. Change-Id: I595afa529d96e8378d00e75bd836cfa191ab5135 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef5b150ffa574ec1aac76618e2cfd1d94ee626ba Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 13:08:06 2012 -0700 msm_fb: HDMI: Removing unnecessary HPD detection code. HPD read work is used to detect HPD at bootup which is not required as HPD detection is taken care at bootup by toggling the HPD circuit. So we can safely remove this redundant code. CRs-Fixed: 368865 Change-Id: I8eed00c4f5af2ed2ca37e86da622ab518e5eb887 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2423ba8ae07458ec93efa07d777454f26d1d7c90 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 19 18:09:36 2012 -0700 Revert "video: msm: Always queue histogram work" This reverts commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b. Revert patch that is causing excessive histogram logging. Will merge original patch with fix when issue is resolved and tested. Change-Id: I99b04362f6acd4f75a72e4b3ca52406907971e67 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14c5e7a160faee03393994b064a093019aca9333 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 14:02:58 2012 -0700 mdss: display: Add writeback support for WFD - Implement APIs used to support wifi display (WFD) based on ioctls and functions declared in linux/msm_mdp.h. - Restructure writeback interface file to support custom output formats and take buffers from WFD APIs. Change-Id: I3e6b75bd8b7d73eb20c97899de1891bbd85e9fa4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20684ab9fdf25602872a602d89a3d3eda1b15102 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed May 9 19:16:40 2012 -0700 mdss: display: implement common irq handler for different mdss blocks All of MDSS blocks (mdp, dsi, edp, hdmi) share same irq line. Implement function to manage MDSS irq line with common API with support for irq callback handler for each of block. Also fix incorrect calculation of MDP interface interrupts. Change-Id: I1271f7e1065aac95175b6e92504917264f4043a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2dca5a058c622a7bd0803285b10ec081b8f8e3ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 19:00:54 2012 -0700 mdss: display: add video display interface support Video mode display interface is used by DSI, HDMI and EDP controllers. Implement MDP support in order to setup data path to these controllers. Change-Id: Ibc766a1d10a55bcf64a3ab693db034a378afe4ee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4e584a304cdf03c4ed7cc28a6457ac22e5d4c688 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:25:01 2012 -0700 mdss: display: implement csc matrix programming Implement color conversion matrix programming to support YUV surfaces. Also add dspp initialization stub function. Change-Id: I7ba57eca24e15acffbddf7b81fac6b8a6ce3bba5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1857f06647e420c97f9b0e24bb1b77da710d858a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:57:28 2012 -0700 mdss: display: add rotator interface to mdss driver Add rotator session management support with overlay interface using MDP flag MDSS_MDP_ROT_ONLY. Overlay interface can only support overlay surface or rotator (written back to memory) but not both. Change-Id: Ib2f494683b2e6c2fd8c67818df2b57afb82a3df3 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 96a1e9e9a778f0729b7073f20a0fbd9a63c9ba8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:36:57 2012 -0700 mdss: display: add clock and bus scaling logic MDSS hardware supports different bus bandwidth and clock frequencies depending on the load on the hardware. Add support to driver to calculate the bus bandwidth and clock frequency requirements and activate changes before the load on hardware changes. Change-Id: I9bb5bbc7b3e18fb1a738f527b875506dfa0c5c81 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ef3ac01347acd86ea5a3f7a7b44cbe88bb90221 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 14 18:40:47 2012 -0700 msm: copper: add device nodes and clock information for mdss Copper uses Mobile Display SubSystem, add device tree and clock information to be used in mdss driver. Change-Id: I67397a28168407b3268f4f026f35d69a04062995 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5f979254a80b7a844df3d9c1f49e16427f2477cc Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: I522944b804fe65925df428d6bb312262328a11d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: If3e556171645e8ea02deb12ca543df36233db5f2 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work & lock histogram calls Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). Lock the mdp_histogram_start and mdp_histogram_stop calls with the same lock used currently by mdp_do_histogram to maintain that every do_histogram called between a start and stop will be completed. Add a timeout to do_histogram wait_for_completion so that it will unlock and yield to other histogram calls if it waits for longer than 33 msec. CRs-fixed: 363763 Change-Id: Icc503aed4e60dd01941682003ca3dbc844aed8d9 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41cdae666312bdc248a8e707a2d8f9ca568178cf Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jun 11 17:18:42 2012 +0530 Revert "msm_fb: display: Fix for HDMI bootup issue" This reverts commit a369ce03ca048fb511642ac1cb73c1f652d70c50. The change is no more required as pan_update is not being called and overlay set is now being used instead. Change-Id: I7b25c256ab57e620f319058638371e079642c448 CRs-Fixed: 367233 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d60ac323a1e3e7086ef2d77c866d5ed482d2a4e9 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 31 18:16:31 2012 -0700 video: msm: Resolve post processing memory leaks Allocate memory for post processing only once. Free post processing memory when MDP is removed. CRs-fixed: 366325 Change-Id: I244f4e10a6933e2acaf69a83d8b91ee5f6e27557 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit cc91399843c5ffb5a57d890c0ca835cd7f5a6e8c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 9 14:57:28 2012 +0530 msm_fb: Add backlight support using both GPIO 96 and PWM Add support for backlight control on EVB using both the LCD_BACKLIGHT GPIO and also the PWM approach on 8x25 EVB. Also increase the backlight levels supported on 7x27A from 100 levels to 256 levels. CRs-fixed: 365523 Change-Id: I4806644783cc98e01192a3101bc852487bb3b592 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 691524c2e330592b2561df4c0fb6e7d2a741a924 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 12:44:46 2012 -0700 msm_fb: HDMI: Do not add HPD state timer during probe Currently all HDMI timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HPD timer being fired 5 minutes after boot even though cable is not connected. This change fixes this issue by not starting the HPD timer during probe. Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit df694561ecc3105707af6bf323cd42f988293e3a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jun 5 15:06:21 2012 +0530 msm_fb: display: Fix compilation error for non-HDMI builds HDMI dependent functions need to be guarded under HDMI panel macro to avoid non HDMI builds complilation errors. CRs-Fixed: 366864 Change-Id: Ib2a9f6db4eb511b2a170fcc7ac979f6c41046baf Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3db0ca75238989ad2b5860c48901952bb15483a3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:32:43 2012 -0700 mdss: display: add overlay ioctl apis to mdss driver - Add support for overlay IOCTL APIs defined in linux/msm_mdp.h - Support for ion client buffers and framebuffer memory Change-Id: I0418ecab9aacf826d900f82f179fa20688fc763e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d6d2863519c2351ef790758ed134e012d4563c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 16:52:09 2012 -0700 mdss: display: implement writeback interface for mdss Add writeback interface support, using one page of framebuffer memory for writeback output. Change-Id: I0a44c6907cbc10d97c78642f45dc018dfb2d1750 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e55fa120321f49385973b37f8b258bf78163743b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 15:36:08 2012 -0700 mdss: display: Add Mobile Display SubSystem driver - Implements Linux frame buffer interface to interact with userspace libraries and applications, based on msm_fb frame buffer. - Implement MDP driver which handles MDP core data path setup and hardware blocks programming. - Support for UI through Linux frame buffer FBIOPAN_DISPLAY ioctl. Change-Id: Ib98677b8d81d74283b27dea08a9f1a705c101bce Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 75692782e15de0990247e2d6252fbd26ca849278 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Thu Jun 14 14:56:11 2012 -0700 msm: display: reduce pwm frquency to fix the broswer blank issue screen goes completely blank while loading a webpage at low back light value. reducing the pwm frequency range to fix the issue. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb CRs-fixed: 362987 commit 14db6b404f2b1627791dada77ea303ef970910a6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed May 23 17:22:15 2012 -0700 msm_fb: HDMI: Start HDCP authentication only on device open Currently HDCP authentication is started for a default resolution upon HPD connection event. With this change, HDCP authentication is only triggered after the HDMI interface has been configured for an appropriate resolution following the call to open the HDMI device. CRs-Fixed: 368865 Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 56672d222b15602826d0200a6baee5ca02a450c6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jun 8 15:57:29 2012 +0530 msm_fb: display: HPD rework for cleaner approach Currently HPD is turned on and off with HDMI turn on and off and turned on again after HDMI off so as to detect the cable plugin. With this change, HPD will be turned on when HDMI drvier is initialized and turned off and on with suspend - resume. The HPD handling during HDMI turn on and off has been removed. CRs-Fixed: 368865 Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 7d11c271b2ca399783975d3b6ef3199cd937a2e0 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jun 7 12:25:31 2012 +0530 msm_fb: HDMI: Update HPD logic to address HDMI PLL related issues In the current implementation, the regulators pertaining to the HDMI core are turned off/on as part of the configuration of the HDP circuitry. As a result, the regulator that powers the HDMI PLL is turned off before the HDMI clocks on the PLL are disabled. This might lead to the PLL not getting locked when it is re-enabled. This change turns on and off the regulators and clocks in proper sequence. CRs-Fixed: 360135 CRs-Fixed: 358598 Change-Id: Ie3630b543e78e83dc565edc32239935135ca4ca5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 66c3c2d50b970ee5f2275d89945271677018ddb3 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jun 12 17:46:53 2012 +0530 msm_fb: display: Add support for command mode on 8x25 SKU5 1. Make command mode default on 8x25 SKU5 devices 2. Add command to change panel scan direction to have proper display Change-Id: I9440ed01541a18ddabe2029c37565dda1181ac2f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1c2bee0158437f485c32f6750e8df3314ae9168b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed May 23 11:30:28 2012 -0700 msm_fb: display: detect if timing generator is on when do dma waiting If the timing generator is not on, dma waiting won't return and system crashes. So add TG on detection to avoid the issue. CRs-fixed: 362503 Change-Id: Ic472e7b75be1fd8960e5ac18929181513085212e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). CRs-fixed: 363763 Change-Id: If9e3c13b5e4005f81fd1b5d2664af206b1decf5b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ba2fa104b3d51b24ccceb168b6bae96fcc851080 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri Jun 15 07:43:20 2012 -0700 video: msm: Don't make the framebuffer cached The video framebuffer should not be cached when mapping into the rotator or video domains. Change it. Change-Id: I407c68ac21a030aff801ebfae01d360bb6bf338c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit aadc14e2ef6a6a84681233ba8020b72b38b98819 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Apr 10 15:28:50 2012 -0700 msm_fb: display: change ion memory map for mdp mixer2 writeback One way that mdp mixer2 gets writeback address is to get ion memory fd from userspace, then mdp driver maps this fd in kernel. When mdp iommu domain was not enabled, this maps to a physical address. Now after mdp iommu domain is enabled, the map is changed to an iommu virtual addr. Change-Id: I461a00cc93169de586565834af4fb9a43949cf95 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9acbfb0eb688bac6a35f12b58e2e9c3de4d2d3b8 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 6 10:00:43 2012 -0400 msm_fb: display: add support for frc Frame rate converter(frc) is treated as LVDS 1080p panel Its configuration is based on HDMI 1080p60 mode LVDS dual channel mode will be used Change-Id: Id3a17f107c8398ddb47105d064be2743a150a3b3 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 94fea065072fc6afd61bd7e2c05f0e552dd1e578 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Jun 12 17:52:12 2012 +0300 msm_fb: display: Fix D2L register I2C driver more than once Fix error message seen on kernel log after suspend/resume Change-Id: I908efec9fde6e9de838e28d2c778fa4b3567e4f6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 913cf20260442f1335ec6ad82549bdae65b120c0 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:12:38 2012 -0700 Revert "msm_fb: display: Attach and detach MDP IOMMU on suspend/resume" This reverts commit aaf74ca34581feb8be797a6d8793824e73fecf67. Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: If9ec76cd040b0e834301d3d9ddbbab04b38b7a7e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f6ef081fb7c9d779401b88c00314127333f9df83 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:05:30 2012 -0700 Revert "msm_fb: display: Add MDP IOMMU detach support for DTV" This reverts commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4. Change-Id: Id1d127080040962c1ad33c9d4bca5005415283da Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1ce7e4c2f39c787fa82aa10a5189df7d0c41b3fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 13 14:05:54 2012 -0800 msm_fb: display: Add support for 4 layer MDP composition Add 4 layers composition support to MDP by allowing borderfill pipe to be used as base layer of mdp blending. This releases RGB1 base pipe which can be used as a general purpose pipe. Change-Id:I517485d738e8bb555a263b3ea885d78d5e4f4396 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 12d6b1f102f45566a0d3089d4e5eeb46a328cf00 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jun 4 11:18:11 2012 +0530 msm_fb: Correct the chroma offset calculations for Yamato format In the PPP blit operations, when the source image format is Yamato, there is chroma offset calculations going wrong in the case when a frame is split into parts and blit is done separately. Correct the chroma offset calculations in this case. CRs-fixed: 366908 Change-Id: I867024632fda9f64a569150e0b6389d55614cd3a Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit a382195e358eebc39640ba8e7f2fe7a3d583aaec Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 5 17:06:10 2012 +0530 msm_fb: display: Set the minimal sleep time for DSI PHY Initialisation On 7x27A/8x25, set the minimal sleep time required for DSI PHY hardware to get initialized and for the display to come up. CRs-fixed: 367652 Change-Id: If040a5ac37f694e83b819ecf08fc80f2afb7afaa Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 2fcabf92eea31cad2ec4852dcab563f2c93e4294 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Wed May 30 10:41:11 2012 -0700 msm: Replace idle wakelocks with pm_qos Idle wakelocks are being removed so replace them with pm_qos. Since we don't know every driver's latency requirements we maintain one-to-one compatabilty with the idle wakelock API by replacing the wakelock with a pm_qos request of the correct latency. Once we determine the actual latency requirements of each driver we can replace the latency used with the correct latency for the device. Change-Id: Icc40f1642218e0de8fc2f56eaf9e8f92914d142f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 12:25:31 2012 +0530 msm_fb: display: add writeback mode for mddi on 7x30 Add support for BLT mode in the MDP4.0 overlay architecture while downscaling to more than half of the source dimensions to avoid underrun issues. CRs-Fixed: 313524 Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef9ccdb031e1fc3c80067cfad59fc5c2d9db77be Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue May 15 10:52:00 2012 -0700 msm: display: Change DSI escape clock to byte clock Changing DSI escape clock source from PXO to byte clock to add more flexibility. Change-Id: Ia78093f8b8be6a27c86f3e8db68fa1f4a4d85086 CRs-Fixed: 361022 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit f98c498b5ef8827afb24bad495f4e175f0829807 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu May 31 15:15:29 2012 -0700 msm_fb: display: Wait for external vsync before DTV IOMMU unmap In play wait call for DTV, software waits for overlay1 done before unmapping IOMMU buffers. This is replaced by external vsync wait to avoid page faults. Change-Id: I67d3615121e9eda3a4378553049a41e32860a520 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c0399fc8064b7e09bf41b9213faabc448ea95707 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 11:43:49 2012 +0530 msm_fb: display: Remove chicken bit config during video playback Remove the chicket bit configuration and overlay status check for MDP 4.0 v2.1 hardware version CRs-Fixed: 313524 Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b411a253ea37acbe8cc817bf004ae08d877d9bd1 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed May 16 00:47:38 2012 -0700 msm-fb: display: lm2 writeback support on mpq platfroms lm2 writeback has broken on mpq platfroms as lm1 and lm2 are selecting the same axi writeback path. It adds the support to select the right axi writeback path based the availability of the write master Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 140748fe6442df1cc95dc1a2519ad8db2190b2b3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu May 24 20:44:07 2012 -0700 msm_fb: display: Disable LVDS phy & pll during panel off LVDS phy pll power rail is consuming power in suspend state. Hence phy & pll are disabled during panel off cases on suspend and device release cases. Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ff42a9a426ab9a76d75a29464412807dd72ceb13 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 29 11:03:00 2012 +0530 msm_fb: Check for Histogram NULL while queuing work Don't queue the work if the user hasn't requested for the histogram data CRs-Fixed: 365729 Change-Id: I0b28097fa00f13a836c2ee9d35e8e4557f1c70f0 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit adf8fef78bf5f77f6c378d8889a35844278148e3 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri May 11 14:13:05 2012 -0700 video: msm: Migrate away from subsystem map APIs The subsystem map APIs are no longer the preferred method for mapping into the the IOMMU. Migrate away from those APIs to the newer map_contig_buffer APIs. Change-Id: I29608bd1cf7f9fb8c5584952826b6f3ae56bc3d8 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit a2afa0dbade27d11382e2486c079d20532a5d73c Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed May 23 15:38:50 2012 -0700 msm_fb: Display: Add additional settings to improve DSI signal strength. Modify/add new Physical layer settings for Lane, BIST and PHY strength to improve the rise/fall time of the DSI clock waveform. CRs-Fixed: 364037 Change-Id: Ie2503100eebdf9d4c82d457c187ab8fa903778c6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 493c38628f7288d0c9ef384517b0eda3b76d50a8 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 23 17:18:18 2012 -0700 msm-fb: display: Perf changes for mdp composition Display under-run issues are observed with mdp composition. Fix underrun issues by changing perf level. CRs-Fixed: 354377 Change-Id: I82346e65af173d7592506f1cee7f90f40ee01485 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7a77c7ca07bbcc390967552d0973238ac48b5597 Author: Anitha Anand <anithas@codeaurora.org> Date: Tue Apr 24 15:46:36 2012 -0700 msm_fb : Disable power collapse before VSync to negate wake up latencies. For a 16ms frame period the CPU may go into deep power collapse. Based on the power collapse exit latency for that low power mode, the frame period gets extended by the latency to wake up the CPU at the next VSYNC. This results in a user experience glitch. Adding an hrtimer to wake up the CPU few ms before the Vsync and disabling power collapse compensates for the extra time spent in waking up the CPU out of deep sleep. On timer expiry, set wakelock to veto idle power collapse till the next VSync. The wakelock is released on the next VSYNC occurrence. Change-Id: I3e013cc54c36d3015d6fafa4b9ccd435cb5532ab Signed-off-by: Anitha Anand <anithas@codeaurora.org> commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 15:15:16 2012 -0700 msm_fb: display: Register MDP fault handler with IOMMU driver. MDP fault handler will print minimum information on display related page faults and its registered with the IOMMU driver handler. This is to minimize logging when a series of faults are seen to cause watchdog bark. Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c96bc441e59d6f0439671c85bc41a3507f232e8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 12:31:31 2012 -0700 msm_fb: display: Free staged foreground pipes during suspend During suspend, some foreground pipes might still be staged and have to be removed before disabling timing generator. So, these pipes are staged down and freed before timing generator is switched off. Change-Id: I3f2376cac43464c64cd1c9e2f16f3d801298c25d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 13:24:52 2012 -0700 msm_fb: display: Add MDP IOMMU detach support for DTV IOMMU detach support on suspend is currently meant for DSI Video and LCDC modes. The detach call is moved to early suspend for primary display and external DTV to avoid page faults related to suspend/resume cases. Change-Id: Ia45071c44c20b951a328f39a033bdd83ff77d8f8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6877b7fc326cd18bbf6c83b418005f7cffbffb9c Author: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> Date: Thu May 24 12:30:35 2012 -0700 msm_fb: display: Flush background pipe after solid fill configuration For is_fg support on a foreground pipe, the background pipe is currently set to Solid Fill mode without being flushed. Add flush after enabling Solid Fill on background pipe. CRs-fixed: 352855 Change-Id: I91c4e391c9577a9198d048d2b369369d348efeab Signed-off-by: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> commit 10a9758c95a68e11f27c9f6452ac9b5b978a8ca8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 21 17:32:07 2012 -0700 msm_fb: display: Fix invalid x offset programming for YUV444 fmt Source x offset adjustment is not properly programmed for YUV444 format, it is always programmed as 0. Add support for correct x offset adjustment. Change-Id: I73e87f961bda60670cc764c66be955e48ccf2734 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit aaf74ca34581feb8be797a6d8793824e73fecf67 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 18:37:20 2012 -0700 msm_fb: display: Attach and detach MDP IOMMU on suspend/resume MDP IOMMU is not in a clean state on suspend/resume with page faults seen with video playback after resume. Hence, IOMMU is detached during suspend and attached on every resume call. Change-Id: I906cd7fa79ab67fd69eb1974d06d3521d42bf55b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ef70852238212e6df24584426ad263291df1bf4 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Tue May 1 19:19:40 2012 -0700 video: msm_fb: Wait for dma to finish before terminating If writeback takes too long to finish, after calling _stop() writeback client might deallocate buffers during the DMA causing faults. To prevent this situation, make _stop() a blocking call that waits for the writeback to finish before returning. Change-Id: Ia710095a55d705589a81aa9bc29c41d536c2a42d CRs-Fixed: 351773 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 20c1b5887a5ba7bae742225bfceaa2268e0e7549 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Mar 12 13:58:07 2012 -0700 msm_fb: HDMI: Video Quantization Ranges changed Quantization settings applied based on default range for source format for 480p. If a non-zero value is sent then it must correspond to transmitted video format as per the standard. Setting RGB Quantization values in AVI Infoframe for 480p to default range (0x0). Change-Id: I01fc263c9406fe80a4b3c73628f265bb733ff90c CRs-Fixed: 349246 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 77f82aec5a4785f89cb2ab968dcde1452f3073c6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 09:42:25 2012 -0700 msm_fb: display: Flush MDP registers before staging up any pipe Add flush calls to MDP's pipe and mixer registers before staging up any pipe to a mixer. Change-Id: I36f5aa04634bae43a38e57cd97bd2aafe9631eda Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c9fa6999ad8b2f10ec4e807ee3dae621f8c6d4fe Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sun Apr 29 22:39:48 2012 -0700 msm-fb: display: Reducing the display wake up time 100 msec sleep in phy init delays system wake up. Using usleep instead of msleep to optimize it. Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit aa356f6c4d44965233c79d68bd293a258730d8c1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu May 24 12:25:27 2012 +0530 msm_fb: display: Keep fb1 for MDP version < 4.0.2 For better memory usage, fb1 memory allocation is removed for targets like 8960 which support BF pipe and true mirroring but required for targets like 7x30 and 8660 which still needs fb1 for border fill. CRs-fixed: 364669 Change-Id: Id741223a0107e356b9164b582aa1f901caa21988 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e9658eb364860826d3924b3d45ba74a2a6c2a2e6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue May 15 14:58:55 2012 -0700 msm_fb: display: Rename MDP IOMMU context bank names MDP IOMMU context banks do not correspond to the input processing pipes like RGB and VG. So the context banks are renamed based on port and number. Change-Id: I39a6b1a66226aeaaf48fb3697f90ab55b67a592c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d995a89cd61bb7295f0226420c4752dc0a9a8fe1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 10 12:18:58 2012 +0530 msm_fb: display: Move mipi dsi clock enable before dsi soft reset mipi_dsi_clk_enable() is called after dsi soft reset. Move mipi dsi clock enable before dsi soft reset as per mipi dsi hardware design document. Change-Id: Ie1cfdf53bc74b87b5a0e0679ab26bc513205673d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 8 15:04:27 2012 -0700 msm_fb: display: disable pan display and memory access to fb1 and fb2 The native fb1 and fb2 framebuffer memory is not used and not allocated on the board file. So on the driver side, pan display ioctl or other operations on fb1 or fb2 framebuffer memory is checked and invalidated. CRs-fixed: 357242 Change-Id: I2883926251a0465f69f18c442d5867556a4651bf Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0dc81db9cf48d869987e8fa8ab8914fcec964bda Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue May 15 13:38:45 2012 -0700 video: msm: Avoid waking readers on failed histogram copy Avoid waking up the waiting histogram reader when the current histogram has failed to copy. Additionally, clean up initialization of histogram workqueue (was initialized twice). CRs-Fixed: 361640 Change-Id: I376c0193b8e34aba5b0aef54feb9504f450ffff4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 71cf95bf1100ab5de55bf3858d40996be7dc445e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 7 11:30:52 2012 -0700 video: msm: Check for multiple readers of histogram Check to ensure that only one reader attempts to read one frame's worth of data from a histogram block. Prevent the case where two readers attempt to get data, but end up causing a loop where neither of them do. CRs-Fixed: 361640 Change-Id: I48878d9fe02d96f306894ed9acc47bf41cd9984b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 19e4b71f617e307cacf0be077e08bec5c37df290 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 14 12:01:04 2012 -0700 video: msm: Clear previous histogram data on next startup Clear the pointer to the userspace histogram struct when histogram is started. Previously, when the histogram was stopped while a histogram read was in progress, the pointer was not cleared, causing the next histogram read to think that someone was already using the histogram. CRs-Fixed: 361640 Change-Id: If09017149e98b35c49603372c554aa4c97f2de82 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ee888e34e20ec3bb4c2c385f3967ecaa9e97f49c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 15 16:39:10 2012 -0700 msm_fb: display: add blt mode enable and disable for lvds panel The check for lvds panel is missing, so blt mode can never be enabled for lvds panel. blt mode is critical to avoid underrun issues. Change-Id: I3cd74bcd978a73997df638f10cd2126ba9ab6577 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8f7c96dc7ee42acd71ea962cf0580f0a9480d5af Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 15 12:42:57 2012 +0530 msm_fb: display: Add support for MIPI NT35510 client on SKU5 Panel is 180 degrees rotated on SKU5 devices. This change fixes the 180 rotation on SKU5 devices in video mode. Change-Id: I9c7ff12de9e19534f8df8ebd9215d74ff0e429f3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9f1453ec3eb2b22160d25148a45f1731a23d4c95 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Mon Apr 16 13:25:00 2012 -0700 msm_fb: Increase PWM granularity to 255 levels for 8960 fluid Currently 8960 fluid display panel only supports 100 levels for backlight. Content Adaptive Backlight Control requires 255 levels of backlight for optimal user experience with CABL turned on. CRs-fixed: 342485 Change-Id: I02226a7790f2dd0144c1eb623c8177724e33a715 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit fee56a86ba3582e2985b2f5a0e535743381544ff Author: Pankaj Kumar <pakuma@codeaurora.org> Date: Tue Apr 17 14:26:49 2012 +0530 msm: Add support for 7x25AB MSM 7x25AB is new msm which can go upto 1GHz. Add required cpu checks to add support for this new device. Change-Id: I0be886d471fe0c70b8afd4da87b9991862a8571f Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org> commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54 Author: Siddhartha <agrawals@codeaurora.org> Date: Mon May 7 18:58:56 2012 -0700 msm_fb: display: Update video format on fps change Added check for frame rate change. Corner case if there is no change in xres,yres and pixclock. Change-Id: I0ff5eb65364d2a370e0973da7e84f738bd042a20 CRs-Fixed: 356328 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 514b1c651a33b7b73fb6f654d04355eac5ecb146 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Change-Id: I8d658ddf4f2ccb2ae47015fe411e8c1a5a55e4df Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ca15287e50fe00dd6526fdc166cb526298099fb2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri May 4 12:56:36 2012 -0700 msm_fb: HDMI: Do not add HDCP reauth timer during probe Currently all HDMI/HDCP timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HDCP timer being fired 5 minutes after boot even though reauthentication is not necessary. This change fixes this issue by not starting the HDCP reauth timer during probe. The timer is only started when an authentication failure is detected from an existing valid HDCP session. Change-Id: I0a28437daa2e95d24a02131322305f3b21a6445c CRs-Fixed: 352080 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d4aab1eb15aa7f9452f1e40688732815b39d4182 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu May 3 20:26:56 2012 -0700 msm_fb: Pass device pointers to regulator_get() Passing a device pointer instead of NULL as the first argument to regulator_get() allows the device to be taken into account when finding a matching regulator. Change-Id: Idc9990eff2c6c78fc9fc9a36d638eef4fd1b632a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 275f94daff0211c145526ee6d45bf48454b13afa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 15:46:01 2012 -0700 msm_fb: display: add mdp version info for later mdp h/w fbtest needs to get the correct mdp version number, but now only the version up to mdp4.0 is returned. Add the latest mdp version up to 4.4. Change-Id: If1ff302bb4a02ed13bb4dcabcb933fd5adfbec6d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit cfd004fa326a6dc4c7e80da707248b5bddaa39b8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 7 12:02:41 2012 -0700 msm_fb: display: Flush pipe registers before staging the pipe Flush pipe registers before staging the pipe for the Mixer with pull mode panel interfaces. This fixes the IOMMU page fault/underrun caused by pipe fetching previously unmapped buffers due to missing flush calls CRs-Fixed: 356484 Change-Id: I6bc2e49746a7c3773708796bc1709c75a8afaa4b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit eee66c6ffa18c954fa2583fdda66526f90bad40b Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 28 16:07:08 2012 -0700 msm_fb: Increase backlight granularity from 15 to 255 levels Currently number of backlight levels are set to 15, which causes noticeable flicker when backlight level is changed from CABL functionality in userspace. So to improve visual performance, increase backlight granularity from current 15 levels to 255 levels. This change is for msm8960 & apq8064 liquids which use Chimei panels. CRs-fixed: 342485 Change-Id: I204f881d45fbcd4a419cc8e61c3bcb1f4d520f7e Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 134786b7bbcb3c8b07b4f56b4421842b75e8471a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu May 3 14:44:39 2012 -0700 msm_fb: display: add dtv wait for vsync when in blt mode Currently dtv is waiting for overlay done when in blt mode. When dtv frame rate is low, this return may be too soon. So before dmae finishes updating buffer, the buffer may be overwritten by userspace. Add dtv wait4vsync after overlay done to lock the buffer untill the next vsync to avoid tearing or flicking. Change-Id: Ic57544a5305fdf9081bfeeccd8d364395faaf602 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6f043415300f58c5868e02050b15c8aa21c26342 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri May 4 01:16:06 2012 -0700 msm_fb: display: Correct LVDS Phy mux settings Fix the display color issue in 1.1 chips due to wrong mux settings in LVDS Phy Change-Id: Ia51500e15e0ffb3e4cc056073985cdeed5751652 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 29c5fb0392a1bf36ac385f5e8790999d70f6d2a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 27 13:50:44 2012 -0700 msm_fb: display: Clear background solid fill on closing video pipe Clear background pipe's solid fill setting on closing Video pipe to avoid blink issues in display Change-Id: Iac3c884334f38580fb5c9dbfb260dd6940ef5019 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b2bdae8ee4262a4e1d8e8e7f9c91b80790bdff27 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Apr 6 16:05:05 2012 -0700 msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe dtv_pipe is the base layer pipe for mixer1. Waiting for vsync when staging down this pipe (it happens when we unplug HDMI cable) causes mixer1 under run because at the vsync moment dtv_pipe is disconnected to mixer1. CRs-fixed: 349765 Change-Id: I3a09159c3ae2dfea963e5ad064076f5a9452ec1b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e534683723654af2a904e6dec3a646a2d9542408 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Apr 27 22:27:31 2012 -0700 msm_fb: Correct mdp_iommu array size to avoid scribbling The mdp_iommu array was undersized. This resulted in scribbling of nearby data structures which, through a long series of events, lead to invalid pointer dereferences in the workqueue framework's process_one_work() function on (at least) the 8930 SoC. CRs-Fixed: 357011 Change-Id: Ia8027ba8714bb90b336ee79d43920a7f71a8091b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 59508db9d5cec32ff59c2ff5a689288db2b027d4 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 30 16:30:29 2012 -0700 msm_fb: display: increase mdp upscaling range The old range is x8. Acturally mdp rgb or vg pipes can scale up more than that. The max up to x20 is verified. CRs-fixed: 340747 Change-Id: Ief7ee936e39de2ada87d47b14872bca0c3cf36a7 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b18c9e29486f574bc6353243e1c0116956ba712c Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Fri Apr 13 18:29:34 2012 -0700 msm_fb: Provide support for ARGC and CSC for layer mixer 2 MDP 4.4 supports additional layer mixer (LM2) with ARGC and CSC blocks. Extend existing ARGC and CSC functionality to additional layer mixer (LM2). Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0ae152b929dfc538bbb2c72f01b5f3bf14c3c6bf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 14:17:39 2012 -0700 msm_fb: display: update dtv panel info clk rate dtv panel clk rate is dynamically changed with the HDMI resolution. s/w panel info needs to keep its clk rate updated. CRs-fixed: 355110 Change-Id: I9365d67820158afb2bc520736df9152864a2a962 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e01bb5a4944eea27e87ca00a869105185c13664d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Apr 24 15:14:26 2012 -0700 video: msm: Add QSEED API to MDP_PP IOCTL Add the ability to program the QSEED Table 1 coefficients to the features supported by the MSMFB_MDP_PP IOCTL Doesn't support table2 writes currently, however, the code to write to them is already present. QSEED support is currently only configurable via a tuneable parameter that maps to a small subset of possible QSEED settings. By moving to the MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value requested by userspace. This also allows for future expasion of the QSEED feature by allowing dynamic loading of the table2 coefficients (rather than only configuring them at init). Change-Id: I7394e211169efb0e677391e2c150a6a6b8d0477c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 28ffb9c964d8d303c38f90b6c4bc8bf313356a54 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 11 23:37:15 2012 -0700 msm_fb: display: add dtv_pipe null check before dereferenc it There are chances that a null dtv_pipe pointer is dereferenced and system crashes. One such case is unplug HDMI cable while playing video. So a null check is needed for each dtv_pipe dereference. CRs-fixed: 355238 Change-Id: I1ff57b00169e217fc5ed98574db7fd49b9319d0a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 14648740d17ca1f154222aba29a1f2946609f460 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Mar 30 19:42:12 2012 -0700 msm_fb: MHL Driver for SI-8334 Transmitter The device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I845bc1b30dc799183357224a296215ecc1d44893 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b41048b637d4341e24f8f36b68b127fe600f6a1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 15 10:40:40 2011 -0700 msm_fb: display: add YUV444 interleave format support to mdp Add support for H1V1 interleave (YUV444) to mdp Change-Id: I86b76831ad87dede90ddd8d8f5ae64e51fa28c27 Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6098eee975076350586eb3010edda8b96ac998d5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 19 10:35:01 2012 -0700 msm_fb: display: Unstage video from primary mixer H/W on unset Resolve video playback suspend/resume IOMMU page fault by unstaging video layer on VG pipes from primary mixer H/W during overlay_unset calls immediately at the next vsync boundary CRs-Fixed: 350371 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ia1b2369005db500b5042d3226cf8d43027783fe3 commit 5ff2cb661c0575a45e8cf70384dd6c1d2dc8e7ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Apr 11 10:43:07 2012 -0700 msm_fb: display: switch mdp mode without turning off timing generator MDP need to be in idle state before switching to different mode. Dmap_done interrupt is delivered when the last line of frame is clocked out. Therefore mdp is in idle state during dmap_done ISR. This patch execute mdp mode switching inside dmap_done ISR. Therefore timing generator is not necessary to be turned off since mdp is in idle state already. CRs-fixed: 350154 Change-Id: Ib10557bde90856ffd5284a0a76dddbe92f2abc0e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d94b7d4d0c67a9bcdbb4ab1929ce70f4b6ec7136 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 23 16:02:08 2012 -0700 msm_fb: display: remove mdp writeback2 overlay kickoff waiting Before overlay2 kickoff, there is already a dma busy waiting, so once overlay is kicked off, mdp driver can safely return to userspace. Then if there is another request while ovlay2 is still busy, dma busy can take care of it. Change-Id: Ibb45a8b306a393c8e240fc64b5857e8700afcaba Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 012a8e79ebc3cd375f501a862e7b401b99c53054 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Apr 11 10:41:13 2012 +0530 msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers Many of MDP input formats don't have correct unpack pattern, so image displayed on screen is not in the actual format set. Also,Some rotator output formats differ from input, these mappings used to be handled in userspace, but to avoid issues this is now done in driver. For YCrCb planar inputs chrominance order is dependent on rotator hardware version. Add hardware check to swap Cb and Cr for 7x30 and 8x60 rotators. CRs-fixed: 339114 CRs-fixed: 337040 Change-Id: I55691aa7c9d38e83e4fc63a162ffb23959ba30c1 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 7a62a68bfa68cf9767b9cb6432c05a47e296067b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 14 15:56:13 2012 -0700 msm_fb: HDMI: Compile error when HDMI is disbaled Resolve compilation error when HDMI is disabled through kernel config. Change-Id: Ie89ac666fe4db83294cce07f59f61790b200d463 CRs-Fixed: 341412 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 87dd72e286299134b5783cb90f61e7eaec7d2788 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Apr 16 19:07:36 2012 -0700 msm: display: Clean DSI state on continuous splash disabled cases Reset the DSI clock control, disable controller and PLL to resolve boot issues for DSI command mode for continuous splash feature disabled/unspported cases Change-Id: I1e5e9a9d2d548c518d2620bf6d9e125d5efc8fd4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0769dbd1fabe600bf6a8bd1d563c9e31b8d7c122 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 19 16:54:09 2012 +0530 msm_fb: display: Update clock prepare changes for MIPI DSI Update the clock prepare/unprepare changes for MIPI DSI clocks and update the clock lookup table for ebi_lcdc_clk for MIPI DSI interface. Change-Id: Ic31e2e1b169894e633849573eb54325457080b53 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 60d51beb9dd5db3f1adeb203728b1d7ccdec8e0c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 18 17:18:31 2012 +0530 msm_fb: display: Change panel init command for NT35510 for proper display On NT35510 panel, the display is 180 degree rotated right now for video mode. Change panel init command in the init sequence for Video mode for proper display. Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d16485de65e9e7d611293f5b6174b3a3efa7a3d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 21 16:51:26 2012 -0700 msm_fb: display: Add clk prepare changes to MDP and rotator Use clk_prepare_enable and clk_disable_unprepare instead of clk_enable and clk_disable respectively. CRs-Fixed: 351340 Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0f0000abcba6f99593dab94ca869c3d865a73e29 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 12 10:23:02 2012 +0530 msm: display: Backlight control on 8x25 EVB for qHD panel Add support for backlight control on 8x25 EVB for qHD panel Change-Id: I488786b45b844df776952fed4d23b9a4fb337107 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5479cc16a03c6b791daa5eac8f45018ea873cfc1 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:40:40 2012 -0700 msm_fb: HDMI: Enhance EDID Parser to read supported 3D formats EDID Vendor Specific Data Block (VSDB) contains information regarding all the 3D video formats that are supported by a sink. This change enhances the EDID parser to read this data. Change-Id: I61ca8adbff8f4662e437bab42786149c39ea78da Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8b25b2a0b5910befcf0668dc76294f83dccc080f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Apr 12 14:19:12 2012 -0700 msm_fb: HDMI: Fix EDID parsing logic for multiple data blocks This change fixes a bug in EDID parsing logic when there are more than one data blocks of the same type in the EDID data. With this change, the starting offset used to scan for the next data block, is computed correctly. Change-Id: I5d09fe61be9f7c749197991f54e430ae3aaddbcb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 45ce501383ee71df0072b4e5426f9daa7941636a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 9 11:19:07 2012 -0700 msm_fb: display: add mixer1 writeback buf init call mdp4_init_writeback_buf call is missing for mixer1 interface. And blt_addr should be nulled when dtv interface is initialized, otherwise, mixer1 writeback mode may be false enabled which causes system crashes or garbage display on TV. Change-Id: Idbf5fe90eb50f0a68b434f2c76012c64a38553a4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 7b8b64075ee4b61c15e28f3042672b26674e0b45 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Mar 1 10:58:03 2012 -0800 video: msm: Add Histogram collection framework for MDP blocks Expand the previous histogram collection implementation to support the addition of other MDP blocks that allow for histogram data collection. Support the VG1, VG2, DMA-P, and DMA-S histograms using this new framework (VG pipes only supplying the histogram of luminance). Change-Id: I94088c1f714fa5d91256ae7b0f5548f8a0b81763 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 20582a5cf3fad8e9fda7ded6478ed8a32b376b97 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Apr 11 10:57:22 2012 -0700 video: msm: Remove an ifndef from mdp_isr Remove ifndef so later patch does not require adding more ifndefs. Change-Id: Ia06e844f42086ad76019f66b575ed78a40ebafc4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 5 19:09:40 2012 -0700 video: msm: PCC/GC config register protection PCC/GC configuration registers are shared with other features. This patch makes sure that the other features implementations don't overwrite the existing settings for PCC/GC. CRs-Fixed: 345395 Change-Id: I5467a4c50eae214181d67a7976eee92c0ae26fe5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97e2fcf862d913feff157f536ee14cfc5f3197f7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 10 14:11:22 2012 +0530 msm_fb: hdmi: Disable 1.1_FEATURE Some displays support Enhanced Link Verfications(1.1_FEATURE) which makes HDMI Tx to verify Pj on every 16th frame. Three consecutive Pj mismatch will result in HDCP authentication failure. If 1.1_FEATURE is supported(this can be detected by reading BCAPS), it needs to be enabled by writing into AInfo of display. Default is disbaled. This change sets HDMI Tx core to disable 1.1_FEATURE by default so that we don't see Pj mismatch error unless the feature is enabled. CRs-fixed: 348752 Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b52a25139f7b14bb3b9e052d1af3def2fff5d25d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 10 18:27:23 2012 -0700 msm_fb: display: Fix HDMI as primary issue with continuous splash support Fix HDMI as primary boot failure with continuous splash support by resetting MDP hardware and disabling splash feature flag in board data Avoid flickering issue for HDMI as primary display with composition bypass updates Change-Id: I9620062f10b24072ea23b7e712e24aba533f044b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6b7005caf369caf819c1bc3e29a633893b9ebcc4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 6 18:58:44 2012 -0700 msm_fb: display: Allocate writeback buffers of panel resolution sizes Allocate MDP writeback buffers based on panel resolution size dynamically Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I4a456199a05850f35c204edfa7ae3679036138a9 commit 8c23e070b04aa6160681203bf431db60eb7e2e9a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Mar 14 11:35:49 2012 +0530 msm_fb: display: Enable 32bpp framebuffer format. Enable 32bpp framebuffer format for 7x27a and 8x25. Change-Id: I38deabca45ea849710bd2edb2b6847c5309a0c9e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 2e931122a4bab690ed345730d7733904eb97d5b8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 11 11:05:39 2012 +0530 msm: display: Reset BG_alpha register while alpha blending Reset BG_alpha register when pre-multiplied alpha is not set for a layer during blit request. CRs-fixed: 351158 Change-Id: If103af384d59c3349cb2ef556a497c709d9280a2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1b064f5e1e5a7426fad6ab8ada8e47dbb091937e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Mar 15 18:17:54 2012 -0700 msm: display: Add device pointer with clk_get for retrieving clocks clk_get requires device pointer to return appropriate clocks for display subsystem. Rename the names of display related clocks in the lookup table based on functionality. CRs-Fixed: 336925 Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59e7b0e47eaee57850157361f31c230b3e1c8a8f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Apr 6 15:51:44 2012 -0700 video: msm: Allow PCC/GC to be disabled/select bins Current implementation would not set enable/disable bits to PCC/GC nor be able to select the zero'th bin after selecting the first. Change-Id: I0f52beb8914cdaecbabe913455c00fb9ea6100db Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fff7a7d207a8791a68706bf8fac3838884981204 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:27:19 2012 -0700 msm_fb: HDMI: Enable SPD InfoFrame transmission Sinks use the information in the SPD InfoFrame to get the vendor name and the product information of the source device. This change adds the ability to specify this information and transmit the data as part of the SPD InfoFrame. Change-Id: Iff3db2e21cc30cdcc18787de5fd83c6a0790794e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b64b8dee8c93cb806a906440ef8a4aa72486df75 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 3 23:04:35 2012 +0530 msm_fb: display: Unstage mixer staging on next commit for video use case Unstage of mixer occurs on single vsync. For video playback case on 8660 it is observed that sometime unstage does not complete due to which flicker is seen during unset. Unstage of mixer is now done on next commit only for video use case to avoid flicker. Change-Id: I4939148989d49b3190142f858a40d2cf7617c7ba Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit bea9c06d44800da4c7cbc75e25731a75bd9f84ae Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Apr 9 10:33:48 2012 +0530 Revert "Revert "msm: display: Backlight control on 8x25 EVB"" Enable backlight control on 8x25 EVB for WVGA panel. This reverts commit 75cf6b84b36b054cb7b8074af165cb082112c7d7. CRs-fixed: 339158 Change-Id: Ice8426442c9d82a7316dfd4d812e9f6301a97850 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c55856c548e0cec8b29e415a08a353a0ab1ac4c8 Author: Alhad Purnapatre <alhadp@codeaurora.org> Date: Tue Feb 28 13:24:57 2012 -0800 msm_fb: display: MSM V4l2 video overlay driver Provides a V4L2 device that uses the MDP overlay pipes (on MDP4), or the PPP interface (MDP3) to overlay frames on top of display framebuffer. Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org> Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee commit aabbf2b21c415c226b680df7ee61b565f47d8603 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 7 10:50:19 2012 +0530 msm_fb: hdmi: CEC re-transmission improvements. Adding some improvements to HDMI CEC code flow to reduce the risk of system crash and compliance failure by proper CEC resiters settings and positions in code flow. CRs-fixed: 336541 Change-Id: I8fb3510190e5c4ff83b3785c51bade139f20692c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6fdf4becd5fe50e52d587d35d1ee047385351f83 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 30 18:34:05 2012 -0700 msm_fb: display: Create hdmi_as_primary node for boot parameter case Create hdmi_as_primary node for both boot parameter and compile-time cases when HDMI is set as primary display Change-Id: Ib170637e3792477e46ae0fb6044b298bf8de875c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f0bd4cd4ca4114298fba41f18db9babe0533e075 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Sat Mar 31 14:35:50 2012 -0400 msm_fb: display: Epson ebi2 panel support Support fb with ebi2 only(without mdp) Add Epson ebi2 qvga panel support Change-Id: If61b2c522a102133f98f27b21dcc18d057b7ef25 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 226b429d026195ff93b7de8066d8943b58dc65a5 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:35:31 2012 -0700 msm_fb: HDMI: Enhance EDID parser to read physical address This change adds the support for reading the physical address field in Vendor Specific Data Block (VSDB) of the EDID data of a sink. Change-Id: I435705a7709ea26cff71121a2c37fd630b267ae5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d89c0e7712dd5cf13769b4d0facfecb93028538c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Mar 28 10:17:20 2012 -0700 video: msm: Load correct default values to QSEED at init The previous QSEED Table 1 values are not suitable values (would end up smoothing and sharpening content which can lead to artifacts). The values loaded by this patch are the suggested default values for QSEED since they do not smooth or sharpen most content (bi-cubic filter), but will slightly smooth low frequency components of the image (i.e. helps reduce artifacts that produce sharp edges on content that is supposed to be a constant color; often introduced by some video encoding algorithms). Change-Id: Ic4c0ca4719141bf52123ad239fcca5d3767a2c2b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5066a5f662d0d88ad4c94158fe392bb0fbd61cb4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:29:32 2012 -0700 msm_fb: HDMI: Support VCDB parsing of EDID data This change enhances the EDID parser to read the Video Capability Data Block (VCDB) in order to check whether a sink supports underscan mode. Change-Id: Id4e48db4ff7f54fd72d40a413e2f03b692b662c1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 6e73f0a25171e3e5d2d520da99a02f74c5646592 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 8 17:32:55 2012 -0800 msm: Display: Add support for backlight control on 8930 chipset. Register the PMIC WLED trigger driver to control the backlight level on 8930 chipset. CRs-fixed: 339310 Change-Id: Ia73625cfeaa18f2515c81a4c128f98f9fb5c0b32 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b7c45f42b50b609bb632a0f1f1b2e404af38329a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 3 11:39:39 2012 +0530 msm_fb: display: Enable pre-multiplied alpha for MDP303 For images which are pre-multiplied with alpha, driver support is now added to blend them properly. CRs-fixed: 347803 Change-Id: I859c26c5f52fa0886c106928ef338bd9d0db4462 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 18e249a842a459c14624354f00ef3434d3b6c643 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Tue Feb 21 01:10:56 2012 -0800 msm_fb: lvds: Fix uninitialized variable warnings The compiler doesn't know that there are only two values for mfd->panel_info.bpp. Add an else arm to catch the unknown third value as a BUG() so that we avoid writing initialized variables to registers. Change-Id: I643df7e256cda59a4af73571e1cc5eef610d781f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 2d19103b77ae63fe127304b9c3ceeb1f399c756a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue Feb 28 09:46:31 2012 -0800 msm: Enable all IOMMU's Enable video, camera, display, and rotator IOMMU's so that virtual contigious memory can be used by these devices. Physical contigious carveout regions can be reduced so that more memory is available to the rest of the system when not in use by multimedia. Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 70b866b2ca1d92ee632b5f3eb591d7ae09fab492 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Mar 27 14:50:25 2012 -0700 msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication All HDCP interrupts should be disabled at the beginning of HDCP deauthentication process so that we do not process any redundant HDCP failure interrupts while deauthentication is underway. Change-Id: Ib5149460446b6073122a8249807918d5ad06492c CRs-Fixed: 341921 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 92e58bb7966bbaf8b4c73bf98a5d55dde9980b37 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: flush base layer pipe when solid fill is enabled Need to flush bgpipe with solid fill format to avoid fetching from bg pipe when its contents are not displayed. Also add other missing flushes. CRs-Fixed: 342961 Change-Id: I03e517e02c02d9abc26fd9365e7b67025fa59657 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c0852b7c3a9d08f8d80ad2bb01316f7252f23ced Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: perform data flush for each data path separately Performing data flush on stage commit causes some frame updates to be missed waiting for stage commit, this can lead to old data being overwritten while it's being displayed causing visible corruption. Change flush to happen on each frame update to avoid corruptions. CRs-Fixed: 341597 Change-Id: If91800068d2bfd5a2e43fe3e2a96c457e173763d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d46e8d072e432c19eec0e7a2b04a9b6967906242 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Mar 27 16:22:11 2012 -0700 msm_fb: display: remove #if 0 Cleanup all #if 0s in display driver. Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit aabb74cb030c086ca67f51b3d56deb678d4f040a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Mar 15 14:25:32 2012 +0530 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> commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 2 10:20:48 2012 +0530 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> commit fd0df3ccda02dd1fad680735333bea7ac025abc5 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 30 17:03:51 2012 -0400 msm_fb:display: add display support for mdm platform add setting for no mdp hw case add ebi2 epson qvga panel setting Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 687b109b5f46caf68efde0a1c3a1084a5576a997 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sat Mar 31 15:45:21 2012 +0530 msm_fb : display : Add 60fps support for NT35516 qHD panel This change adds the required support for 60fps using h/w vsync in Command mode on NT35516 DSI Client. Panel Init comamnd has been modified accordingly. Also, since the panel gives 59 to 61 TE signals per second, refx100 has also been modified to indicate the maximum possible refresh rate with this panel. This will ensure smooth operation of DMA Tear Check algorithm. Change-Id: Ib2c03e61509946b7929c3cd21b497a972359fee3 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ff6bfa8e6f2a62ebb19aabd9ed499ee7efa0e006 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 23 17:48:47 2012 -0700 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 commit 3ef84a5ab70bbd65799dbf72b3375b0bc764140d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 22 22:14:41 2012 -0700 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> commit 75cf6b84b36b054cb7b8074af165cb082112c7d7 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 30 15:04:52 2012 +0530 Revert "msm: display: Backlight control on 8x25 EVB" Waiting for the vendor approval/permission letter. This reverts commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd. Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d85b55446992dd36bb9b8ee56f7e95be97278425 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Mar 26 15:59:58 2012 -0700 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> commit 5b5f2188eb7f6c774b435263284f6179cb35c508 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Mar 21 13:43:55 2012 +0530 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> commit 6bc448aefa897a1e08a6c817280809afc189faa7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 14 11:31:52 2012 -0700 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> commit 87260cdaef95054474e97fab85e3fb691f03a035 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 12:00:45 2012 -0700 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> commit 4a9d3382873adb7aecab07345f3d253eefd150cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 19 16:10:42 2012 -0700 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> commit 2aa111c008157070e871aa5788e9c3664935847a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Mar 20 11:58:44 2012 +0530 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> commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Mar 6 18:23:50 2012 +0530 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> commit 14e8c40443d2c2891c232c2becda9073a1a44186 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 5 14:57:09 2012 -0800 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> commit 042cd63a1b7674feaf70e41a44550678ae338bbc Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 19 12:51:37 2012 -0800 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> commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Feb 28 12:24:39 2012 +0530 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> commit a3b168b4d1f6b32f17a3498940cf198fdfba0722 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 11:13:11 2012 -0700 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> commit e350d9bcee496c06f79a6490f108f77ed73f66e3 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 26 08:29:54 2012 -0700 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> commit 28338aebe08832ba8a01c28b290615d60c023128 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 13:31:28 2012 -0700 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> commit 8d3b0fce866e5f05f18a47bc0cd8f60356dbeb23 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Mar 14 20:18:30 2012 -0700 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> commit 88ad8a7be06a86104169cf2739c18c7d4409dde6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 14 14:19:18 2012 +0530 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> commit a1f9df15e005241ecf23069f7d345f9a943c06ef Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Mar 9 19:48:18 2012 +0530 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> commit 56dfb682a5bf274842140716333c791d010e38ef Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 21 16:23:54 2012 +0530 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> commit 16f27dc68e406e181c306cc1fb924dca43fb1080 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Wed Mar 7 17:04:24 2012 -0800 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> commit fa530308e1fa485a39e35ed17879b6ab1e665c37 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 12 15:03:10 2012 -0700 msm_fb: display: Remove base layer for DSI command mode during suspend Remove RGB base layer pipe for DSI command mode during suspend to unstage all pipes in Mixer 0 properly CRs-Fixed: 343233 Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c1fa46367d021fc3e457df2bf5b6331c41ad189 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 7 17:49:09 2012 -0800 msm_fb: Handle flags for updating AR GC lookup table (LUT) In current implementation of area reduced gamma correction (AR-GC) LUT configuration,flags for read/write AR-GC LUT and enable/disable AR-GC LUT functionality are not handled even though the IOCTL accepts these flags as part of arguments. So in current implementation by default updates the AR-GC LUT which may not be expected always. So, handle flags for read/write AR-GC LUT and enable/disable updating area reduced gamma correction (AR GC) functionality Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 225152437092241cb3f6ff5b97896684d856f844 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Mar 1 17:45:52 2012 -0800 msm_fb: Restructure PCC and AR-GC code for clean implementation Current PCC & AR-GC implementation uses macros for base addresses, while other post processing features use mdp_block2base() function. Also, in current implementation check for feature supported for MDP version in device is not performed, currently function which implements AR-GC, is named as mdp4_pgc_cfg() which is bit misnomer. This change uses uniform method for calculating block base using mdp_block2base(). For checking MDP version and feature supported using mdp_pp_block2pcc() and mdp_pp_block2argc() functions. This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to correctly indicate the functionality it implements. Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Mar 12 14:55:04 2012 -0700 msm_fb: display: disable mdp flip when enabling mdp solid fill If both solid fill and flip mode are enabled, MDP underruns. So for any pipe, if solid fill bit is set, flip operation modes including left/right or/and up/done are disabled. CRs-fixed: 334782 Change-Id: I879231d03c6aab6f82d80bde65c9f01c34f1fa6c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 2bd101d5bed1729b317114456360605e86289c15 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 16 11:32:23 2012 +0530 msm_fb: Clean up the fix for error in y-offset check in FB driver There is a failure observed in yres_virtual offset check and every third frame gets skipped without an error message. Due to this high fps is noticed in the test applications. Correct the yres_virtual offset check. Change-Id: Iddce0b75e0a9c466adad6eb5726203ae0586c27b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Mar 12 19:43:41 2012 +0530 msm_fb: display: Change perf level for VGA video Change perf level to 3 from 4 for VGA and less resolution video usecases. This avoids underruns seen with camera/camcorder usecases on 8660 and older platforms. CRs-fixed: 338044 Change-Id: I12fa81f10dc6d02caed44c5b7e6f5732a57bb095 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Mar 15 14:40:11 2012 +0530 msm_fb: hdmi: CEC Message queue flush CEC message queue should be flushed when CEC function is enabled. If there are residue CEC message, they might cause collision at message queue. CRs-fixed: 338811 Change-Id: I6268528417d660fab48818ae67e94e169abbb217 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a950365ed12ab0d66367b06bd1c3236cbcf695a1 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 12 16:17:23 2012 -0700 msm_fb: display: check dtv_pipe before unset it Dtv_pipe is the base layer pipe for HDMI and it is normally populated before overlay_unset() called to free a mdp pipe. However at wireless application, there has possibility that overlay_unset() is called to free a pipe even before dtv_pipe is populated which cause system crashed. Therefore check dtv_pipe before free fore ground pipe. CRs-fixed: 340884 Change-Id: I32b69e937f21646204c7fd7275988ee12e439655 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e5c9f6e5f9fe550e228cc5b34dbde086b151a613 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Feb 22 15:09:07 2012 -0800 msm_fb: display: initialize is_flag variable This local variable needs to have init value, otherwize it is always true, possible for mdp4_overlay_perf_level to return incorrect value. CRs-fixed: 338543 Change-Id: Icbb665773545e866c7f48edaf3ecf11272713d19 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Feb 21 12:00:12 2012 +0530 msm_fb: Clean up of frame buffer 4KB alignment changes Remove redundant code from the 4 KB alignment patch and reduce the overhead of calculation of the hole size by using bitwise operators in its calculation. CRs-fixed: 325134 Change-Id: Ie2e3ea7cbb2a815ae4f50cb97e6c5be1bd72fe27 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 10 08:40:51 2012 -0800 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Change-Id: If5b80d0c3a9b5edd21ae6651321572c2fdcac951 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0507c8cefa525a89df9b9e2a305e2bd7c4f6d7b2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Feb 16 17:16:05 2012 -0800 msm_fb: HDMI: Add support for HDMI on APQ8064 Configure necessary PMIC regulators, GPIO, clocks and parameters related to external display to enable HDMI on APQ8064 target. Change-Id: Ia2741fc13c6a640ebc610461ad4242929383b611 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 5245ec886f6e282b8f3c1b0e3f7aecbfae9ed85a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 2 13:49:53 2012 -0800 msm_fb: display: change pixel sequence on lvds lanes This is a s/w workaround to fix lvds phy h/w bug. On the rising edge of lvds phy clk the phy transimits d0d1..d6 sequence, however, lvds panel from the manufacture expects d6d5d0...d4. So s/w adjusts the sequence on the phy side to meet panel spec. CRs-fixed: 338715 Change-Id: If852ba29954b363911d04cd08d3784ce7d385c2f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 416878307740e2d475511ed0f12ebbd50db8c156 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Feb 22 09:15:28 2012 +0530 msm_fb : display : Add support for NT35516 qHD panel This change adds the drivers for NT35516 DSI Client and Truly qHD panel. Change-Id: Ifb7e02300a8e42d7097845638b77e311e92f69d6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit d37b52404236bf4cadf530a238cafc5d6499d32a Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 9 20:16:21 2012 +0530 msm_fb: Fix error in y-offset check logic in FB driver After 4 KB alignment changes, the frame from 3rd buffer doesn't get updated since during PUT_VSCREEN_INFO ioctl, the driver returns -1 to userspace due to error in logic because the hole size is not considered in calculating the logic for validity of the y-offset. Change fixes this error. Change-Id: Ib151970eacab4df36fb8274be0079bc814e93efe Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fff132dffafe129620475a51c34309b4fff08dce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Mar 7 13:22:30 2012 -0800 msm_fb: HDMI: Enable HDMI on 8930 target Register HDMI device and enable HDMI driver initialization for 8930 target. Change-Id: Ia3d1f0963de079e7af3cd683a498897cd677e97a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit fd3a0274fc30e8f795365e8cd8c90d2b0b3df2d7 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Sep 26 17:29:37 2011 -0700 msm_fb: display: Add MIPI DSI 720P Orise panel driver support Add support to run 720p MIPI DSI Orise panel in both cmd and video modes Change-Id: Iefd5594ba2fafe7797378f3297d169ebbce9b963 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a6f72edcca16dbed1e345fe472df32f08f5548ca Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Mar 2 16:51:57 2012 -0800 msm_fb: Display: Change the VCO frequency range for 8960. The DSI PHY PLL is not stable for VCO frequency between 500 MHz to 600 MHz on 8960. Fix this issue by changing the VCO range from 500 Mhz - 1 GHz range to 600 MHz - 1.2 GHz range. CRs-fixed: 340956 Change-Id: If09ac96455e16c5c2ca219c74e7ee0c758d55851 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 0bb7fe942f5e655d1ac1b10398ccda73ce83550e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 27 16:06:30 2011 -0700 msm_fb: display: Dynamic boot support for HDMI as primary display Move boot parameter to board display file as early_param for proper allocation of PMEM and ION sizes. Change-Id: Icfb163f572e8e010550747ec83787b6da6e86ee2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit beaa9356713db6949eefa32ed329bf87a3461842 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 16:59:26 2012 -0800 msm_fb: display: decrease file->f_count when play Frame buffer's (fb0) f_count needed to be decreased after both overlay play and rotation so that fb0 can be closed and display will be blanked out after system suspended. CRs-fixed: 336254 Change-Id: I966e7b2bb4def0c9c09580be12048933723e2c2e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d19d0d22e03dba3b2b08356bc18ed1b2987e70c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 12:50:37 2012 -0800 msm_fb: display: call mdp_pipe_ctrl() with correct block name Mdp_pipe_ctrl() needs to be called symmetrically within same block name for both ON and OFF operation so that mdp clock will be turned off after OFF operation. CRs-fixed: 338802 Change-Id: Idda450a32c0c897327c17dda70fc05e9fb74d510 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5649bcea56c8aecbf88fb97a2a88d7142f5ca1f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 7 18:23:32 2011 -0800 msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth On HDCP reauthentication, the HDCP link status register does not get cleared unless the HDMI app clock is deasserted and asserted. Stale values in the link status registers can potentially lead to the HDCP HW block getting locked up resulting in a device reset. Change-Id: I4952c64d4087e4303cbc75dbb61f66510b0a0798 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 682888654f146d6c34c76b9db435c9c6fe58eeea Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Jan 18 16:08:55 2012 -0800 msm_fb: display: add overlay1 writeback enable and disable This logic is used to enable mdp overlay1 writeback mode when downscaling in any pipe for mixer1 requires a mdp clk rate more than its max, and disable it when no pipe requires more than max mdp clk rate. CRs-fixed: 330895 Change-Id: I67632fdc2cf4c357753603fee293817bb87581ca Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4c7ccb31068e6b606520722279fc8add740d7578 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Feb 21 12:56:04 2012 +0530 msm_fb: display: Use FIR (QSEED) for upscaling. Low resolution UI is observed on HDTV connected with HDMI. FIR (QSEED) algorithm needs to be used instead of pixel repetition to improve the performance in case the BYPASS composition is not used. CRs-fixed: 332123 Change-Id: Ib4c2b107b4ae1300458cccc7e8066d31aee50a0d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38eac1aef2250181f1a2f9d75529f0961257740b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Feb 28 16:24:06 2012 -0800 msm_fb: display: set max clk level when more than 2 pipes used Correct logic to take all pipes into account and increase clk perf level to max when more than 2 pipes are used. Change-Id: Ibe6594e23a95e72c113b98c8f08b33395677d212 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c246a1bd2edbf1607e5437ee46c0f7a043d6bd5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 20:38:43 2012 -0800 msm_fb: display: perform bus scaling updates when idle Move bus scaling updates to same place where MDP clock is changed which happens when MDP is idle. This allows MDP sufficient time to finish fetching buffers before commiting unstaging changes. Change-Id: Id6e04522928b0f815091e17054fff94e0e111ff1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3e9ca08c34561167db0e7aa7179b224d8e10a1e5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 13 12:14:59 2011 -0800 msm_fb: display: Remove boot parameter parse support Remove boot parameter parse support from framebuffer driver. This is done as a part of moving this to board-display file. Instead of detecting the panel in msm_fb file, the detection is now handled in individual board file. Change-Id: I722cc6964a815bd99b1cf0856ef9c1a4481898d4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b88ffd3484ecddbfe7a24ae9a8438b0d3792d116 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 19:42:44 2012 -0800 msm_fb: display: enable unstage caching for command panel Enable support for caching of overlay unsets for command panel to flickers between frame updates. Change-Id: Ide9a165cfddb33a5cd0756b9cd469b0c3374f2ae Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d60dff3ca61bbdc6881b9aaf34baea570c25fa32 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 14:01:09 2012 -0800 msm_fb: display: wait for vsync staging down in overlay unset Need to wait for vsync so registers are properly flushed when commiting stage down changes in overlay unset Change-Id: I56bfdf56c2a32f109f3d9264c8cc4a086ef2c356 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit acde4b6510b352b97ca1dc7d3386c6696e8f10fb Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Dec 16 15:50:56 2011 -0800 video:msm: Add IGC LUT functionality to PP IOCTL This patch adds the functionality to write to the IGC Look Up Tables (LUTs) in the MDP. Change-Id: I4789820a56748b1a5e33ee4ca979e418170695a3 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 330b4ae84d423bee684af24a2e52b4d81831a37f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Feb 20 19:24:56 2012 -0800 video:msm: Add support for updating Histogram LUT using MDP_PP ioctl This adds the ability to write to the Histogram LUTs in the VG pipes, DMA_P and DMA_S. Change-Id: I548140d01aee5c2fd437aa218a307b4d1364dade Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14b56ad8f78a974de534aa02523624304983acfc Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 22 14:56:21 2012 +0530 msm_fb: hdmi: check for multiple hpd on/off calls HPD on/off may be called from userspace and from kernel asynchronously which may result in system crash or reset. Returning in case HPD is already on/off. Change-Id: Ic6233925e02e6070e3ebc3fa40a87717e7b2ad1e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6cc11c405ae51f50436f48160faf302b8b29d486 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Feb 7 15:25:46 2012 -0800 video:msm: Move histogram reads to workqueue Histogram must be read after each histogram completion in order to clear the histogram registers; this patch reorganizes the histogram code to use a deferred workqueue task to read the histogram registers out of the interrupt context. As well, this re-organizes the histogram start-up to clear, using the same new workqueue, the first histogram that is read because it is often incorrect (too many or too few bins filled). CRs-Fixed: 328214 Change-Id: I4088028fc805113e74b5b763c6458183e75421cf Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff10d072f13a0845fc4e6dc0f82d2f51d9209e6e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Feb 15 15:19:29 2012 -0800 video: msm: Allow Enabling of DMA P Hist LUT Histogram LUT enabling was accidentally disabled by a previous patch. This patch allows it to be enabled again, while not conflicting with the patch that previously disabled it. CRs-Fixed: 336128 Change-Id: I5106999d79b5fdee255e23d31e5bc7de5d59b937 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e063a05cb7b869853ac7968c29acc0891b0d70f9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jan 30 16:26:57 2012 -0800 msm_fb: display: change perf level for 720p landscape video New perf level 3 (128M mdp clk) is used to play 720p landscape video, changed from previous perf level 2 (160M mdp clk), to save power. Change-Id: Ie27de4d2e407513eeb4cfb8fba6dd535a45c1364 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 20bd54d7d64317f2c9e3b1384133a1c550454948 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Wed Feb 22 10:22:36 2012 -0800 msm_fb: HDMI: Create hdmi_as_primary switch node If HDMI is used as primary, rather than external, create a switch node named "hdmi_as_primary". Change-Id: I694a12c1b8d223417090183b9d57913dca4df5be Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit c7a7cc6dc79a6f60b0468efd0fb3964b1ebc7a70 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Dec 15 16:25:45 2011 -0800 msm_fb: Add support for Area Reduced Gamma Correction (AR GC) Provide API for programming Area Reduced Gamma Correction parameters. AR GC is used for adjusting panel gamma behavior for R, G and B channels. Tested using dummy AR-GC data from panel calibration and fbtest Change-Id: I64e9f81510160ffaacb6927de1812dfd2a3e5436 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 85153bdf335804c526746ab8d930087b658f3d50 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Dec 13 13:56:46 2011 -0800 msm_fb: Add support for Polynomial Color Correction (PCC) Add support for programming Polynomial Color Correction (PCC) parameters on MDP. PCC is used for enhancing colors on display panel by programming the display panel calibration parameters Tested using fbtest and dummy calibration data Change-Id: I57dae828365f02d560e932ed0f26aa76c819fd31 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0056791344518f90c5708a5d3233373bb4e4cca6 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 18:27:42 2012 +0200 msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver. The Toshiba bridge has both DSI and I2C interfaces. The DSI interface is used for configuring the bridge registers during setup. However, when video is running via the DSI interface then the I2C interface is used for read/write the Toshiba bridge registers. Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit ac5337bb28f81c29b7449626f442e84742186574 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 03:26:00 2012 +0200 msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps. Fix front porch blanking according to the panel EDID for 60 frames per seconds. Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 91e4135c0f44697891b7ea933a8dacfac375a1e3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Feb 10 18:23:04 2012 +0530 hdmi_msm: Power down PHY register during suspend Add change to power down phy register to save current when device goes to suspend state. CRs-fixed: 333739 Change-Id: I5c1c4202637cc8391d1dba03071a246e4f891307 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5f4b579b68fdc6f50ba20a50e31814a7ec2bc45d Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Dec 7 17:14:10 2011 +0530 msm_fb: Change the sequence of backlight control for Gordon panel During Resume, backlight control settings are getting set before the Gordon panel has been initialized. This change corrects the sequence and ensures that display is proper after resume operation Change-Id: I22a6c857da3cb011404198b94e4347f76292a77e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 25 12:01:28 2012 +0530 msm_fb: Make buffers aligned to 4K page boundary This change makes the frame buffers aligned to the page boundary. Improves GPU performance since accessing the frame buffer from page boundary is faster. CRs-fixed: 325134 Change-Id: I6ce4477f62536a3cd81064e26dc08f2b199e181b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1573599adbb42c606d8b91854c76461b3f212c3e Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. Change-Id: Ia5a2e09372129a4358a46a623e6880095da4f0b4 CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9919b7e5503bc078720337da27a421ec3833e528 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 15:57:39 2012 -0800 msm_fb: display: perform mixer flush on every commit Mixer needs to be flushed on every commit instead of just when mixer cfg changes to flush changes in blending configuration CRs-Fixed: 336655 Change-Id: Ia56380eac1bd9dfb0795d930dc97a85dd30ba8a8 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a369ce03ca048fb511642ac1cb73c1f652d70c50 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jan 20 16:13:43 2012 +0530 msm_fb: display: Fix for HDMI bootup issue If the device is booted up with HDMI cable connected, HDTV would go blank unless the HDMI cable is removed and inserted again. This is happening because the dtv pipe is initialized after HDMI core is initialized. The dtv pipe needs to be allocated at the bootup time when dtv is turned on to syncronize the HDMI core and DTV overlay. CRs-fixed: 331867 Change-Id: I90f6434e8440548391a6846b47bb5539f2e436b7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3b9595f629805408d572892227091cd1b42560fd Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 8 16:36:03 2012 +0530 msm_fb: hdmi: Fix for EDID parser error. For an older TV, which doesn't contain Data Block Collection, the EDID parser was parsing wrong supported video resolutions. As per EDID standard, if EDID block 1 byte 2 is 0x04, it means there is no DBC available in EDID so the supported video resolutions should be read from DTDs of block0 and block1 instead of SVD of DBC. Reading DTDs for supported video resolutions instead of DBC for byte 2 being 0x04 case, fixed the issue. CRs-fixed: 332148 Change-Id: I637b91059952b63029cf4f05f750c340bdfa37a6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 36d8ccd620799d2ad224f22a4c4c34c0256e1d08 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 10 11:53:49 2012 -0800 msm_fb: display: Add DSI Video Toshiba WUXGA(1920x1200) panel support Add DSI Video Toshiba WUXGA(1920x1200) panel support using DSI Toshiba WSVGA bridge chip for controlling panel Change-Id: I36de195a0f86acd5415f2c6a0c4f0cfe050512bb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 23fa9e7a958be09f9d6743cea026a4f56b84a48f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 31 10:31:53 2012 -0800 msm_fb: display: set mdp perf_level to low level after playing video This bug fix sets mdp clk rate back to the rate for UI after playing video to save power. Change-Id: I73a0db158536b27a4a50d25b7737db4327210b8f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3b6551e3642301c92a1c96a70c4905da87b268ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Feb 15 16:11:39 2012 -0800 msm_fb: display: Add supported MIPI panels to LVDS/MIPI detect config Add supported MIPI panels to LVDS/MIPI panel detect config for backward compatibility with old targets Change-Id: I31048cd51c8e8d09e7a16c5f81eb3e6dc9c59259 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 55648fc2ab536294f7d549c822df8f17317b91c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 19 13:43:44 2011 +0530 msm_fb: display: Add mutex during display turn off There is a possibility that suspend operation trigger during a display update. Add mutex to serialize suspend and display update operations Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 13c5b2aa0116ee7859eb9331efd111e535db335d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 12:32:37 2011 +0530 msm_fb: display: protect dma status for video mode panel There is a possibility of race condition between dma update in ioctl context and isr context, hence add spinlock to protect the dma status in video mode type panel for safety in dual core environment. Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7716ef8c6180714d9948ecc008fb82ffef5628d7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Feb 2 19:04:18 2012 +0530 msm_fb: hdmi: Fix for different resolution TV switch hang. On connecting 1080p TV, then connecting 720p TV and then connecting 1080p TV again results in system hang. Hardware is waiting for reading AN in hdcp authentication part1 and then the resolution switch happens, which clears all the registers and we are in lost state. We need to protect the reading of AN bits in link status register and the reset core from muliple access. CRs-fixed: 334143 Change-Id: Ic5399a79a37a4285b1d10998cb1ffb4913c39f51 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d7185f60b02879c6b07293380a505791add19752 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Feb 11 01:36:41 2012 -0800 msm_fb: display: add mixer2 writeback userspace support Apps, e.g. fbtest can access mixer2 writeback functionality in userspace by providing ion writeback buffers. Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1af8a35b8700d507016d6c05488401dbf6af0431 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Feb 9 14:34:23 2012 -0800 msm_fb: display: fix underrun seen due to scaling accuracy When making scale phase step ratio calculation, accuracy is lost when sizes are big since calculation is done in 32 bit and some truncation happens; this leads to underrun in mdp hw since scaling ratio doesn't match the src/dst rectangle. Increase accuracy by performing division again on remainder and appending to lsb of ratio. Change-Id: I6baa69a70a55e402c8924b51cab86afa6d0e9b5c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 57e30678c19f540108d99e81fb03fdaa86105d95 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Jan 30 16:58:12 2012 +0530 msm_fb: display: Featurize pm operations for external display Featurize suspend/resume operation of the external display to resolve compilation error in cases where external display features are not defined. Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit b0d8321014da0ff547e8386d09a6bb3146320834 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Feb 13 13:51:47 2012 +0530 msm_fb: display: Fix for compilation error with HDMI as primary Proper variable is now used to avoid the compilation error. The function where this error is seen is compiled only when the HDMI is configured as PRMIARY. Change-Id: I74a9693ceef49143412101a6a8360d2241f75e91 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ab05f94b75a40fdd70f018a12fef1d8e0b972175 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 9 19:18:45 2012 -0800 msm_fb: display: Add LVDS display & LVDS/DSI panel auto detect support Add LVDS display PHY/PLL configuration and panel backlight support. Enable auto-detect support for LVDS/DSI panels Change-Id: I36a1a3c4cee9e015ae6fd03257bd10efa81450d8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94f25dcbd137d139e31be55c461a95b39f730cbe Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Jan 31 00:18:33 2012 -0800 msm_fb: HDMI: Export interface for setting Audio info frame The Audio InfoFrame contains information that allows for the format of the digital audio streams to be identified more quickly via out-of-band information and, for multi-channel uncompressed audio provides channel allocation information for the sink device's speakers. Currently audio info frame is hard coded to support 2-ch PCM. To Support Multi channel PCM, correct channel allocation information has to be sent to HDMI sink. So export the interface for setting audio info frame to HDMI audio driver. Change-Id: I7d0d5cf9f8792250bfd6e5eb003a8360ccb9707a Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 56499ed9d52ec2adfab9d8d48fa1495698fbbb75 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Feb 9 16:12:00 2012 +0530 msm_fb: Display: Update panel initialization sequence Update the panel initialization sequence to avoid tearing effect on the panel Change-Id: I933ba5cadf1d2620bc571bd3a307494d838c2b38 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 5cef5f4de20c409e8e1ba31bd97aca111677f49d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 11:39:16 2011 +0530 msm_fb: display: add spinlock to protect dma status. During dma transfer to interface host the status of the dma needs to be protected in the smp environment. Change-Id: I02b4f046de7f693bb098343b7345c4aa6ca395bd Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7f4205b6487f81a3c504726263ffeddbc74df833 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Dec 19 12:29:52 2011 +0530 msm_fb: display: Add SMP-safety for PPP Operations Adds protection using spinlock for the variable used in controlling the PPP operations Change-Id: Iba6ef5e32d38668bd110ed23ee9631aa40de79e0 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5978cd2b581df55aa0c23a1478239b2e7bf7942d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 26 11:10:46 2011 +0530 msm_fb: display: remove while loop in mdp ISR As mdp interrupt is enabled on-demand, there is no need to have a while loop to handle interrupts at random time. There is possibility that mdp clock is turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Change-Id: I3716638974d8e24eda4a5146421d026b0ca85b4c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1e6fcce3a2382b6af0c02aaed6bb503ac5d53b5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 16:24:22 2012 -0800 msm_fb: display: fix primary not resuming after suspend when hdmi connected Update bl_updated variable only after succesfully changing backlight, otherwise it can be set on hdmi play which doesn't really update backlight so primary remains blank. Change-Id: Ia08713ff0fbc88a98acd004a909c995fcd5726c6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d3a2993f02636b865bb59b075b12586513c7ba9f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 12:26:39 2012 -0800 msm_fb: display: fix no resume after suspend for cmd mode panels Base layer pipe is updated only on ui kickoff, in bypass mode ui kickoff might not happen and that is why panel won't resume. Perform base layer restore on resume to allow panel to resume. Change-Id: I6031569077731fae0a716175d62fe4c0c85c6c36 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 540124b79dd7b3bc25651935999f6fe422152fa4 Author: Amir Samuelov <amirs@codeaurora.org> Date: Wed Feb 8 18:18:51 2012 +0200 msm_fb: display: Add write permission for 3D barrier file. Allow user space application to write to 3D barrier for control. Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit d9f38b0c3bcb8cb16e5b8d433caea647f9c875a3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Feb 2 18:57:03 2012 +0530 msm_fb : Add support for Yamato format Changes to support Yamato format as a source format. Change-Id: I334fd059d2a06ea2796eb24f4a69fdb4be4e9789 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0cfba7b42b33cc0712d81d3ea917a235b3cd8d7c Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Feb 6 11:02:12 2012 +0200 msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver. Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver. Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 4b3395e1e6441673fb41c8fea58ea3e1422c3590 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jan 28 21:45:03 2012 -0800 msm_fb: display: Read DSI platform's data lane swap for Novatek panel Read DSI platform's data lane swap setting for Novatek panel and set it in panel info for programming internal lane control register Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2664ca29cca2ba9a46b0a992ba4f529e5208bab7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 7 15:31:42 2012 -0800 msm_fb: display: clear mixer blending cache during resume Clear mixer blending cache so that new blending value can be committed during system resume. Change-Id: Ie4e8399cdbbdb2153417c19e7f8019f38a294dd6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 18044ce96c01a440a2ade3711aba776aa1fea64a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Dec 13 23:22:48 2011 +0530 msm_fb: display: Add support for MIPI NT35510 WVGA panel. Adds DSI client and panel driver files to support Command and Video modes with NT35510 client and Truly WVGA panel Change-Id: Ia41bf282d070fa5fc5e0afeb24366a540c7ca9f5 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e6f182a1d4d1e186ae75f3a73cc496d94f983761 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 7 09:14:03 2012 +0200 msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel. Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver. Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9705d1ebd4e39d0428a950589da9f5963d22ab74 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jan 17 15:29:57 2012 -0800 msm_fb: display: increase timeout value to 2 vsync wait_for_completion_timeout() may timeout before overlay1_done interrupt when one vsync timeout is specified. This cause mdp4_overlay_dtv_ wait4_ov_done() to return prematurely which causes a falsely increased FPS. This patch increases the timeout value to 2 vsync to prevent premature timeout. Crs-fixed: 330723 Change-Id: Iac516525f328be01cf81ce3f4e95e5d6a4ab80ca Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit bbcf4477c7e7d8ba7208e179f55bc8e550de08a7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 20 11:35:24 2012 -0800 msm_fb: display: enable MDP interrupts base on panel interface Enable necessary MDP interrupts base on panel to avoid triggering dma_s isr handler. Crs-fixed: 331668 Change-Id: I139a6193338a1b0a7c9cc7869e3ea1b3f9a65c4d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 94c8a2c7f32371057f094cac19aa1bb905e714f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 6 12:35:14 2012 -0800 msm_fb: display: perform staging updates on a single vsync Store all staging updates locally and write to hw on a single vsync only when changes are detected, this allows a smooth transition from using multiple overlays to framebuffer for UI Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9cb0ead92fa1188c99ee9bcdc1148dab17b48a36 Author: Jeff Ohlstein <johlstei@codeaurora.org> Date: Fri Dec 16 13:30:08 2011 -0800 video: msm: change normal operation prints to pr_debug There is no need to print every time an mdp4 overlay pipe is allocated or freed. Change these prints to pr_debugs so they can still be used for debugging if necessary. Change-Id: I91ba245ce54ab8a963539cfdea6d8d92efaf52a4 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> commit 207b565179fe95d9537ad1d8172ba9de91a3fbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 18 21:21:15 2012 +0530 msm_fb : Check the validity of Histogram start/stop ioctls. Histogram start/stop ioctls are called now without checking if the panel is on or not. Add check to validate the ioctl calls in this aspect. CRs-fixed: 327910 Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 62f887ce4c6a52be4a4b846606768c19487742b7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 11 22:56:59 2011 -0700 msm_fb: display: Add LVDS display driver support for Chimei WXGA Add LVDS display driver support for Chimei WXGA LVDS display panel Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba commit 79d05a646f8af2658ad8f0aadb73c47cb277cc95 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Mon Jan 9 15:18:33 2012 -0800 msm_fb: HDMI: Switch device node for HDMI Add switch device node for HDMI on initialization. Final node path will be /devices/virtual/switch/hdmi Set the node state to 1 on HDMI cable connect event, and successful HDCP authentication, if applicable. Set the node state to 0 on HDMI cable disconnect, HPD off events and HDCP authentication failure. Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940 Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit cb6b2e9c9ecb6884f556456b3d1ce4d877570534 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 19 16:05:27 2012 -0800 msm_fb: display: Add external display PM suspend support Remove PM suspend registration from HDMI driver and add it in MSM framebuffer driver Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8562e7893e41969f1fe15839b7020b75401f6d72 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jan 24 18:34:29 2012 -0800 msm_fb: display: Remove HDMI PHY power settings for proper PLL locking Remove HDMI PHY power settings for controlling PHY along with HDMI PLL in clock driver for avoiding random PLL lock detect failures Change-Id: I4016d5711b06785be3dd47782a187196d61445de Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 175d1281a5c1635cffc911dac261efc67d807c9d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 20 16:57:23 2012 -0800 msm_fb: display: Cleanup log messages for ION buffer management Cleanup log messages for ION buffer allocation and de-allocation functions Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5 commit 0bd48279653be46c7b91648e1ae0d93c7131e425 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jan 24 11:59:50 2012 +0530 msm_fb : Check validity of histogram bin collection When CABL is disabled from UI, wait for completion gets killed. Histogram bin collection is invalid in this case. Add checks to handle this scenario. CRs-fixed: 331527 Change-Id: I0c25417672ee44a63011f76f2c998cbef9ae95f5 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fa1de67dbadc084aa9fd6afa5ab4fae335089334 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 5 12:37:59 2011 -0800 video: msm: Adding CSC support for other MDP blocks Adding support for VG1, VG2, DMA_S and Overlay Mixer 1. Change-Id: I95a5832a70fd893970e82dadcec1e11ed608d79c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c7d7aa888a33818f278bdce86fa6c349561e05ea Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Jan 21 17:17:06 2012 +0530 Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3" This reverts commit ff77f57b5bb1cd55bfdd3a14430470829e360822. Patch causes histogram ioctl to fail after there is no UI update for 50 ms. Abl-daemon handles static screen update case in CABL from now. Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 3ab14ddf6e9fa157c292ba7442550628f090b5a5 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jan 20 22:40:52 2012 -0800 msm_fb: display: increase wfd resolution to 720p Wi-fi display can support upto 720p resolution. CRs-Fixed: 332226 Change-Id: Idd4f293d364bb52ff5e85c58a713fc1d36b29c1b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 228895ae217589ca71aa464f7c22bc4cedd06f77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. Change-Id: If5de484fe19dd3e949107d5b0d72f9594ee2e76f CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0da46929eb69a01fa4b1d26a317e8fcc60a024ac Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 15:08:04 2011 -0800 msm_fb: display: add mdp overlay1 writeback This feature is enabled to avoid underrun on the display external interface (HDMI). For example, if 1080p to 720p downscaling is required, and mdp clk rate already is in its max, writeback is the only solution for this situation. Change-Id: I2323272a90730da45601f1d4c7dfc2bf06337b59 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jan 5 10:36:31 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 284fc85908c31b7424cc600083c2499d4188bdfd Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Sat Jan 14 14:45:23 2012 -0800 msm_fb: display: Fix incorrect goto call During the probe for writeback panel, for MDP hardware versions earlier than 4.3 an incorrect goto call un registers the bus scale handle that primary panel uses. This is causing the boot failures because the primary panel turn on sequence triggers the bus scale update request on already unregistered handle. Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit fa559f6cb6c9a75beb48b594f952ccfe213c4234 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 13 16:28:54 2012 -0800 msm_fb: display: fix underrun seen with big src coordinates MDP underrun happens if combination of x + w or y + h exceeds 2048. To handle such use cases add an offset to the source address instead. Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit da2f3cc0003c55cd18d6f052ecb9530fe2acea9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jan 5 15:32:57 2012 -0800 msm_fb: display: perform backlight updates on overlay play Perform pending backlight requests on overlay play to handle cases in which framebuffer updates are not happening to update backlight. Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ff77f57b5bb1cd55bfdd3a14430470829e360822 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jan 13 16:32:31 2012 +0530 msm_fb: Handle static screen update case in CABL for MDP3.0.3 Avoid histogram bin collection and copy during static screen update. Histogram ioctls are also returned early in this case. Change-Id: Id75a2a61e018f683e2ec2d23c0fb78e1c7605a7d Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit daa069f0949391f7b6fa7dcc26d854b790c14906 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:09:24 2011 -0800 video: msm: Adding CSC configuration for DMA P This enables the ability for the MSMFB_MDP_PP ioctl to configure the DMA P CSC registers. Change-Id: I1e18646decdd26641592bbc2a2dc0a4aa74e5f8a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff85b428535a84bc00648e4a097332aeaebd676c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 9 00:07:05 2012 -0800 msm_fb:display: Fix compilation errors when DTV is disabled Change-Id: I33b6426a202b60fe2f3d2fd007e05ce839283c0a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ca82bd65223f61c193fd2600479bd18c09f7b1dc Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Jan 10 15:57:53 2012 -0800 msm_fb: hdmi: Correct logical clock rate for 480p We need to keep the logical pixel clock rate for 480p video resolution to be 27.03 MHz even though the hardware internally only generates 27.027 MHz. Change-Id: Idc653062e0a155e69753a8b58b9abf6106cfb8e0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4f4b108a0931736c2b3d5d0b577f1f557247167c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jan 11 10:02:34 2012 -0800 video:msm: Fix histogram error check logic Current error check logic is incorrect. Starting the histogram should throw an error if the histogram current state (mdp_is_hist_data) is already true. Similarly, stopping the histogram should only throw an error if the histogram current state has already been set to false. In the cases of suspend/resume the mdp_histogram_ctrl calls should only be allowed when the histogram desired state (mdp_is_hist_start) is true. Change-Id: Idef307293a7e4fb70807e9cea53078bf3cc67f15 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 061c8d1b5097067a2348431f26ad193a37ae02c8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 18:37:36 2012 -0800 msm_fb: display: fix underrun seen for some YV12 format input Underruns seen on display because source rectangle width is aligned to 16 before being passed to MDP. Only ystride should be aligned, source rectangle should be passed as received. CRs-Fixed: 329453 Change-Id: Ibb71ad316023d21ebad4c5db37fdc5e5c8acb02b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e1ba2705ea4c9960f4349c57d115f4a79482f3a0 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Wed Dec 21 16:24:52 2011 -0800 msm: wfd: Adds writeback start/stop functionality. Removes register/unregister calls and replaces them with start/stop. No need to pre-register the buffers anymore. Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit e240c2f738e6b3c4bc754442a8da3a351a0d68cf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 3 15:43:29 2012 -0800 msm_fb: display: fix mdp clk rate settings If the video resolution is changed from higher to lower, mdp clk rate cannot be changed before overlay_play. Otherwise, underrun may happen because of a lower mdp clk rate for current higher resolution frames. On the other hand, if the res is changed from lower to higher, mdp clk rate must be changed before overlay_play to avoid underrun. CRs-fixed: 327811 Change-Id: Ieac4d2e1644e5687e3506b37799c56e19a17b991 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bf300479078611dc528cd0e2decc4fdb3c282c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 12:33:13 2012 -0800 msm_fb: display: fix hdmi connection crash on 8660 Crash happens because RGB pipe is not completely setup when initializing the base layer pipe. HDMI crash no longer happens after initializing RGB pipe correctly. Change-Id: Iff2e989db95b86fd81afc7e04d12d3d8f099acd7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 06237550f191c8d218030a231a9fefe0d7bd3f76 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jan 4 16:35:26 2012 -0800 msm_fb: display: Move debug messages to debug statistics Move some debug messages that were shown as errors in display driver to debug statistics to avoid excesive prints in kernel log. CRs-Fixed: 326925 Change-Id: I529586f0e79baf27e2ae17f08fac203ba28bf416 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9add8a944993cb6bf90b12344731bb279fb366c9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Nov 21 12:51:36 2011 -0800 msmfb: display: fix the issue with overlay wait api calling overlay wait api asynchronous to the other overlay apis results in race condition in protection flags. this case is observed with HDMI true mirroring feature. it modifies the protection logic to fix the race condition Change-Id: Ib933055a395c2fc743f018aee96090defde33d37 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ca0aeaa65f7d4c2896e881e20e2b1892e5f96dab Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:08:03 2011 -0800 video:msm: Adding stub for MSMFB_MDP_PP ioctls Basic handling of invalid copy_from_user and op from an invalid range. Change-Id: I788b28d3804e7312ee18310011c75d11287c4c6c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 880f847f5daf4517a4090e62ea1345ed69ff05fc Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Dec 14 03:52:28 2011 -0800 msm-fb: display: ION based allocation for writeback buffers ION based allocation is added for the writeback support for content security. Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 285745f9b9cf52a4f69711a3737ca185e0e699ec Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Dec 29 18:31:46 2011 -0800 msmfb: display: clean up of the writeback buffer variables clean up of the writeback variables to change the write back allocation for ion support Change-Id: I4999e43cb2f7111853e9c4a17852b2d5a351204e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. Change-Id: I526ce7bb5e6894e07040cc409c8a700e4a78a9fd CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 304248c9d5bfa96e965a2a08c134cb5b20aac00a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Dec 29 14:04:27 2011 -0800 msm_fb: display: fix mdp blending logic Handle case where blending downscaled VG pipe with alpha channel since alpha channel will be dropped by MDP hw. Also propagate framebuffer pipe alpha to top layers only if they are opaque to avoid picking up from layers which contain alpha. CRs-Fixed: 326178 Change-Id: I73cfc0716d1f5f8a803a645bdc09b97f909e593d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 276bdaa5717d379e072137f004dd79133058d70d Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:44:53 2011 +0200 video: msm: Update CONFIG_MHL condition Replace generic CONFIG_MHL by a specific define CONFIG_FB_MSM_HDMI_MHL.implemented in Kconfig Change-Id: I3a8393518ca4f3adc1d74a62cb615ca629269af2 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 819b257a51108b3833256804030c522dc7059cb0 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:36:56 2011 +0200 video: msm: Add FB_MSM_HDMI_MHL to Kconfig Add FB_MSM_HDMI_MHL config to enable/disable the HDMI to MHL conversion support Change-Id: I51b58e9ca687e244c5b818a3aefb211e605c8e2a Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit b52368bee31a047be045687253e3805c008bd4e6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Dec 22 12:09:17 2011 -0800 msm_fb:display: Enable Layermixer2 for nv12 writeback enabling the layermixer2 for new MDP hardware so that it can be used to writeback the output in nv12 format for wi-fi display usecase Change-Id: I70322e722d8382102077db2d94a9320c2f2bb175 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit d0de5f990ab738a8b9c67fefc63b67e31d457f89 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 20 13:57:28 2011 +0200 video: msm: Add support for Sii9244 MHL video modes. Currently the HDMI driver reads the video modes of the external panel using EDID and matches those modes with the HDMI TX Core supported modes. If the HDMI signal is routed via the Sii9244 MHL chip, its video modes should be also taken into account. Change-Id: I841071c47dde94d9a91727d5f31b0ec43a957689 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 6a75b86e9f0707f46f0fd161481da25235bd037c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 10:33:39 2011 -0800 msm_fb: display: Add backlight with first pan display after resume Add backlight call with first pan display after resume operation of framebuffer driver CRs-Fixed: 323682 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic27c2c9fe37b622bbd9ab5933ca45626decd53ae commit 48d8f219004677ead97d6a5a0b89b54625c2f15d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 11 18:22:29 2011 -0800 msm_fb: Power saving for enabling HPD feature. Don't initialize HDMI PHY while enabling HPD feature. CRs-Fixed: 310913 Change-Id: Ib18f93dfa848218e0a6a1fdf06944e6696e08bbc Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 402adc6142598abcb2a41a941895003f57f289a5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e88f8f552a6102b8622ca6f88e78f2a244531746 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 19:07:20 2011 -0800 msm_fb: HDMI: Fix Coding Style Warnings This change takes care of all the coding style warnings reported by the checkpatch script. Change-Id: I31506132176f269ce2971dc45ffaf6e8b4b9dab5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Change-Id: I6d21103d049bf22d3a09aeeafab1a50119597d7e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b7b13f07b1b7f3c721752163f8b0279042636a02 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 18 11:20:08 2011 -0800 msm_fb: HDMI_COMPLIANCE: Disable Encryption on NON HDCP builds. HDMI Compliance require non HDCP builds to work on HDCP SURF's. Do not set HDCP flag for NON-HDCP builds, so that encryption enable bit is never set. Change-Id: I6f2df598fe2ed4d9ae3673fcec74b76c30e3c0dd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 910183691eb3d8c06f6344cfd57ae4e30716ff94 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 14:57:43 2011 -0800 msm_fb: display: allocate mdp writeback memory The writeback buffer is already reserved on the board side. This allocation separate writeback buffer from framebuffer. Change-Id: I312be3e0dfcf4c5b611cd06cd68d2baae7e2add8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c174d301d899a3242efc5d30d549c9fde8270b78 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 15:38:26 2011 -0800 msm_fb: display: enable pixel repeat on VG pipe only for alpha upscaling VG pipe doesn't support pixel repeat/drop to avoid alpha channel drop during downscaling. Keep pixel repeat only for upscaling. Change-Id: Id400d0f823bc0054a94330600d5085778a65b936 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b879b66c84b849ea78bcdd2400bacd7e0311561 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Dec 16 16:04:09 2011 -0800 msm_fb: display: Add MDP 4.2 footswitch ctrl at suspend Add MDP 4.2 footswitch ctrl at suspend/resume for non-HDMI cases Change-Id: I1071c0106ffc52c7f337e9f612a6ec9eb4746edd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52e88234977cd598e4902841869207b670f1321b Author: Ajay Dudani <adudani@codeaurora.org> Date: Tue Dec 13 13:33:10 2011 -0800 msm8930: Temporarily disable HDMI by default On some 8930 variant boards, we see a kernel panic on HDMI core power on. Disable HDMI temporarily until this is root caused. Change-Id: Ibfa1d851897c6f38c8f17cde8d3529a373203f1e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 89d519ca92ba2f8c70d595f1950691170c577486 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 17:31:35 2011 -0800 msm_fb: display: Fix DSI cmd mode color swap issue for MDP rev <= 4.1 Fix DSI cmd mode color swap issue for MDP rev <= 4.1 CRs-Fixed: 323479 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic9841f0eb89df7afea7ec1c9486e8cb0e6bbb58d commit 6a601cdc35501835a0b19718329be70f696a34ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 18:16:25 2011 -0800 msm_fb: display: fix mdp underrun on disabling writeback Writeback fallback for mdp underflow can be enabled/disabled dynamically based on parameters; if writeback is disabled while displaying previous frame it can can cause underrun. Disable writeback after programming new frame to avoid underrun. Change-Id: I6c73887043f19596cb3611c83c51c1aeac907ff0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8e3cb69445244c620d5742b8f3cb57c3a8bef5c4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 17:35:51 2011 -0800 msm_fb: HDMI: Remove Audio Packet Ctrl Reg Setup With a recent change we do not set the Audio Packet Control Setup register (offset 0x0020) on HPD connect event. In addition, we should not reset the value of this register whenever HDMI is powered off. CRs-Fixed: 323928 Change-Id: I1ecbb9c87470b5cedc7351198cf73c5d7406ceb6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit db7007f5a6697cd5239f433b010440bf5a5650e7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 14 02:17:58 2011 +0530 msm_fb: hdmi: Add DVI sysfs node For DVI mode, audio should not be routed. This routing happens through HDMI daemon in usespace after confirming the mode from HDMI core. This change gives HDMI daemon a way to determine if the mode is DVI or HDMI, based on that HDMI Daemon can decide on routing the audio. Change-Id: I4afa746d6195b02046305a33a2b6a8b693510ba6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Change-Id: I304bb088ef1147e562fdeb6f7eb02ed570aba627 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 88426ca238a783acf165f8b4e0958cd3cced6cf9 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 13 13:31:41 2011 +0200 video: msm: Add mhl api header file MHL API defines an interface for HDMI driver. The API provides the information of the MHL connection state for HDMI to transmit the MHL supported video format. Change-Id: If19e497b7a238eb0465f9fb13b5586d3b9043360 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit a35b234783de0a3dd4e21d784081d35309592e51 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Thu Dec 1 17:38:01 2011 -0800 msm: wfd: Fix compilation error. Changes function call to match the new API signature. Change-Id: I6b1cadca697c5b7431ee2648a4d34df21b46ce52 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit b240803778c9d2c9788bd33587c9c63edb7d6801 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 10:52:48 2011 -0700 video: msm: Track validity of and synchronize histogram Adding mutex to more thoroughly lock histogram calls; additionally, adding a flag to track histogram data validity. Together they ensure that the histogram is not started, stopped, or read out of order. CRs-Fixed: 310429 Change-Id: I276974811a5e673b05c68b41f5fbff5b178165cb Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 562c58fbf58a55b9dc8cde472361cb8d3cb6a1e5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Dec 8 08:47:33 2011 -0800 Revert "msm_fb: display: decrease mdp_timer_duration" This reverts commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00. Change-Id: I3312c878370ce72a611423085c8cefe42028d21e Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fc6be921eeb73aea9bd625189f225d199908b685 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 4 15:22:39 2011 -0700 msm_fb: display: enable border color fill on external display Enable border color fill feature on external display. This avoids usage of RGB pipe for background border fill and can now be used as overlay layer for UI display. Change-Id: I652ab3ffe2c43260590e4e5a2ffc986340c4a8c0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d2fb0bd826f83b6bc3fc2d0819773f25bd2b049f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:38:14 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Reset DDC control logic upon failure This change toggles the HDCP_DDC_CTRL_0 register to reset the DDC control logic, in effect enabling the DDC controller logic to continue to function after hitting a DDC failure. This is needed to pass HDCP compliance on MSM8960. Change-Id: Ic11a4d4de375aab9b3948cbde7eda5aca7aefbd6 CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit daf5e17901e7519de3bfc5752dbd95093aeb2527 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:34:40 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Disable HDCP interrupts on de-authenticaiton This change disables all the HDCP interrupts upon de-authentication. In addition, we also clear the HDCP AUTH_FAIL_INFO register upon processing the AUTH_FAIL_INT interrupt. This is required for passing HDCP compliance for MSM8960 Change-Id: Iefe544c8c972e4d3b5fa4ccdd513c411d1781b3d CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 34c5f958890c8881e92a05e05ac6f95b5a48eaf1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 13:56:59 2011 -0800 msm_fb: display: cleanup overlay0 writeback funcs and config flags The writeback blt mode is controlled by assignment of blt_base (NULL or not), only the #ifdef in board file is effective. Those flags and funcs on the driver side is cleaned up. Change-Id: Idc9a7fbb5525071bf3cf68e5182bc7f6a5693932 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a12cc95a7e8b5f4882307f0ec7516f62ef8ab21e Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 18:14:50 2011 -0800 msm_fb: Discontinue use of clk_set_min_rate() This proprietary API will soon be removed. Replace use of it with a combination of clk_round_rate() and clk_set_rate() where appropriate. Calls to clk_set_min_rate() with a rate of 0Hz followed immediately by a clk_disable() served no purpose and are removed entirely. Change-Id: I56d680ee36cc6292dcc436eeec7acdc57f3c243a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 2aab6fd9b00955b2e836a873cd5a27bddd2f3644 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 7 07:23:34 2011 +0530 msm_fb: hdmi_msm: No HDMI for 8627 The HDMI driver should not register for 8627 target. Change-Id: I3ef882e76d374eabc15ed5c3121ac7d6f618f616 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e8943499da4389b9f32658f19da0ced6b7ff565f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Nov 1 13:04:10 2011 -0700 msmfb: display: enable the blt mode for bigger line length blt mode is enabled for bigger line length to avoid the underun on qt devices Change-Id: I6055f494034b1e64fbf6fb083442f9513634659c CRs-Fixed: 316327 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 954620c40355894763ea1aeff4646b2adb30a594 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 14:50:48 2011 -0800 msm_fb: [HDMI_COMPLIANCE] HW reset on HDCP reauthentication We need to add a small delay before reading the AN0 and AN1 registers once they are ready, in order to avoid hardware reset. Change-Id: Iba9465ee83dce66ae99ab5885015d977d54c0612 CRs-fixed: 319542 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9a2673aca6aae756ef36b35e981c7c349845edf1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:03:25 2011 -0800 msm_fb: display: fix invalid receving length bug Since expected receiving length need to be divided by 4 evenly, it need to be &= ~0x03 instead of &=0x03. Change-Id: I68912245c6fc499bdb652ed327d60bcf60487d40 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e22c42d680cfa7abedb0b29431bbbd83451f19c1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Nov 30 17:35:51 2011 -0800 msm_fb: display: move the prefill function inside the config flag There is a compilation error if the config flag is not set, so the func has to be moved inside the #ifdef. Change-Id: I6163606c389e8e4767239cf74eb8260fca728728 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ebefc805a139e8222061b32cbf7686d76122de5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 30 09:15:12 2011 -0700 msm_fb: display: decrease mdp_timer_duration mdp_timer_duration decides when both mdp and vsync clocks be turned off after last screen updated. Decrease mdp_timer_duration to 20ms to have clocks be turned off sooner. CRs-fixed: 315271 Change-Id: Icf7f0a64ab38dd5184a12242cfc190efa31016a9 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit edcb9567783846d292410c14fc4b99612ef1caff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:02:50 2011 -0800 msm_fb: display: remove mutex from mipi d2l register read/write Mutex had been acquired at dsi_on() already. Hence no need to acquire same mutex at mipi d2l registers read/write function again. Change-Id: Ie47590771c287a8e7c42aae568c1703a7e9107a4 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fa14cb039938c7a60007b6e5f1c4db2541faa18e Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 19 13:00:16 2011 -0700 msm_fb: HDMI_HDCP Compliance: Fix for test case 1B-01a In the case where there are many downstream receivers connected to a repeater, we need to poll for HDCP_SHA_BLOCK_DONE bit everytime after writing 64 bytes of the KSV fifo. Change-Id: Ic304250a73ad6573c43b4eb910a7eb7eb2b4dee9 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8863118c485d2dff94dfa259a95d069d15994b29 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 28 23:55:53 2011 +0530 msm_fb: hdmi_msm: dynamic sample rate change for non-hdcp Adding support for other modules to dynamically change the sampling rate in HDMI core for audio which is supported by NON-HDCP surf/FFA as well. Change-Id: I2e4f239e43251b2dc5f8529b7c352a94456ad974 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 0948c68fe35913119f2d025168b381e6ca1d2db7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 16:50:43 2011 -0700 msm_fb: display: update mdp statistics Update mdp4 statistic information so that it becomes more useful during debug session. Change-Id: I0b88428bc692c28284f9091e143f0cf10079225d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0fc5d36176b8feaa360bff9c5d46c481cea8a42b Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Nov 16 05:48:33 2011 +0530 msm_fb: hdmi_msm: Add support for audio sample rate change. This patch provides the support for changing the sample rate dynamically. Change-Id: I973e5240e6f545b85ab2872aa0786b2d80ee2d2f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a077d0063dfb8a39a869f56099dd0ffe85301180 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. Change-Id: Iee8d5d019b74edd675b23ac8dd34535766714eb2 CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 6b2d8af94b0fc441eefb65e87a964208783dac3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 16 10:02:01 2011 -0800 msm_fb: display: commit BLT to mdp register during video kickoff BLT (writeback mode) need to be committed to mdp register before kickoff. Normally, UI kickoff will follow immediatly after BLT enabled/disabled. However sometimes video overlay play happen before UI's pan display after BLT enabled/disabled. In this case, video kickoff need to commit BLT to mdp register too. Change-Id: I7b085f516f869009e7fc4b443f7858a61fce5ba3 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 3875379164cd350591eb8a1f4ea06994004a21ce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 18 13:14:08 2011 -0800 msm_fb: HDMI: Support for 576p 4:3 in HDMI Driver The firmware upgrade for the QD 882EA box requries us to have support for 720x576p 4:3 aspect ratio. Until now, we have only supported 720x576p 16:9 aspect ratio. This change adds the appropriate values to the AVI Info-frame lookup table. Change-Id: Ibc1165ab2445977e7b253a20b0d9396e1ae88ce1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4b910f252587e25699eaa4daa5036ab3bfb73c3f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 15 09:43:04 2011 -0800 msm_fb: display: enable mdp chip select controller Enable mdp chip select controller so that CS signal is asserted or de-asserted by MDP according to activities of memory access on both read and write to save power. Change-Id: Ic0acc1c8cbe06c5f3cf25627af209abadeb1350c Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 465c15903f44453a235d7eb9be4b6bde51368370 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:06:15 2011 -0700 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Change-Id: I9ab9bf2b6c02d73e40cd1a28241ffb20cdd69516 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b16b8f13507e9ea078b2f612d74b024a11afd13 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 16:58:21 2011 -0800 msm_fb: Use clk_set_rate() to vote on ebi_clk rates clk_set_rate() and clk_set_min_rate() share a common implementation for ebi_clk, but the clk_set_min_rate() API will soon be eliminated. Remove its use in preparation for this. Change-Id: I5a4a4a2f5e2e0ba4989bc7c1f9423653bec0af0f Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit cb8fbbcbe0630451ba582a0747987c48b2c603f1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 26 13:00:18 2011 -0700 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Change-Id: If723802d9405001baa69f132a143d21c8aa85613 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. Change-Id: Id79795dd4c17c3a75337a4c3818219ba6d87ff25 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d973663b4a2086c7fe1bf0264f16d413673c36c3 Author: Liyuan Li <liyuanl@codeaurora.org> Date: Fri Nov 11 13:47:59 2011 -0800 video: msm: Adding support for MDP4 HSIC controls Adding support for users to adjust Hue, Saturation, Intensity and Contrast of the display. Change-Id: I79cb69c871686ccba115798f635f768b9a50affc Signed-off-by: Liyuan Li <liyuanl@codeaurora.org> commit 4b1bde4cd20b889b3fc49972d3210c5308044ca1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 8 15:26:26 2011 -0800 msm_fb: display: add mutex to dsi_on During resume, backlight dcs commands to client may be issued before dsi_on completed. Add mutex to dsi_on and check dsi state to make sure dsi_on is completed before sending backlight command to panel to avoid conflict on dsi link. Otherwise screen will stay blank if confliction happened. Change-Id: Icfba079b228f02aeb89949befb10cca29bf6d744 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e69bed86ffa5b7cc05545fd986a21ebef5123775 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 17 16:21:42 2011 -0700 msm-fb: display: ion framework support Add support for the ION memory manager to the framebuffer driver Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> commit 6a3a01ae8eca6d615ead5be9ed28720bc0c79dab Author: Deepa Madiregama <dmadireg@codeaurora.org> Date: Fri Oct 28 06:34:17 2011 +0530 msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue LPA_IF dma channel is disabled without checking the per count value. Because of this dma channel is not functional after few iterations of continuous playback. Fix this issue by checking the dma per count value to stop before disabling the LPA_IF dma channel. Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89 Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org> commit 81be67988ef149f601064a9e8e5d91705e636ff5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Change-Id: If2622631a7cd03276ae7fbd8326155d0e9c7b66b Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 27020d1b5db194e11b08dc46dd7b89078895b6eb Author: Vinay Kalia <vkalia@codeaurora.org> Date: Fri Oct 14 17:50:29 2011 -0700 video: msm: Writeback support in mdp for WFD. Adds writeback mode in mdp for wifi-display(WFD). This mode can be used to get the captured frames from mdp. This is added to support wifi-display capture device. Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit 584b96a4a3b0f5842178fb8fd1b1235501cf7ef0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 10:33:30 2011 -0700 msm_fb: display: add no_max_pkt_size flag Add no_max_pkt_size flag to allow toshiba dcs to lvds bridege chip work. Change-Id: Icaed4bc749dec96f12e3e0e78c098294658a2c46 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 4c4c286176e91b24f2399309ce9f379902be58d2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:28:55 2011 -0700 video: msm: Clear and disable histogram interrupt When the histogram is disabled, its interrupt should also be disabled and cleared. Note: only applicable to MDP4.0 onwards as earlier versions of the MDP expect the histogram interrupt to be left enabled after running mdp_histogram_ctrl. CRs-Fixed: 310429 Change-Id: I5a8df4fdcc41520e1ed0af970a8628479a4645a6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e19a2869b3db914e93335746ef80878103d5c0cd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:26:24 2011 -0700 video: msm: Remove redundant code in histogram collection Rewrites start and stop histogram functions to better use the existing mdp_histogram_ctrl function. CRs-Fixed: 310429 Change-Id: Iecc97c1376319021f99dd00eee6fb154bf7a5740 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 13f48ed4a9141772385eb44bd8c1923668ae32df Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 13:44:31 2011 -0700 video: msm: Remove ifdef from mdp_histogram_ctrl Replace the mdp revision specific code with reference to mdp_rev global var. CRs-Fixed: 310429 Change-Id: I09fe3707bc9926af89874966e7d640c5862cffa0 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 7484515be07eebc3a12a087921416f1b373decde Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Oct 11 10:24:32 2011 -0700 video: msm: Block histogram requests with powered down panel This causes MSMFB_HISTOGRAM ioctls to return an error when they are called after the panel has entered a powered down state. CRs-Fixed: 310429 Change-Id: I39c768c62a37ca83df2db2309230971cb6492bab Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 40a43409804073a0442d2a1ea09293c0b95fdab1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Change-Id: If8b6220c26ea8d08857f87f33609b1673238b2ec Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0737d65bb7faf91f3dbf87c32a86c5e7cb9e454e Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Oct 14 02:02:33 2011 -0700 msmfb: display: support for overlay wait ioctl this adds supports for overlay wait ioctl and it allows the userapce start overlay play and HDMI and can call wait later point of the time Change-Id: I8000cc52a497861e0a5fdfe58c0c049219724ab6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit d1b9d7ab0c98fe2bb8d6ab3f6dbd489dd17b3c5a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 14 18:18:51 2011 -0700 msm_fb: display: enable hw cursor for dsi video panel fix hw cursor updates not coming for dsi video panel defining callback during driver setup. CRs-Fixed: 309515 Change-Id: I12586e813c19ff4dbe1e3877eaf14b5a396b273a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit dee95105fdbc21ca2cecad26403e7c6a9942f445 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> commit df021cf202ea5f026c9d8862a06997e43346b2aa Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 20 12:53:27 2011 -0700 msm_fb: display: Fix suspend/resume for HDMI as primary display Fix suspend/resume for HDMI as primary display by setting solid fill for RGB pipe connected to DTV Change-Id: I2f6bf1892137ef40c55e26498c03cfb7a439219b CRs-Fixed: 310198 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d893034f3c7b3bc9435cd0cba78f220349b484ae Author: Taniya Das <tdas@codeaurora.org> Date: Tue Aug 23 18:47:05 2011 +0530 msm_fb: display: Add support for MIPI DSI Truly panel Change-Id: I499f050622e72c9f1daafa251b16ac67c35a7991 Signed-off-by: Taniya Das <tdas@codeaurora.org> commit 959fd6fc48da46199ac1faf8b7d8be18d50af253 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: Id8344af1a1607cbf4a6c01ad35441bbdd4fcbd49 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 4b99172a1df8b1ad2b48343bead39685f294e680 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Change-Id: Ib6fb8f2eab4b1e871a406a3a2d7274fcfdcdd9d1 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 8611e05dc5cb4b3ce155c04ab4e851dff1438582 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Oct 11 17:44:32 2011 +0200 msm_fb: display: Change the backlight PWM freq to 66 KHZ for LiQUID Change the backlight PWM to 66 KHZ, according to the backlight driver HW spec. Change-Id: I67bc02b7863d7e8721841edfb4cfe3a4414a1bab Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit a2c2767ee7fa7e55d9cb30873739dc42311d60f4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 30 17:19:39 2011 -0700 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I62ce418b7f1e887550319081cc4b78fbd564a6f5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5e48f5f6701a3cf0f8c325d252037bb49be67fc1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 23 18:56:59 2011 -0700 msm_fb: display: Fix DSI WSVGA Toshiba panel PLL control settings Fix DSI WSVGA Toshiba panel PLL control settings to avoid over-write on reset values from phy table Change-Id: Ia4b3a4a409a4601a3a2c9132ff66c164f1f8c9fd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7a95a8f6a93bbca3f1664cd12d516041f6d926cf Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Oct 17 15:20:11 2011 +0200 msm_fb: display: Fix dsi read packet size for LiQUID The toshiba DSI-to-LVDS bridge supports only packet size of 4 for reading its registers. The DSI host should avoid changing the bridge packet size. Change-Id: I08a4cb5921c90e9fa07db62e0310fcdb6155f131 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 051489246f2a6a4538e7dad2b985837fa06d567a Author: Praveena Pachipulusu <pveena@codeaurora.org> Date: Mon Oct 17 10:42:36 2011 +0530 msm: Change the permission of 3d barrier sysfs entry Change-Id: I64f7e028701d65d864d9ed30499bf0bfc00c8ab6 CRs-Fixed: 308897 Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org> commit 898f4bd8a9e7027e2fd9e50000e34abb41834e19 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 15 18:25:47 2011 -0700 msm_fb: display: Add support for HDMI as primary Add support for using HDMI as primary. Includes changing number of framebuffers to 2, using RGBA format, enabling HPD by default. Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 09ab565589a8a1409c222ce79b6885aa9e96d33d Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Change-Id: If9797a3b8490ecba05969d546fc70a80c0f76dd0 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Change-Id: I77e660f4b9843991a6948532eea4199b7377a6b9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 10 20:51:31 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Change-Id: I46139c2126b47ac6e1b33135b792ef702cc04446 CRs-fixed: 302409 commit a27bde25b4efd43946c19f1e672554ce0bce63c8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. CRs-fixed: 306936 Change-Id: I0e3776c7ca86f7c4a0f0d090da108599753b9997 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 8717a17a1a5555e53d2f8f8160462417105dda6c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I630cc47be806a8de383648aa80804b4d65210d4d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c430223b113ff533ef34c5acb0de6a6ccc3a1b51 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5a7f32c088bda86c7f0de08d06c8176920b28439 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e17a2ddc109e0691a25c69acd3ee16de354f5a82 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e1ed1ae1d4c6d17ddb2a027ced9524c23e878d72 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c719c541d8ec1c9a036002a80725457aab10e54f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e2833e9f0a24e1f1d3dc1a912977884920bc5487 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 27 13:26:01 2011 -0700 video:msm: Reset histogram when not read Reset the histogram collection if there is no one waiting for it when it is completed. CRs-Fixed: 308367 CRs-Fixed: 305674 Change-Id: I76de44f237f842a1163d8b9f0783bf3457ff1d3d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5a4f1ba19d0172fe3566f3df5bc78844d84c485b Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 1429568ba55646240d551e8f8f9bdd25e4cb249f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aff429ae7d2d1b272d98935907ddfbf43ff4aaeb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d48737e7b42e51a73d8084cc37d7c1b63fcdefc0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a591110794daf54865c88f3f3fcfa8b5b4ab45c2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a7c9891a83bb0dbb6729173b0e7a204f20220849 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 95169f2d316397b15f2666591951c937bdd3de4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a1b240fc59964122076812ea4c2f2ebcda99f4f2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2f19595abd7e55f302f6b50f39ed81a67cdbee6 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit daf1d2101d21f27ed21dbc8e9afe9e82f24083c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 1dcb24860f556c8e60b333ffbfa26f22773560c1 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 83eac3cec4e5957abd90a7a73a645f91d477a603 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c6ecb836e9afb41bc9475b2a4c39dad8888f5e5f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 419051b1b98b5f86ef72a6299ee9d73d039ce09e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 18f63087971116fc2af33f90ed42fd764d8ae7c0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c42862ab0b4149d6264b39d849aaf70b3de7a1fe Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 054dc107f98f31b2941489bd37e647e8be7b34e6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 7a7e46f6c1b48a5e2a3234bf0bb0e0ccfcd90323 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bbf9a472c9484c9e7a0b6ec15995a29afa0dfaeb Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9e4491612de7c7a322d061b85c8d42ee42ea831a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3d4d275bd9442307af9f0ffb36660114e842e529 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5c6cfbf2a4f8e76a0d14e37453c31561bca41019 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 074ee02cd301d9831de59b55d34e2ab5625cc983 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 07d19c35fd414757f4535f721522ed6379286b47 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 668d6d5e3e38f9aa55e78333fb8d200a83f32be8 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b84120b47e318d5144604e7249e0e0bc119e1301 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 21ef2feb1cddfa15f0a88c0838e3c941a84e9c7e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 073f1221221adb52039bc49f79c81e06335f9c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e91203dfd1bb3dda16c712a4accde6b2040e437 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8fef09a792fe01ec564d09a2b0b29d2bfa55fd21 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 33dc7b93d4fd73307bb8f68f8067cbe481c5bbcb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2ca30356bd3e2db7de9df06670ff9ba2f6dfafe4 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 57dcfff1206da4b1f6e3cdbbc63b5c27d57ded24 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bea4783bcd4a65f11a6c5c00995a04dcea72c002 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 3a8b8514533d94af2e9fcb4b215f968f07d14253 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit d5315bd98102b8a2f8e36bbd69b15b679dc43e84 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit e52976fc8742c1734c3fda80735d0dfd21c61826 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 48aef6d5c2dbe622a0c44440809f4860ff7a5770 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0a3249ebfc2d474378fb2a3e49dad2140fd6b042 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 4d3c779eb9d906b381225be5065976703d91872a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 1833754d1f71e8b52e3ac0fcfb4602048763f39c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9452ecb5b57e5bde9b880a2a1ddcd0f210ce9dea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 01d682803053d294ef11da8bef3e88b073c43cc8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 115d7975e66ab3e5f9c03d9660413a940517ddeb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 164fe8a429e39cad3f03d56dfa4dce85ff90a0b3 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 120232e5eed881f12c9d6196f2f5567106c2c98a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48551552f956565389a760cd46fd6db8ad79a044 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3436daeb9f5e1216c827a85252b4c35a6d8380e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3a76ccb3dff876cea6494d777c24c232c5964c4e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ed016bedc8c2af80b10a9d0558b537cf5e396636 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit e7833e230a3843070f4628532e5902442eeed2c4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 58b5555b7d19272e43732364b68e5d7c74b30870 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bb3d48517f5d590cb66cee5b2fe418abf4eb69d1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 492049ec4f59bf04275878a9d16ae20528159636 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e546d48310bbb1b62e56a4f361af923c8814de54 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b91fa71c588a9785f639193c49295b88031971d7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 7b57bb815b5287b0c8ef618459d989475aa2f071 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 405dc3051b06637b6a38aa6b1f4da1660cff37d0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4b8b2fb9d783be26b85381b3618bbe253a75b89 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f74d2edd791b3fddaf147c5e358a8f41463dc1f9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 49a83b2caa9718d35fab9a9fa9ad2d9436040ffd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a411f7e5195777253d4c3c94430787b4f19ea068 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 4aea274b69eeee685d87e159107f0d0eb9b35b70 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d1f8724f0d89d474a283f2ba6f51801d14daaee Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit ebca0c796cb22947a224c1afea9b7950886804e1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 3de11f35c77c7239a51c64254b00e400abaf93f1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9d28c3e809aac17dc2e3f6923e730293ae4aa977 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 759a8cf14ce1c2f0d6551a090fac84ec7f4705f2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Tue Aug 16 17:27:22 2011 -0700 Initial Contribution msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit 39fff5a3899f8d95886ba2e50d70001602b279c0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Change-Id: Id270b97eba6d01583dac3091cce0403a6aa96be7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cb472111d93fa119c52d56c102b90cc3ad2c8030 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Change-Id: Ib64ddaf9d887ac3250b40451fab70d7ca9df081e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b9047132b38c211d4d8a26896ceb4e151bf618a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Change-Id: I32a7c220efd33f748a7b46fb1006e5f0a59dc4dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 91be717084e45121fc1232e8309343c605603928 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Change-Id: I5f5167411ac2e5bbc4287148d22608a7e1f2af35 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d8a25911705d1baef68f3accf2bdcb4327152705 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit a2e6ec896e8d2e10965d6f8df6f0affdf162a489 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: Iff123c6046eb69b5d26e632ad507605774f6562f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5a95ccd976434514d06384c2684c187daf3925ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Change-Id: Ifb4f6d16967cb98a25a253c99a8af2da2a22404d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Change-Id: I1795bb154fcee4813b4a1e5e935ed7c9863cd849 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6e4e76632b3e8e109da4b63fdf653af246dcde1e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Change-Id: I39f263a8e0263aa04274d95fa43e2bd4b5815185 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 46e3767f9ec607dddb2fa6ac8f41a0c0e455a479 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Change-Id: I2f0ab81c2432d7d04fd685f0d104858b8342bd9c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit f076525d4ed93b77ca5a4cad20771e34dd5cbea1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Change-Id: I75d46e16564c4a7d1486f1ac59f79b8b218290c3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 96fbbf3272449febc1a33861af1d275200563965 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Change-Id: Ic007306a019956f565b0336d966cec7fdeefe918 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Change-Id: Ibbdbdaedf4ad5000e3f44d1e80888d68e23ff842 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7ec6eccf30ef970ec47444058f490530ac92600 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Change-Id: I89a8dce29c1ea41894eebdfd3bdb5ad7178aa8ee Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7e65d5e31f62a20ae919e0e70f04d000a353bd52 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Change-Id: I03ae784750eb4763569cf8faca43ecd46f995638 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c2177245161614a0302380d0eca57deae0cb10b5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Change-Id: I2012cc3cd9a69b7d5eadb690fee4faa1857ee059 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Change-Id: I462422e4b0d17013d61e841f66fd155db4b7ea00 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Change-Id: I00ab1fa277a86d721a78ea2d2c9d8139c92e0719 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9955cf6062327857c43947cc7ec78649619c8735 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Change-Id: Ie179e0281bff19ea69ec60fdabcf18190c390660 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7b31a46e449747c2ca79605450f57658c855c756 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel Change-Id: I47a4a55d85f4fe2555628d833220b7e72c69cbf5 CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 313e9c47ee295bff714ca1a535fe6681945d5421 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Change-Id: Ia7054e7f1d05740b765a6c9b88f8f844cb605bbb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Change-Id: I5b4f8e11262c60d286d98c79f0c32e0104a7d57b Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Change-Id: I5c0804854cb33d1fb875bf1f6c52acd0a0e0940c Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a8d17b9e9d8c1f980002994c81c9ae1ff25dca8f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Change-Id: I0ef69645fa08e8c756aa25be95ac5a9d038a3910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c60d7efe10dd5b2824464d3187bb8262ee25d2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Change-Id: Ia81a8d52c6f9a24f8107d62596eed3cdc966e4dd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 9f1bb9925e9d0ea9eb505695601941f48f8aed7e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Change-Id: I754a23592901225f3f52772b7ff4666f5b6d429f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 743f162911247ba260445deb01b5406d0067daf3 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Change-Id: I107af5cc0c1a914c53a22558085123798ca2b5f2 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Change-Id: I056c15de115367a33209c876a0d64cea85a02655 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 446d22d4641f699b741d16ea6086ce570c49dd7c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I7f493f1b850d40156b505cf88da308844ee34b42 commit 4f7e10164fc8f8477a0929cb910a849772620bc9 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Change-Id: I0409909ea6f24db3da6ebf4d92233e45da93c2a4 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9c08f6850dbd998adf7956887060eec599a8f26f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Change-Id: I5cf94a2523c453cf4e82f68f3167c3c2442d9c82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d93d76ca62d758fa6f584a5a6f86ed92b0ea845 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Change-Id: I3ede2a9fa25adc62c85b5514c1bb1600ec7ce460 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ee9289450d530ab1fdec2379859fca5845a7808 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Change-Id: I6f03e957983c4161499a26cfe2f9008a997a04c5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4d8813b4fd6fe7588c411e90a2603b23a772f738 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. Change-Id: I252df99c085bf3e9ada117aa7c08f3a1f3023475 CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c429f0a0d694ee7ef3471c1b5172b050bf17a1f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Change-Id: I8b054f61ae907735064da549e493964176ed3090 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bca2a2055432cdf78380ac070ba0ede9c5893083 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Change-Id: I6a0793ff049017785b75624d30d0fe862e41b210 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 871edcfd5a801feed587b6c7f72aa4e1387d245f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Change-Id: I06c21a6fb480e119ad4ec75e993203124b97f4b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ede104a0244a04ca6fa6ce8fe9fc98008462df9e Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Change-Id: Ic5714dad929cf56505569cba14722a20dee12c15 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 716e97e704c6591f05f5b88743fca7770f0c61cd Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Change-Id: I3c80e4307f84d32b02872e977858fb0adc293b94 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 64b4b03461e39a715b33a2ea1ab97f5b27850535 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. Change-Id: Ie2a0785d490dc92f7f14f64aa3c2e28e6a231202 CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Change-Id: I94ba3457311c58415ba29bccdc2d146891b17897 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Change-Id: I0ce9cf2a7eefd785ad161b10204e56285248661f Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit cfb68532d8d09c54564590fb8eeaa83383004472 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Change-Id: Ie3e020394492fdb0209b7eec2ab2303b4f2a9ebb Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ea9be62c230d982d6122b16b8717131f0df6f215 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Change-Id: I47d68ddb2565be4f3d131061a21c5d921142e933 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 60dc151a43093fad5f68d02323570d5efd58ee4a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Change-Id: I98bd1a4547bb7e310b0df2311aa41ed4115cf8cf Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit e6613b38e178e67f441936e6820c966f553074ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts Change-Id: I032883b9de9e51c6844cc66e3d1945a14ca05e19 CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ddc23bd81a174843ee09fe464e0afafa62bc7126 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Change-Id: I7188e5dac6d4eb2f4ca6a7833c84e1fb1251b1b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset Change-Id: Id2eb0be74e72c8982a2def8e333032174ec1d23c CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 14db758bfd64c473185b369b311e2cca443d01a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Change-Id: I960e441210deaf7edba38b2409954f938160e875 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a41b7a628978951a3d2b58409eaa131a65707f4d Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Change-Id: I37e0cc6394ffa8dce8aa8a4cc5fde61402f44334 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit fb8a7f9d09f3c068fdcdb7e880fd11688db2df95 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I39cdcb78455e07332351b7312ba149aa4f8c2f07 commit aa3c63a48f18740c0f90f2d85218891b0b3899b5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Change-Id: Ide2beb306ed09e4b5478877d2f000eb00f1c317b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Change-Id: I5fc29a314eb6eeb9a88ff7cca5779e95ca954ede Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2920965c1443096f1707888d2fe311cb79dd68dc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Change-Id: Ie55ac18e6b196276023d7f28f291e5410d309217 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6935ec9e55cb488fbbb377cc49697b6d37b254f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Change-Id: I0c30f41a5d46f357110b619ba90d16d95d9576af Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. Change-Id: I1b9e562c257fac563934b5b1477e58e5382b45be CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens Change-Id: I7448525e9f11638c4505e0ce39fa9da05813f5d9 CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bf2d82ddc93d20097fa1021b1c7629b9d9986384 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Change-Id: Ib794b76cc7b9e1a8e9ce53ff9ede57108f0eca88 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38bae35c81f7eee8605d854cda9f3854c3be2051 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Change-Id: I555cf7871da84a91806cb5b1c269e7ed79080009 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Change-Id: Id6fdb3249825405fae058d54772a86145de9d8e8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit bb597c0640d5f87aadec33d29c03eaa0d3718a4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Change-Id: Ie2e3bd1df66b5cb944cd0e28d97227c408cfcaa2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2be87760e94044f23ffefc7a753f9abaf14134ba Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. Change-Id: Ic691103e5d1de894f81d90ff1eb4c1a0f9830ecf CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Change-Id: I0057bb34c6bb90ba3c13861978c5cf71ac620ef2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Change-Id: I23c6ee2a6802baa98af495320f6bee94915ecfa5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Change-Id: I8f6374ed2e27529215a7d66dc32e65e7b4a79983 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1532e778ce5b8c30e8261f2b73bc78819f99ea3d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Change-Id: Ie052e986bf21277685d4f52205d3401a5d85c3bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f711ac25a68e521ce2bbb450d34f46eb76d39a20 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Change-Id: I0ea1d8797ae850fcfd21b8964ee967282b23910e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a34b0bc9e1e66f9e9c6ef6063bf3c858bca2e2f4 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Change-Id: I043abaf33ce6a5f926a3b27551a517e829b30af9 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 917fee282ae07cc98541a54204069bf7955e352d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Change-Id: If2722fc012aa97f0cdb2577589d2e51b82160c24 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3eaa215567715925b93e5d5d60f679de6028d0c1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Change-Id: I34148433f8fd946a9aa664df6ca7782cb02bba2b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 959f5c62d3b83b65567cd8088db9d9d84774273a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Change-Id: Ib7598cb8e4ce16be39d0586c718c0753f50056c6 Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 802cea1a8b7f850495f900b8519df1d4a064c880 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I0898f3eac7ecec85b499b73ff118d846ba32bc3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8cd1e18d1f8fe351e42a0ac5287536cdde7efcd8 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. Change-Id: I0bc92777a172a2ecf26ce34d8882a04165e859a3 CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 03522b71418c110c98c5982b9d28ffc97c9afdba Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Change-Id: Ib8865c8bd3390ac12a2fe1eac158b7e4fcab4bad Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8f43f4bb7d9d56c82aa2a7630116b9f44aa99a62 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jul 7 21:41:10 2011 +0530 msm_fb: display: Enable lcdc for msm7x25a Enable LCDC interface on msm7x25a with dynamic detection between msm7x27a and msm7x25a Change-Id: I935ae65f8ed43b5e524da100d38feba44c3c4a16 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit bd0ef9258776385559fd032134e0a28e9aad8f34 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Change-Id: Ic27d304ec6bff44c29b8d10c622363dbc5fcee75 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic3060030dece7ab531d3630eebf6e4ee7267804f commit fe926e8303dc6da0adf7be76c045ac93a9f8818a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Change-Id: I4a6d78ad939085128d261fdf8c70018fff424b26 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jun 25 15:51:14 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Change-Id: Idd3b9e6562acad96fc0f460f81e64d4483059b9d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0423ef3ca01755267a1f4e157c8ea7e468b145f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: I92bb11888b004a6fbd7af900ccb490cc7f9547e3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c1abee46365a0a8b976877a6ad5f2752f410ed7b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Change-Id: I7a3f274dd5472fa3842a6fda586539e85c7defd9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 16636524b5635644f554435a99553c097b74a605 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 15:12:21 2011 +0530 msm_fb: display: reduce display initialisation command for lcdc Reduce display initialisation commands for lcdc toshiba panel to reduce the time delay to resume. Change-Id: Ib36c2546423d1b7c5c0d0c1531c480b477c2d975 CRs-fixed: 291494 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 4e19f50c3e21f6be4595eab4ffb1d07abfbe8025 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 10:52:46 2011 +0530 msm_fb: display: Configure full resolution update in dsi command mode Partial update is supported only for mddi interface,hence update whole screen for dsi command mode on msm7x2xa. Change-Id: Iecfc8d5edac2f962c3710692ed87abaa90fbe184 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Change-Id: I57ee5704dc3ec2aaa16086727470b4f6dfd9ce9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Change-Id: I380a4727c0485bcdcdbfc9fad43476569f2b78ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. Change-Id: I90b3582fa73040bf66239f5258592a1f08cba0f0 CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit da07df81fe450fb08ec68511bd4ac5004ee96f3d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Change-Id: I2a941fafc92de61df9077cb3bb5bbb78964d1809 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9568223aa6d0fa91fd8f3a042d75e91b1895d494 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 16 18:22:52 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: I380b05d8d9158c49be5bdb9a52e52a114725c22e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 20 18:47:53 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Change-Id: I6d8b766fe316522451eb5e2c548799b17da431be Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f25bec14f4ab386015cd034c59ebdff9f3d266b5 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 28 09:14:27 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about whether the panel supports 3D display or not. Change-Id: I3f8f9d8eb4014a77f9b4f4752858999009ab2407 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7eee7cfb58b63b1e710e20d994b3926b4dd126ae Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 23 20:18:38 2011 -0700 msm_fb: display: Add HDMI PHY settings for 8960 target Add HDMI 28 nm PHY settings for 8960 target and separate 8660 specific HDMI settings Change-Id: I3fe023c28fe0bf3728f7dbba8cb16fd3096985d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 27f99bb784c6e390674373ae980d9fb15194f0dd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 20 17:16:42 2011 -0700 msm_fb: display: Fix suspend/resume for 8960 DSI panel Change-Id: If3716f131b7b5c9d5dc176d3995622355696c5d7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Change-Id: Ieae169e3ece870cac7f2c73922b60789fee11a9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit afc6ae9304f27c240546f15580555913f7e27644 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Change-Id: Ibbc77d3f369d4bf4e1a1311609039764a692d66b Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit 9322f759f8437a816e44aa921a64fcb566defcfb Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I60e4cfee8215139671248506caf0d625a1bec1ec Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 918ecc5201654cc8c1b5bfcaa7ef5ebc32304733 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jun 10 15:05:35 2011 +0530 msm_fb: display: Fill the last frame to NULL while suspend in MDP 3.03 Toshiba panel stores the last frame in its frame memory during suspend. This last frame gets displayed while resuming in quick succession which is not a valid frame to display while coming out of suspend. Hence fill the last frame to null before going to suspend. Change-Id: I605fbed97455298dcd00d884bb9f4b7256078902 CRs-Fixed: 290419 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit fc299bb8066e0325db239bb356c546e57c7ef347 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. CRs-fixed: 287700 Change-Id: I4ced3fa8927fb94e5457957aab274e7d07acdd79 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit 6de2b7363df7ad3bfe02b6752910675c749f910f Author: Vidyakumar Athota <vathot@codeaurora.org> Date: Sat Jun 11 22:52:24 2011 -0700 Revert "msm_fb: display: provide panel refresh rate information" This reverts commit 7b401565d2ab400a3e68e1112c3d601d13a34837. Signed-off-by: Vidyakumar Athota <vathot@codeaurora.org> commit 55e656e68cac78eaa367341df2e693a483a53f84 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Mon Jun 6 14:34:38 2011 -0700 drivers: barriers: Replace dsb() with mb() Replace explicit dsb() calls with mb(). Now that the generic ARM implementation defines mb() to mean (at least) dsb(), it is appropriate to switch back to the generic kernel version of the barriers. This is also needed for correctness on certain targets (such as 7x27) where dsb() is insufficient and other operations (such as outer cache sync or writing to strongly-ordered memory) are required to ensure proper I/O operations ordering. In some cases, remove explicit calls to outer_sync following a barrier since the barrier will now have an explicit outer_sync call. Change-Id: I2c53b8534af9c3cbac4d4d77b322f897a39e7758 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Change-Id: I2593b225353ec3758f18e33ea58fd867b30ec062 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 47c54ff0e010190f0a11e7e2792642d70caa339c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Change-Id: I10dbb23a7f13f472c8de3014115890e689a2b6e9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b35d093b7b22e380ffc9f066a92dc0ef218944b Author: Gregory Bean <gbean@codeaurora.org> Date: Sun Jun 5 11:34:02 2011 -0700 msm_fb: fix forbidden compiler warning. Providing forward declarations of functions and then redeclaring them to be inline later produces forbidden warnings on some versions of the codesourcery compiler, breaking builds. Change-Id: I4a65e1af002f4bc412c30b5c96601f8e650c74d1 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Change-Id: I5657379eb4593eb551127a016393f231f445f423 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 63a81111eb3e7143bf37e125c3abeb94fcc611ac Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I7e98935f0bd4f29c188f46601d8df09c37cd20d7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6a194de79ae35f9785c5a5c63cda330c7dab1a80 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 25 08:44:37 2011 -0700 msm_fb: display: waiting for vsync for UI frame push Add waiting for vsync for UI frame push through pan display. Change-Id: I9be701c6615c139d6d07b16c32039074d5b5a431 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b11c3b46619d3eaee600223859041a51fa0af218 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Change-Id: I620d133941739eb8024cdb6d79227078c3193fac Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit cef59b7b35b714df7b81f9bc2e96b8d49181f95a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Jun 1 15:38:08 2011 +0530 msm_fb: display: support suspend/resume for lcdc toshiba panel Add support for suspend/resume and backlight control for lcdc toshiba panel for msm7x27a Change-Id: I49916776cc532974eed7f858cd7e2fd85b6c8fda Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e8f469582b62d0d76faa4051227228734f226325 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Mon May 30 18:04:44 2011 -0700 msm_fb: display: Tune DSI setting for Toshiba wsvga panel Change-Id: I71df1f019b1604f806af6b7ae7f379edb810a583 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 6a11cb6f4d7bf536d2881512daed6e3324f65b64 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 23 14:17:53 2011 -0700 video:msm: Updating QSEED table2 values This patch updates the table2 QSEED filter values so that they apply visible filtering when using the QSEED smoothing/sharpening API. Change-Id: I4431a02e24f9bcae035898b758e8c462c9c044de Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 589c897daefbcf28e8610226225bd2d8fcddee4e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 28 13:53:07 2011 -0700 video:msm: Initial QSEED sharpening/smoothing API Adds an additional parameter (.dpp.sharp_strength) and reuses flag MDP_SHARPENING to mdp_overlay, to allow for overlay_set to request for sharpening/smoothing. The overlay parameter is designed to range between -127 and 127, with negative values infering smoothing, positive infering sharpening. This range of values is then mapped onto 7 levels for both smoothing and sharpening (i.e. ~ every increase/decrease of 16 aligns with an increased sharpening level). This commit only adds the API for sharpening, a patch that updates the QSEED table2 values is needed for the desired effect to be visible. Change-Id: Ib6522e43bde4f4a54e752258553822e78a95749d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 4298b4f972b395b92ab0346978a9e9e9999c2e9f Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 24 20:10:15 2011 +0530 msm_fb: Display: Add support for DSI Single Lane for 7x25A Add changes to support QVGA resolution and Single lane configuration with DSI on 7x25A Change-Id: I3f33e3b41a860b7339abfb824aac00435606e5a2 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 54aafeb90b88663a423be3459f4c05c38ccafd97 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri May 27 01:16:55 2011 +0530 msm_fb: display: Enable backlight control for mipi dsi on 7x27a Add support for Backlight control on mipi interface for msm7x27a target Change-Id: Id22cba59929eeeaecb6383b273242f12c52535f4 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7b401565d2ab400a3e68e1112c3d601d13a34837 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I738b254bf8d2db0bd79864c0731ad0542f657bf6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c394da5a206ccb6aab93b0a3beba9d38f479d7e3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 25 12:55:58 2011 -0700 msm_fb: display: Fix for the color swap issue for mipi simulator Color swap was wrongly added for mipi simulator panel, which makes colors to invert on simulator. It will disable the color swap at DSI controller. Change-Id: I1f00cdfaaa9e60804045d81581d3a1de059e21c6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Change-Id: I382aab2bf908f0140004a6713c8e77a16f5aa925 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 395c7c1d9c82d56977a611080d305aee0d974372 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ief48dca2b596ac4f2c6fb23a5f20802e8b3ef4d9 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8ad47e5a01f5e95cc0e41c1a4a71317d4d8a9a17 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure. Change-Id: If4546501eae383755d0a5ddd059e166007f64bf7 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 2604c2884489e8c76474249fff6f8d1103503f21 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 23 15:36:47 2011 +0530 msm_fb: display: Add histogram in MDP 3.03 Add histogram functionality in MDP 3.03 required for Content-based Adaptive backlight Change-Id: I24dd8a42c12b2311823fc25b2aca568a8c391b0e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9925e41f075235b620b9d6918f9d00662a60e9d5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: I4247b600e31e7a5f39b44e77a49c174b8c0bd11f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit dcc36cc4b33d1b82b803fe1dbdb904656eef0aa8 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri May 20 13:06:06 2011 +0530 msm-fb: DSI: Add Support for DSI CMD mode on 7x27A Add changes in MDP, DMA-P and Panel Configurations to support DSI Command Mode on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Change-Id: I912866f9072dda690d5e6354a05d74dcb2d2aaa0 commit d567f25ae4afa37f8f7e2fda53bade2099f7ad87 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: I508d250c9193449e6663e13570c2c9fac3b8feca Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit c7163d9a33d86d1001aa4083423c68c07743861c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 16 14:07:15 2011 -0700 msm_fb: display: Reorganize DSI clock and PHY settings code Reorganize DSI clock and PHY layer settings by moving code to different file from base driver Change-Id: I7d02a4cd0f5322b80462e3721d5c8fb4f83d002f Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ae66ded8ca3d1e7184dc04f1c165fae30ba8a203 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Clock changes to MDP driver Adds the mdp_axi_clk, mdp_lut_clk to the MDP driver. they are the new mdp clocks added for MDP4.2 hardware on 8960 Change-Id: Ib936a280e83a414806365836a839b5555f445724 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 46ad60f0cff5c2222ded7a639f337417e59b2375 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. Change-Id: I077d497c2ac9b1dd181f4f4ea874bd2ea4dfede8 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 4217a1dacbde157ce26238904450b091778fe872 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. Change-Id: I76f7246f855d7a3e99de29da7297053c477fbbef CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3700ca00ba19855081822169e144c87aa1d4953f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Change-Id: Ic635065f2bc42cdfb422f440fe65fc01a246e18f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 22cff13e1115962207254980acffac8d20bd9b26 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Change-Id: Iee5ea7287ae8879f961a095327b71a38b8b60f57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cd0bd24a3fffff873821618009389378372fb73e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. Change-Id: I55316d9dc96fa17d275d87e75480a2209b1fa46c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d89efdbbdf521f05a7b9f191e98914b40bc1962d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Change-Id: I630f1df16212d02bd694e086d695067262b6203c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 757e2ea8064b379ecfd02a6fdd36f6f2894066c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Apr 6 11:15:36 2011 -0700 msm_fb: Display: Enable WSVGA Toshiba MIPI DSI video mode panel. Add code to configure and enable MDT61 Toshiba MIPI DSI video mode panel. Add new command set to initialize and configure the new panel. Change-Id: I8c543677f75ade967a77100a7878b9e487dc991b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. Change-Id: I83cf278310a902c263e191b714b550ee29afa5e5 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 8dae3d06d1c41aa2de609056811646ff50e77791 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. Change-Id: I436f1eee110562587223fd1de97821968d494034 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. Change-Id: I3df0dd292ac7d28f9eb6028ee16e5c60180e5c35 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 065b9f72784c2686aca0233e8e510229efd329c4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. Change-Id: I0ee5412dc5801172c00570748fbcc9a9efe04582 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit dfcf3ef2212026dfb53e87f571b294627f34a4a7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If69a6781dfc493125b5f57b937c24d17b4cbbea6 commit f0771a155634cae4052dab0c0c7ae2fc0abc4b56 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 16 12:19:53 2011 +0530 msm_fb: display: Enable suspend/resume for mipi dsi on 7x27a Add changes to configure Soft Reset of DSI Controller. Also, add changes to control the power of the DSI Client. Change-Id: Idb72327da1219c215c36e6b3a94d4a763e071fb5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I450a46cda3f18f1a54cc5e2cd0500c9d54473b7d Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e814b7842af3b7f15047f3f922c1f1648bb2705b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. Change-Id: I77dcf3d91046f4f6f71f4dd5c1aea90bd766e7ef Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ccdb0372092c3a359754897ebec2bb8be37d6a3e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I1e00a561774779703b343e08868f3da633f6dbdd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication Change-Id: Ibb25f7cab29c2c361020cac868b58c298ae74560 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. Change-Id: I98fb0e3b09501aa30a23eb6939102de08665f66f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ce25d616d046ee3db897fe921d300f44553d83c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 12 17:26:39 2011 +0530 msm_fb: display: increase max BL level in panel driver Increase the maximum backlight level for all panel drivers supported by msm 7x27a Change-Id: I534b8e5e3ee296e68e81d4dcdceea70319cbd0da Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 829c88376705c6b58e62dd93e9802ffb905ad49c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. Change-Id: I8a058147f8bd147ee2330d445f27b2ee58e5ef99 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d8df7faccb2ec330eb859179ed0db07313626b7c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Change-Id: I45a92c91dc5c250a91a6c069e0695f72c97a6272 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e80420254616b39d0c350dcadf8f6954394e7647 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Change-Id: I95dd4b8bc654a923730a9e4ecf16499c556201d9 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 15bd60d7b277f7850bbdc814ae1e151c5cea31ba Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 9 18:45:45 2011 +0530 msm_fb: display: turn off dsi ref clk for 7x27a during power off sequence, dsi_ref_clk is not disable and hence TCXO shutdown fails. With this change, dsi_ref_clk is disabled during off. Change-Id: I9424120370a6a6feec98ca228777ecaac9249f30 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3d3439c820a1a0e79f3c3b706556a6ea11b6ee76 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 5 10:48:02 2011 +0530 msm_fb: display: Resolve compilation errors for dsi on 7x27a Change-Id: Id7cc3e3df2c0005f0442e03625567c40797feea3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Change-Id: Ibe731d0c562d46a0c3888704f50b2010ec1769c0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Change-Id: Ic31ca511afe2c44bc045442c807c2b2fc554bb5a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 894c60beca1296b1cc16f948f45ed140a016921f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 2 17:38:17 2011 -0700 msm_fb: display: Configure 8960 serdes settings for DSI host Configure 8960 serdes(Serializer-Deserializer) specific PHY settings for DSI host based on target type in platform data Change-Id: I433e61f13f19a582fe3e21dc6832fcf93046a3f1 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c7711029d933b918a97749af7e31beafef3e0d96 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 3 05:59:44 2011 +0530 msm_fb : display : Correct DSI Byte Clock configuration To configure the DSI Byte clock, clock string ID is different for 7x27A and other platforms. This change handles the difference appropriately. Change-Id: Ib5bad3283287e7d36d428aa4721c87985c112d59 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 64189b417cc545add2f496609ef11df6b491d177 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 13:29:40 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. Change-Id: Ic68a2dc646a2e2693e5eea5d9c81e629a0a84244 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dee181e845c10b3b9a68fff89d965d6b99691c09 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. Change-Id: Ia0f5ff8a55322546dd7d18fca4e1d7b3ad02f8ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 393e367e14977c42f62df3101535712503f1f133 Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I3d567d73d1854d62c86aed95824c39bfd1f20859 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 0b0d5c46c0fd92350be9cd838f621aef566ce7d3 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Apr 26 19:01:21 2011 +0530 msm-fb: Display: Add changes to support Renesas DSI panel on 7x27A Added changes in the DSI client and panel drivers of Renesas Tremolo-M panel to support it on 7x27A Change-Id: Ibacec50454e573a065a3eabfe30e02b22896e44d Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c192a65bed1be0d4d8cd80be809ca59a9fe100ee Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 11:17:56 2011 +0530 msm_fb: Display: Add MIPI DSI support for 7x27A Added changes in the DSI driver to extend support to 7x27A Change-Id: Idd55b0aae9aed653721357ff2c414ce081d6bbbc Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 551c692934c576d7105a0d65b39aca126652ec3a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 12:37:54 2011 +0530 msm_fb: mdp: Add support for DSI Interface in MDP 3.03 Add new interface support (DSI) support for MDP v3.03 Change-Id: Ifc85b8d1f84a91e97ac11c8e62480568096f1845 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5e744543c3f81650a1cea1402c58c01ae6ee421d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Change-Id: Idc788125da12f3c3aae3c2a64292e8ca8580e7c8 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2afd5ab819fe894511ed58fc1262d0452a4c70fd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 21 16:11:20 2011 -0700 msm_fb: display: Disable MDP clock directly during suspend Disable MDP clock directly during suspend bypassing the pipe ctrl workqueue CRs-Fixed: 284441 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic04fe003c51c2081496760531e5c7379fcfd39f7 commit 902ea8d6bcc516f383e3335cd690ef5e384c267f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 25 18:53:29 2011 +0530 msm_fb: display: add initialization of toshiba LCDC panel only on surf Only mipi dsi has support on FFA but not iLCDC. Hence the change to have LCDC panel gets initialised only for surf and not FFA. Change-Id: Ifd6526b0020c004bc413b12939701f1935c16dc3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 565ecc608d46993c4afe6dd15c95942c75f1e932 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 Change-Id: Ife0af10358d3e61112f6f70349262d1bf2105c62 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 801290d61d4426c1504079bbaa702f5439dc96d3 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 12 19:19:17 2011 -0700 msm_fb: display: Add DSI PHY settings for 8960 RUMI Add DSI PHY settings for 8960 RUMI Renesas Command Mode panel Change-Id: I4323413414f89f60e16962887362908458bce400 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a6a1618edcdfa45b8a03dceb768e873ac5cec731 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Apr 21 00:12:44 2011 -0700 msm_fb: display: Mipi driver for 8960 simulator Mipi display panel driver support is added for 8960 simulator. It will control the data flow between dsi controller and the mipi dsi panel. Right now it supports only video mode. Change-Id: I3712907a0e0c07b9ebd7e9fb2678f37a3058d5f3 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 708f3b8c4c8115e9a6543b6cef50288dc94aedfd Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Feb 17 01:13:07 2011 -0800 msm_fb: display: Add support for MIPI DSI Renesas panel Adds basic support for renesas mipi dsi panel driver. It will control the data flow between msm dsi controller and the renesas mipi dsi panel. Change-Id: Ib92a342bfb3d596d99dbcf564c86a684c2d2f8c4 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit c5ac53e3e4aeb1d73587719f639210a1b7610481 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Change-Id: I8970ca2ad9481c4b725b6431309d6153f18b9435 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8825c2547168a36b5fbb30a14add7509e33f9b41 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 20:41:54 2011 -0700 msm_fb: display: Adding the Interrupt in MIPI DSI Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MIPI interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I04ec4b3d1230dd4e5e9be0041db6efdd31045a32 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 994b7d8d34a81ddc9c6fd9bbf8c71791e8f36bd2 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 19:10:53 2011 -0700 msm_fb: display: Adding the Interrupt in MDP Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MDP interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I84d2825dad00fd8b6c4425b290aca070b847e9f5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 75df47a6dc38b5bd08d0c8e2d7595662f9a3ddfe Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 18 20:17:53 2011 +0530 msm_fb: display: Avoid EBI1 clock setting by Display in 7x27a EBI1 clock is already set to a higher rate in 7x27a and hence there is no need for display to set it explicitly. Change-Id: I316f61dd8d345d6b66a070b75c6be804ce9db0a4 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 04a6f98fb77c9749cfa50fa9e5cbfda132fdd28e Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sun Apr 17 03:42:22 2011 +0530 msm_fb: display: Add support for LCDC Toshiba FWVGA panel. Add driver file to support Toshiba FWVGA panel with LCDC interface Change-Id: I15dd2abcfe474ec7737e7915884ea33ea78da689 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0df29adef313157f99c814e86f3a73e7d3c657db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 17:49:59 2011 -0700 msm_fb: display: enable vsycn on mipi novatek panel Enable vsync on mipi dsi novatek comamnd mode panel to prevernt tearing. Change-Id: Ib71a0204e5ef4cc8a0e0b977dd3744fdb74c8af1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 605a44c18620ed364e53d1e4cc0f03fd2f815029 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 Change-Id: I930c3e9869c6bbabfd70203ddbddd15c84fbae92 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 14:59:21 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. Change-Id: If54c4cd125a8504eee4cd468282f4dccabb0398f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4a80d9e8bd74410f4f9a3e636c3c617e8afa7b8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:59:02 2011 -0800 msm_fb: display: provide option to pass chroma pointers seperately provide option to the user space to pass seperate chroma pointers instead of deriving the chroma address based some assumptions. This gives flexibility to derive chroma address that has size alignment restictions for luma. Change-Id: I384ade86993810627655a8a446e6b9316979aca8 CRs-fixed: 274238 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47 Author: Michael Bohan <mbohan@codeaurora.org> Date: Thu Feb 24 12:10:11 2011 -0800 Initial contribution This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.38. Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> commit 1ad6a901db3038e67a58b98ac60cf048deb7d7aa Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> (cherry picked from commit 514b1c651a33b7b73fb6f654d04355eac5ecb146) Change-Id: I15ae4a26a1d1f964b41bb6174e5ea31bc4da8a59 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 837fbaa4e02d07502c8969503ebb936c0c1716a1 Author: Swetha Basineni <sbasin@codeaurora.org> Date: Thu Mar 15 17:08:38 2012 +0530 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63) Conflicts: drivers/video/msm/mipi_dsi.c Change-Id: If7adff01a7fd50177761f015227986a3f93d1e49 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 5fa503114b95e1cd0e4650a543184e36215e2522 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 1573599adbb42c606d8b91854c76461b3f212c3e) Change-Id: I60a2fb051add9973d98c177b58c33445260cb359 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 08c0d505198f988d10f4f55fe30c0448b33a815e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 81be67988ef149f601064a9e8e5d91705e636ff5) Change-Id: Ia0552b3b645389efeaf2b8d3986f5ba10c4d9142 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit e4326532759c3e05741616760bb11e456ba31cff Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 228895ae217589ca71aa464f7c22bc4cedd06f77) Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: I06b2cc1658e49fc5a82f156911726a41a8467bf7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 8b7fbe6ed5f4f38b34c69a82d711438a570304cf Author: Swetha Basineni <sbasin@codeaurora.org> Date: Fri Jan 20 12:43:12 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> (cherry picked from commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980) Conflicts: drivers/video/msm/mdp4_overlay_lcdc.c Change-Id: Ic8a2d59163c807c24ffa54a5b72d5bdd70712301 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b77817fa07694f7fe1bd56d11e1765a66787b4e9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> (cherry picked from commit dee95105fdbc21ca2cecad26403e7c6a9942f445) Change-Id: I43abe64ab53feb09a0494c9f642241e5791ce9a7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 721d78d25c007c5e8ac9474d95f4a952e0a1ba76 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> (cherry picked from commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9) Change-Id: I395c49c3d6308c4ef2b9a7dab41167467be3519d Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9326c60c83647488f2e33d9112b07d70296f5a6f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9) Change-Id: I5069e50dea973895b67e21e60e335818c30fc142 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 184cd5a52d1ab1864f58baaa81aeed091897667e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce) Change-Id: I3f97aadf0a7635bf07b206a3477afd18a23b7b44 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit df013ad8114e7e8391c90df172da0a04609fae65 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 402adc6142598abcb2a41a941895003f57f289a5) Change-Id: I28d6f11b20f123c52d5872f0b550c3c4531356f7 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9882bb2dc947df434befbae40b0d681973a4b5e4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit ebefc805a139e8222061b32cbf7686d76122de5f) Change-Id: I7bc723e53244983b76937deedf3524c642194e62 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 63fcfdde892762d72a7ab15b0628167d584a2ce4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn CRs-Fixed: 311139 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0) Change-Id: I7410e176b0a2e09b87f623bdbfb08927d2525b05 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b18226c8a815117f985eafb06439bd0d692531f4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit a077d0063dfb8a39a869f56099dd0ffe85301180) Change-Id: Ib664232c07d00dad7a2d89875fe2903b8ab1016c Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 1e6428ce9512b074a2a586b403c331690a9813c8 Author: swetha <sbasin@codeaurora.org> Date: Thu Nov 17 19:08:30 2011 +0530 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit cb8fbbcbe0630451ba582a0747987c48b2c603f1) Conflicts: drivers/video/msm/mdp4.h Change-Id: I0f36f65db00884b017a5bad4670794cd65e2c5e5 Signed-off-by: swetha <sbasin@codeaurora.org> commit 5dcef0415fe4312e4fed83c6974780fe163e6523 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. CRs-Fixed: 316345 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f) Change-Id: Iaeb6b9b121d8c9eb4cf2413ddcaf0024b06e0d8b Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 0506478f4ef8b397b3916db47133c4d0cdc05c89 Author: swetha <sbasin@codeaurora.org> Date: Fri Nov 18 11:27:28 2011 +0530 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: Idf36ab257d4bb493c578529d4d8a7f0d68e2b1cb Signed-off-by: swetha <sbasin@codeaurora.org> commit 79d8f3eec036a1f0604bb296048a5c21a34a6a36 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Nov 17 23:54:16 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. Resolve GB HOUSE conflicts, below FR on gb house had conflicts. CRs-Fixed: 319078 Change-Id: Ie93aeb8837151ef98814a4cde463a3be58c6c1fb Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 0a693110809d2a782a137f242f6438cb0e32218b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 16 22:00:05 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I00ccf91c022d6b9962ec0231eb3c8f159a200e40 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c55b00c069de596e0d539314381b1139139c6932 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: I23fb10ea30117e20de654d9516f7d024b99f6c96 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6b5cabad0561eda616f892cb67306dc4231626a9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. CRs-Fixed: 311137 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178) Change-Id: I79a67ebe0a24be65c2f588d06e80e437d850dc16 Signed-off-by: swetha <sbasin@codeaurora.org> commit 1b0fe24150908a0474460c32347e71d1f904008e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 40a43409804073a0442d2a1ea09293c0b95fdab1) Change-Id: I46ab957bb1f6f9289ea62f49c4c012450965cc9a Signed-off-by: swetha <sbasin@codeaurora.org> commit d8b5b8b42652bdf50d9d2f32c9f5df9a683bec0d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 5a95ccd976434514d06384c2684c187daf3925ea) Change-Id: I645e953bcb614f18ee0d0469e7e05a81c90d6027 Signed-off-by: swetha <sbasin@codeaurora.org> commit 8da556479db6a5798cd64278c0a59098bab1b89f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Wed Oct 26 11:19:57 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6) Conflicts: drivers/video/msm/mdp4.h drivers/video/msm/mdp4_dtv.c Change-Id: I5a2bb2982f49d9e3f5fa04addf60d498e8177931 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0716a0cfbaa4b71cd46359b97d0595fa5eb13dd9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 09ab565589a8a1409c222ce79b6885aa9e96d33d) Change-Id: Ieb7db1ec90fb6e57b7e3cbc1929ffb74a1d96d8e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit e2a4d84ae6cea7d8c32186e3d94d66814ad8f5cb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. Change-Id: Ib8c95024dc593794909893bd7daafc68ecb77769 CRs-fixed: 306936 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 5f775050abd5416a04e2999101e98b9206fe8a25 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I096939b519c0e007e69e58d0665408799e7f5e83 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b5b8af371375fad123b3b26a1c8f85bc6b6c72e7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: I5261356f75205eb1d3ec17522779693deed09562 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6fb10dc13bdcbec93462149c90ee11a8f3101118 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb) Change-Id: I85bbb414a9d34981487bee63ebd7b10e76711c89 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 30e1b13055d905f4276d3e9fc9e0a93d9dc1f9f5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit 4b99172a1df8b1ad2b48343bead39685f294e680) Change-Id: Id54327394748cc4a80864967b21caf8a378f37c3 Signed-off-by: swetha <sbasin@codeaurora.org> commit afff1683341cc4ae64ec618a86aecbbf1a1b83ff Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7) Change-Id: Ia3ec88bb19cd2f06fd9784afb2302bce4bbe2858 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f00cb084795b659746359544e2d2c80acf15bd5f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 18 00:37:14 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-fixed: 302409 (cherry picked from commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87) Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: I54afdaacc9b3b96be22ef5c0bd1ca2a2478a8f16 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3c12051aa756e8ad7c9fc40bdff1171d401fea42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 39fff5a3899f8d95886ba2e50d70001602b279c0) Change-Id: I4f81ec5a61e0e12013bb866e41301b95a10c7e45 Signed-off-by: swetha <sbasin@codeaurora.org> commit 7a851968932a82b4b21acae0fe788fc2c48b053c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit cb472111d93fa119c52d56c102b90cc3ad2c8030) Change-Id: Ia4586f17bf7696d422c25be7c6a55c4ebfa403e1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3d3a9c230489cebc3c20eece3639e175923d604c Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee) Change-Id: I9a4355eaec13aca70f9c2890e3eba96fbedf3454 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0f189a55ed89593cf430e850c923369d3acb2e7b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler Change-Id: If0ede3234d0ab844d2d49119873af5160e8a3e70 CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1df2948178c9ff509f28fdd2757119ae0923a494 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Add revision to MDP driver Change-Id: Id86814725955c743df4a0f85548fa64c3656feae Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 96145b95dd0688ed0c83f33d129b4bcd8301ee54 Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 4 12:25:44 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57) Conflicts: drivers/video/msm/mdp4.h Change-Id: If070171b933f4b74d5ce817340ed04be0ccbf270 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 433b95fa866ea12a0acc768ce0378f992c1dd09d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 8ee9289450d530ab1fdec2379859fca5845a7808) Change-Id: I8eb4caee64a67863180dbfb45e7d8062488d493e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit b374b85bad548b148cc232c0045351a5b4d524ad Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32) Change-Id: I478dcd2a98d8825783e710aa751d89b9348f2782 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ad3f14bb1b57a8b3b41ed6559689f414a3d020bf Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 446d22d4641f699b741d16ea6086ce570c49dd7c) Change-Id: I4a7a22c5a0ac32120a7fec0a3fd22a62c8182556 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit cbf8fea88bfcff5134c5843bb46a4ba15ea75353 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> (cherry picked from commit 7b31a46e449747c2ca79605450f57658c855c756) Change-Id: Ib03d80616982f4b6febbf5216b5774780e9fb726 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fedb6a40b997178ad2d142ae1a4209b729320c1c Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d8813b4fd6fe7588c411e90a2603b23a772f738) Change-Id: I82c39cdfa4676293ec9a0c02b5f491ffe4b2e6aa Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 18174612d6683ca96b4f13528af46b1f7949174e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> (cherry picked from commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b) Change-Id: I8e26c37b9a54699315fda2cfcefd1f439945c67d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 776f9a5d02a45e7c580a494bda81cf58e6dc7242 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 743f162911247ba260445deb01b5406d0067daf3) Change-Id: Ic309e3b9311bcf0e47284fd5a13b8344a44d3315 CRs-fixed: 302527 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6676fee7d309ea699e302a8d039b85754acf10e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9c08f6850dbd998adf7956887060eec599a8f26f) Change-Id: Idc020deaee364116facc5db471f6f4e9bde4a09d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit dd5a748949a292fe22bcf7e8e8a4f8d9f8dca7f1 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Aug 31 10:04:28 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 64b4b03461e39a715b33a2ea1ab97f5b27850535) Change-Id: I2ad23f7a384b4f149bd3e4529e1bf5a01de66dd8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit b0db685088e013e1af1378583e9798618b153f94 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 871edcfd5a801feed587b6c7f72aa4e1387d245f) Change-Id: I6c880c61b540e83072cc5ea54b120e630d5c0e04 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3dc8e34c9ccf719f476019a0c2abec9ebd38034b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit e6613b38e178e67f441936e6820c966f553074ec) Change-Id: I5e43c80137900b9c04519e1e052cb54068d0860d Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 69b0f5d57c7470195ee4126ceca6b52e16fc1868 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Mon Aug 22 11:24:32 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 60dc151a43093fad5f68d02323570d5efd58ee4a) Change-Id: Ica2d2026a5ea6ffdba8e53cfd3f40013435db009 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 7049edede74ae3ab929c0ae7261b014bb65d9ee5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c) Change-Id: I3aa9a1ab4984ef7bf7b56e83b69d7eb41355f7e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit db2b5ddcb77b564d0e569e27d7484dcb521f9498 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5) Change-Id: I72ceb2efe73ce6990b352f65cf3f36ddcd94b2b3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 78e1b670c1c6d43f45ddb4d1cd290839dfe8fdb6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit ddc23bd81a174843ee09fe464e0afafa62bc7126) Change-Id: I7e0dd6fdb6ea50a90ed44e0dc7e9b9d8b2f71f38 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 575799be2dc6eae0d576e676a3c335dc9929d672 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0) Change-Id: I3c6a115fc116beb96c0ddd5324359efe992d00a2 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit cde0d4265de0662e2f0b119477381e7f8c10aa77 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> (cherry picked from commit b11c3b46619d3eaee600223859041a51fa0af218) Change-Id: Ia57a4dd092811f1430367ba7285f15b4e37e6247 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ce2e933002ea2b6e044d8c0109e6787b3e4674b5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2920965c1443096f1707888d2fe311cb79dd68dc) Change-Id: I7599dc56b1c3a8bfe4eda7fa1b888cafd86a8df3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ee9a51030967ac3c293675da9e67b438c5467c34 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Aug 5 14:18:30 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3) Change-Id: I71790f25e80641c821a87275b1b37088f6402cfe Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ba5def9929507a7501e95c25cb815043d33655b9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0) Change-Id: Icacbafc93eb831ea681fd6815d6f3ff5055a5394 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6e113b50c4af73ee87e90f7fc103e3f339a00719 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce) Change-Id: I2fb8f17d6b94223ba9c35e429acfe571e80e0ed1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 514b196c41f9e2c978b0d540f7d27a748f0264b7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15) Change-Id: Ie22e272d2356289e0bf286464381e23ea9ef3581 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1bdb7c7482741d74e5bf85a14f5a0dbf3e700511 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83) Change-Id: I55c8d6844ff7eb676c7f8bc76e363a7769b35b23 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ea67ae814ceed3004bed07870545725ddd4aeb6d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit f711ac25a68e521ce2bbb450d34f46eb76d39a20) Change-Id: Iee4d72dc85d4042a6490dc9b4f3c593a0a325d54 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8782b22d00d1211ce80d9093e658d3bba3b1b57f Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374) Change-Id: Ib05a6ee172acf80a77418912da3a4f8a54fb64ce Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 296d3f254c3cd93a9296c80d9a654f86105f7343 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 917fee282ae07cc98541a54204069bf7955e352d) Change-Id: Ie3585ca85d6714e262c3fe724d6b5b5f8c8a26bc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 9afa1e2e91ccb4169ea6a2365b4d98cfe237d0e8 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Thu Jul 14 17:41:05 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> (cherry picked from commit 6caa28428d79953af20f6f65459b9217db260aa2) Change-Id: I6270dc95a85f3958c98bfffd429577dab79f408c Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ebc6dc50dd48e2c7fe6133dfd2873aa29d5bed08 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 13 16:51:06 2011 -0700 msm_fb: display: add spin lock to synchronize mdp irq enabel/disable To improve performance, UI push thread release mutex before blocked at waitting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I165f94e77164fa5091ac4f31a7a73ed0f735c576 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 93b1ca29a4ac08326bdfdf2ec618cd275613d71c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: Ic9d68781d02d6bd66be107c446a706936c70ab64 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e5c60572a13dd16426e7356e544e51d36c8a440e Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jul 12 21:07:32 2011 -0700 Revert "msm_fb: display: release mutex before vsync_push" This reverts commit 78318a7a0357fc96cf4a38c90e38be0848cde0db. Change-Id: Ic2dfc460517927e853dc907fc708287bae8a98f2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c0c86f1e14e98efc85f9866fff89f08d1432095e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit bd0ef9258776385559fd032134e0a28e9aad8f34) Change-Id: I6944f98caeb98bdb963d19596791469bf863e18e Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1ce934cf550c3f647c3eec8ddae54d1fbd891519 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda) Change-Id: Id12bf05976b26611e53fd9ed7d31c912bf6840c8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0ad0f07f95ff9cf373c3ea0053ea540701fd38de Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564) Change-Id: I0b7df64ef83329b769f3200ac4cfda975118b4fc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6f4be7effea2e7d42b209b83a53e29d0e599f24a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit fe926e8303dc6da0adf7be76c045ac93a9f8818a) Change-Id: I4c3e5f63a6d6b54bd0d12b1be609a5f0d1f73874 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 78318a7a0357fc96cf4a38c90e38be0848cde0db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: I4a16e8313399c55d71a2e406e56c0c5d3f8f33e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit eacd237f51c20c08c225b6b817e7a6e109ab0b52 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 6 11:21:01 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948) Change-Id: Iad796bc1dde524b600cd5fd37ac4b85ca6f47b81 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 85200a4e8aabf77e3df2bbb0d50b359ee54ba402 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5) Change-Id: Ib5b4a9d0be4c03eb0d6525ceb1d5cdd04e970a96 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 784b785c7c52ce1d74b1e2ab827f485e9b9cb759 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c) Change-Id: I05abf7a3b52d015a146fdfab82a7106523d39847 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 90e312fd2e0f238cd374aab1c7c88905c22d22ae Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit da07df81fe450fb08ec68511bd4ac5004ee96f3d) Change-Id: I3f8bff425a158592cd572e0c487be41590ceff32 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit d00fd730650f26f690df997c91243d0470b1cc3b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab) Change-Id: Ia2f794da7f0d4717833000b7c657d7fc31987d7a Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 53310ca7798873e4f48c426db8cd2f352cf25d33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 14:41:53 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: Ieaf6595baddcef945ad5606a4bbafa18bbd8033b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 59863dbc83da3fd3a06a8c8be50c28b08c60b9be Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jun 28 10:38:06 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e) Change-Id: I547f00f4500b40777686fc0491500c06b5b4109f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 6a50674d696213efebb93a5d9d109723aa69d758 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Jun 22 23:38:16 2011 -0700 msm: Display: Fix IOCTL ID for 3D ioctl. Add code to have unique ID for 3D Ioctl call. Move Novatek specific changes for 3D to novatek panel file and remove the usage of featurization macro "CONFIG_FB_MSM_MIPI_NOVATEK_3D_PANEL". Change-Id: I01e2ec5cd85d2778fc800fd452ee3b1e6d0602f3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 66c31a935e3d692aba41a8fcd419dab4c8acbd3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738) Change-Id: Ib5993ad1967be2244892fe02325094b4e40c7ec9 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fb47e7b99107e99d4b972d2b3c9f80c7d3b62b07 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> (cherry picked from commit afc6ae9304f27c240546f15580555913f7e27644) Change-Id: Iadc2b2df0f7418fa86c4cc69d35208e8b32d095f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ba5be4afb461abba65cd1f588dca788c0df307b9 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 47c54ff0e010190f0a11e7e2792642d70caa339c) Change-Id: I7061c82f24db6e70845a68d27d82dcded81b4b7f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1fbbeff4b9853054cca7d585596a16ae8bfb78c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: Ic8a96a1c2ef6473b9c95701dcebb19b43ed570e9 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 6a5a125bf8fca8b9dfe3b4cb10a536c148e81c77 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jun 22 11:49:45 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about wheather the panel supports 3D display or not. Change-Id: I1086b8deb2980ffcacae153ba5ac80c680e04eb8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e373013d44b00be5114ae6af212478a728eae68f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 9322f759f8437a816e44aa921a64fcb566defcfb) Change-Id: I658c08b4a0d06ca2c58a06a9dfba1f80ad541c9e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ef8a1203fa188df6f9c905b8dbaf13d640418d9c Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7) Change-Id: Ia7d9249dfcc6c85039304336b3f86b2e3194ec50 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3b6b2347a2b87e96c566d8460c6e697622a759a5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. Change-Id: I74898d7d80e9b4727eb417b0f1d831845d229c73 CRs-fixed: 287700 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit bce29e40828551984b3326f13d210d338edde5b1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1) Change-Id: I9c070246b5099664c62dc665dc27ccd8f69926d5 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 8f6405853a986f8e887d733b93386c705bae6c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I4b5ee7fcaf24b81a830320d1a47a9fe6b5095f7b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4efc6788d96403be44453d9d83ad0598fdf17795 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1) Change-Id: Ia30bbdabec6abdcfc2e17912d9d3506ab56283cd Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 884a69dc1ab07f18d5bec5a6868a7dc8ed0648c4 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Jun 3 14:12:43 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. (cherry picked from commit 64189b417cc545add2f496609ef11df6b491d177) Conflicts: drivers/video/msm/mdp4_overlay.c drivers/video/msm/mdp4_overlay_dsi_cmd.c Change-Id: Ie04cc7322fe7b53058f371941af5ba16c93174d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit a150e2043331160e9b996d1fead53d095ec1578b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 3700ca00ba19855081822169e144c87aa1d4953f) Change-Id: Iba7ef824baf4f95aa0fbb6bfa09446ca589f7648 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 297c5cba4110a4595f5e84082f5970c9a7f225d2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 22cff13e1115962207254980acffac8d20bd9b26) Change-Id: I3c1c3518db28d80e5a5a31bfd5b5740dbba65ada Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0ec06ef1a1ecf52b5408e4c0509bcbe0a70ead3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 18 14:46:20 2011 -0700 msm_fb: display: add memory barrier to mdp Add wmb() to enforce mdp registers are updated before kickoff. Also add dsb() to mdp_pipe_ctrl() to make sure mdp register updates had been finished before shut donw mdp clock. CRs-Fixed: 288084 Change-Id: I056143511cfa7e397983b7465fcebff06ada8a3e Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 52c880d22b6e58f259f02f956357e4b8650102f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 (cherry picked from commit dfcf3ef2212026dfb53e87f571b294627f34a4a7) Change-Id: I0083bab592975576d511ef8f6070d38acc40d117 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0f990641485d3340fb8bacd741eb6ccfcac51186 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 4217a1dacbde157ce26238904450b091778fe872) Change-Id: Ife220d4f0f756aba62e3c30dc7ea52a1e4814ebc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 978d4d142600a38bff5082b0ff2ea23fab5d2f91 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ia4578cc5c35f44c5708d9c4756600490df35ff67 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit d0244c6c479ee348493568556afe49ff9f80f2f0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 14:52:03 2011 -0700 msm_fb: display: remove un-balanced mdp_pipe_ctrl() remove un-balanced mdp_pipe_ctrl() called from both mdp4_overlay0_done_dsi_cmd() and mdp4_dma_p_done_dsi(). Change-Id: Ie47dbe02c7fa5938eef8414a6041b431e55cc986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 89f874aa1fce2e9d4f488a5e37d226e3ecbe7cf2 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: If8db70e22f7b5163fa7a0cfbbdd27d8560f64df1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9e8929676679717bee2f16bad6611bb0b94a7780 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure Change-Id: Ib323dc9ca806b1bab22baa2612e2f470f5c2ecaf Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fc3c8c0bb9e685052b7edc8040167d643c63b3c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: Id08a8d74a0b681dfce6d7635d280e5c31b7acbc3 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 13de0ca3217e379d2c2574b0f6f81ebe3400a13f Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. (cherry picked from commit 46ad60f0cff5c2222ded7a639f337417e59b2375) Change-Id: Ie6e8378aeca07644c69bbfede61d457446c88f5a Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3c809bfc5abd0c13a50ad773268efc1bbe442d8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. (cherry picked from commit cd0bd24a3fffff873821618009389378372fb73e) Change-Id: I700599b4926770dc7602f970a4bd5c30dc457969 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e60b4d1c7ba520319c5ddc60b68b8fbe1a6c72a2 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. (cherry picked from commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97) Change-Id: Ie3fbcb42e8b313a1f0861df324c10e370fdfbb2f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c2a00f21c60eb88ed17e348ae947fdffcf7aedaf Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. (cherry picked from commit 8dae3d06d1c41aa2de609056811646ff50e77791) Change-Id: I793b3aee06cac0bd62158c55ee9233dadf51c873 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fa6ee4594caaa7cf28fd33bcfb8a62165602224e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. (cherry picked from commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0) Change-Id: I0b054dcfb6e98b635cb4d8b6a14f6541d97f3287 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 199f5f94edd7c6c127dd4b402cf7866e641a3396 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff) Change-Id: I96b1d3c3ae55dd427c7270d419bbece05917c590 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 33381e73bfa8c51bf91e04d3e5f6fe0930addb9e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. (cherry picked from commit 065b9f72784c2686aca0233e8e510229efd329c4) Change-Id: Icf3c87bce4102fc1d24931f8dde15478bf71fd19 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 57c3657ebbd5273c1f84f28f460482a68b50c968 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. (cherry picked from commit e814b7842af3b7f15047f3f922c1f1648bb2705b) Change-Id: I524b700973062f51b123f100dc115b5c873d7346 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1fdcac8e3387d1f8435090fae2bffeec3eae6970 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit ccdb0372092c3a359754897ebec2bb8be37d6a3e) Change-Id: I02ee8d0ce604cda993f90158282544afb7490cb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ffe43137a4024e0941417d19fb2e51946c1f4e0d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication (cherry picked from commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd) Change-Id: I82fa0248329d56f0662785b1ff7b35ad94e657d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 73d05af290793eb0da55a556c4bbaa28c9706dd8 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. (cherry picked from commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3) Change-Id: I4ce8dc81a137a3646c9d508d682f3ef05b3bc435 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 645ebc3ec6214d0d9fe32a32fa7e10558c74af6b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. (cherry picked from commit 829c88376705c6b58e62dd93e9802ffb905ad49c) Change-Id: I55d1ee5918b05279abcfe63ab74d172e5e8671b5 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 5208a4caa32f8775a10c1567d2749599a2fb839c Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I6cdd36efe643b0bdaec0436e57a6364076d47239 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit b8b834d4da42df635254a5b656e5579bf9237f73 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 7ff0f5166ed9f2ff4f1a37b8bce2501a2029905e) Change-Id: Ibca9d3a2427f484227a6083b6ef11fbb7555cecc Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 3ad826161f59f6531afa19412f3c8b2f2d0362da Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d89efdbbdf521f05a7b9f191e98914b40bc1962d) Change-Id: Ie5cbe004768986dfd5f53d4cbdec9c28506fac03 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 0cb3d75a60e141d786e68fdb713382620d39e18c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556) Change-Id: I0c3fc7d4ebcaada2732eced5ea84b94f1a2d9a0b Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 66f2c07c8a78044fb26cc853702adfc106c99209 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d8df7faccb2ec330eb859179ed0db07313626b7c) Change-Id: I8c566c3dfa8c638e370aba384b80936a03bee88d Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 231a253c7248971c0a3881ec2fefea45ab20b775 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 11 09:46:07 2011 -0700 msm_fb: display: mdp_pipe_ctrl called symmetrically mdp_pipe_ctrl() only need to be called when write back mode is not enabled at mdp4_overlay0_done_dsi_cmd(). Unsymmetrically mdp_pipe_ctrl() called will cause mdp clocks can not be shut off during suspend. Change-Id: I1783a736c86e5a36a2edfb6b266832e3d691be7b Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 64eaf4972c8dea0368d3a4113d6b19a058fc3b3d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit e80420254616b39d0c350dcadf8f6954394e7647) Change-Id: I84df4bc1ca3b0df34d2fab559cace1ca740f2702 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 1323385de767733a659d397ca487e578315d887a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 (cherry picked from commit 565ecc608d46993c4afe6dd15c95942c75f1e932) Change-Id: I908ffa60cd820a47c49d25b1732f7f0f0f1748b0 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9d7f8859560ac2f3c6f84f35e28f24b33809ccb0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 (cherry picked from commit 605a44c18620ed364e53d1e4cc0f03fd2f815029) Change-Id: Ia1c487a95cc7fba7aee2b8d9dc522296446a7fb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ad6004f89f6972f513b0a71cff515f670db661c7 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed May 11 12:11:41 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. (cherry picked from commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b) Conflicts: drivers/video/msm/mdp.c Change-Id: I88901c3b3640dd1030246de0dbeee3109787bc23 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit aa53b629ae7c52ffaa50934a87a48e2887357d85 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 5e744543c3f81650a1cea1402c58c01ae6ee421d) Change-Id: I0d16f22a98e25b8366b6c3eaf60cd6277f5a76f1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 754ac15b2a298b38873fadc47ec4b89602aa71df Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. This patch also move footswitch out of mdp_pipe_ctrl() and have footswitch always enabled. Change-Id: I8beb66da6afb606da9460f5c8027f298227bf0aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2c5fc636989ba248384240b8f31ff82791790a23 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 6 09:20:08 2011 -0700 msm_fb: display: mipi dsi read function Re-write MIPI DSI read function to allow it to read more than 4 bytes of data from client. Change-Id: I016bb0accfd71526a32f96878e64c439f2e53537 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 58979b79f5ca8211aac7faad413934ee8f09bf8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Feb 25 12:23:06 2011 -0800 msm_fb: Disabling DTV timing Generator after hdmi off. DTV timing Generator should be enable for updating Audio Packet Control(0x0020) and Audio Configuration(0x01D0) register in HDMI core. Need to checks Bit[0] of both registers before doing the HDMI Audio Shutdown. CRs-fixed: 274278,274284 Change-Id: Id15e4bcbddea4a7c0c9926f5420c0b639ab599bb Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9e0698f6708ed4da35b2da7281fb7a5044ba0801 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Mar 23 11:38:42 2011 -0700 msm_fb: display: Configure MDP clock depending on dsi_pclk rate. In MDP 4.1, the MDP core clock should be greater than 1.5 times the dsi_pclk frequency. Add code to set the minimum frequency for MDP core clock depending the MIPI dsi pixel clock frequency. For LCDC panel, add code to set the minimum frequency for MDP core clock to be atleast 1.15 times the pixel clock. CRs-Fixed: 279386 Change-Id: I065bb0eb13c68ee191c8693fe5ca73b3587c1edd Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 70b65dca8d88287a259f88591255f3725a50026d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 31 18:21:47 2011 -0700 msm_fb: Display: Fix MIPI DSI video mode configuration settings Modify the video mode settings according to suggestions from hardware team. Enable High Speed mode during horizontal blanking period. Configure Novatek panel to run at 60 fps in video mode. Change-Id: I9e68f1175caece135ac4074fcc35a907f8006158 CRs-Fixed: 279535 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68848ff4fc21b2dbd068e29ddb391a088eba2137 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Dec 21 13:48:40 2010 -0800 msmfb: msm_hdmi: extract 3D information from EDID Header Extract 3D presnt information from Vendor Specific Data Block from EDID header extension. Change-Id: If5d94382a9c610f7a241a91ef5c61801366d5e9c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 07099e1ef27c0dd6bc6bea859211bb36239d53db Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Fri Mar 11 13:33:23 2011 -0800 msm_fb: display: Remove RGB performance level vector With RGB performance level vector requesting for performance level 1 for all RGB type surfaces, power consumption increases. Performance level 4 is sufficient for single WSVGA size RGB buffer scanning. Remove RGB performance level vector and add check to request performance level 4 for signle WSVGA RGB buffer scanning. Change-Id: Icfb6f00799fc510d23a6f048fc4729471576d00e Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit c85505b79eb8b10c0bba8ed6891ded008588a55c Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Mar 31 12:18:02 2011 -0700 msm_fb: add DTV vsycn push Add DTV vsync push to block on vsync so that overlay play calls can synchronius with UI push. Change-Id: I382c16fda3846f983b00f175619d18d7ddc5e762 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f6b6e3fdee8ed083e609204bbd05d99923104ac Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 30 17:12:36 2011 -0700 msm_fb: display: add a flag to know the rotated source content expose a bit in the flags field so that driver knows whether the source content is rotated, this is used by mdp to deinterlace the content in horizontal direction for landscape video if the video is rotated portrait. CRs-fixed: 281389 Change-Id: I303f6c5f03763b9f68d1f7388839764a69bb428f Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 7c0c2fe5ac873e185dfbad153bbc5d489b0a8906 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 30 13:39:01 2011 -0700 msm_fb: display: turn dsi clocks off when no display update Turn dsi related clocks off after have no any display updates for a second. This is feature for screen static update. Change-Id: Ifa25a6af18c78ec6ee619347f124e5600831e173 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ac5d4ab983a05ec976a391234a74bb9ceae4807 Author: David Ng <dave@codeaurora.org> Date: Fri Apr 1 14:37:50 2011 -0700 video: msm: mdp: Optimize mdp_pipe_ctrl handler Optimize pipe control handler by aborting mdp block power control check within loop earlier. Also, reorder MDP_BLOCK_TYPE enum to move high likelihood enums near the start to optimize value check in a loop. Change-Id: Id656f005863bebf7fc9d4e8543f5161b25a9b5e8 Signed-off-by: David Ng <dave@codeaurora.org> commit 4f5de8242637db49dfd7e96499dc6866dfad084e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 10:36:18 2011 -0700 msm_fb: display: send dcs commands at video mode during booting up Add capability to send dcs command at video mode to initialize display panel during booting up. Change-Id: I826a2045b9b883c207e450c95d76dbf341de026f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5b3193d6655a955ec0dfc6af7583b15dee5053ca Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Mar 18 19:45:13 2011 -0700 video: msm: display: Bandwidth requirement for 3D display Increase Bandwidth requirement for 3D display to avoid the blank display CRs-fixed: 277304 Change-Id: Iaf3ac31b17521320cd2b7b6a5e82a7fa9fe07819 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 869aac9b3eca7661e13147063e15c9996056c5ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 08:59:33 2011 -0800 msm_fb: display: enable/disable DSI irq dynamically Enable/disable DSI irq dynamically so that the power grill can be shutdown. Change-Id: I6f4a4a3f740743804ee720712b4c0f2caa6e20a3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 86bacb945b5317d6600abc7206c9b5ad3a1c2b8d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 16:43:02 2011 -0700 msm_fb: display: check x offset before enable mdp write back mode When destination x offset is not equal to 0 will trigger dsi command mode interface hardware bug. SInce write back mode will introduce bus accessing overhead, only enable mdp write back mode when destination x offset is not equal to 0. This patch also add writeback statistic. Change-Id: Ia97d2c4d8080e8b0ca9f61d3d24fc3f13d106f16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ad9506b0811e31107fcbefe437ac2c5390ddf3f9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 29 18:09:17 2011 -0700 msm_fb: display: Fix MIPI DSI Video suspend/resume issue Fix MIPI DSI Video suspend/resume issue by enabling MDP footswitch during device probing. Change-Id: I3461e4c69f24d09a84bcf9d626a4212e0434be87 CRs-Fixed: 278357 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cd4d51d521d351649ad91695069fac6842052a61 Author: Jilai Wang <jilaiw@codeaurora.org> Date: Tue Mar 15 15:52:52 2011 -0400 adv7520: add hdcp hw support check Add hdcp hw support check since fluid 7x30 p5 devices have hdcp disabled in hardware. This will disable hdcp in software. Change-Id: Icb8afd23f06a97ba549522d8af98c7968c172e1c CRs-Fixed: 272573 Signed-off-by: Jilai Wang <jilaiw@codeaurora.org> commit a9e0558e9f28c19733b3f40d404c26d64d87fe78 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Mar 28 09:13:17 2011 -0700 msm_fb: display: add panel type check before disable tear check Check DSI panel type and only disable tear check logic and free vsync gpio if it was a command mode panel. Change-Id: I7b075d75cbf75d3b20bba3e6a52d1435133c7aa2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e7a0f2d0a1a9cf51bf509cdb3642dd5c20c39da Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 25 15:48:51 2011 -0700 msm_fb: display: do not check dma busy while in video mode DMA busy flag is used for DSI command mode (push mode) to indicate DAM engine is active to prevent double kickoffs.It is not necessary for DSI video mode to check this flag since it is pull mode which has internal timing generator trigger DMA engine on every vsync. Change-Id: I2420b525cffcfda110e25d0295e66fa28bb2e423 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a0a73f93763280b7129314d95c130ea42c8d87a4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 22 11:35:59 2011 -0700 msm_fb: display: use 720p tile dimensions to decide performance level decide the performance level based on the samsung tiled format aligned dimensions for 720p resolution otherwise it will end up using 1080p clocks with overlay when the input video is rotated. Change-Id: I68f71dc2e6a0c74b5324af945d58cf1dd3f1f33b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b73ec6089ff89a43e31c48ca696c264d26294d6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 23 18:08:35 2011 -0700 msm_fb: display: add dynamic enable/disable mdp write back mode Add dynamic mdp4 write back mode enable/disable capability on top of existing mdp4 write back mode implementation to provide software work around for MDP4 hardware bug between DMA_P engine and DSI command egnine. Change-Id: I2de277e2a5b31335907088862279f4a5c7fc60e6 Signed-off-by: Kuogee Hiseh <khsieh@codeaurora.org> commit e924f3c470540de586acdf4cf03bc91c0ea3f653 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 21 16:55:35 2011 -0700 msm_fb: display: Configure MIPI DSI clocks using panel settings Remove hardcoded clock dividers and other clock related settings. Remove support for mxo clock. Add code to generate the clock divider settings using the panel frame rate, format and porch settings. Change-Id: Idfe301d389d5f71d09b36e6957e473bd53be009b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ffa68409df9960b4cb9303bba0fa673dd1c9215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 24 08:33:41 2011 -0700 msm_fb: display: fix mddi overlay interrupt handler MDP4 write back mode provides work around for MIPI DSI command engine hardware bug. But it breaks MDDI overlay interrupt handler accidently. This patch fixs MDDI overlay interrupt handler. Change-Id: I759a26e64202b2bcdf359e76d09f1cbff8343769 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f4a2361bbaad07a9e7eade0e42a1a0d20bd81914 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 11 15:41:04 2011 -0500 msm_fb: display: AUO WVGA LCDC Panel Adding driver for AUO wvga(480x800) 3.61" lcdc panel. Activated for msm8660 Fluid platform revision 3 and up Change-Id: I528894540ed1990b7d0e8ea763fd9c54c70cf276 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit a10db6ff521dd54b213533f4093565bfa1275761 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 9 09:48:12 2011 -0800 msm_fb: display: shut off dsi pll with correct register setting To prevent power from leaking, dsi pll need to be shut off with correct register setting sequence. This patch also fix the timer configuration used for turn dsi related clocks off when no screen update for one second. Change-Id: I33452bc02fb33ef3c780b9f9aa0e840f90f8598d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c3a958f6c0573ba0bce94df40e50c2b5550645fd Author: Wentao Xu <wentaox@codeaurora.org> Date: Fri Mar 18 15:28:37 2011 -0400 msm_fb: display: not to register platform device from AMOLED panel driver The platform device is already registered from board file Change-Id: I469b70af30dffc5a8e5f08516d942f441ff21f89 Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit 79e20ca76f1db3c2861c28681f0e16cb97d3ccc8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 13:45:31 2011 -0800 msm_fb: display: add MDP writeback mode to DSI panel Implement MDP4 writeback mode by using double buffers for dsi comamnd mode panel. Write mode for MDDI has no changed (single buffer). Writeback mode is enabled at boot up. This patch does not provide siwtch between enable and disable of writeback mode. This patch provides software workaround for the hardware bug at the interface between MDP4 and MIPI DSI Command engine. CRs-fixed: 277310 Change-Id: I28d4dab3b05bda02e2def474644ed045776d0241 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a7c0fe5e2f435e45d2ba1ac1be8b310681a3ad18 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Feb 8 17:32:12 2011 -0800 msm_fb: display: Fix LCDC underflow by downscale parameter validation Fix LCDC underflow by downscale parameter validation against mdp clk and panel clk frequency during overlay_set. CRs-Fixed: 271494 CRs-Fixed: 279382 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I363a87777311b66e5acc2c29afe8da6b2287694a commit a225d0e971254d2c49fc8d08537d22875b83f46a Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 16 15:30:01 2011 -0700 msm_fb: display: handle histogram during suspend/resume disable the histogram irq and clear the histogram registers during suspend and re enable them when resume. CRs-fixed: 280419 Change-Id: I54154a89c7a2f92dba8ee9e99943e61279b29c44 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 54afe26ae0f0800584d19aa9495bcbd48c52440d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 16 10:08:43 2011 -0700 msm_fb: tvout: Removing mutex_lock in ISR CRs-Fixed: 278755 Change-Id: I6e5e13edc9048757c87f57f8579776d7ce878bb5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b35b92b71ded97db1d1e2b8fe34c45bfbf5ab6fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Mar 20 12:19:32 2011 -0700 msm_fb: display: synch mdp irq enable/disable Add spin_lock() and spin_unlock() inside mdp_disble_irq_nosync() to synchronize with mdp_enable_irq() to prevent race condition from happenning. Change-Id: Ieb76a5a920d7d92b627108d033e34874c7acdd82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b74ce77d0cebd282fb6b17c959146db9620383f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 15 16:46:52 2011 -0700 msm_fb: display: remove redundant call to disable irq in off function CRs-fixed: 278326 Change-Id: Ib0ffca8862aa34438ae8575ea3b9ed21cf7418f6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit df448ca39305b85fc318c16d067e1cb6ba386a0f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Mar 13 19:41:51 2011 -0700 msm_fb: display: Fix MIPI DSI driver initialization sequence. Change-Id: Ifcb67a166b68db45d6d3b14ba9cc5caa48316ee8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit de64d12d9e0806e630e148d3da7f9d390a92db1a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 4 17:18:18 2011 -0800 msm_fb: display: Remove secure_io to MIPI DSI register access. Only clocks belong to MMSS_CC need to be accessed by using secure_io. Secure IO access for MIPI DSI register region is not required. Use normal io access using readl/writel to MIPI DSI registers. Change-Id: Ifc49b1812efa0fbe82d48bef7f5054064f55043a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 00c6dbec219e11a71bc0c077e53779d97365e5c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Mar 7 13:34:56 2011 -0800 msm_fb: Reading Ro' from correct HDCP port offset Reading RO's from correct port address and offset and start HDCP reauthentication again,in case of authentication failure. CRs-fixed: 275796,276921,277082 Change-Id: I984054384cedbcc96fb8cd68b4d3f533ff33a969 Signed-off-by: Abhishek Kharbanda<akharban@codeaurora.org> commit 715b3fe8316555da278042f6371c3bc9a0dcea05 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Mar 8 18:31:10 2011 -0800 msm_fb: display: Enable secure IO access and fix DSI clock settings. Read back register value is not updated properly for MIPI DSI clocks. Revert back to the older method of configuring the dsi core and dsi pclk settings. Modify clock control block access to enable read/writes using secure IO. CRs-Fixed: 278206 Change-Id: I5d5503d39ddd5d2ae0fa0dbdaa592686ae5e5ffe Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit e3cc2ce88868ee28f9ba4268b75e5a7bd671953a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 8 15:00:36 2011 -0800 msm_fb: display: Log cleanup for LCDC Samsung WSVGA driver Change-Id: Ia0372db34b3c9a74202ef692d9c30c5fd43f6a6b CRs-Fixed: 275930 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d4b31a95cc9477c47fe9b1c5b5c96ddfb075da24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Feb 25 12:09:06 2011 -0800 msm_fb: display: Call pm runtime apis with the correct fb device use the same frame buffer device for all runtime pm apis calls. Change-Id: I2dccf69f6f9ed115fbeceef0636e39bbdfd5c67a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8ae66ceb26dd7baecc85d2b334029903cb7a1bb8 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 8 12:42:21 2010 -0600 msm_fb: display: Samsung AMOLED PenTile panel Adding driver for the Samsung AMS367PE02 3.7" PenTile 480 x 800 16.7M AMOLED panel. Enable LCDC auto detect when MIPI detect is enabled Clear regulator handles after they are released to avoid crashing Change-Id: I6abf705fd19d5baa429fb2a7c47e4299f73c6b67 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d91951d2c7feec7b81b814434848cc28e8a167c0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 17:55:09 2011 -0800 msm_fb: display: Fix dsi command mode compiler error Remove un-necessary dma_busy_comp and vsync_start_y_adjust to fix compiler error. Change-Id: Id56568bb3d4cdbe091dd09584bf6d26183812e1d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 73b51ce75cba3caa4ac511503f46705a356896af Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 15:51:27 2011 -0800 msm_fb: display: add support of sending DCS command at video mode At MIPI video mode, set CMD_MODE_EN bit to enable command mode engine before sending DCS comamnd to client (display panel). Change-Id: I6462eef5c3c378176e8df61d3a5108148cda3047 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5ed1dca7d697327a9ff9dbbae45fb20e73a2c010 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 1 14:47:36 2011 -0800 msm_fb: display: initialize comp struct at pipe_alloc Initialize per pipe comp struct during pipe allocation. Change-Id: I48c919b3b520cfaf12f5b6fa713fde9f5fb866d0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 03dac3988c186dfd125b5f07501e2e3fe3d7b6e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Feb 23 08:54:33 2011 -0800 msm_fb: display: add dsi clocks control Add runtime dsi clock control to turn dsi related clocks off after screen update and turn clocks on before screen update. This patch also provide clcok off debounce mechanism by using kernel timer. CRs-fixed: 276211 Change-Id: I68f4cc48ba4887d2240d96936674eb460618de1e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 74ce95472814e2561ff258668ba6c9febdf54556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 14:46:37 2011 -0800 msm_fb: display: add support of DCS backlight command Add backlight control by using inband DCS set backlight command. Transmit DCS backlight command to client while DMA is not busy. CRs-fixed: 275660 Change-Id: I6954bb6e86d15a8f4076d9bb576667669459725c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2245b9e330cd54ac4e4580a5208da1f61209c340 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:04:47 2011 -0800 msm_fb: display: remove extra bracket to fix compiler error Remove extra bracket to fix secure_writel compiler error. Change-Id: I11ebda03004dd0a7fea648cb32675c8dc456bc47 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 252d99d19002242dfb78b4b1c1ac604787c3d83c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:01:28 2011 -0800 msm_fb: display: check mipi panel mode before enable vsync Checnk mipi dsi panle mode first. Only enable hardware vsync mechanism if it was command mode panel. This patch also remove the unio declaration of lcd_panel_info and lcdc_panel_info of msm_panel_info struct to fix vsync configuration over written panel's porch configuration. Change-Id: I1d0806df04b884e1fb5a596baedd4b5f3630d01a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ab42fa9b082706916123315e5647789b7f01a3d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:55:24 2011 -0800 msm_fb: display: Fix MDDI CRC Error handling condition Fix MDDI CRC Error handling condition to avoid looping of MDDI reads infinitely Change-Id: I4e65b635fc4041213e544f64919a9a6f074b366e CRs-Fixed: 275229 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 38c908beabb5f40225314642d88d09e299806b6e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:53:15 2011 -0800 msm_fb: display: fix a typo in using the correct packing format Change-Id: I0f522ea04ece89c6f387d22634d4d33139f2a631 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4a3fed28675ebf7bacd209a8baea84265dd664c2 Author: Matt Wagantall <mattw@codeaurora.org> Date: Wed Jan 19 15:56:14 2011 -0800 msm: 8x60: Use secure_readl() and secure_writel() for clock registers The application processor is unable to access MSM_MMSS_CLK_CTL_BASE register directly. Secure APIs must be used to read and write all registers in this region. Change-Id: I2906d3b8e28b45ff896a41103fecce9491b5a991 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 57ea567a20d102404287eb09ee2dabeae04093c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 15:06:30 2011 -0800 msm_fb: display: mitigate lcdc interrupts Primary vsync interrupt are always enabled which causes interrupts are generated at every 16 ms. This patch will only enable ingterrupt when has frame push. Change-Id: I062bf19a9b56ef6fea4c4374d8751625bbb86a42 CRs-fixed: 275999 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c315489fbe1a75c52b968c4a237d9f7f4334336f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Feb 7 16:58:43 2011 -0800 msm_fb: display: add chimei panel driver Add Chimei LCDC panel driver. This patch also incorporate backlight control through PWM of gpio-24 (channel 0) of pm8058. Change-Id: I2e00d6ce0f6a9858a56d929c660776fcbfc54732 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 030612a798461326d82d5fab950ca2a071d057a1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 17 18:21:25 2011 -0800 msm_fb: display: Enable S/W Vsync handler only if MDDI clock is enabled Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I3800f7b27f7730cd9e60e37b0f060ede9f79c83e commit ac9fd472e5832a56d20e06654e5a8fd04d3583e9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:16:51 2011 -0800 msm_fb: display: Fix vsync timer deactivation by shutdown flag Fix vsync timer deactivation issue resulting in timer handler run continuously during suspend/resume by using a shutdown flag Change-Id: I71806b491d15b454b1e56f01e78223e26df7062b CRs-Fixed: 274480 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52f6889f672d53e9c80cfde8335fde65e1022fff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 4 16:30:31 2011 -0800 msm_fb: display: add support of mddi MDP_OV_PLAY_NOWAIT Add support of mddi MDP_OV_PLAY_NOWAIT mechansim so that overlay requester can issue multiple frame updates followed by a single DMA kickoff. This patch also remove 10 ms timer from UI kickoff which try to consolidate multiple frame updates into a single kickoff. This is not necessary at NOWAIT implemention since both frame update and kickoff are controlled by requester totally. Change-Id: I901054eba78d946549b05e667dd580a95ee18a87 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e9bfe26bd022597402b9070c41fe89c2040a7227 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 31 10:01:13 2011 -0800 msm_fb: display: add 3D side-by-side to interleave support Add 3D side-by-side to line interleave conversion by introducing MSMFB_OVERLAY_3D ioctl to allow user to change frame buffer's width and height at run time. Change-Id: I5801425a1f03ceedf69522c28780bb200ab63c57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e908e0c469fb2fa7dc7ecb659158d91d082b5d08 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 8 18:05:10 2011 -0800 msm_fb: display: Fix incorrect fail in tvenc_probe feature pm_qos usage correctly with CONFIG_MSM_BUS_SCALING to avoid incorrect fail in probe call. Change-Id: I5677e0d10fef30ef1f41a87e6415782777612d87 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ec2908a70273dec14893222233530f7cf5664a1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 11 16:30:28 2011 -0800 msm_fb: display: Cleanup of Log messages Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Icc911682233d48e3dcae0b78e8aa0138fd3af027 commit d034fc1101365fd5593b8dc1da66da63d8a5f61f Author: Harshad Bhutada <hbhutada@codeaurora.org> Date: Fri Jan 21 19:42:49 2011 +0530 msm_fb: display: add 3 frame buffers support Add triple framebuffer to improve display performance Change-Id: I132c74f11f5ddcee62d12599c85dd615e14235d4 Signed-off-by: Harshad Bhutada <hbhutada@codeaurora.org> commit f5593a5556724456bb71754554e06ce91690108f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Feb 10 09:56:05 2011 -0800 Revert "msm_fb: display: soft reset mixer1 when external under flow occurs" soft reset mixer1 has side affect of blank display on primary intermittently hence revert this commit until the corret software work around is found for mdp pixel shift hardware issue. This reverts commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23. Change-Id: I75e319461e474394cdc35d3f5dbbd2f7502107cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 9ad8eed3ad1e5fcee31bafb36f89fc27c8587335 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Wed Feb 9 14:54:06 2011 -0800 msm_fb: msm_hdmi: turn off hpd on boot-up Ensure hpd is off on boot up, so that the power on hdmi rail will be zero. Change-Id: I80212511d30d58e4f65ee938621ee959e5623a79 CRs-fixed: 274396 Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit 65ec3d97b4df9de23c46f82cf62f1ec32c4d8c51 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Feb 8 10:03:49 2011 -0500 msm_fb: Calculate smem size with correct bpp value Always the bytes per pixel for the framebuffer format to calculate the shared memory length, not the panel. Change-Id: Ief3adced9c8f0265babfde44b9ca5c40af2423e4 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 52a629f3ccc8caf40b2a4796b7287f1bef9b3096 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:57:20 2011 -0800 msm_fb: display: Use solid fill attribute for no fetch in is_fg mode. In is_fg mode, when alpha is 0xff, use solid fill attribute to set no fetch, also set constant color to black for blending. With this FB is not fetched and we could save bus bandwidth. Change-Id: Iff88269c9e00bb7b6277cb4368c3d0efbbfe5257 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit df9278b93dbba60b8cdb8f043d851f21508a8764 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:31:55 2011 -0800 msm_fb: display: Add performance level for RGB buffers To request highest bandwidth on SMI/EBI for RGB/VG pipe, this change adds performance level for RGB buffers. Also, add one more clock level for corresponding perforamnce level. Change-Id: Ifde6d7ee295d8335e2c2dac6de8580a9f6ee5dd5 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 17f4ba96318300509d022d1ef56678aa6e1a9787 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 4 11:59:57 2011 -0800 msm_fb: display: Fix MDDI blackscreen issue by vsync pending flag reset Fix MDDI mode blackscreen issues by resetting vsync pending flag when vsync clock is not enabled. msm_fb suspend routine requires the pending flag to be FALSE to exit. Cleanup vsync timer usage during vsync clk enable/disable. Change-Id: Idb5fcb5f281cbc7cc41db47a63cde35b18c5a1de CRs-Fixed: 271317, 271775 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d11c910649c0d88d432abe0253d9bfd45e924f6a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jan 26 15:54:57 2011 -0800 msm_fb: display: Add cursor support for MDDI primary interface Change-Id: I490d362c2389f1ececb850340fc97cbd64e2b296 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ec31d4b82b67e43cebf9467c1531288b7b36f6ce Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix crashes in MDDI mode during fbtest/boot/suspend Fix register access crashes in MDDI mode during fbtest/boot/suspend operations. This change has been reverted once since MDDI clock was disabled during the execution of mddi_on from a previous pipe_ctrl OFF request. This patch includes enabling MDDI clock in mddi_on directly. Change-Id: Icc302ea312b5dc96b65bdfe5cb65b9f12341f7ef Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a8b2d85d754bd338a05a574006a1a81366898b8a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Jan 30 15:13:39 2011 -0800 msm_fb: display: Fix underrun during suspend/resume There is MDP underrun issue while doing the suspend/resume when the video playback is in the pause state. Fix is added to set the right MDP clock in this case. Change-Id: I8b488cc629766aa2671537bfe3a3b3804966a7aa Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fb7f5cf847e4fe37e2af6c5c1a642f9875320b9e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jan 26 09:24:17 2011 -0800 msm_fb: display: Add dma busy checking at overlay unset Add busy-wait mechanism to ensure mdp dma engine is not busy (not active) before un-staged a mdp pipe. Change-Id: I66982d75b75e114cd9129a341af147a0e6dfdef0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5db13dea0a21124d3e33fdbdc832dd433521a215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 13:46:41 2011 -0800 msm_fb: display: add MIPI Tearing Effect support Add MIPI tearing effect support by connect mdp_vsync gpio (28) to mipi dsi display panel and send set_tear_on command to panel to enable it. CRs-fixed: 267852 Change-Id: I364202c5b4c824ca5be1716619a4bee836618da0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9768b27ab8963102d56f2de38c626c91edef26de Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jan 27 18:30:24 2011 -0800 msm_fb: display : Implement mdp clock scaling support scale mdp clock based on various performance levels to save power Change-Id: Ia682325f4227c083a783cd2fb33e6d54003b944b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b7f5eba092f72a42edeb7fa72502502317c22ba Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 24 16:23:47 2011 -0800 msm_fb: display: do not reinitialize qseed during resume reinitializing qseed tables during resume is causing artifacts on hdmi since they are getting updated while dtv timing generator is active. reinitialization part is already taken care by checking whether mdp hw is reset just before resume hence remove this code. Change-Id: Ic448cafd69e8a4c66b5097d55d8e59acd0985d71 CRs-Fixed: 272138 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 0dff7e9161fdcb5fdde2ec387f1686b9324ab422 Author: Vasantha Kumar <vasant@codeaurora.org> Date: Thu Jan 27 14:59:09 2011 -0800 Revert "msm_fb: display: Fix clock crashes during boot/suspend/resume operations" This reverts commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d. Change-Id: I7a9b89c8a116445aae47ca6b7f128bdf24822ad2 Signed-off-by: Vasantha Kumar <vasant@codeaurora.org> commit ef072d28af4812966be54a33f5b51d785ac1e2bc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 10:57:36 2011 -0800 msm_fb: display: Add MIPI DSI read function Add MIPI DSI manufacture ID read during MIPI DSI initialization. MIPI DSI host issue DCS read and issue BTA to allow client to send DCS long read data back to host. This patch also add MIPI DSI ACK-ERR-STATUS handler at reverse link. Change-Id: I2106df419cd809cc862fcdb37112cfaf3ad811f2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a269fdf061c0946d704eeb4a487b7aaa86aa5dc3 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 26 09:53:01 2011 -0800 msm_fb: display: Fix mdp underflow on hdmi underflow during suspend/resume on hdmi is caused due to incorrect bw requests on primary during overlay_set and requesting bw after enabling lcdc timing generator. Change-Id: I1e6aadee03b7c4c0f678bdd387515dbd07587fb5 CRs-Fixed: 271912 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 5b3a94e9512771acecec016cb1a6d39c2bc71017 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Dec 20 17:18:49 2010 -0800 msm_fb: Migrate to clock rate voting Use the clock api, instead of pm_qos, to vote on the EBI1 rate. The transformation is as follows: pm_qos_add_request() -> clk_get() pm_qos_update_request(*, 0) -> clk_disable() pm_qos_update_request(*, <nonzero>) -> clk_enable() pm_qos_remove_request() -> clk_put() The rate a driver requests is almost always the same and can be set with clk_set_rate() after the clk_get() call. Change-Id: Id7f4d1fef62d9ce1e49f88daae1ca56608d3cd7d Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix clock crashes during boot/suspend/resume operations Change-Id: I80aebe2ad76892f16c27f6d68aaff0a3a4d13a86 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 15ad3e6e356b0cd963e91db6a2eb1d3f7f65726c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 20 18:45:00 2011 -0800 msm_fb: display: Set MDDI clock rate before enabling first time Change-Id: I1beeca0d57ae294d18cb337d5b93285f87215f05 CRs-Fixed: 271561 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit da220e2b85a730c980a30500792b815035bd6dfe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Jan 21 08:10:56 2011 -0800 msm_fb: Add suspend/resume support for ADV7520 Added suspend/resume functions for ADV7520 chip. Change-Id: I2aaeed91615e9be66f9abe79b0502ba53b851a04 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0e38a1c08495abb77a088fe5310d66c885201396 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 13 15:21:53 2010 -0600 msm_fb: enable HPD even when HDMI panel is off - Turn on LDO8 & LDO10 during I2C communication - Turn on LDO8 while HPD and while cable connected - Turn on HDMI_5V_EN during EDID and HDCP - Always listen for HPD IRQ Change-Id: If24d05b3dea81cb73004900ea23ab51e483f1b38 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 98b8a1a579cef545b9700d7838f117ab43518c0e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 24 11:03:26 2010 -0700 msm_fb: display: synchronous with vsync at lcdc frame push When frame push over 60 FPS at LCDC may cause display tearing due to previous frame was over stepped by next frame. This patch allow mdp to hold push thread until next vsync to guarantee the previous had been consumed by overlay engine to avoid tearing. Change-Id: Ic9bc96377649805211baba8e1e2570b18fb26954 CRs-fixed: 270946 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit edca916e571cadbc7f7262b5a537ac3884972320 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 20 12:20:38 2011 -0800 msm_fb:display: Fix section mismatch The mipi_novatek_lcd_probe was being referenced outside of a non __init section. Fix this by placing mipi_novatek_lcd_probe in the section which exists for device intialization code. Change-Id: I4c9dbbbb7ca1368beda8aee59c8bedb60efa8dc6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a11f5f7eea649696e4c12bc057815a615ee201d0 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Jan 17 14:31:16 2011 -0700 msm_fb: msm_hdmi: reset HDMI PHY on resolution change HDMI PHY needs to be reinitialized when panel resolution changes. Change-Id: Ib01be9f51668cb290b61360b3775993d232169bd Signed-off-by: Urs Muff <umuff@codeaurora.org> CRs-fixed: 263676 commit c1ee3af7b4b1580eaf83bfe875df7ff0c44bd6e8 Author: Alan Gerber <agerber@codeaurora.org> Date: Tue Jan 11 18:26:37 2011 -0800 msm_fb: hdmi: Hold idle wakelock when HDMI is enabled In our current implementation, allowing idle power collapse during HDMI output causes underruns/flickering in the HDMI content on some devices. This patch takes an idle wakelock during HDMI output to prevent idle power collapse as a preliminary solution to this issue. CRs-Fixed: 266067 Change-Id: Id91011067b7c808548e6ee3df00e53c4e2aa8013 Signed-off-by: Alan Gerber <agerber@codeaurora.org> commit 7ca0f321d7c0815c1dd13387fcad55266a87c0da Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 13:42:06 2011 -0800 msm_fb: display: Disable Optimal Fetch bit in FETCH_CFG of MDP pipes Change-Id: I58af7a86c7a9b27dcff5573b44534c968cf4fde0 CRs-Fixed: 270136 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ed91ea3ea225adfc3bc7091eac5d22413af0d20f Author: Urs Muff <umuff@codeaurora.org> Date: Fri Jan 14 08:35:59 2011 -0700 msm: board: allow to hide hdmi log entries Reduce kernel log spam. Change-Id: I05a650041e47f5abadccf5cecac303ebf0c1c830 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519c18879d14b3bda62765c66f222afe2ac97cda Author: Wentao Xu <wentaox@codeaurora.org> Date: Mon Jan 17 15:50:33 2011 -0500 msm_fb: display: change sharp panel backlight Kernel pwm_config() parameter has been changed to expect both period and duty_level with unit of micro second. Change sharp panel backlight period and duty_level to have unit of micro second accordingly. Change-Id: I00f3b7f3b45161ba2152f935147e0d5fd22d2a8f Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d42938452d1c005046b00b50d61ccd65a15ae3a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 17:02:05 2011 -0800 msm_fb: display: Fix backlight issues during boot Initialize backlight level to 0 in msm_fb probe to allow the userspace/framework set the required backlight level. Allow backlight settings always in msm_fb_set_backlight call. Change-Id: Ic42b76e6b8886957856683ee0343afd383ef42c8 CRs-Fixed: 270638 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 12 14:38:11 2011 -0800 msm_fb: display: soft reset mixer1 when external under flow occurs This is to avoid the pixel shift on hdmi during under flow. CRs-Fixed: 264718 Change-Id: I4b178dadc3f0f4266da427f584ce10cf0f339d2c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f5c41e7535e347fb0aefcc533d8c3f015baf484d Author: Urs Muff <umuff@codeaurora.org> Date: Thu Jan 13 11:38:57 2011 -0700 msm_fb: msm_hdmi: correct hpd power-on logic error codes are non-zero, logic introduced with hpd feature change e7164df63e7b87b19ee69ddc7f3db74c65b863b6. Change-Id: I178f5bb5a6ce006599322418bb1b6ddf6849bf62 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit b3cd5d6a4ca3c12425c48fd9586500f088653042 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Jan 11 17:30:40 2011 -0800 msm_fb: fill framebuffer with black pixels On MDP with Overlay, on suspend write black pixels to framebuffer to show black screen on HDMI. CRs-fixed: 266993 Change-Id: Ibcd5802059154d6431888a61d6ad4f4c5c11b9bc Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit a739b3bead1308a7c40f0820e72f2031f532832d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Dec 15 12:20:15 2010 -0800 msm_fb: display: Disable/enable MDP/MDDI/Vsync clocks based on frame update Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic5cbac3efdcd87ab3b44a5c2866fefcab09ab07a commit 002d6e11806ada7ac8cde6d05f15b69138cbfa4d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Dec 15 14:30:36 2010 -0800 msmfb: msm_hdmi: Turning off HDMI PHY on power off Change-Id: I9f2d39076df35963dff3d4608c182f0ee6d9abb6 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 655c7961d9bce8ccceab635343c4157584e409d9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Dec 3 12:31:27 2010 -0800 msm_fb: display: Fix for the pixel shift issue with VG pipe MDDI kick off is added to make sure the VG pipe is disconnected from the mixer while switching it across the mixers Change-Id: I708b37b1d9e60e19acc25d5ca2b3589bc7ae04ed Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-Fixed: 256671 commit 7f4053846ddb619a4a23b7bebbf814eef0773ca2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Dec 15 12:53:59 2010 -0800 msm_fb: Display: Enable two lane video mode for Novatek MIPI panel Add configuration changes for Novatek panel to operate in two lane video mode. Tune the panel settings to improve fps. Change-Id: I151018b39429af747ecdc991748bdb17aa7c2051 CRs-Fixed: 266737 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c7677581e46b2fb42de29ad2c709e814a232f34f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:55:12 2010 -0800 msm_fb: display: add sync between UI and video for MIPI panel Change-Id: I5b505c07c42d80ce5e42a0b27a70076ccfb71233 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit fb3b75f1c2eb222113b531c482ee9fe936b4eae4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Dec 13 09:43:09 2010 -0800 msm_fb: display: fix bpp of MDDI BLT mode At MDDI BLT mode, the output format of overlay engine is RGB565. Therefore set bpp to 2 instead of 3 accordingly. Change-Id: Ibc321a6c9817b972652797966571b35ddd941c5c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 227aa0adacf9f947af8d16c633e1d3afa33f650b Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 14 17:04:50 2010 -0800 msm_fb: display: Fix registering multiple bus scale clients Do not register bus scale client if it is already register in the earlier probe call. Change-Id: Icc14898ce28e9507540ce2419c3f41accf3af651 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f58ceb6b3442958cbb2866fe115a33926b1b5bfc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Dec 8 08:30:38 2010 -0800 msm_fb: display: add support of DE_INTERLACE_ODD The de-interlace is default as even line reference. Add support of odd line reference. CRs-fixed: 260959 Change-Id: I637c79c2f5236fc38116693b50c69415e41ebdda Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbc4b8738bdca502c2cccbcfe1ee0c1755488ca5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:25:33 2010 -0800 msm_fb: display: fix MDDI compiler error Add CONFIG_FB_MSM_MDDI compiler option to not to compile MDDI code under 8660 platform. Change-Id: Ia905636bbe6800996fcf9eb24f1487e28cfc9c97 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4334af8abf1ec212df6778a7405de0d3070abd6d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 13:53:14 2010 -0800 msm_fb: Display: Add two lane command mode support for Novatek panel. Add code to change the clock configurations for MIPI DSI to support two lane command mode for novatek panel. Add code to turn off of the novatek display when the device goes into suspend mode. By default, command mode for novatek panel is configured for two lane. CRs-fixed: 264213 Change-Id: I98df05199a1680375ab4c0274418d1730b052f6a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a809819d9d5d0b59f2c2eee0534bc68048b09016 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 30 15:40:46 2010 -0800 msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6ac2d1a19bcfce5c9c60eb4d063bce4eac924515 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 15:19:42 2010 -0800 msm_fb: display: Remove backlight control from blank/unblank Change-Id: I3f1b1958423c2970f72bfa71f2ac5615055687f5 CRs-fixed: 265531 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c75292d6e2a31323236482442148bacc57ae1d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 12:36:36 2010 -0800 msm_fb: display: Fix MDDI video leak during suspend/resume Fix MDDI video leak during suspend/resume by waiting on overlay_restore to complete before switching off MDDI and panel driver CRs-fixed: 265531 Change-Id: I8c3f15800aade087145e50fbd053e817a51a903a Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 25953d224b91e2cf230ae845d5db0f374818bcfa Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 17:07:54 2010 -0800 msm_fb: display: Fix suspend mode for MIPI panel Add code to turn off of the MIPI DSI module when the device goes into suspend state. Change-Id: I243e77c37d4332f5c67794a3922f24355cb8273b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c98ad9e172386b9a53ed7f01658837b596e86e05 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 7 18:42:38 2010 -0800 msm_fb: Fix detection of MDP4.1 core reset The MDP status register cannot be used to reliably detect a reset of the MDP core since some of its bits come from peripheral interfaces external to the MDP core. These bits may not be reset along with the core. Instead, use the MDP_SW_SCRATCHPAD_REG register to store a flag indicating that hardware initialization has been completed. This register will be reset to 0x0 whenever the MDP core is reset. MDP_SW_SCRATCHPAD_REG is only available on MDP4.1, not MDP4.0. CRs-fixed: 266140 Change-Id: I7ceccc1cfb22a8cd9355aa6cc39b82cf3729936e Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8abbc4bc0ccfcfda27895a889091f6a21af3674b Author: Philip Elcan <pelcan@codeaurora.org> Date: Fri Dec 3 12:07:28 2010 -0500 msm_fb: Make smem size a multiple of page size drm_gem throws a BUG if smem isn't a multiple of the page size Change-Id: Iaa1a96bb259238f6e5850a7012aa5408c4a44e41 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 0d841d87f7ec8b59ff009af94c379e5a7b674bd1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 7 08:36:18 2010 -0800 msm_fb: display: set MASTER4 bits to icrease MDDI throughput There has DMA_P buffer hardware bug which cause MDDI throughput is much lower than noraml. This bug had been fix at revision 2.1. However MASTER4 of MDP_AXI_RDMASTER_CONFIG need to be set to correct value to increase throughput. Change-Id: Idee0c388f6ca4c0953bba86d6ef6c2132c298802 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 071243a12712d740c33fc632431b43381dcb848f Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Dec 1 13:39:16 2010 -0500 msm_fb: hdmi_msm: Fix compile with HDCP disabled Can't compile without HDCP enabled. Need some ifdefs around some unused code when HDCP is disabled. Change-Id: I9682febae5ec4d766fdb62c51180d8295f111646 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit e7164df63e7b87b19ee69ddc7f3db74c65b863b6 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 19:48:12 2010 -0800 msm_fb: msm_hdmi: enable HPD on request only Enable HPD sense only when panel power is on or when sysfs/hpd is turned on. Change-Id: Ibbd45d2c673aeea08660a0087cbec8b82e497584 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ecdbbed83e693269918ca9d0e7f94b0fb15d9d30 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 11 13:29:58 2010 -0800 msm_fb: display: add planar support Add support of Planar (Y-CB-CR/Y-CR-CB) source format. Change-Id: I0bed22156fc6c327c48d94764d8283ec9491b85b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1dbf239b10fa4255770704e5957340cd118582eb Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Thu Nov 18 19:37:07 2010 -0500 msm: mdp: Fix MDP underruns on 8660 To avoid MDP underruns, hardware cursor updates should be made in sync with the dma completion interrupt. Change-Id: If6b4922e2087c8a3f4c8354d173019f76cdaa519 Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 2d55c0bd07cafc12c7ed23a38433e2944de04b6f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Dec 1 15:07:26 2010 -0800 msm_fb: display: do not do mdp clk scaling turning on/off dtv or lcdc during clock scaling has side affect of showing blank on hdmi. Change-Id: I4ab5dabef12ecbcee014bee21ffe695b2d74646a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c7701ba49d17276c20dd4c7e4375844fc568f5cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 22 18:27:53 2010 -0800 msm_fb: display: Support to reduce power for non QuickLogic clients Change-Id: Ica37e9748c280bfe12f2c220f5dc585eac608e4f CRs-fixed: 264628 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59bd6d8480c4cb529f80069a2a575ac0b5e4f7a9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 17 10:49:46 2010 -0800 msm_fb: display: Fix invalid image errors in PPP stress test Fix invalid image errors in PPP stress test by fixing the internal blit regions that are split from the original blit region Change-Id: I73a9f424459fb0c4f0ceebc4fddf89d20c4bc744 CRs-fixed: 263764 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94d57fd66777b0387e50d4c39a241f097a3558b4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 18:28:10 2010 -0800 msm_fb: display: Fix USB OTG None mode flicker for 8x50a_st1x Change-Id: Ib8f2ca21cb29e7de3a2f12e4de434eef4549de93 CRs-fixed: 259149 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5ac62b6a6fbfcd5506bf83e83d0b52337649e602 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 25 09:42:08 2010 -0800 msm_fb: display: do not re-fresh primary display for external interface Do not re-fresh primary display when external display interface, such as HDMI and ATV, issue unset operation. Change-Id: I0d8865361c5377dfae7bec5cdc10e80eb7caf968 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 434f989b4b52133c7a204b9c72e06321e53bf48e Author: Urs Muff <umuff@codeaurora.org> Date: Wed Nov 24 08:57:25 2010 -0700 msm-fb: msm-hdmi: reinitialize HDMI core on HPD Ensure HDMI core is properly initialized after each HPD event. CRs-fixed: 262669 Change-Id: If96a9e0c0fb7c785c640254247adaac4b5fb8a77 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d0e8d669e6e1a9aa3924621b57b6bc314a75f895 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:43:01 2010 -0800 msm_fb: display: reinitialize the mdp hardware during resume turning off the mdp footswitch during suspend doesn't retain any mdp hardware registers that are initialized one time in mdp_probe since it turns off the mdp power rail. Hence reinitialize the mdp hardware during resume only when the mdp status is not active. Change-Id: I95c6b04be26ddbb6fd6f8346b9f44eacab698f59 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2d5b134c38b47c5f5d5aae81a60a59555ca2a9f0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:39:22 2010 -0800 msm_fb: display: remove redundant turn off mdp footswitch. mdp footswitch is already turn off during mdp clk_disable in mdp_pipe_ctrl function hence removing the redundant call. Change-Id: Id0e6178210b836703618137e4c877f1e7036277a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e4eb02a22a66ae82af4638a03ffde2b87878269a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Oct 9 11:33:32 2010 -0700 msm_fb: display: Add new pipe alloction to support 3D Modifiy pipe allocation algorithm to to support many applications including 3D. Change-Id: I3688ab44bd86b6eedf94bd7cb904e7b6fac4f89b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f773d073fa24a571b299034aeeb01a4c464a0390 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 16:41:04 2010 -0800 msm_fb: display: Set QuickLogic panel to MDDI Type 1 mode Change-Id: I32dcb588c4a583474f9c57fcda06e902ab94247c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit aba3918a084d9a914ce7cddfd2acbd1e4dad8c1e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 8 18:11:20 2010 -0800 msm_fb: display: Fix SPI read API for Quicklogic panel Fix SPI read API for Quicklogic panel with configuration of TLEN and TX0 registers Change-Id: I6728322e562f525c9a5cee1afa73bb47f173418e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e69f641acbe060badb10a354bfbf46076f8ad7e7 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:20:01 2010 -0400 msm_fb: Add VGA resolution to 8660 FFA panel On 8660, the LCDC panel and VGA display are on the same bus, so specify the maximum VGA mode as the secondary mode in the panel definition and the Samsung WSGA panel settings for the primary. This will allow userspace to change the resolution when using VGA mode. Change-Id: Ia805ce6477cf9b300a1f969679f2012980d14a61 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit be482dd056b5ff02c8a3f98d60875e7f80fe0aec Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Nov 9 16:57:21 2010 -0800 defconfig: Add configuration macros for MIPI DSI display Interface. Add configuration macros for Toshiba and Novatek MIPI panels. Add macros for both command and video mode. Disable MIPI panels and enable SAMSUNG display by default. Change-Id: Id2a9dca3a2467e588ffdad1ec9d149ca6a4d4d76 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 85e5df5ed487db598f06bd37436629ea2b637b49 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 08:37:11 2010 -0800 msm_fb: display: add control of dsi_s_pclk There has problem at dynamic clock gating hardware which may cause glitch of dsi_s_plck. Move dsi_s_pclk control to dsi driver. Change-Id: I466eebb0309b82ad83c54bed0840cd42d1f1b4ff Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3661713ece532d5b50fd0fa1ab415058736fd0ce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 3 09:19:57 2010 -0700 msm_fb: display Add Novatek video/cmd panel support Incorporated both video/command mode panel configuation to mipi_host_init to support both video/command. Change-Id: I51555e9065038607765de54e98c36128aa611d8f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2c8a3a62f8f9bdb45a606764edfb0efd25a7c24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Nov 15 10:49:41 2010 -0800 msm_fb: display: Fix command block power on/off sequence. Command block is not power off in all return paths that prevents mdp clocks to turn off when display is off. Change-Id: I4aecc8be8e25780a5e45d304dc2982df40433a4f CRs-fixed: 262107 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 667560bf45d30464fb82ccec0bce9a09653eec4c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 1 15:49:47 2010 -0700 msm_fb: display: add mipi panel and cmd mode support Add mipi dsi per panel control configuration along with mipi dsi command mode configuration. This patch also including supports of video mode suspend/resume. CRs-fixed: 259499 Change-Id: I6be8f8edb342874c1d90ce06df094157f320ffa1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 547f7aca18653ef13bf05da91c23c4a1b607fcfe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Nov 12 10:59:39 2010 -0800 msm_fb: display: add auto detection for dmas dmap switching Add auto-detection mechanism base on the mdp_hw_revision to enable/disable MDP switching between dmas and dmap. Change-Id: If9dbae23886c94ef52350614c1f27c568ff79ca4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5e8f857b0ececc25dbc5dbbc9967d2d80e40f90 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Nov 10 10:22:56 2010 -0800 msm_fb: Add support for AHB master and slave clocks. Enabling AHB bus master and slave clocks in driver to avoid glitching by dynamic clock gating hardware. Change-Id: I66facbc85374f30c28c4b93890fd29bb88559d88 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c7ab3f03de38180c7081b48fd29fce8caaef735c Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Nov 17 09:05:08 2010 -0800 msm_fb: Fix section mismatch of prism_probe prism_probe was being reference outside of an __init section. Fix this by placing prism_probe in the section which is the place for device initialization code. Change-Id: I4272e2bf283a8f2a59ecabf6287683b32f6601c1 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 249a736ee2ee7fd206cad6cf5a99a643ef78246f Author: Laura Abbott <lauraa@codeaurora.org> Date: Tue Nov 16 16:32:22 2010 -0800 msm_fb: Fix section mismatch of lcdc_panel_probe The lcdc_panel_probe function was being reference outside of an __init section. This fixes the problem by placing the function in the section. Change-Id: Iec1f60d98249802f9c9aff795b085bc0518c26ee Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit abf906b0506d2c38faf0deaafd3e1c26e9b52a99 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 18:31:52 2010 -0800 msm_fb: make HDCP enabled on all panels. Try to read DDC with different alignments for different panel for HDCP protocol communication. Change-Id: Icfb51764f42497375df4c58d0977105c8f6b757f CRs-Fixed: 261508 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7b0d8cbfa4f86a197bd88d99063df8fca1a23b32 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:02:39 2010 -0800 msm_fb: Fix section mismatch of hdmi_msm_probe The function hdmi_msm_probe was being reference outside of an __init section. Fixes the problem by placing hdmi_msm_probe in the section. Change-Id: I4dcfcbeaefde7e71ef9f18140dd64648b46891bd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 96c1a7422faeff26cbd70629ba1fbd838b988f50 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:53:23 2010 -0800 msm_fb: Fix section mismatch of samsung_probe The function samsung_probe was being reference outside of an __init section. Fixes the problem by placing samsung_probe in the section. Change-Id: I39de06c0692ddf963d2d11f069ff5dd0d8714d43 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 3f466d9a313a64af18e036d002d1738fc23c29fe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:47:19 2010 -0800 msm_fb: Fix section mismatch of mipi_toshiba_lcd_probe The function mipi_toshiba_lcd_probe was being reference outside of an __init section. Fixes the problem by placing mipi_toshiba_lcd_probe in the section. Change-Id: I9f0f2b1e0ed65edf9adbcf1dfb9a424aa379b7ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 596c4c2dafbb59ade4616387fe1531efaf738a4b Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:51:22 2010 -0700 msm_fb: Fix section mismatch of toshiba_probe The function toshiba_probe was being reference outside of an __init section. This fixes the problem by placing toshiba_probe in the section. Change-Id: I2d992ff67abf4f34ccb3c91f1b438df9fe7f0295 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 03b098b26bcb79921b55399dcf82a38e9770b560 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:53:50 2010 -0700 msm_fb: Fix section mismatch of sharp_probe The function sharp_probe was being reference outside of an __init section. This problem is fixed by placing sharp_probe in the section. Change-Id: I3d45fa65f34a91f9d28aaa812832a9e6d778a55f Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit f1fd48f9199f7695d7475a02e0ddfe489f49274e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:32:23 2010 -0700 msm_fb: Fix section mismatch of mddi_orise_probe The mddi_orise_probe function was being reference in a section outside of __init. This fixes the problem by calling platform_driver_probe instead of platform_driver_register since the driver is not hotplugable. Change-Id: Ic79081dea2775354dc9695747e91a6f96cbb6b23 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 23ad01dfe9d9bad23138e41c65ae7744235d2b90 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:38:24 2010 -0700 msm_fb: Fix mddi_quickvx_lcd_probe mismatch The mddi_quickvx_lcd_probe function was being reference outside of an __init section. This fixes the problem by marking the function as existing in the section, which is for device initialization code. Change-Id: I31dc111643915860a0ce9644c888240e611758db Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 5b1d692a8deae3fc06d1855bd84dfe18958d9e21 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:48:58 2010 -0700 msm_fb: Fix section mismatch of gordon_probe The function gordon_probe was being reference outside of an __init section. This is fixed by placing gordon_probe in the section. Change-Id: I11f58d7157a4bdf00fe0cc631fac9b24f6a12e49 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 8e8a8451d6b82a28b1606be1d54d60cd8df40500 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 19:13:27 2010 -0800 msm_fb: Bound checking variable "count" Put upper limit bound check on "count" variable to avoid acknowledging corrupted values from user space. CRs-Fixed: 262787 Change-Id: I31517a486803871be2e304747aabfc3d4f230c86 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit de90534498bde43541e7a8bf59ac640124b3e72c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 10:37:44 2010 -0800 msm_fb: display: add synchronous between DMA_P and DMA_S. Change the execution order from update --> wait for completion --> kickoff to wait for completion --> update --> kickoff to prevent un-necessary flicking. Also remove piggy-back kickoff mechanism to prevent frames from being dropped. Change-Id: I25cd4ced51d2f5cc72d9b83e938a93d92d6f5ed2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d2d3ec7c1cf9b0969d0b8f13955688063d1335c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Nov 11 10:19:05 2010 -0800 msm_fb: display: Kick off histogram when primary underflows When underflow occurs MDP clears all the histogram registers and driver need to kick off the histogram if it start before. Change-Id: Ib15e4084da5d9d170484e9e1b6d260d17035a864 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 82f8fe684610a3cfb65f3195912d3c0e870fcecb Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 18:41:43 2010 -0800 msm_fb: properly handles return value of sys_lseek handle error condition of negative return value of sys_lseek, to avoid allocting large chunk of memory through kmalloc. CRs-Fixed: 262768 Change-Id: Ide303f955de30c05fe56e9f528508b8bb6e027ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7ef97f597ece29145a252c95f3707961377d9d30 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 10 19:19:42 2010 -0800 msm_fb: display: Fix data size in MDDI host register reverse read Fix data size in memcpy in MDDI host register reverse read path Change-Id: Ia75bac5576898a510937cb0f6bc10304b7015314 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3e44b7399750352bd375a2d41a919fe4d737f437 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:18:24 2010 -0400 msm_fb: Allow panels to specify a second mode This allows for panels that support more than one mode to specify the maximum configuration. The framebuffer size is now based on the larger of the primary and alternate modes. The alternate mode is also used to check parameters when userspace is requesting a change to the framebuffer configuration. Change-Id: Icf644b0fb5e54fc95f45ea8c5ed97f6243cb886c Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 9a2a724813bada5684f6bf9eeef4ba1b13db315d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Nov 7 15:23:49 2010 -0800 msm_fb: display: Implement bus scaling for TV encoder Add usage of bus scale apis to scale bus bandwidth for TVOUT. Change-Id: Id0d9a147c3d24c94b1351656b6c8938c3db10706 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e9736b53a5642d93abb3631ea572d11f25c40b6f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Nov 6 23:29:55 2010 -0700 msm_fb: display: Implement bus scaling for dtv Request bus bandwidth for both SMI and EBI while using DTV/HDMI. This needs to be optimized once the bus scale api is integrated. Change-Id: I71162923ae8a11e7737c702b5f7b2078b995426e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 12b28ba64a3fce1b9c97432b0f54027c4436d3f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 16:34:23 2010 -0700 msm_fb: display: Implement mdp bus scaling Add the usage of bus scale apis to scale bus bandwidth based on the performance level to save power. Code assumes that FB is EBI and overlay is from SMI this need to be changed to find the correct buffer source whether EBI or SMI at runtime. Change-Id: I9936fef798379ce4698840f951dbf301430055dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2f6cc1402dc448174721be73c2d48a8f12a8e347 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Oct 22 19:04:46 2010 -0700 msm_fb: display: Add MDDI Type 1 Forward Link Skew calibration support Change-Id: I344403d67a9361b626eb67bd3c9e8ad5f21660e5 CRs-Fixed: 246784 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a179efda6e7588b3e3f56b8819c21b16647741f7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 1 10:18:10 2010 -0700 msm_fb: Fix hdmi driver for enabling/disabling HDCP Fix for enabling/disabling HDCP feature from kernel config. Change-Id: Icd7f76f263780212064833084d967ab10f001b70 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c1f05d2d08eec5e95b47088a6de5c6f560d6a7a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Oct 20 16:01:50 2010 -0700 msm_fb: Added support for premultiplied alpha. CRs-fixed: 258209 Change-Id: I891a81d76030b66e0133a689b695bb39af923b98 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 997d3c514075eb1246552aa313dd6964de36e6fa Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:43:27 2010 -0600 msm-fb: msm-hdmi: adding additional DDC request options Some panels succeed with 128bytes/page read for EDID, and some panels will fail. This will try 128/64/32/16 bytes per page in succession. Change-Id: Ibef7af8f6da57d2ecc12ed26ba5f2acb13fe4f1f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 8e230203d3a85e610bc4ec23993dcff8660474d2 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 16:45:47 2010 -0600 msm-fb: msm-hdmi: fix 3d info packet Use GENERIC0_LINE=1 for GEN_PKT_CTRL according to spec (bit 16). Add Top-and-Bottom mode as new 3D-mode. Use no Generic0-Line for none-3D mode, which fixes the VT issue. Change-Id: Ib1a6621bc4364fe3c56d3e26869894f52010c855 CRs-fixed: 261085 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3d480fcff95309472e8256829b5bde8f962565d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 25 17:56:55 2010 -0700 msm_fb: display: Handle Zero MDDI Reverse packet count error Change-Id: Ib4699b17524abff43cadda36856fa7995060b3b8 CRs-fixed: 260745 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 70b380c25316d37edc1da15cc3765b07dee175c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 26 15:50:22 2010 -0700 msm_fb: display: synchronize dma_s kick off with dma_p During switch back from dma_p to dma_s, check dma->busy flag and wait for dma_p's completion before kick off dma_s if dma->busy was set. CRs-fixed: 260626 Change-Id: Id22b65b410ddb3e5f9faca0b8423f0e74ee6ccbe Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aea07835e1659c9be68ff074b8f37654eb921799 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:45:46 2010 -0600 msm-fb: msm-hdmi: remove HDMI audio teardown from HPD event Leave HDMI audio running, so that audio-flinger can switch away from HDMI before tearing down the HDMI audio setup. Change-Id: I4090c8771143e50f9202e9e8c5902f5ce893c74a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 957bbadab433ec4a4f24830dcdd38bd30394eaf4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 11 12:09:21 2010 -0700 msm_fb: display: Add MDDI multiple data read/write support Change-Id: If34dcfb0ffca650f00d5cc897fc79ff42ad939bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 258225 commit 27c0c5d6471e1af1adaae6394717701f5f0949db Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:19:50 2010 -0700 msm_fb: display: Add new ioctls for histogram. Add MSMFB_HISTOGRAM_START and MSMFB_HISTOGRAM_STOP ioctls to reduce the blocking time for histogram generation from two frames update time to one frame update time.These two ioctls help to start the MDP histogram generation process for the next frame in the isr itself just after reading the histogram bins for the previous frame. Change-Id: I8adfe2314284703ea1f51a8bb76c586f553d065c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c6536fd7aa0b92270175f4bfc03a57428a75412f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 20 10:49:19 2010 -0600 msm_fb: msm_hdmi: HDCP support for 1.4 panel Ensure to retry HDCP when failing during phase I, II, or III. Change-Id: I60a1523a5ccca70cc660d5211f23f53e75827e0f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 164a5b01b3708c4c0e688ef93d628ef884a85aad Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 15 10:43:18 2010 -0600 msm_fb: msm_hdmi: handle EDID on different panel This HDMI sink does not allow to read the second EDID page in one shot, and does fail to read just 5 bytes. Changing to 32 bytes reads solves this issue. Change-Id: I36e65da1e5e67bf9b5a0bc00c0c8c1e8d67bae8f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit da8794fcb39dd8fb3a7daf994f693e1b06474047 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Oct 21 14:44:23 2010 -0700 msm_fb: Change Packet Memory map I2C default address Changed default I2C address for Packet Memory map to avoid address conflict with BMA150 accelerometer. CRs-fixed: 215783 Change-Id: I22f76f0b888cdb377bd91e00b54bd4ad8c46d4f2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c438f987bde833284286fb2e5434036c8def7c9f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 12:07:21 2010 -0600 msm_fb: msm_hdmi: add debugfs entries Adding debugfs API to debug HDMI registers. Change-Id: If0fd415c53cf49fcaa0d38387eeef33dc14fcbc7 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fffb24688cfd3560ecca5b8d162427c21467ecd1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 15:49:07 2010 -0700 msm_fb: display: Correct Initlogo filename Correct Initlogo filename accessed from display driver CRs-fixed: 257109 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I95e5ff1f473e3c0a73a7a693c1965ad6e7653ee5 commit 05ca25d7023b90920ca241058e5b3266846b833b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:46:50 2010 -0600 msm_fb: msm_hdmi: add HDCP status to AUTH_FAIL error log Add log entry detail for diagnostic of HDCP failures. Change-Id: I0f5520346952f85562e872795dde114247d5aae4 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 2c3fcdb2978ef1902717ab48c74214fa857346e8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:13:34 2010 -0700 msm_fb: display: enable runtime clock scaling for mdp_clk scale the mdp_clk based on various performance levels. increase mdp core clk to 192Mhz for lcdc/dtv when playing 720p video since 122Mhz is not sufficient. CRs-Fixed: 254222 Change-Id: I9454cfc324c74e99a2fe6d44dd58ae5d575b60cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 166854ea7e67749badf61ab7df82e833f7fbfc50 Author: Laura Abbott <lauraa@codeaurora.org> Date: Thu Oct 14 15:25:15 2010 -0700 msm: video: Fix section mismatch The function tvout_probe is referenced outside of the __init section. This fixes the problem by placing tvout_probe in the section. Change-Id: I14ae9a028f32d1b0de65c99d8eea740a929721e9 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit d4a6fbcb997b2800587eb5263c9dfc44d3843e66 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 14 19:10:13 2010 -0700 msm_fb: display: Fix screen split issue in suspend/resume Change-Id: Ic5ccffaa12e0e546750d65e604326a4a39281f51 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 253026 commit d5d9778a48d988002f87359973193749a924f3dc Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Oct 1 11:08:54 2010 -0700 msm_fb: display: change the pixel clk to 30720000 Changing the pixel clk back to 30720000 because the maximum pixel clk supported by panel is 30Mhz.Since making it higher clk is causing display corruption issue while playing some 720p video clips where mdp clk is not sufficient to push data even though mdp is running at maximum clk it supports. Change-Id: I7d68d8728fdc7c30c6ba9549eaffef748d1147df CRs-Fixed: 254222 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 414f630f8f60ede6a0d5982d7e41dd4fa9948a08 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Oct 18 14:42:09 2010 -0600 msm_fb: adv7520 hdmi: sysfs hdcp integration Use the external_common API to signal HDCP availability to the user-space. Change-Id: Ia5e8f51620ae29c84cf5dd8e16c81d3746b82228 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1ab44dda69fe0e7ee3995260ff06b0cdcc430746 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:27:47 2010 -0700 msm_fb: Fix section mismatch The mddi_sharp_probe function was being reference outside of an __init section. This fixes the mismatch by marking mddi_sharp_probe as __devinit, which is the section for device initialization code. Change-Id: I3c1103a956279e75db3bc9025186b260f901325d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 74213166390c1d70147bdf601892881ad8103c06 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Oct 15 22:47:09 2010 -0700 msm_fb: display: reset client_status_cnt to fix MDDI RTD Failure Reset client_status_cnt to 0 during system resume to make sure host does not send RTD cmd to mddi client before mddi client be powered up. CRs-fixed: 260405 Change-Id: I90194791521dd192ba1d7260ffcd2241c07b8221 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b57dd4b598f6e8a3f42d56927dc4ffc371bbc9e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:23:44 2010 -0700 msm_fb: Fix section mismatch The mddi_toshiba_lcd_probe was being referenced outside of a non __init section. Fix this by placing mddi_toshiba_lcd_probe in the section which exists for device intialization code. Change-Id: I1a43bc7fa61541b9be5e7aeed701071e2c756007 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 4611e9a0b0b7ce7f7f884ff28029500c5da281ec Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Sep 22 09:58:36 2010 -0400 msm_fb: Make lcdc use resolution from fb driver The lcdc overlay uses the fixed panel resolution. However, it should use the variable resolution passed to the fb driver in fb_var_screeninfo. Change-Id: I77818af8722be715b5281c00b5e6e752389e3dba Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 302e36a9907723d9b48d37297072b64ac078cd76 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 12 19:59:42 2010 -0700 msm_fb: display: Add dynamic MIPI panel detection support Change-Id: Ie1281a353c15c7d7575eb1b591d325382d61c303 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 75f34ead5e0489b5cae23339e0fe57dd7bb51ee4 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:43:51 2010 -0600 msm_fb: common_hdmi: add support for audio EDID packets Add parsing for Audio related EDID packets to the HDMI common package. Change-Id: I55ff5adba4382a30fb4a686cca63bdeabd21e77d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit c5c8c4cb8c7e9c7f0a48634f8b2965ccce2c4570 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Oct 13 15:40:54 2010 -0700 msm_fb: display: fix MDDI compiler error on 8660 Since msm8660 does not have MDDI, MDDI ISR handler need to be excluded for 8660 platform. Change-Id: I0bcc5e413e299cfdbf91fc5275388ba4e42ff1de Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e8aa64ba20b7939c4fa86aecec4101af9c248a04 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 23 10:02:42 2010 -0700 msm_fb: display: add panel info to mdp4_isr Since new panels such as dtv, atv, mipi video are added into system, They need to be handled diffferently at mdp4 isr. Change-Id: I25d720df12a0aaf0b3984683e283aebe7cd843b7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5c1074bff79decc6b1a52aa8db2cff198b288eaf Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 17 18:59:52 2010 -0700 msm_fb: Enable/disable MDP core power rail as needed On newer SoC like 8x60, power to the MDP hardware must be turned off and on explicity. Introduce use of 'regulator' APIs to turn on and off power with the clocks. Calls are introduced to both the MDP and LCD drivers so that MDP is now powered off unless both MDP and LCDC are idle. Previous SoC that automatically turned power on and off as part of clk_enable() and clk_disable() calls are still supported. The MDP and LCDC drivers now assume that if the calls to regulator_get() are unsuccessful, then the rail will be controlled automatically. Change-Id: Ica87d8ca439130cdd6d2df04801de76a888fbdc9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 63c1090c30f76a955d4a894f619a30c309101d61 Author: Michael Burr <mburr@codeaurora.org> Date: Mon Oct 11 10:14:50 2010 -0700 msm_fb: display: Fix framebuffer format used for MIPI devices Select the MSMFB_DEFAULT_TYPE framebuffer format instead of the 16bpp MDP_RGB_565 format. CRs-Fixed: 259512 Change-Id: I13ad0f3920baf286d9be994378c4e0538dbdbe9d Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 179e0ae68264329d3887d4d076623afd84e73171 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Oct 7 16:09:07 2010 -0700 msm_fb: display: re-program qseed table At msm8660 FFA, the qseed table corrupted during suspend. Therefore display garbled at both camera/camcorder preview and video playback after resumed. Re-program qseed table to fix this problem. This is temporary work around solution. Change-Id: I8d716f706f4926855ed008f5012bc2f5853161f3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3424827245f23f9423ac7671ecb40d9b6c5ce0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 13:35:29 2010 -0700 msm_fb: display: base on is_fg flag to apply alpha effects Change-Id: Ifdf7d9f247a3619c2d710367e63ca368c1762ba8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 82506520a0631fbc25bee646f410f8ca920d89ab Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 22:21:17 2010 -0700 msm: video: Fix warning in switch_3d The entry for switch_3d does not return a value, and no result is expected when called. Change the type and function to void to avoid a compiler warning. Change-Id: Ice08a08735a6d058e09a079cbe63fdc9681d66f5 Signed-off-by: David Brown <davidb@codeaurora.org> commit 80726b692d586d1d7d10d75db1966128f468f27a Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 14:56:56 2010 -0700 msm_fb: Warning fixes Eliminite some unused variables. Change-Id: Ia8d6d1edb99eb67bf60cc183a87482d5871a129a Signed-off-by: David Brown <davidb@codeaurora.org> commit a0f19d22dd7698cfd851c1ce75259c277d7b03bb Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Oct 7 11:23:19 2010 -0600 msm: video: fix for sending tv-out cable detect event Fix to send cable detect event only when connection state changes. Change-Id: If14f32b72f22f30dcb6ad869c5be69817ebc0996 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e91fcab88f81f3e8304f2040a684658816436018 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 15:32:27 2010 -0700 msm_fb: display: cursor update align with dma completion To avoid under run during cursor update, it is necessary to synchronous cursor update with dma completion. Change-Id: Ib2e6e18c88adacfe1b5235d42affa69ead5a3a11 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 07240c18f405c0a9a7c071635b5507072a2d2566 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 5 10:22:45 2010 -0600 msm_fb: msm_hdmi: change EXT_INTERFACE prefix to HDMI allow DEV_DBG to use a more specific prefix. Change-Id: I00b484f8f7f218ff6cfa1c6b17d4f6454da32519 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe019f3c4070a1945b8ba4d44943576ced22cc33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 5 08:22:49 2010 -0700 msm_fb: display: fix MDDI_LD_PARAM_SEL for DMA_P During DAM_P and DMA_S dynamic switch, the DMA_P's MDDI_LD_PARAM_SEL was over written by DMA_S. CRs-fixed: 256428 Change-Id: I79f96e8c3e5e61e0fc328fd7f83c2c6e60b50869 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aeb5596d9be836ab19e75d4db4ada457b26ec64c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 4 14:33:03 2010 -0700 msm_fb: display fix compiler warning message Change-Id: Ibf3609b882a99b9cbac33f6557bc633a6931a59a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e662af7106510eddc6f6144df0afd54704fff1c2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 1 17:32:16 2010 -0700 msm_fb: display: Add QuickLogic MDDI panel driver Change-Id: I2829ea3c91cbb658544a46fc1de5343a9883637b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9f1dcfb0004a4ebfbe6a4241895b40650a03a5b0 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Fri Oct 1 10:00:17 2010 -0600 msm: video: support for tv-out on 8660 Added support for tv-out on 8660. Cable detect is interrupt driven on 8660 & polling driven on 7630. Change-Id: Icdc6e8ae512ddcb91b766fdff2583e8157bc868c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 07cefc8f36b8d8f1827358e6000e8691697586f4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Sep 21 18:56:33 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: I0603f3a351a92b576a78370d3f974926e0441920 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2af9f6215c3ff34eb01d1c1032cbb026c2ae6dfa Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Sep 30 11:19:14 2010 -0700 msm_fb: display: Add error check for source and dest rectangles return error if source and destination rectangle parameters set by the client are invalid. Change-Id: I8c93e84005655a62b8f4f441cc6055d3d1af46d0 CRs-Fixed: 254320 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 870cbe2b5127a8cf5615249cc2c9aeff95283ded Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 30 16:21:36 2010 -0700 msm_fb: display: Enable H/W Vsync in DMA_P for MDDI type 2 panel Enable H/W Vsync in DMA_P for MDDI type 2 panel to avoid tearing issue Change-Id: Ifd0ad38f9c98b430c2c3c3fd01df8343684f5394 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255990 commit a38e51d5349c52705dd3baab850c1ba65988bee7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 28 13:15:16 2010 -0700 msm_fb: display: check power status before restore screen Always check current power status before restore last screen. CRs-fixed: 256126 Change-Id: If5b46683b7c112b32955bd0475a4cbe898f3ea9c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit de437f1260ebca32dadcf01fd15e8a8ea7b6085c Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 1 10:52:08 2010 -0600 msm_fb: hdmi_msm: fix CONFIG_SUSPEND undefined case Since 'pm_suspended' is not defined when CONFIG_SUSPEND is not defined, the guards have to be conditional as well. Change-Id: I6c8fe29999e8c18ee2d247ca87b0162e8dd8c18b Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4ae1f467dc6576fa4dfe0f60b14f047b78c0a275 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Oct 1 19:43:04 2010 -0700 msm_fb: display: Fix MIPI DCS Short Write, 1 Param packets The parameter byte of DTYPE_DCS_WRITE1 packets was being written into the wrong byte of the packet header. Change-Id: I6bf00d6cc287f8b6f88a9c332bf94db5f119bc89 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit aabef1e74db50ce5342171daf0119c2cee77ddb8 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 28 16:01:42 2010 -0600 msm_fb: msm_hdmi: support 3D Side-by-side mode Adding support to send 3D mode over HDMI. To turn 3D on write 1 into /sys/class/graphics/fbx/format_3d. This can be done during actual playback, switching in real-time. Change-Id: If933332b84ecbbe6b75fd896b3acf804216a6abf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe5ce8d4bbcd99721b6e914a863b85cbe1f888c1 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Sep 29 19:37:14 2010 -0700 msm_fb:display: kickoff DMA when there is no update for video When video overlay is used DMA is kicked off only when there is a video update. This prevents the UI bar update if the video is smaller than audio. CRs-Fixed: 255766 Change-Id: I19c54ee051ddeca3e89a183f878b5c2bb2f60461 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 61802d15a50c90f7ba01d308503f4d67c520914b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 29 14:22:32 2010 -0600 msm_fb: msm_hdmi: protect worker/isr from NULL pointer When probe fails HDMI_BASE can be NULL. Change-Id: I90d185e338df4fee9f37a62c1005c3b83f2619d5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 9391f66a1674cb0de65a91275bb355772c68c8fc Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Wed Sep 29 15:53:04 2010 -0600 msm: video: support for switching TV encoder mode using ioctl Use reserved[3] field of struct fb_var_screeninfo to switch mode. Change-Id: I5f027612410f26e1e9d440235c4d1924b490fd9c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit d7801961dc00f7c57f948296307610c35f541a75 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 27 15:38:01 2010 -0600 msm_fb: adv7520: fix audio mute after HDCP error Use Av-mute during HDCP negotiations, but turn off Av-mute after HDCP success or error. Change-Id: I82ef4e67e45c38f38f1fdd28b19028ab63a0d092 CRs-Fixed: 257430, 257702 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 770f7448a6ae89d0e20aa1f5724dc7283c3cc69c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Sep 18 16:42:20 2010 -0700 msm_fb: display: remove early suspend/resume from mipi This patch contains: 1) remove early suspend/resume from mipi 2) add pm_qos to mipi 3) register MDP4_PANEL_DSI_VIDEO Change-Id: I563fbae57dca0042355637e3f0da2fd3fbbd3b6d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 39e957faae7f1d0d0fbd3dec411f751a72fad64d Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 24 14:46:24 2010 -0600 msm_fb: msm_hdmi: guard against double suspend calls Suspend / Resume can only be handled once, and independent entry points are now guarded against failing while in suspend. Change-Id: Ie964db014354f4b649e153ac2d6077d17f18db85 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0a70e5f17ca65e8449a53585c89959e375e5bc69 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 21 11:25:30 2010 -0700 msm_fb: display: upscaling ratio to include 8 MDP4 support scaling range from 1/4 to 8 included. CRs_fixed: 255497 Change-Id: Ib3f846a71f126c7c36a72059e463027898bad7f5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aa117d04153ab8eda2a53bc60f1ed80a8caaa777 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 17 09:59:24 2010 -0700 msm_fb: display: add MDDI compiler option Add MDDI compiler option to prevent compiler error for 8660 platform since 8660 does not have MDDI interface. Change-Id: I6ecd990906667dd38fc6d50b94c1c0a00b9ba726 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a23179efe8a5b7f99c67eb046cec4f99601ab5a0 Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Fri Sep 24 01:40:40 2010 -0400 msm: mdp: enable framebuffer caching on 8660v1 for chromeos Enables FB caching on 8660v1 for chromeos. Xserver decides the caching policy. Change-Id: Id97a47c511270312614264b353b60c98f9cf96ac Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 45ec8d7a220095ef6e0ca6bf3240288a979a1d33 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 23:54:35 2010 -0600 msm_fb: msm_hdmi: completely reinitialize core after HPD Turn HDMI Engine off, init PHY, init video, init audio, turn HDMI Engine on, init HDCP (if available) after each HPD online event, and after a panel-on event while connected. Change-Id: I4f12d91885a6195c6fee1d09458183d615ac10ad Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3a154cdb742e479b0939107297465ec45c92318f Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 21 10:10:56 2010 -0600 msm_fb: msm_hdmi: move audio init to panel on Since the panel resolution may change, the audio needs to be initialized once the panel resolution is set. Also handle the case when panel is on but cable is disconnected. Change-Id: I857de36c4d42f9e2df14205cf498f02a049c3357 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 92df7eef80e028adfeb30445c6cbf66b1fbe830e Author: Neil Leeder <nleeder@codeaurora.org> Date: Tue Sep 21 17:54:34 2010 -0400 msm_fb: add qrdc lcd panel support Change-Id: Id8f57b99300075d4b4a0f7a53b222c8f9614b2ef Signed-off-by: Neil Leeder <nleeder@codeaurora.org> commit 33b773e2dbf0a973c0bfa187123271388b44be9a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 15 16:37:50 2010 -0700 msm_fb: display: perform down scaling check base on mdp revision MDP4 of Halcyon V1 has down scaling limition. The limition had been fixed at V2 and V2.1. Change-Id: I62ca1e62178fc1b69ce80aaa38d1e65cf242ba7f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 65dd5e92304aa362582c72def459c04141a171c9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 18:36:21 2010 -0700 msm_fb: display: Add common Debugfs support for all MDP versions Change-Id: Ifd57e1d9072444678d5d325ebaee1aecbb788a43 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 569245db188004bf6f76fc2fc25de7fc9b833840 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Sep 14 17:29:57 2010 -0400 msm_fb: Add toggle for VGA on 8x60 FFA Add sysfs entry to allow for toggling the external VGA out on/off on 8x60 FFA. Change-Id: Idb42de126daf0c4a8def9f85e80d55a586130591 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 34a939d02afa388b911070b3b872f6f12cfabbc2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 13:08:24 2010 -0600 msm: video: cable detect feature for tv-out Cable detect feature for tv-out. Interrupt-driven when external display is on. Polling-driven when external display is off. Change-Id: I41e9005c61d65657b9db54531306bd664d839cde Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 3f5bd44db5ebf8d27fefb386e81dc00bc0b2c20d Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Sep 15 17:30:12 2010 -0700 msm: Use VG pipe for all the userspace requests RGB pipe might be allocated when userspace requests comes. Use RGB pipe only for kernel requests. Change-Id: Ibb5dbd8f57f1d5bd656b719ddaac9b5d973df8eb Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 46e08cd2287d3f56715d6e6ca8f7e3d166fd0eaa Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 10:27:45 2010 -0600 msm_fb: msm_hdmi: Use mutex for synchronization The ISR and worker function (queued by the timer) both access the state variable. Rather than disabling the irq from the worker function which may not guarantee exclusive access to the state, use a mutex. Change-Id: If6aded298f6f40bbe374b4436fb43117c2501b8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0181e48defeac5f43304f78e32f3e08e4fb42e9b Author: Urs Muff <umuff@codeaurora.org> Date: Sun Sep 19 00:38:34 2010 -0600 msm_fb: msm_hdmi: turn on HPD on probe HPD needs to be armed outside of panel-power so that proper HPD events can be sent to the user-side Change-Id: I50c4c23617c9ae8905678250276169d0b688a90a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 515a37dfae03a50b16cc72c0a58952075e9e6f4a Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 12:52:02 2010 -0600 msm_fb: msm_hdmi: use regulators on demand Turn off regulators during suspend, and use board API to turn 5V HDMI and HDMI Core VDD on/off. Change-Id: I9c8736f81d212d80ad76440b5fd7bebf781f8bc5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 15556a05cdf0bee96e55df4e09415c02c364beb6 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Fri Sep 3 16:28:59 2010 -0700 msm_fb: Round lcdc rate all the time We need to round the rate before calling clk_set_rate() on 7x30 since local clock control clocks expect an exact rate when called with clk_set_rate(). Round the rate all the time to make sure we never fail to set the rate appropriately. Change-Id: I4aeaa70df728a614fe54ec7fb06bdf974ffafdc6 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit e3530ce520cb0622d58a0f9f8958199f16f80cd5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:36:58 2010 -0700 msm_fb: HDCP feature support on 7x30 Read EDID,set HDCP start bit,set internal keys bit, wait for BKSV interrupts,read BKSV keys against revocation list,shut down A/V transmission on HDMI interface on getting HDCP controller error interrupt. Change-Id: I5cf518598f2ccde8327757e5da39f5b8de46b765 CRs-Fixed: 254800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 8ed64a02c290b0cfa5071a31a4073fd2e5516309 Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 17 12:12:49 2010 -0600 msm_fb: hdmi: fix sysfs entry creation sysfs entries are attached to the fbx returned Change-Id: Iada960f1688564185b9de42ec7b9213018b8ec0a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 207a747004c6ead4c7fe7b9d3dca789744eabf19 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Sep 16 13:01:33 2010 -0600 msm: video: featurize external interface code for hdmi and tv-out Featurized HDMI specific code to use appropriate methods and sysfs attributes. Change-Id: I9b67ec23a6c3debfc6e65e9776d05e059c3e3cd2 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 36b51586aa3958f1f70687f0dc4315e86ee00e86 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 16 11:10:19 2010 -0700 msm_fb: display: Disable MDP DMA dithering Disable MDP DMA dithering to avoid double dither effect after PPP dither Change-Id: Ib218e6670deb2b9c0cc9cc18371495f75e66dbeb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cb25ff4fb1b15a0b2cc036fab46588213936acde Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:56:53 2010 -0700 msm_fb: display: turn mdp clock on/off during histogram Change-Id: I83b602ec4a01fde0b5531df7fa4b1f66295d69b8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b8ff10a55a733c83f9f9ab4eb4f308bd75c16be Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 15 11:17:59 2010 -0700 msm_fb: display: Don't flush img buffers unless it is cached There is now a bit in mdp_blit_req.flags to indicate if the input image buffer is not cached, in which case there's no reason to flush it for DMA. The upper framework (eg. SurfaceFlinger) should set this flag accordingly to avoid unnecessary cache flushes. Also removed the destination cache flush since the composition engine doesn't read back the framebuffer directly. Change-Id: I1916c6a51c335eb0bdc0c765319b603deca82f92 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 80225245ec846957a19d3c5cf97ef8e67ed0b0b8 Author: Michael Burr <mburr@codeaurora.org> Date: Thu Sep 2 16:55:27 2010 -0700 msm_fb: display: Add early_suspend element for mipi dsi Add a struct early_suspend element for MIPI DSI's use in the msm_fb_data_type struct for when HAS_EARLYSUSPEND is configured. Change-Id: I39357a9ef992881201a8a9f735b91dc6674de4aa Signed-off-by: Michael Burr <mburr@codeaurora.org> commit e0d8a781a00c43726baa32864925fa04f373e534 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 21:57:35 2010 -0600 msm: video: rename hdmi common code for reuse with tv-out Rename hdmi common as external common so that it could be reused with TV out Change-Id: I110fb77df6db097f9f60d1845b692fda5b9a1b42 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit b7c94c54bd67f784d5f109de6a6700fae40d2810 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:38:32 2010 -0700 msm_fb: display: Correct pixel clock frequency for LCDC Prism Pixel clock is set to correct value to achieve 60 FPS Change-Id: Ibcdbc6780a4fed6a81020edcc43cf6a6a605a43c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 251463 commit 4c5175576868064d48651819d0bbdc473b7ab49b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jul 31 11:40:02 2010 -0700 msm_fb: display: Add MDP4 BLT mode support Add BLT mode support to have overlay output to an intermedium buffer before dma to display panel. Change-Id: I14c6fd383d8d498e56620389c6a5a69768b5bffd Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c55ad5731465eb43c781b6d880e9bfe791ec4041 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:06:29 2010 -0700 msm_fb: display: fix op_mode over written bug Fix op_mode of overlay over written bug which cause some settings never executed. Add deinterlace enable bit of op_mode. Also correct DMA_E fetch configure address. CRs-fixed: 252617, 252845 Change-Id: I65ea5a2e718e7d34b7400394a20dbcd7d4891533 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8cbfe60ddfb5306f13267f1fecb866c04f0c6df Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 8 11:25:32 2010 -0700 msm_fb: display: Implement Forward Link Skew Calibration Packet Change-Id: I59d6e2f9cdc44cc702fd244356959931c30e616d CRs-Fixed: 246784 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit f5eeb754e03385d1b3e89b055626effca2bb1eee Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 11:42:51 2010 -0600 msm: video: Set clock rate in TV encoder driver Set clock rate of tv_src_clk to 27MHz and correct clock dependencies. Change-Id: Id7ffdc2de039f1ccc68f464e184409774e1dbb15 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit a0cede5868c6da21bdbb15ffc29e8bd734fbe18e Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: hdmi: power control entry points create required entry points to control the different use cases for the HDMI driver, so that the power footprint can be optimized. Change-Id: Ied0551077a33c63f1f6e250a12259fbcd30aff38 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 38dbe553fc35d1d3c0d1c2c2b5749101ea139768 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: adding sysfs entries in probe moving up sysfs entry creation from panel power-on to probe, so that user-space daemon can read the cable state before panel power is first turned on, and so that the driver can send uevents during initial panel power off phase. Change-Id: I43388c37dfbf048bd0c14130b807446cb6eaacdf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4d8d83fb198a309f1c99494d5863d68c673e1b1a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 16:47:48 2010 -0700 msm_fb: display: Enable EMDH PCLK Change-Id: I2a674dfec9c140e49250cb644126812d069fbb4c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255313 commit 74a75835cef8cde911a560fb5aff13756e30d7d9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:15:10 2010 -0700 msm_fb: display: Enable BG Tile fetching HW workaround only for MDP2.2 Change-Id: I483fe5182302293d0f967b99ce49de2109247858 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 249932 commit 4661621e735ac029293c6872bd7d342a351247cc Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:29:59 2010 -0700 msm_fb : Set proper FPGA setting for 8x55 platform Enable proper FPGA Settings for HDMI interface on 8x55 SURF platform too. Change-Id: I5da9539c008f05c32a9f7cea6b6af56d2305570c CRs-Fixed: 254427,250608 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 95079ae135cecb86a88e620f92de766c89ec0006 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 13 09:08:48 2010 -0700 msm_fb: display: add pm_qos to MDDI Use PM_QOS to request basic axi bus bandwidth for MDDI. Change-Id: I858706d224c7037d036e8c2e96649da4c9540bc4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Wed Sep 8 18:01:18 2010 -0700 Initial contribution. This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.35. Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit cd238df6940e8f3515c43e34e00ff825a4a8f9c7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:17:24 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: Ia11784f64216e58564b65da4935fca8f26ff5d2b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0bb93216c642f90e9be8904150943342b16f5b43 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 13:57:03 2010 -0700 driver: runtime pm annotation for drivers/video/msm/mdp4_dtv.c Change-Id: I1bacecbdec9e62dca1be99ab4fb8a593562d2cba Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 6c2231402b3d7a671939e8910589bc2b895e1a25 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 21:49:22 2010 -0600 msm_fb: fix dynamic resolution switching for 7x30 27.03MHz is not yet supported on 7x30, so we need to force using 27MHz instead, if clk_set_rate for 27.03MHz fails. Change-Id: I874d242b42e3e3b85d3370e1e277dea8db9e1d4d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1266c58750bd52a48be70514dd150975e1684180 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Aug 27 16:07:57 2010 -0700 msm_fb: display: select MXO or PXO for DSI PLL clk-ref dynamically A future hardware design will not have a 27MHz MXO crystal, but will have a 27MHz PXO crystal. Detect when PXO should be used instead of MXO and set the DSI PLL clk-ref appropriately. Change-Id: I4ae91435aad99ac34fdfb7540b49b901cea96fc4 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 625cb21cd30bafc1e7ac7dd0e45c5cfd244060d6 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Tue Aug 31 11:34:54 2010 +0530 Revert "mdp: Add support for MDP composition for QSD8650A target." This reverts commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2. Change-Id: Ia9e7d03d405cd9ec62dffa620081e52d4607c3b2 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 6aea65b1cabafdf0c37b4c3d1cb3e8f309117d3a Author: Philip Elcan <pelcan@codeaurora.org> Date: Mon Aug 30 15:00:09 2010 -0400 msm_fb: Add sysfs entry for panel type Add an entry in /sys/class/graphics/fbX so a userspace app can know what type of panel is behind the framebuffer device. For example, X will know if it is an HDMI panel and do any extra steps required for setup. Change-Id: I951041a0613502be1fbfaca3d7ed8b5a10fec3d8 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 444aa5a8324427cc42f7d757ad8eef42b22838c2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 11:37:40 2010 -0600 msm: video: sysfs support for TV out driver and replace old files TV out driver with sysfs support for switching video modes. Merged files for better management of sysfs attributes for TV out Change-Id: I3f71e8f92a3e420762190824265ad4209bd3f42d Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit f91289987a77d8d86199feb34c802dd86c7ce922 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Aug 26 07:47:17 2010 -0700 msm_fb: Add feature support for HDCP protocol. HDCP is designed to protect the transmission of Audiovisual Content between an HDCP Transmitter and an HDCP Receiver.Enable support for HDCP encryption in ADV7520 HDMI chip. Change-Id: I9704f64b9b0df169a0370ff8c5a6e96d8b4ac4b4 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0ef61e3116045dfd3af2d44598b90aa527551a58 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 22:55:16 2010 -0600 msm_fb: add kernel logs for ioctl failures fbtest was causing unidentified ioctl failures; this is helping identifying the cause for those failures Change-Id: Ic3980b2ee27b423f2936a468ef66f725a89fe8df Signed-off-by: Urs Muff <umuff@codeaurora.org> commit dec207bf6bd3c32c1965b07bd53ab7143c058741 Author: Mansi Patel <mansip@codeaurora.org> Date: Thu Jul 22 13:22:44 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HDCP Adding HDCP support Change-Id: I6f6f9a6cd3f3b0ed62973095a5abb91c9fb69583 Signed-off-by: Mansi Patel <mansip@codeaurora.org> commit 815a8e7bf3d8a1064ca2168a29bf98defb604ec2 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 25 02:31:22 2010 -0600 msm_fb: use hdmi common for sysfs entry creation Use the common HDMI functionality for the sysfs API. Change-Id: If42a4408469d262b72884b29fc69da42b8799c8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d7762c1f8c9dce3f410b0db65e78d459549b15cf Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 24 22:16:02 2010 -0600 msm_fb: using hdmi_common to parse EDID make use of common HDMI code to parse the EDID data Change-Id: I312942975067ae1bbfb10958d84e0f1ac2234142 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit e28154c9723ee7d232e7a9aab42a4d24b3390c3d Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 10:01:42 2010 -0600 msm: video: HDMI common code Move common HDMI code into hdmi_common.c so that it can be reused by 7x30 and other HDMI drivers. Change-Id: I41ecc78f9e68e8f80b3ce8da41eb27244e5b101d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4796e2b9f8c47659dca75d3eecd9e4068c5c5403 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 26 10:49:03 2010 -0700 Revert "msm_fb: display: fix mixer stage range out of bound bug" This reverts commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c. Change-Id: Ifc0a3be36b6b1e5c6db4e9c3b7c20671dbe95f71 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f876295641716521afe4b95d35465cde68ddeed Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:40:00 2010 -0700 msm_fb: display: Do not power on DTV at probe which will result in having no power on I2C for 7x30 until panel power on is call. Change-Id: Ifd50d9065432ad3a58764798405d04bdd9128700 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Thu Aug 26 20:08:37 2010 +0530 mdp: Add support for MDP composition for QSD8650A target. CRs-Fixed: 251979 Change-Id: Iba8281ea47b37a024bdd6239835909a90cb2a203 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 01ab957732bb79793d2ec4e7d0da02638a6dc6f9 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 15:07:39 2010 -0600 msm: video: TV encoder kernel driver: Clock fixes Proper error checks while enabling/disabling TV encoder clocks Change-Id: I13d9bec38968bf619f9b6258e4037faa3bb2df1a Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 0d41b4f23142deca25cb6d56a75944ab27ada063 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 14:34:05 2010 -0600 msm: video: ATV support for dynamic mode switching Turn tv encoder on before configuring overlay pipe to get correct resolution for the mode. Change-Id: I77f96633ce91df4658500e2cb7e7679ad0dbdeda Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e519e09063f60200d1397263c02845c639267972 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Aug 6 09:39:22 2010 -0700 msm_fb: display: reduce the delay during power off Do not have to wait for 100ms during power off 16ms is sufficient on 60Hz display. Change-Id: I06fe266de7f3848d2ad43f5837f95dd99c660329 CRs-fixed: 231755 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 6a2e3fc2cc64ae4e1b8ad30614271bd0f4e840bf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 7 15:09:53 2010 -0700 msm_fb: display: Add mipi dsi display panel support Add mipi dsi both video and command mode display support by adding mipi dsi host, mipi dsi client and display panel drivers. Change-Id: I67d6d6881993c021706f07d96b02902c9393f7d9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 730c676384f227032873f5066d78929d3baffdf5 Author: Urs Muff <umuff@codeaurora.org> Date: Sat Jul 24 01:45:52 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HPD Adding HPD and EDID support Supporting dynamic mode switching Change-Id: I95b7488ceffab919f76300f358ca6cdd15820b4a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519f339af23717cf871a12bf2458dba8c07647c9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 13:49:08 2010 -0700 msm_fb: HDMI should be powered ON by user space on HDP detection HDMI/DTV clocks should be enable only when HDMI cable event is detected, to save power. Also resolves the bootup issue with HDMI cable connected. CRs-fixed: 248533,249902 Change-Id: I13d8b2bcb1f17f2d6982636f749fef1e6b26e800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 150e5e7964e7fe4b8e77fe79c6770f6bcf28f239 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Aug 14 14:36:13 2010 -0700 msm_fb: display: reset vsync_handler_pending flag during suspend At both mddi_toshiba_lcd_off/mddi_sharp_lcd_off function call mddi_toshiba_vsync_handler/mddi_sharp_vsync_handler to set vsync_handler_pendign flag to false to avoid suspend process stuck at busy loop and never get out of it at msm_fb_suspend_sub(). This problem prevent resume process from happenning so display stay blank. This also contributes to "MDDI RTD failuer" problem since MDDI was power off and MDDI link is shut donw between MDDI host and client. CRs-fixed: 248624, 244906 Change-Id: I7ab0dc6420d80cda19ad43a4dd2ddbe7318bd698 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a469172a1c5884996d7d4cb66ebf6a8d0dda8d18 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 16:56:10 2010 -0700 msm_fb: Put last frame as black on suspend Put black frame as last frame on suspend on both HDMI panel and primary panel. Change-Id: I1620292c0abe0c81df1acfeffec54a5824175446 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 5455b12c4d410da95dd8a90f9934d494c122bd2c Author: Gopikrishnaiah Anandan <gopikr@codeaurora.org> Date: Mon Aug 9 18:52:09 2010 -0700 msm: vidc: Move 720p video driver into msm folder. Moved the 720p driver files from drivers/misc/vidc to drivers/video/msm/vidc Change-Id: I27cfd2e9258a95e9190ce0fec37fad2265fba8eb Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org> commit 9a72e92e095d14fffc8a31c3b9b1a7747057e253 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 17:10:14 2010 -0700 video: runtime pm annotation for drivers/video/msm/tvenc.c Change-Id: Ic9f6d859fdfc24d08ac27bc2d99898aba4e4bbcd Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 003b979f5e1e519a35b5697d1bf4bd423c4f6582 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:33:55 2010 -0700 video: runtime_pm annotation for drivers/video/msm/mdp.c Change-Id: Ic1531c6d31739a7d81de205692506f272888602d Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 93aba6dccc134cc2b14a0c3c8f18f0f0bc800902 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:20:12 2010 -0700 video: pm_runtime annotation for drivers/video/msm/ebi2_lcd.c Change-Id: I730e13dae48e04a5cc9b11586bd4526378b41e84 Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 17 09:55:18 2010 -0700 msm_fb: display: fix mixer stage range out of bound bug CRs-fixed: 251191 Change-Id: Ied2d51729e78dad6519d00e66e0cbf0d46920599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14d3db274a3eacea5878dd31e7e10927020d230f Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Tue Aug 3 17:40:00 2010 -0700 msm_fb: annotating msm_fb for runtime PM Change-Id: Id1b7ed4f8373b4431e33c8854d71658ebaab68fe Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 5fc970fd24f1d90a2fa371bf7eaf5780c3e310e9 Author: Gregory Bean <gbean@codeaurora.org> Date: Wed Aug 11 15:35:35 2010 -0700 msm: change GPIO_CFG enums to reflect .35 naming. Change the GPIO_CFG enumeration prefix from GPIO_ to GPIO_CFG_ in anticipation of the backport of the msmgpio driver from Google's 2.6.35-wip branch, where the symbols have had their names changed. Change-Id: Ie818d28f86f4c6c92aa052ddb9f594b81f067df0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit d2ebe7626ebab06648f9697515179e11e2c404c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 3 15:20:34 2010 -0700 msm_fb: display: remove DMA_PACK_TIGHT from mdp3.0 and above Change-Id: I853620cca00408b7e8da268e5066bc1393063b3d CRs-fixed: 245392 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2053340fb119a09a105ea110b37d9ae4b5fb08a6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 15 13:03:12 2010 -0700 msm_fb: display: create barrier when writing qseed tables workaround the 1K Boundary AXI Interleave operations from Scorpion that can potentially corrupt the QSEED table. Change-Id: Ia61076cbdb99b95aeb12a9ce4af7fcc12bc9d761 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 51edd49793e8567604efcc7d26376634af27288d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jul 14 10:08:04 2010 -0700 msm_fb: No Suspend/Resume function for DTV interface DTV interface connected device should not go into suspend/resume state for power savings to acheive continous audio playback functionality. CR's fixed: 244994 Change-Id: I69b46e5dc6c96a7138ff57ddaa545d5ba73e00c2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9d6106c7fa05809d972b95dc1834159aec0afeb4 Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 13:54:33 2010 -0700 mddi: annotating mddi for runtime PM Change-Id: I154695f4f9718464830e67e051b9e30f40dc0206 Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 42e1283c5f7d5928097e1d1b349ee8876d322c3d Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 14:06:08 2010 -0700 mddi_ext: annotating mddi_ext for runtime PM Change-Id: I5d53a2bb76e6ad535b55f60320593c7316c23dea Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 2768c4933148c64f318b7411ca3fd95bfc97ae9c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Aug 3 17:06:44 2010 -0700 msm_fb: display: correct pixel clock frequency pixel clk is set to correct value to get 60 fps Change-Id: I77fa24d148be1e1cb8f6b4874ebdd822a766b588 CRs-fixed: 248848 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c5cdaaa58e7b1bd6da45f4ab14caf749a9dc21cf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 30 16:04:45 2010 -0700 msm_fb: display: make TV_OUT is not set by default Make TV_OUT configure is not set at default configure setting to avoid confliction with DTV. Change-Id: I95b51f38ea9fcb3178639a161822880fe370059f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e29c212a71773a732f019b3d73b3c7a8d39dd4ce Author: Michael Burr <mburr@codeaurora.org> Date: Wed Jul 28 11:18:53 2010 -0700 msm_fb: display: cleaned up mdp_blit() to be MDP3.02 clean For MDP30 the tile processing is different and thus we do a different check. Also, 7x27 does NOT have MN scaling and overhang issues in the height so no height splits are required. ONLY split in the width for MDP30. CRs-fixed: 247272 Change-Id: I7bdc7832914eaa80d668fd00851272f162a0e0e9 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 1a9a814f18cdee2ff2b07b18222d5b6f6a0438ef Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver. Setup PHY and TX Core, and adding FB_MSM device. Handle Power on/off events by the controlling panel. HDMI Audio support (2 channel, 48kHz) HDMI SWI debug support (enabled by default until feature complete) MDP-DTV debug support (needs to be enabled) Change-Id: I74cdfe1489f8a981efa7b415f6f7ee0507643fe1 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 86b810f046b0d76146d46ae720dbbdc18fee4d5c Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 15:16:38 2010 -0700 msm_fb: MDP4 Analog TV support Add an RGB pipe as base layer to blend with a VG pipe to carry Analog TV YUV format and put it to tv encoder through dma_e dma engine. CRs-fixed: 241816 Change-Id: I847a7eeafe6f4b1b9977e144374eb3c1a6a2498a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e67ca29a62cac202adbf092efc28e76357d65a69 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jul 26 19:03:27 2010 -0700 msm_fb: Write proper FPGA value to avoid conflict with UART Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI driver to avoid conflict with UART GPIO's selection. CR's fixed: 241467 Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f6d4b96e080e6e3eebcc1f1b2a43e7535f62d377 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:33:45 2010 -0600 msmfb: Allow MDP4 overlays to use GEM objects Expand the MDP4 overlay structures to allow the user to pass in a GEM handle as a source for the overlay display memory. The GEM handle and flags will trigger the driver to query buffer information from KGSL rather then from PMEM. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 0f3a4677bdbb48e2df64de250b789a02167717a9 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:29:58 2010 -0600 msmfb: Allow MDP operations to use GEM handles Expand the MDP structures to allow a GEM handle to be passed in as an option for MDP blit operations. Rather then pulling the buffer information from PMEM, the GEM flags prompt the driver to query the information from KGSL. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 624e9899b6a4362218d5cdd073642fe367552bae Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Jul 20 16:41:23 2010 -0700 msm_fb: Added HPD and EDID feature support in HDMI driver a. Set Interrupt Mask register for catching HPD interrupt. b. Add ISR for HPD Interrupt on HDMI cable detection/removal event. c. Add kobject api's to send uevent to user sapce on HPD interrupt. d. Add timer control to take care of debouncing interrupts. e. Support for configuring framebuffer structure on reading EDID information from sink. Change-Id: Ic96ba3fc785d54bb2a882bff509655335d57165c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2a228e7612135c700d75917a69668942d8910d43 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Jun 16 09:59:15 2010 -0700 msm: vidc: 1080p video driver support for 8660 1080p video driver support is added for 8660 Change-Id: I0e2a491dd32d2a8eeee5d65cd70a7fe4fa719678 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit dea68ae99815fcdeecd98cb2cc60d0505957ebce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 20 10:35:42 2010 -0700 msm_fb: display: reduce pixel clock of display panel Reduce the pixel clock rate from 539900000 to 43192000 to decrease bus access bandwidth and power consumption at LCDC mode. Change-Id: If0cc46b70ebb86aad1efe1cbadeed3cdb67cb38d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cb514d96a5d4d66370e74d3ae98e7cbbf339515e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jul 19 14:06:10 2010 -0700 msm_fb: replace BUG_ON with error message replace BUG_ON call with error message to avoid the crash when incorrect color format is passed. CR's fixed: 246713 Change-Id: Ia5b84330bfc71e27cf09921f8def56da5784c0bf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 345475e974a6281be1b95ac5a060b5177291754a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 6 10:53:22 2010 -0700 msm_fb: display: initialize intv to 0 at first MDDI kickoff Initialize intv variable to 0 at first MDDI kcikoff to prevent mddi_kick_interval become huge number which prevent pan_display from working at first mddi kcikoff. CRs-fixed: 245197 Change-Id: I14d90129cf63988a1d63856527107fcffd4092e7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 51c4ae4090b8a20b243056f1b272a5dde307fe42 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 12:17:38 2010 -0700 msm_fb: Deinterlaing in MDP3.1 is enabled Deinterlaing in the MDP3.1 was not enabled earlier causing this functionality not being observed on this platform. CRs-fixed: 246029 Change-Id: I00a9495314f34f610791c55b6492d6caf96f6548 Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4b9e5b18bf2f97f153546a697d5ec7df5ee92d5e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jun 25 12:35:24 2010 -0700 msm_fb: display: enable irq before kick off histogram enable the irq before kick off the histgram process and disable it once histogram is done. when overlay is used on lcdc mode it is disabling irq after overlay is done so we are missing histogram interrupt handling. Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8b9675df4eb7d98a1709e069846a174edee3b9ae Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: setup DTV overlay polarity for low resolutions. clk_set_rate has to be called before clk_enable. H-Sync and V-Sync polarity are active low for low resolutions. Add mdp_tv_clk for HDMI drivers that need this clock (8x60). Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 781c6b0fbe05c56bda8d15359907d9e583231ee7 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 8 10:22:03 2010 -0700 msm_fb: display: remove spi bit-banging in lcdc lcdc panel drivers are using spi bit-banging and causing a GPIO conflit with MSM SPI controller driver.Hence remove the bit-banging and using the MSM SPI controller for SPI transfer. Change-Id: I37abe848ed5f486ba0a8709512a076421fc58299 CRs-fixed: 220233 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit b8edd675c91c8f6f92a6067356cacf01dff95393 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 11:08:34 2010 -0600 msm_fb: Set the default color depth from the kernel config Make the default color depth for the framebuffer configurable via the kernel config. Default is RGB565, but ARGB8888 and RGBA8888 are available. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 78f720650b1c5400baf067c6e766ef753dfa5b4d Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 10:55:09 2010 -0600 msm_fb: Use varinfo information to choose the proper color config Use the position of the transparent portion of the color information in varinfo to determine if we should use RGBA8888 or ARGB8888 when 32bpp is selected. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 410efd5af5b0a8f230e5c98c64eddac9061d493a Author: Naomi Luis <nluis@codeaurora.org> Date: Thu Jul 1 22:19:23 2010 -0700 msm: Return the correct size for tiled formats The tiled format buffers are 8K aligned. Return the 8K aligned buffer size for the tiled color format. Change-Id: I81d04ec1d7f55ee68c361aaa1c515cc4318e906d Signed-off-by: Naomi Luis <nluis@codeaurora.org> commit 450e38300a07cdb77b3ef36a4e61a3f0f835aba0 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Sat Jun 26 20:37:14 2010 -0700 msm-fb: s/w workaround for MDP3.0 ppp h/w lockup Pulling in the changes of s/w workaround added for MDP3.1 to MDP3.0 CRs-fixed: 242307, 244250 Change-Id: I7c5ecdd8c0e02ea6c1fb2ec3261f81d6c1171f3d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit f55b99553dc3ae09afb816e25cf657cff8e2356e Author: Ravi Bandi <rbandi@codeaurora.org> Date: Wed Jun 23 19:08:28 2010 -0700 msm_fb: Set correct video format for different bpp values Video format is not set properly across 16, 18 and 24bpp formats, due to which colors are not displayed properly. Rectified the issue by using appropriate video format descriptors for these panel types. Change-Id: Id79703b51aa3aceb02d080372a5696d41658f67d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4325aa8038ed6631aa49a272c8951ddd042288d7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 23 13:16:47 2010 -0700 msm_fb: Shutdown HDMI clock on dtv off. Disabling HDMI clock while dtv interface is off. Change-Id: Ib060580a79572d646b98687f4577f665ca5fdc0e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ee61d7178de4c8f986ae33ec5813ed34bac0a3e3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jun 14 18:32:01 2010 -0700 msm_fb: Enable Audio settings for ADV7520 HDMI chip Configure ADV7520 HDMI chip for dual channel audio through I2S inerface. Change-Id: I916acfc38fe497b54ce5147a07a700f57b305a4b Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f29603084ab9ae536eccdf741533e39fe6cae746 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 15 11:56:03 2010 -0700 msm: Add framebuffer read and write support in rotator driver Rotator driver can only read or write to PMEM. To read or write to framebuffer, we change MDP driver to provide framebuffer physical address information. This change is required so that we avoid copy of framebuffer in PMEM for rotation. The rotated buffer is then used to push on overlay engine. Change-Id: I17322fa77bb05f36f70ac0c225299614dd607fe9 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 4e2da5926dc4b904dcfa930219c4bc1a1e2f6233 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 17 15:57:43 2010 -0700 msm_fb: display: add HDMI mirror support Allow VG pipe can be shared by both RGB and YUV format (video). YUV format (video) have higher priority than RGB format during overlay play so that RGB format can be preemepted by YUV format during VG pipe sharing. Change-Id: Ie9bf1beb28095e157f5be4a573fc541780a54e09 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5eef0fe4e1eb1150166233425f42b05d307962b4 Author: Kuogee Hsieh khsieh <khsieh@codeaurora.org> Date: Fri Apr 9 16:05:28 2010 -0700 msm_fb: display: enable software vsync to prevent display from tearing Enable software vsync and adjust frequence of MDDI display panel to prevent tearing from happening. Also add vsync can be enabled/disabled from mdp4 debugfs. CRs-fixed: 221821, 227518, 241791 Change-Id: I482980ce1d12b083745e74aad1248a66b33d4cb8 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit b1703457d0b166d30fbea0ee1147cc8bbcf478e6 Author: Derek Kulinski <dkulinsk@codeaurora.org> Date: Wed Jun 2 15:34:26 2010 -0700 msm_fb: proper order of IRQ operations for ST1.5 Ensure interrupt is requested before it's enabled during panel-on processing. Disable the interrupt before adding fb device to avoid panel-on enabling it a second time. Change-Id: I38c16c4d2fd3a2aa1e8ab4589980dd8e753f9ed5 Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org> commit 4c018c787d601ad9beadaf8ada3b2dba8c5f8e82 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 11 11:26:06 2010 -0700 msm_fb: display: fix MDDI NULL function pointer bug Check function pointer before call it during parser received reverse MDDI packets. CRs-fixed: 239194 Change-Id: Ia4d371f4f4d1500b227ee6361dc5b81087e9735c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14abca9a4a199a325690aed620aa0adc659f6d86 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 9 17:27:31 2010 -0700 msm_fb: display: change fb state to FBINFO_STATE_RUNNING In msm_fb_resume, changed the fb state to FBINFO_STATE_RUNNING instead of a magic number 1 (SUSPEND) after resume. In addition, change all the magic numbers to macros in suspend as well. Change-Id: I5a854293a3577522c559fd90a2dbc84a06072097 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 91277807c75b4ed9844441da31d9a49c990c1334 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 4 08:19:58 2010 -0700 msm_fb: display: Add FB_MSM_OVERLAY dependency Add FB_MSM_OVERLAY dependency to FB_MSM_HDMI_ADV7520_PANEL to fix compiler error when FB_MSM_OVERLAY is not defined. CRs-fixed: 240734 Change-Id: I948b2b198f69ada3dfb2eb4903363230a48935aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a54aac47e202993920fae8e9297e6bf59221b765 Author: Ajay Dudani <adudani@codeaurora.org> Date: Wed Jun 2 18:40:14 2010 -0700 msm_fb: Add ST1.5 LCDC driver Change-Id: Ia592bed81e316118f4c301ad59931fb9502ce49e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 2c970e38fe13d77a00323897ac62a15423996329 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Tue Jun 1 13:28:42 2010 -0700 msm_fb: make 8660 backlight work with new pwm api The pwm api changed to use a callback function in the board file and to specify the pwm duty cycle and period in terms of usecs instead on nsecs. Update the 8660 display to work with it. Change-Id: Idfc67a88261ac099c50214d61ac55dbc0311d405 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 8bbb084294c576722b05e5d941528f5cf129bffd Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Wed Apr 14 12:42:37 2010 -0700 msm: display: backlight intensity Update the panel driver to handle backlight intensity calls using pmic's pwm channels. Change-Id: I3c63588e5244748da5461e43f7f0831ddf635c5c Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit d4ac1bbc8a7a10d457f5809728a481656a64da3b Author: Steve Muckle <smuckle@codeaurora.org> Date: Wed May 12 22:43:25 2010 -0700 video: msm: remove suspend_late, resume_early initializations The platform_driver struct does not have suspend_late or resume_early data members. Change-Id: Ice92977de598fd4bad6f607a8b1e1fc97e03b826 Signed-off-by: Steve Muckle <smuckle@codeaurora.org> commit f95c6bd8c07d38466c51d2c245aeaac3aac189d8 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:11:55 2010 -0700 msm_fb: display: Add panel driver for wsvga display Add code for the Samsung's wsvga panel (part number LTS480WS-C01). It has a resolution of 1024 x 600 pixels, runs over an LVDS interface and accepts RGB666 pixel data. Change-Id: I399a0c08257a645fe205d5f3cb766e7dfbf20121 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 404c2879aa60104da586011fc5504163cc5143b4 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:48:49 2010 -0700 msm_fb: display: set mdp core clock rate from the board file Rather than hard-coding core clock's rate, set it to a value passed from the board file. If it isn't set then the mdp core clock was not meant to be set with a rate on that board. Change-Id: Ic7ca1b830a8b1bf4bedb9449e58b7f4b58424019 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3224f712002dbf029fab77d9c848de3a01bde9d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 25 09:17:49 2010 -0700 Revert "msm_fb: display: add zorder check during overlay_set" This reverts commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42. Change-Id: I1ce7311f326a99b738d32055f98879754e5b25b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4fa05a83d4bcc394d536cd2490c3c95e74f5fb11 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 24 09:04:24 2010 -0700 msm_fb: display: retransmit set_backlight pmapp rpc request Re-transmit set_backlight pmapp rpc request in case of rpc failed. Change-Id: I2ed01bd7ec40da313a75d441a438491a13a875a7 CRs-fixed: 236277 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 14:25:57 2010 -0700 msm_fb: display: add zorder check during overlay_set Add zorder check to avoid same zorder using by multiple overlay pipes. CRs-fixed: 232438 Change-Id: Ia6e66aba70f01a9b77ac6f2e1c565cc16496e613 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 795d1b324ee9052b0d4ee96771bc87bf61088fce Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 17:03:53 2010 -0700 msm_fb: lcdc: Add support for clocks on 8660 8660 has different clocks than older platforms. Update lcdc to handle 8660 clocks as well as the older clocks. Change-Id: I0b57a525205af448207a1500e23910e5c13c3738 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3ca6eef9dff1c435fc48d51bbd71edc71f7b0c0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 14 15:05:42 2010 -0700 msm_fb: display: Fix calculating brightness duty level Calculate the brightness duty level based on the maximum brightness level supported by the panel rather than from a constant value. Change-Id: I4c8d371a59e38c084bddeaa827c3982b47bbc7ee Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 347a643f440b0ba370830d54cb85966df18d7023 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Thu May 13 18:23:59 2010 -0700 msm_fb: Fallback to correct clock The tv_src clock should fallback to the TV_ENC clock and not the TV_DAC clock. This was already fixed in the devices.c table but wasn't fixed in the driver. Change-Id: I9dbf17d9123d25142e8123b54b1c5856482b087b Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dc34a27a27d726d98b34046c9fa5175322d794ba Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 10:21:54 2010 -0700 msm_fb: display: initialize op_mode at every overlay play Re-initilize op_mode to have it update with new value according to new overlay play's configuration Change-Id: I7ee2489a93efa72e691746037bdf853d862a023b CRs-fixed: 230612 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-01-11 01:19:01 +01:00
#define DEVCAP_VAL_DEV_STATE 0
#define DEVCAP_VAL_MHL_VERSION MHL_VERSION
#define DEVCAP_VAL_DEV_CAT MHL_DEV_CAT_SOURCE
msm: fb: Replace with QuIC framebuffer driver This adds support for more recent MSM chips. Including the following commits: commit 5822924ac43b56586fbe0ddb720400624e70e111 Author: Ping Li <quicpingli@codeaurora.org> Date: Fri Nov 30 14:05:43 2012 -0500 msm: display: Add picture adjustment support for SSPP side Add picture adjustment structure input for overlay PP configuration, user can change PA setting via overlay set IOCTL Change-Id: I3b4679991ad4527565809e291fb13a73fbda2181 Signed-off-by: Ping Li <quicpingli@codeaurora.org> commit 486846820740c2cafea0c06442a3440ecb70b4d3 Author: Pawan Kumar <pavaku@codeaurora.org> Date: Fri Dec 21 16:55:24 2012 +0530 msm-fb: v4l2: Add user pointer support using ION for mdp3 target -Add multi-planar user pointer support in msm v4l2 display driver using multiple ION fd's (2 fd's in case of mdp3). -Handle multi-buffer use case using memory offset along with ION fd to calculate physical address. Change-Id: I1352512cbdfb9cf2c9fc20968416d369337e433b Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 5e4ba471fa7b26de394c3836b309c20c4082c19a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Nov 19 19:37:12 2012 -0800 msm_fb: display: Send current timestamp in case of timeout On timeout while waiting for the vsync, send the current timestamp to the userspace. This resolves the infinite wait seen during the bootup as SF will use this time stamp reconfigure the vsync. CRs-Fixed: 420244 Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 14547efa9af6eecb83243148b02cc1e0ea789202 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Dec 12 17:49:04 2012 -0500 msm: mdss: cache panel setting in suspend state Save panel on/off setting in suspend status to be used when resume, return success as a temp workaround. Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit c7966734d6fbdf5e542eb0349939cc02b0082143 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Dec 21 23:12:05 2012 -0500 msm: mdss: power setting protection When mdss is in resume process, other operation needs wait until it is done. Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 86ac956a061a1ea1e2c11214a1adebbe32511c42 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Dec 13 18:57:27 2012 -0500 msm: mdss: Clear performance request data at turning on MDSS needs re-request bus and clock when resuming, clear the cached related data, as they do not reflect the hardware status. Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 4e83b93ca279b21f0ab1e07fdee52ea41f2474f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Dec 2 21:15:47 2012 -0500 msm: mdss: Non-blocking display commit Schedule a workqueue, do the current job in the workqueue handler. Block the second entry if the first one has not finished Display commit ioctl will do what pan_display can do, addtionally has customized setting, such as non-blocking call Change-Id: Iccced7d7540c6a8bb066f58fa245bbff5ed36fcb Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 5295d8001001ceebc6392a42f3055c6c5188958d Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Nov 7 18:33:16 2012 -0500 msm: mdss: sync point support MSMFB_BUFFER_SYNC ioctl is added for hwc to pass in buffer fence, driver creates release fence and return to hwc. Before display update, driver waits for the fence to be signaled. Signal the release fence after update is done. Change-Id: I3d8cd5e8df1f0415832507d19cf629f4c0432164 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 1c374a84fd75e436d6a61c326fb055091b3d51e0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Dec 17 16:29:03 2012 -0800 msm: 8974: add MHL device discovery flag This change stores a static flag for keeping MHL device discovery and makes the driver flexible to function in either one of the modes. It would be very simple to make this dynamically configurable through boot param or module param. Change-Id: If3915c5861e61bc572a9b4e239a6133e5e9a138b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fcc33cdd9c2eccdcdde19e2b09d6eb3b01a783cb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 18 09:40:25 2012 -0800 msm_fb: display: add panel's late_init Some panels need to be initialized after panel is on. Add late_init to support this feature. CRs-fixed: 433011 Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbdfa637adf603082676a428f80f1260d3400b3d Author: Pawan Kumar <pavaku@codeaurora.org> Date: Mon Dec 17 09:47:16 2012 +0530 msm-fb: Fix sysfs node creation in mdp_probe for MDP3 targets -vsync_init null check not required for mdp3 target before creating sysfs node. -Set vsync suspend and resume flags appropriately in mdp_on for mdp3. CRs-Fixed: 393243 Change-Id: I3366df7385ca8e2ae15053c3e58332f8e32ce0cd Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 9f2514f819eced19b0880735d5d62727808ce30c Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:23:11 2012 -0800 mhl: 8974: notify usb about non-mhl sink discovery On cable connect, USB driver triggers MHL's device discovery through an API. This device discovery should inform caller if the device is MHL or USB host mode connection since both hold ID line low. If SII 8334 Tx discovery routine returns a result of non-mhl then MHL driver should notify usb of this result else usb will not be able to proceed further with it's worker functions and state machine. Change-Id: Ie20e0dd517a191ed6df75050042bdcb0ebd01233 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f45159b358add9d3bc955dce2cce5ef62a7a75fd Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:22:08 2012 -0800 msm: 8974: MHL set 3V reg. for the 8334 hs switch Allocate regulator from MHL driver for 3.3V which is required for the high speed switch to function and toggle between usb host mode and mhl mode Change-Id: I87a9db951ff004d0a10caa390723eefddfc0db5e Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 530a5227212b62d05732f4393cf06903b4646c6d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:20:34 2012 -0800 msm: 8974: disable mhl device disc This discovery mechanism puts the device in complete sleep mode (D3) while leaving the device discovery disabled, and wakes up when USB driver calls the device discovery API from D3 mode by resetting the chip. Change-Id: I7db8dd86c54285a4903c582ae35f6c9d4329ec48 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 80822c3dde2e63bcdb0490426b05105252572814 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:18:07 2012 -0800 msm: 8974: Add intermediate power state for MHL MHL has three power states, D3 - low power sleep, D0 - high power MHL state, D2 - intermediate stage which powers up the chip but doesn't activate the MHL/TMDS lines. Change-Id: I9282a32724e0ac4f7c23233f4bfba97f548d7ac9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit affabcd25a6b74ec95350ad36ccec5b522e8dc5d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:15:29 2012 -0800 msm: 8974: Set MHL Tx configuration to USB state All the ID lines, D+/D- lines are configured to USB by default in this change. All the USB interrutps will be routed directly to USB, which will trigger interrupts in the USB driver. All events on ID line are handled by USB, even in the presence of MHL, USB driver triggers the device detection mechanism through established APIs. Change-Id: I7e70965cf46dfa5734918b2e21db5a162c570706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 388c2a9db377945aefa85f06fa31dc8ac0ea9cef Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 14:01:47 2012 -0800 video: msm: Handle timed-out histogram When the histogram collection times out (usually caused by an underrun) the hardware does not trigger a histogram done interrupt. In fact, the histogram hardware returns to its idle state after the next frame starts to draw. Thus, in the case where histogram times out waiting, changing the software state to HIST_IDLE allows histogram collection to continue. Change-Id: Ideb431209067c7d7e5a2bb94a7352ad90dd46e50 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5240a97a72f320b927ffc6230a6f4f1443979acd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 3 15:52:38 2012 -0800 video: msm: Trigger no update notify on suspend Suspend is a special case in the update notify feature in that it is a known state of no upcoming updates. Cause those waiting for a "no update" notification to wake up. Change-Id: Ie415d6c8da36d9871ed1dffad095529a20ebdf88 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c9021777f4efbbe9dcb9293f54a0dc912e87e5fe Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 16:48:18 2012 -0800 video: msm: Initialize Histogram LUT Initialize the Histogram LUT during MDP probe. This is required otherwise the first histogram LUT request shows a brief period of garbled colors. Change-Id: I60b3077883d0f57dfe3987d7b459477a43da09a5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 004d4a2d2bd81fc8e147f0dadec2d8792e176d80 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 12:46:10 2012 -0800 msm: mdss: hdmi: Add support for new HDMI-Audio interface Using this new interface, HDMI-Audio codec driver can retrieve sink's audio capabilities. Based on this supported capabilities and current playback clip, it will pass appropriate audio setup information to HDMI driver for configuration. Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit b554cf695636e15504cdce72cbfe35bf89494c0a Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 27 21:27:38 2012 -0800 msm: 8974: MHL-USB handshake API implementation This change adds the implementation of mhl discovery detection procedure, USB hand-off function. Three APIs are exposed from MHL driver to USB driver: for register/unregistering callbacks from USB and triggering device discovery detection in MHL hardware. By default, all the USB interrupts are directed to the USB hardware which is detected by USB driver and at appropriate points the USB driver triggers the MHL device discovery and uses the results to either hand control to MHL driver or continue with it's own detection mechanism. Change-Id: Ic1e22bc4c446de209f2e72d5dda8b823bfd398c8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5feb9b23208394f5261b330adec2cfb475706c43 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 12 18:18:19 2012 -0800 mdss: hdmi: Use delayed work instead of timer for HDCP reauth Upon detecting HDCP authentication failures, reauthentication attempts should be kicked off after a small delay. Instead of using kernel timers, this is achieved by having the existing HDCP work item as a delayed work. Change-Id: I7d04b33b159c718cd347576d18cffd1b705bb790 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 3aafea1d26621d712790742f2bcc70bf7bf374ab Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Dec 13 17:43:43 2012 -0800 mdss: hdmi: Correct HDMI Tx controller settings for DVI mode When a connected sink is operating in DVI mode, the HDMI Tx controller should also be programmed accordingly to operate in DVI mode. Change-Id: I63176b55be86a0fe73b23880fc1d45f7a2272d32 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0f685f270692aeb54b8eed0df5e37897d77f6c7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 12:52:18 2012 -0800 mdss: hdmi: Fix suspend/resume watchdog crash during HDMI mirroring During device suspend, HDMI driver holds MDSS suspend context until audio is turned off. Continuous polling for audio off results in unnecessary delay in MDSS suspend as well as watchdog crash. To fix this enable/disable MDSS GDSC regulator during HDMI hpd on/off. This will make HDMI independent of MDSS module in terms of register accesses. Also increase the sleep time between consecutive poll reads in order to prevent watchdog crash. CRs-Fixed: 425536 Change-Id: I7969f0ed8bcce4a356ee6a1e29ed2af76dd345ef Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 38e405e9ce2c9723a633ad75d6c498dd178d3e4a Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 11 14:19:04 2012 -0800 msm_fb: display: wait for a vsync time before dtv_off At DTV interface, wait for a vsync time to make sure previous stage_commit had been kicked in before un-stage pipes and turn off timing generator. Otherwise iommu page fault may happen after RGB2 allocated to mixer0 due to RGB2 pipe still hold previous source address. Change-Id: I6b8bb1429b863886601ebb64b7c73771bee86764 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6d260d9645b5032b41d14b8e7d14ec12af24cd1a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Nov 1 18:09:06 2012 -0700 mdss: HDMI: HDCP Implementation Implement HDCP (High-bandwidth Digital Content Protection) feature which is used to encrypt audiovisual content transmitted over the HDMI link. Change-Id: I6ab92585f979d796d1a40c0ff86d4e7363506b6a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f9ef2416165fa7cc4230fd1fad7ecd0cc9c1be3 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 16:30:18 2012 -0800 msm: mdss: Fix porch value assignments based on VESA standard Panel driver's porch value representation is similar to VESA standard but framebuffer API's representation is different. Correct this conversion from one representation to other. Change-Id: I1fdc7e664de99a5ad646beef2e74f7066a00c2e0 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit ad43bed51e95782097e68840673b8abf2d096058 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 16 16:08:00 2012 -0700 msm: mdss: enable border fill setup Border fill setup can be used to unset MDP pipes allocated for framebuffer replacing it with border color fill instead of contents fetched from memory. These pipes can then be used as overlays by userspace apps. Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0d62d721aaa6ea760e4d54076aa782352dca13a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:56:06 2012 -0700 msm: mdss: change smp blocks allocation based on fetch width Currently the ammount of shared memory pool blocks allocated for fetching latency lines is based on the full stride of image. There are cases where only a small part of the image is fetched, smp blocks should be allocated to acommodate the fetched width only, and free some memory to be used by other surfaces. Change-Id: Idaa7fbc583a2c4a5166f9e05010a0ae2ff56747a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d27afb2e7eae9d8049f11094b686c513dbc7eed4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:58:59 2012 -0800 msm: mdss: add timeout when waiting for vsync To avoid any possible freezes while waiting for vsync, add a timeout while waiting for vsync interrupt and report a visible warning. CRs-Fixed: 428821 Change-Id: I328ac05b98741fc77eb424c313a3b3afb3e206d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d691c2352dca906061899dac24bd21fc2ce91e6b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:48:12 2012 -0800 msm: mdss: remove wait for ping pong done for video interfaces Wait for ping pong was used to ensure that hw is idle while programming any double buffered registers, however most registers that really are changing are double buffered. Remove for ping pong done as it's only causing frame drops and some freezes in some cases. CRs-Fixed: 428821, 426136 Change-Id: Iafebebab7faf0efcb1b3f6a8d2723d67a93d5cd9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 26 12:44:26 2012 +0530 msm_fb: hdmi: HDMI suspend resume event handling This change makes sure that we do the proper HDMI ON settings at resume and also send the events to user-space about current status of HPD after resume. CRs-Fixed: 422372 Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 598d1170a005fd7b8b746e3e3d262635047a85b5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Dec 10 17:06:20 2012 -0800 msm: mdss: update bus bw calculations to account for is_fg flag Overlay flag is_fg is used to disabling fetching of buffers for a layer and all previous blending stages. Need to consider this as part of bus bandwidth calculations and only request bandwidth for layers that are going to be fetched by MDP. CRs-Fixed: 425643 Change-Id: Ie964f5e4ac77945ea6f84a47d337591ddfa1721c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d0bf99c8cbbbb43ad5bb1c426efc7d8004f6bf6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 16:37:01 2012 -0800 msm_fb: display: fix frame rate wrong calculation For cmd mode the frame rate calculation result is wrong. Also in mdp driver there are several places to do the same calculation. So fix the wrong calculation and use a single func to do calculation. Change-Id: Iab498fb446a1d9b8295d710ffa82618d2ab6fc07 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 14:04:00 2012 -0800 msm_fb: display: add wfd clk ctrl in pipe_commit mdp_clk_ctrl on is not called when commit is from overlay commit path which can cause mdp hang. mdp_clk_ctrl off should be after mdp overlay2 is done, so schedule a work in overlay2 done isr. Change-Id: I94fd08da27cfda114f5cc0056a5103f0a9b772f6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8a9762e653e6f43fd361b3ccd632a1a78c1ab6fa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Dec 7 20:23:53 2012 -0800 msm_fb: display: add mdp bandwidth runtime calculation Currently mdp bandwidth request logic is based on source image size and number of layers. This logic can not support complicated mdp usecases and it is not power efficient. The logic is improved by calculating mdp bandwidth request at runtime from all pipes and mixers. CRs-fixed: 425823 Change-Id: I63206f00f8d3017a2449f8ac617fce3ba2a4d36c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 474f8d7fdffb8405676455cfbfaebc14d067862e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 10 10:14:49 2012 -0700 msm_fb: display: replace cmds_tx/rx with cmdlist_put/get Both dcs command and mdp pixel stream share dsi link. Dsi link confliction may cause mdp to hang up. cmdlist mechanism is introduced to serialize both dcs commands and mdp pixel stream. This patch replaces legacy cmds_tx/rx with cmdlist_put/get. Change-Id: Idfecd196d6efa281fc2c319be4ee3e76b8d49136 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d43ae7260e1b79b9930036347ce568c176420287 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 18:06:56 2012 -0800 msm: mdss: hdmi: Add support for new resolutions Add support for following new resolutions. * 2560x1600 @ 60Hz (DVI) * 3840x2160 @ 30Hz (HDMI) * 3840x2160 @ 25Hz (HDMI) * 3840x2160 @ 24Hz (HDMI) * 4096x2160 @ 24Hz (HDMI) Change-Id: I14262448fea80615c6c77b4638b0a9815efc3297 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 793bd7b68f7ab5e2899b977293cfb67157493c77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Dec 7 14:25:47 2012 -0800 mdss: hdmi: Correct configuration for DDC ref timer This change updates the (Display Data Channel) DDC reference timer in mdss domain to the optimal value which is calculated based on the correct HDMI application clock frequency. Change-Id: I0b9f32f2fb0f16cf79bca86e270039c8cf90ed94 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 248dda2a1cacae6035fcd926a97fc8849229afce Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Oct 29 11:27:15 2012 -0700 msm_fb: display: Removing extra disable irq in cmds_rx API's Disable IRQ for DSI_CMD_TERM was already called in the isr. Removing the extra call present in the cmds_rx API's. Change-Id: I0000dd3166beb2a3b0c788327e1d7520e0c11a13 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9b697535117c56cd385a0b71411e05e62776e6f5 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:53:35 2012 -0800 msm: mdss: hdmi: Add support for dynamic resolution change Using new panel event, provide facility to check if HDMI can support requested resolution or not. Also if resolution change is requested while HDMI mirroring is ongoing then current mirroring needs to be shutdown and start again. Propogate this message to mdss using new panel event, MDSS_EVENT_CHECK_PARAMS. Change-Id: I87aed1b37b532724b6663509aa020b1008abfdcc Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bc2796befca2fa535952ced7c85f7221e3dac0b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 28 18:41:33 2012 -0800 msm: mdss: support panel resolution changes Allow framebuffer resolution changes to be propagated to panel driver to support different display resolutions. Use a new panel event so that panel driver can take the decision of accepting new params. Change-Id: I04b26cbb4d06a3cbc9c4416fbb7202bb185eee9b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0d7257935376fdc7293a0b9ddf1d2f8056fec201 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:16:03 2012 -0800 msm: mdss: cleanup usage of panel info Panel info is used to communicate between panel, mdp and framebuffer. Currently framebuffer maintains its own copy of panel_info which might cause mismatches on the latest information from panel. Change framebuffer panel_info to be a pointer to information provided by panel driver. Change-Id: Ic7ae27564d98d6b6843d1368481dda0601befccf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit cc13101bd21479dec3a629d93655bcf62462b0ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Dec 3 15:36:14 2012 -0800 msm_fb: display: delete dsi clock control from cmdlist_commit cmdlist_commit perform dsi clock control which turns off dsi clock unexpectly when dsi controller is configured as command mode during booting up. This cause display panel can not be lit up. This patch drop clock control mechanism from cmdlist_commit and move dsi clock control mechanism to caller. Change-Id: I1882ea3ee1c90ac5d76958c986740582929a5e3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 946ca6389b8f8c70b62a2f1ab4d81b475395f7d8 Author: Prasad Sodagudi <psodagud@codeaurora.org> Date: Mon Dec 3 16:57:51 2012 +0530 video: msm: Do not use disable_irq in the spin_lock_irqsave context Both mdp_isr() and mdp_histogram_disable() uses the same spin lock mdp_spin_lock variable. One core waits for disabling mdp_isr after acquiring mdp_spin_lock and other core in mdp_isr() waits for spin lock mdp_spin_lock and dead lock between two cores. Change-Id: I73a10494ab78e92fc88a348aed4f526091b51f89 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> commit 889748cb28feb2d88ee74c7c3ce29409b857ea23 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 19 16:23:58 2012 -0800 msm: mdss: hdmi: Add dimension overflow check for video resolutions MDSS based HDMI Tx controller can output 13bit h_total and v_total compare to 12bit wide from previous generation chipsets. Add overflow check to insure that controller is not programmed for incorrect dimension. Change-Id: I6c3906020da6f4aad3f1fcf8a5633731515a7569 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 554c0755b48b77e463b7ede2a1b74abf41120370 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Dec 4 11:12:04 2012 +0200 msm: mdss: Fix the order of enable/disable edp clock functions Being compatible with the required enable/disable of msm clk sequence. Change-Id: I179685a5bb4c0d7e6f4b84e18f0749b416f5e2ba Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 137dfdf8781f41270dd6ff10242c082940300e75 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:20:49 2012 -0800 msm: mdss: remove pm suspend handler All suspend calls are handled through early suspend, using pm suspend/resume as well can lead to HDMI being resumed before MDSS regulator is enabled, leading to HDMI hang during resume. Remove pm suspend handler completely since it's not needed. CRs-Fixed: 425657 Change-Id: I0b9d072037dfdceef90d24fba50813390191f4e0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 32547051b65943bd1c07c08630528741fdcfdda4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 30 18:00:16 2012 -0800 msm: mdss: fix iommu fault due to incorrect buffer unmap Any buffer that is being fetched by MDP to display on panel should not be unmapped until there is a new buffer to replace it. Ensure multiple buffer updates without a commit to display won't cause displayed buffer to be unmapped. CRs-Fixed: 420561 Change-Id: Ibe720976024d7739c36bd4f05f9f70a061ed1eb9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cda3246cba44c0756c2038f0fea34858e72f8555 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 10:47:46 2012 -0700 msm: mdss: enable display debugging through debugfs Register debugfs nodes to allow dumping and writing of MDP and DSI registers for debugging purposes. Change-Id: I14d9a7f441292eef5564144707184dfa5da75d85 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 63e30558ba162cae303f7ae655b0ab61f4253005 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 9 10:04:20 2012 -0800 msm_fb: display: mdp4 version assigned at board file Currently, mdp version is acquired by reading mdp version register. This patch use mdp version from board file instead of reading from mdp register. Change-Id: If71be4f28caa45beea58789ca1025a338eb64de5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8e389593cd695957834a2de6db769264c0237a9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 15:56:25 2012 -0800 msm_fb: display: add mdp blt mode and switch control Switching mdp blt mode is done in isr or by turning on/off timing generator. Add other options: by polling, always-on or always-off. And add support for external dtv blt mode. CRs-fixed: 390953 Change-Id: I5e9f52fc459a34cc99a0f71c04b8320edd821ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4eb6ce68540cb523348d624b7193518fdd970898 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 16 11:52:15 2012 -0800 msm_fb: display: Do not use ION_IOMMU_UNMAP_DELAYED Since iommu buffer will be un-mapped after two newer commits had passed, there is no need to request iommu driver to further delay un-mapping an iommu buffer. Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d5e1c57b4a6d2d25c5ce04923205073fafa3898 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Oct 30 14:59:26 2012 -0700 msm_fb: HDMI: Cleanup of HDMI switch device notifications HDMI switch device is used to notify userspace components of the availabilty of a connected HDMI sink. These notification should only be sent whenever HDMI cable is connected or disconnected. This patch removes all the redundant notifications. CRs-Fixed: 412575 Change-Id: Ia5e60690a87569fce5d61a9af75d446648443e9b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit f3472aede02906f6e213a5a8459ca4e6f84b17d6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 15:34:44 2012 -0700 msm_fb: HDMI: Turn on HDMI core only for supported resolution Upon receiving the notification of an HDMI cable connection, turn on HDMI core only if the default video resolution is supported by the sink. Otherwise, HDMI core would be turned on at a later time when it is configured with a supported resolution by the userspace. CRs-Fixed: 412575 Change-Id: I67cfb09bafa39646839877a66cd94f193c127a76 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit cdc118275788b10175f34560470d8afedc5255eb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 12 14:56:43 2012 -0800 msm: mdss: replace uevent based hw vsync events with sysfs poll Replace hw vsync ctrl logic with ability to read vsync timestamps through sysfs file when vsync ctrl is enabled from userspace. CRs-Fixed: 407684 Change-Id: I0fb973592090ed9ee81bc3d54f53a18f4c131e0f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit edf70c335df7938a1e181286f8165250491884de Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Oct 26 18:11:23 2012 -0700 msm_fb: HDMI: Add support for HDMI audio switch device node Add support for audio switch node in the HDMI driver that would be used to notify audio userspace components of the availability of an HDMI device. CRs-Fixed: 412575 Change-Id: Idc41caf234810db52af9fcc89d2ed4ecbcaafc3b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ae93bc59e2fc68591b76d3911ed6c29537efe949 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 14:32:41 2012 -0700 msm_fb: HDMI: Cleanup HDMI audio off sequence HDMI core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI core. This change increases the time for which the driver waits for the audio engine to turn off. CRs-Fixed: 412575 Change-Id: Ie11ab6c8140f7289f74da4877c9acf9b8cd4a838 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e3ddd1499da99d52222f6d3dd031901082e8338a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 7 18:27:23 2012 -0800 msm_fb: dtv: Serve device off in a separate thread DTV device should not be powered down until the audio engine has shutdown. This change moves dtv audio off sequence to a separate thread so that framebuffer close system call does not get blocked. CRs-Fixed: 412575 Change-Id: I246a9e58f1367e653913773696510f375abf3d3a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 99a86cc6d78227ff566aefdfd83c195277bde02b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:49:30 2012 -0800 msm: mdss: Add suspend resume support in HDMI Tx controller For primary display panels, usually power off/on during suspend/resume should suffice. But for external display panels like HDMI TVs, there is an additional hw circuitry for hot-plug detect which also needs to be turned off/on based on the state when suspend/resume is initiated. This change adds such support in HDMI Tx driver. CRs-Fixed: 413722 Change-Id: I7640d13c08f86f1ae0ae13cb2d1411f0354ca3fe Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c183e1a69eeac2348a6e2a5ac92aaf1fef0fa828 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 16 18:22:02 2012 +0530 msm_fb: commit mixer stage for WFD during unset Interfaces with Borderfill pipe as base layer needs to be commited during unset which will reset the mixer cfg structure. This is needed because overlay_commit will not call stage commit as there is no buffer queued. Change-Id: Ib3347e52ae437b20d5a85a09777f13aee2672edb Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 36f267e093320a0f3b54887d0091d7d811e76d2a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Nov 20 10:41:54 2012 -0800 msm: mdss: enable secure content display In order to display secure content, secure buffers must be mapped to secured MDP context bank. Split current single IOMMU domain into secure and unsecure domains and check overlay flags to find out if content should be mapped to secure or unsecure domain. Change-Id: I510c253920b03cacf85085cb394f5281143e38e6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f270decc6b4cfd38070e4e867f01f043fbee3ea8 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Oct 12 20:51:47 2012 +0530 msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 17e116a8ba55957248cf799de54997cf249e14c2 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Nov 6 15:28:07 2012 +0530 msm_fb: display: Fix blend configuration for command mode panels For command mode panels, blend registers does not get configured as per the use case. This leads to incorrect blending of layers resulting in lower layers (eg. wallpaper or buttons in video playback) to show above the upper ones, making overall user experience to go bad. In order to resolve the issue, blend registers are now configured properly by as per the use case. CRs-Fixed: 410029 CRs-Fixed: 415553 Change-Id: Ibe7d594e0ad6a6f4d75ed2e59c7382c09b65d624 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b2c1661ac99c7b6821f702c810256dbaafbf7ec8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 22:28:23 2012 -0800 msm: mdss: release rotator sessions when all panels are suspended When all panels are suspended MDP will be shutdown, need to ensure that all rotator sessions are finished and properly closed to avoid access to MDP hw. CRs-Fixed: 409234 Change-Id: Ic1d95365a28c453ec8779d9c482a885857bf6912 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit eac7d2bb7d29f731840e96271268c545d0fe011c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Nov 14 21:53:34 2012 -0800 msm: mdss: hdmi: Replace of_get_gpio usage with of_get_named_gpio HDMI Tx driver parses platform gpio data based on index, using of_get_gpio api. Replace this index based lookup with name based lookup, using of_get_named_gpio api. Change-Id: Ic65aae1583c8c6f852c31fd454ac651fc6c8b907 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0791142a3e45f62ad674de0fff2437e4c58a4681 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:12:43 2012 -0800 msm: mdss: add proper locking during suspend/resume operations Add locking mechanism to properly syncrhonize user space frame updates with suspend/resume operations. This should avoid some cases in which suspend operations will complete while frame update hasn't finished, leading to unwanted behavior. Change-Id: I4b254a6a547320199a6da722ef99563696686a20 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bb08a42611e6149d0950d94126fa1143e53b8e9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 16:51:27 2012 -0800 msm: mdss: replace panel function pointers with single event handler There are many events in MDP that are important to acommodate the needs of different panel drivers, currently these events are propagated with function pointers. However as more use cases come into picture the ammount of events has increased, and not all of these are handled by all panel drivers. In order to provide all this information to panel driver and be able to extend it in future, create a generic way to propagate events from MDP to panel driver through a single event handler. Change-Id: Ide243f08bc4fa966ef9223b0a665cff95b9529db Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d450bd5c223d6dc729b0eff24a0547c8222be0c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 31 15:57:42 2012 -0700 msm: mdss: fix possible deadlock while cleaning buffers Move pipe destroy logic outside of mfd lock to fix lockdep warning regarding pipe unlock logic being called within mfd lock, when mfd lock is usually locked within pipe lock and remove SSPP lock when destroying pipes. This was previously used to protect SMP allocations but these are protected by SMP lock already. Change-Id: I1c47da5d33cb4f1eb687078639adf4c4cc94f33a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit adb3920dd00f1001355e4ebbf451a5b646b3987d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:46:10 2012 -0800 msm: mdss: fix possible null dereference of fb index Rotator data paths don't have a fb device assigned, assuming that it will contains a reference to fd data is incorrect. Add check to avoid NULL pointer dereference. Change-Id: Ib91e96ddc56590f2f681673b162921191e3d86da Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5c06748c7decf51a63015579fa42cf8189727357 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 31 16:26:41 2012 -0700 msm_fb: HDMI: Cleanup HPD software debouncing logic Implement Hot Plug Detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. CRs-Fixed: 412575 Change-Id: Ia2c83f3446d09fe5bf6c6a1c4e6a9eb54ff465d6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9284a2701b6c030184848ba4b37c0b5019f62ed3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 2 20:55:30 2012 +0530 msm_fb: Wifi display changes for commit ioctl This change handles panel updates for WFD panel via overlay_commit interface, along with conglomeration of some common code across pan_update and overlay_commit ioctls Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit e41ba16cdf9d4aa7773fa33ef640ba32f5a17d7d Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Oct 25 16:32:32 2012 -0700 msm: 8974: MHL Driver for SI-8334 Tx The B-family device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I33f6c6f00011b590f9913cdbbe44544472b60982 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fe4abc1141a5620d42832137ad1dad15424b6b41 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 17 19:11:45 2012 +0530 msm_fb: display: Proper pipes solidfill For MPQ/hdmi as primary, solid fill the pipes only during suspend. This change also take care of the solidfill of the pipes unset during overlay and pan display at suspend. CRs-Fixed: 421461 Change-Id: I15096df681cbd94ae3cea63ecbfe915e01b7387f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 765bfd597fdc90610113cc9938c7152658d654ed Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Nov 14 10:41:12 2012 -0800 mam_fb: display: add per stage alpha drop detection Currently, alpha drop detection is done per frame which means multiple blending stages share same alpha drop status whcih does not reflect alpah effect truly on each blending stage. This patch enforce alpha drop detection is doen per blenging stage so that alpha effect applied properly at each blending stage. Change-Id: I90f8f6395c88e665b64ae90e64b65cea1d54b41a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Nov 16 11:36:29 2012 -0800 video: msm: Remove adjustment to MDP revision Remove the modification of mdp_rev during mdp_probe. Not needed since board files now have the correct MDP revision data. CRs-Fixed: 417080 Change-Id: I553cb2a8e8de43b6c7b7976c3eca67d00a3cfe4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ca24bda0148887716f250bbbc5debb2f80fa4331 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Oct 5 22:19:28 2012 +0530 msm_fb : Add timeout while waiting for vsync event Avoid eternal wait for vsync event when client tries to read the corresponding sysfs entry. This will avoid hangs when client tries to read in corner cases where the Timing Generator or the clock or IRQ gets disabled. CRs-fixed: 406752 Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit b6b7c0ef67d6bc2d82e4bbe63a946d3e8b815f69 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri May 18 11:00:11 2012 -0700 msm_fb: display: extend mdp debugfs with force blt enable Enabling/disabling mixer0 or mixer1 blt mode is a critical way to debug display issues, so add debugfs interfaces to force blt mode enabled/disabled with adb shell commands. CRs-fixed: 390953 Change-Id: I96a568f22398867571a796a863c098f749f5618b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bcafbe3fb1b630a844c4776f9bab4c65cd5cefa5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 4 15:55:40 2012 -0700 msm_fb: display: disable external instead primary vsync irq Since DTV is external interface of mdp, it should only control external vsync irq. Change-Id: I5f3a7087c7d4997cd40d4cc4907d8b054e37c6b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3eebb2e33570e32d11a757e493e12a8e79e08d6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 14:21:41 2012 -0800 msm_fb: display: add setting gpio-controlled backlight logic For the panels which backlight is controlled by gpio, add this logic in driver to turn on/off backlight, instead of calling board panel on/off functions, to avoid garbage display due to early backlight turn-on. CRs-fixed: 408728 Change-Id: I6f1b9bd78d96dbf1492e854edd59b05f8dec205f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5f91c9259a62b5dd2226bf46efc42152667b9e19 Author: Mayank Goyal <goyalm@codeaurora.org> Date: Wed Nov 7 16:58:09 2012 +0530 msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation.Add changes to support MDP_Y_CRCB_H1V2, MDP_Y_CBCR_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: Ibd1cb9803b8cf8bede28bc1d9830320dd505f5be Signed-off-by: Mayank Goyal <goyalm@codeaurora.org> commit a3b0e08b5c65b28c81a8a4511ebacd6985793dc5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 13:50:23 2012 -0700 msm: mdss: import venus stride alignment requirements In order to avoid mismatch in stride assumptions between Venus and MDP, import common header file with Venus alignment requirements and configure MDP surface with these. Change-Id: Idf849b3f476eb5e2d60fec190698efd487f035cf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c62976484ec5b681361a563d80fd5a5546287308 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Oct 20 14:08:41 2012 -0700 msm: mdss: disable fetch for all previous stages with is_fg The is_fg flag is used to disable fetch for all previous mixer stages, currently this only to disable fetch for base layer. Modify mixer setup logic to disable fetch for all previous mixer stages. CRs-Fixed: 413254 Change-Id: Ic0f101fe88a3c64db11cf43484f64f0f5e32d0d0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a21de442a3babb554d1a9a54eef2ef0944cbfa4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 9 16:18:07 2012 -0800 msm: mdss: disable overfetch done while scaling While programming pipe, src image size can be programmed when area outside crop rectangle contains valid contents in order to allow MDP hw to do overfetch of pixels while scaling. However for most cases in video playback the area outside the crop rectangle is only padding with invalid pixels used in order to satisfy alignment requirements. Since driver is not aware if padding is being used or not, disable the over fetching along the border to avoid unexpected pixels being displayed. CRs-Fixed: 404918 Change-Id: I145f34bcaef76a88116b6803eeaf4a5ffd19592d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20f0af9200e416d4b2f7949e2ecfd81182a5edc6 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Nov 13 17:34:12 2012 +0200 msm: mdss: fix enable/disable of gpio_panel_en in edp driver gpio_panel_en is always on even though driver is in suspend mode. The fix is setting gpio_panel_en value in edp_on/off function. Change-Id: Ib41681d31788b9a17a032e9b9e8dbe53eb9e4fa9 Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 6db43b58111cfd39eaee0d694c223cbc7461d16c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 15:25:37 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP3 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I18b05b8d2a65d489afc6e3274ec8dc7a5b9a5f9a Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b5292f0df4e06db2272c92d575e255f310793e3c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 13:54:39 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I983731481ea89bb7666be5f2a9f75a1e04fd963f Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 39e3fecb80703313621b22d2a8b5667a816265bf Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Nov 8 13:51:00 2012 -0800 msm: mdss: disable overlay operations while suspended When display is suspended all overlay operations coming from userspace should be ignored to avoid programming MDP when it's completely powered down. Change-Id: If43436915de33f89016ee2c85eb70bd57fdd2118 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b6d7e48e777e99e28dea95cb93debfd9d15d849c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 12:08:27 2012 -0800 msm: mdss: enable dithering for panels with reduced color depth In order to avoid banding caused by using reduced color depth as panel output format, dither can be enabled to produce an image which gives better representation of original image. Change-Id: I88a1be747332070d2b8b00dcbeb7e97936a47092 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6829d179d9ae8f3646a7a7204571ce15d35a997c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 31 17:06:52 2012 -0700 msm_fb: display: add option to switch mdp operating mode Currently, mdp switch operating mode without turning off timing generator. This patch adds option to have mdp switch operating mode (direct out and writeback) with timing generator turned off based on configuration of panel file. CRs-fixed: 405987 Change-Id: I92057757863218222d8647d33d57f6de9b3b3765 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a4567ac320abe5d74b3c7decdbddba4bd8c57463 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Oct 5 11:02:40 2012 -0700 msm_fb: display: skip one vsync event after enabling mdp and vsync clk Both mdp and mdp_vsync clks are disabled for command mode panel when no new frames are being played. When they are re-enabled if new requests come in, the first vsync event which is signaled by read pointer interrupt arrives in a random time due to the sync between mdp and panel, so skip it to maintain correct vsync timing. Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9bc28cf89a1619218fc1193409c4f614d1f826f6 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Nov 5 16:18:53 2012 -0800 msm_fb: display: add config of wb_mux_sel during update To make sure for each writeback play the reg is configured and avoid mdp hang. Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Nov 2 17:30:46 2012 -0700 msm_fb: display: empty pending queue during suspend for wfd Add the logic for wfd writeback interface. It already presents on other display interfaces. Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8befe49ddcd2952cfd60634153dc5caf440acb27 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 18:34:13 2012 -0800 msm: mdss: Add support for disabling HDMI while cable is connected Send disconnect and/or offline event to user-space when user explicitly asks to stop listening to hpd only if HDMI mirroring is going on. Upon receiving this event, user-space will trigger power off and HDMI mirroring will be turned off until user explicitly asks to start listening to HDMI cable connect. CRs-Fixed: 409880 Change-Id: I509a9a7ba04066e571b5f762be4804c7dd39c655 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 84639ef623c0f3301bda4893bae9eaa83454c222 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 14:48:03 2012 -0800 msm: mdss: correctly handle panel power on failure Check panel power on return code and correctly revert any interface initialization if any error occurs. CRs-Fixed: 417959 Change-Id: I4ad644b16efd51e5e8b3be1393c39195687feb8a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 074de641de0fab973a9efd9c3d57498453ef28ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:18:47 2012 -0700 msm: mdss: Serve HDMI Tx power off in a separate context HDMI Tx core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI Tx core. This change moves the power off sequence to a separate thread so that framebuffer close system call does not get blocked. Change-Id: I011c6612ec1b6be047e4adb39c1af48f6a105bed Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 2816e20c94fd5ee23c9784b3dbc3ac690fe1e88d Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:17:27 2012 -0700 msm: mdss: Clean-up hpd debouncing logic of HDMI Tx controller Implement hot-plug detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. Change-Id: I434a223a3d340d5759346e071d5350d412de2c20 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 3ca6a5691a83819c1b8c7123089cb85f5b4a58ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 14:58:28 2012 -0800 msm: mdss: Add error checking for incorrect state during HDMI power on/off HDMI power on should not be permitted if hpd is not initialized. Similarly HDMI power off should be skipped if power is not on. Add proper checking for above state conditions. CRs-Fixed: 417959 Change-Id: I9470c6d818adc403de05c25a7e96c8ab1c8a43fd Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1073b45c0b120f2ebbe1b5034d4088f9294b54af Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Oct 30 18:26:00 2012 -0700 msm_fb: display: fix frame buffer's ref count leak This patch clear MDP_MEMORY_ID_TYPE_FB from pipe's flag so that fput_light() and fget_light() can be applied to frame buffer evenly at end of pipe operation. Otherwise there has kernel unable to handle NULL pointer panic caused by frame buffer's ref count leak. CRs-fixed: 411394 Change-Id: Ib2b72e6277480b5ace23cda554be485d9d477b3d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f4796e811c00082db0414d4ad211aa3fcefd3a9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 08:41:49 2012 -0800 msm: mdss: Fix returning incorrect error number Instead of returning actual error number, current code returns boolean value of error present. Fix this issue by using PTR_RET macro instead of IS_ERR during error check. Change-Id: I61f0e57dd918c98ae4699993fa526e31654bebb3 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c30090ea5c28fce50a7c0ac829b9effd809f41e8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 11 15:30:58 2012 -0700 msm: mdss: add interlace video display support Interlace video contains two frames interleaved within same buffer. Since there is no hw support in MDP5 to display interlace content, support interlace video by taking even fields only for display. Change-Id: I92718d13eb7711d0c4252adf8751384719c862f1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 04d097801cc94a121751c9d5fde2ea458f3ae76f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 3 02:39:20 2012 +0530 msm_fb: hdmi: black out pipes on unset For HDMI as primary case, we need to blackout the pipes when they are unset so that any residue is not visible on the DTV during suspend. Change-Id: I2bf36f1002dd185c26fe6c4291977737daa73ae1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a5611de5f7d754d538706949bfdc9b8aa36fd0f0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:39:52 2012 -0700 msm: mdss: fix bus calculations overflows With higher display resolutions the bus calculations being performed can be very high which may cause overflow and unwanted results. To avoid such situations modify logic to perform calculations in kb and use 64bit data type to call into bus scaling driver. Change-Id: I7b975d750e316c6e79bcdcd54a8194c8ae40c155 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7fb9c21f04a8a87d2bf2e45ad1a5c9cd374f65be Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 11:58:29 2012 -0700 msm: mdss: replace disable irq with no sync to avoid potential deadlock Potential deadlock can happen when disabling irq after receiving vsync complete event in display if at the same time MDSS irq is triggered, at this point disable irq will hold spin lock which irq tries to get and will not release because it's waiting on irq to be disabled. This scenario can be avoided by using disable_irq_nosync instead to avoid locking on irq to be disabled while holding spinlock. CRs-Fixed: 416304 Change-Id: I1e367ac2b5d7b0ed7d1c15efc8d29a6ffa9fea5e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5328e4976369d5b4fc76183720168b58bdffd6c7 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Oct 2 15:03:44 2012 -0700 msm_fb: display: Enable scaling bit while setting x-flip bit To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d8bad5aaad6a19d65ae8d63451044455aceca46a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Aug 20 11:58:42 2012 -0700 msm_fb: Correctly setup splash screen flag in MDP probe The continuous splash screen flag was sometimes not correctly setup during MDP probe causing corrupted grey screen on resets. Crs-fixed: 389531 Change-Id: Id88d8a239ccfd1cbb5ce0f4f3db68756182f5ff9 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6ced23c4d1863316a72d7143a60ccfb547282940 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Oct 25 16:24:54 2012 -0700 msm_fb: display: adjust refx100 parameter to avoid tearing refx100 is used to calculate how many mdp_vsync clocks to complete one line in the panel. This info is used by mdp h/w to sync data transfer between mdp h/w and command mode panel to avoid tearing. CRs-fixed: 379223 Change-Id: I3880a350b77cb8165745ea343b1525e84100a62d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 66744e7a76bfa3f56818bcaa2d430468e50a1922 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 31 13:29:48 2012 -0700 msm_fb: display: force mdp clock off at suspend At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ef5abb017cee4c6bbacb6d064764bda8b4a1a0c5 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Oct 31 20:40:17 2012 +0530 msm_fb: display: Correct dtv pipe black out This change corrects the register values to black out the dtv base pipe. Change-Id: I80fefab3cc6dd006edbb673f41ccfe983af2cc3a Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 19a4f321dca81cbee29c934a9584412614a444c0 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 16:48:18 2012 -0700 msm: mdss: Enable stereo audio through HDMI Tx Add support for Stereo Audio in HDMI Tx driver which sends HDMI stream on/off notifcations to audio userspace using hdmi_audio switch node. Change-Id: I2c8e756adbbe2f9230dfb7735774ee194e32e446 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e2c2859bac8fcf41d39ba9cc614d028f0e1573ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 16:01:15 2012 -0700 msm: mdss: add smp specific lock SSPP lock is shared between pipe allocations and smp block allocations, this can cause possible circular lock dependency since usage is different for these cases: - During pipe allocation SSPP is held when acquiring pipe lock - During SMP allocation pipe lock is held when acquiring SSPP lock For this reason, splitting SSPP lock, and since pipes and smp locks manage separate resources sharing is not needed. Change-Id: I54a0997fddef893b99a4b01d3e3f62382e1e0ecf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ec339e96700b98faa170b06f73678f203c237291 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Oct 29 16:19:03 2012 -0700 msm_fb: display: change the location of wakeup timer call There are two pathes (pan display and overlay commit) to commit display buffer, so change the location of cpu timer wakup call to the common pipe_commit function to make sure cpu get waked up around vsync. Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Change-Id: Idbe6049d740a7e17a6a90e28566f7a9c74e348f2 commit b360fd40a5214595d7e9970431ef83653b76b13e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Oct 27 13:14:11 2012 +0530 Revert "msm_fb: display: suspend-resume on HDMI" This reverts commit 30befc28305440f30770a6545839fe4b55ee2207. Revert early suspend implementation for MPQ. Change-Id: I028a7f0d6997d2d09d718d3b5072466d28a95b59 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5f6d8314b2ad063da8a8ebf71fef8c713f76401b Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:27:55 2012 -0700 msm_fb: display: fix dsi_busy_wait race condition After pipe_commit() released mutex and before kickoff happens, There has possibility that dcs command may start transmitted. This patch add dsi_mdp_busy flag to fix this race condition. Change-Id: I0d9a81cd0719085c91c03386117261ad3bb6b182 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 366ca5c34117fde6329ea81112068d1dc177ff70 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:26:31 2012 -0700 msm_fb: display: add video mode dcs cmdlist support Add video mode dcs command list support. This patch make sure dcs commands committed while dsi video engine is busy so that dcs command will be transmitted at beginning of next BLLP. Change-Id: I11b0214ee10f3b1ef33b1da4c8e577800068cb06 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c405afa88ef5139132795757a7446a7081d92c38 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:23:10 2012 -0700 msm_fb: display: add sysfs and clock control to smart panel This patch allows both vsync enable and disable are controlled by framework. Driver reports vsync event to framework via sysfs. Meanwhile, mdp related clocks are enabled by framework at vsync enabled request and disabled by driver if there is no any display update within specifid vsync period. Change-Id: Ice5be3a6db5930b95bdd2f718d9256bf73936e23 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 64892009d43ca724c5ee1be5f7db6ad1f00cda6c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 25 09:07:58 2012 -0700 msm_fb: display: fix iommu leak during base layer swap Retain RGB1 iommu information during base layer swap so that iommu used by RGB1 can be freed back to pool later. CRs-fixed: 403277 Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bbd754882e8ec1a52ebba237e02ba8c49b00f135 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Oct 25 19:30:33 2012 -0700 msm: mdss: Fix error roll back sequence during core on. When core power enable fails for some reason, current code disables hpd power in the roll back which is unnecessary. Correct this mistake. Change-Id: Ia5ed63edb017ade44950058c9d6071e8eb5d7884 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 693e87a8e357add7444dbad12cb265deaa90d3e2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Oct 2 15:08:56 2012 -0700 msm_fb: display: wake up system before vsync for cmd panel Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 407e03a33eaa0880b87a2a6a7bf43e3516cb2562 Author: Asaf Penso <apenso@codeaurora.org> Date: Thu Oct 25 15:03:21 2012 +0200 msm: mdss: add eDP backlight Add configuration for setting different brightness levels in edp driver. This is done according to lpg channel and period values from devicetree. Change-Id: I4e9074d777102193d7678f7aac565be3a5a551df Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit b640c29b8b3b4a0733924a6e4ad0665d5218a7dc Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 20 14:14:40 2012 -0700 video: msm: Send ETIMEDOUT on update-notify timeout Send the ETIMEDOUT errno when the update-notify wait_for_completion times out. This is required to be able to properly handle the different failure cases in the functions that use the update notify ioctl. Change-Id: I0e46b0b0c89f6b2e5beb3fc0ed18ebbb75dfa434 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a3020ffbd3720f3aaba439b593db5a85dcb50bc0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 22 11:33:23 2012 -0700 video: msm: Wait for latest histogram data Old histogram API introduced behavior that calls to collect histogram data would return a frame's histogram once, and would wait until new data was available if needed. Follow old histogram behavior by waiting when histogram has old/not ready data. Change-Id: Ia1b6b5b7a5b63a570a641b5460eb8e0d72c458c8 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a80d082eeb5ad6a024bea9992d8dc74406c37752 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 15 18:05:14 2012 -0700 video: msm: Ensure histogram is fully enabled before kicking off Histogram hardware needs to have histogram enabled before kicking off histogram collection. Add state variable to track if histogram is ready to collect. Change-Id: I71380e89de1a61f446802f791e917f57d14f10a2 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 6011950da33ac430c1c6b677c25423d07f8e8c95 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 28 12:03:28 2012 -0700 video: msm: MDSS: Add Update Notify Add update notify ioctl to MDSS driver. "Update notify" is able to signal userspace processes when there has been a screen update or if there has been a 22 second period without screen updates. Change-Id: I90cf7f7e6650236186452c1a9f86850731ad785d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0af12fc4577d1dda6a0209d1a35cccaa716721b2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Aug 27 14:52:39 2012 -0700 video: msm: Add backlight scaling for MDSS Add backlight scaling functionality to the MDSS driver (includes the fixes with regards atomicity of backlight scale and level updates). Allow for power saving algorithms to modify the intensity of backlight without introducing race conditions caused by competition for backlight level. Change-Id: I97ae024055ca614648ffe2aeae09cc350d2577ec Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97ea71b93d1148c9127e59ba19a71f67b4808c2e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 27 11:44:15 2012 -0700 msm_fb: display: check pipes queued before enter wait_for_completion Timing generator will not be turned on if there are no pipes queued. Therefore wait_for_completion may never be completed if there have no pipes queued. Change-Id: Iafba086e4ba20b31470c9fd385c4f5c474ecadcf Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0edc1cb98a8af7a7c650c7f690e510e7c01b9b1 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Sep 24 19:52:16 2012 +0530 msm_fb: Enable H/W cursor for External Interface Add H/W cursor support for MPQ uses cases which use external interface. Change-Id: I5d1f71813769c7e86e576888463bceaa7ad37b68 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit c579c8770c6c0a9e823cc4a7d1349ea4e3d99d95 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 17:36:38 2012 -0700 msm: mdss: fix rotator hang for xrgb formats XRGB formats require constant alpha to be setup when writing back to memory. Change-Id: Ie819b88578a85923d1cde7efe54ca0819c59a611 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6ba5f1fb067410d097f973f311bfcc9eded6a1bb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 18 11:21:23 2012 -0700 msm_fb: display: add wait4dmae for hdmi as primary display When hdmi use as primary display, pan_display is used to update screen. This patch adds wait4dmae to pan_display to avoid source tearing on hdmi display. Change-Id: Ied31419590c51e4bc2218ee8dfdc7d5221c996dc Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7ef177524d89ce9bbd84bf0a54c28c335c2a2b14 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 11:00:19 2012 +0200 msm: mdss: add support for different panel formats Some panels have different color format requirement such as RGB666 for EDP Panel. Add logic to detect panel resolution based on panel bpp set by panel driver. Change-Id: I4cad59033b8b4f807c2ed38b00451aab89737bb7 Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b2372aeb5c33f7c49ad3133238b799ba9e60480b Author: Gagan Mac <gmac@codeaurora.org> Date: Mon Aug 20 19:24:32 2012 -0600 msm: msm_bus: Add support for 64-bit bandwidth requests With 8974, bandwidth requests are exceeding integer size. Update ab and ib to ensure values over 4Gbps can be requested. For 64-bit support, there are four changes in this patch: Changes in the bus driver structures and functions to update ab and ib values to uint64. Updates in client drivers to ensure that the bus APIs are called with the right types. Updates to the device-tree. Device-tree nodes don't provide a clean mechanism to read a combination of u32 and u64 variables within the same property name. So, the ab and ib values must be specified in kbps instead of bytes/sec from the device tree. The bus driver function will convert the ab and ib values read from device-tree to Mbps. Change the existing property names to make them consistent with the convention used by the new property name, which abides to the Device Tree convention. Change-Id: Id37407c349a9cea17f6621d3bef2401b856f7b7d CRs-Fixed: 408786 Signed-off-by: Gagan Mac <gmac@codeaurora.org> commit 327a968551e890838f471ce649748d03861465a3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Aug 23 17:08:25 2012 +0530 msm_fb: ADD AVTimer info to the vsync event for DTV interface MPQPlayer requires Avtimer time stamp when every frame is rendered. This change enables sending AVtimer info with every vsync for DTV interface. Change-Id: Ib36c9a152bf3454be984fed765ad268f9435933b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 523d93ac63dc5a0ae9b5c7d24278ca48fbb923d4 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 22:47:03 2012 +0200 msm_fb: mdss: Add EDP physical layer configuration support Add code to configure the enable/disable and PLL settings for the physical layer of EDP. Change-Id: I6e15e41fdd23cc5a4855a3addf85050ade802d8d Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 68b3fc5593916dc6d4b47d2434776c9dd91f77a2 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 21:47:59 2012 +0200 msm_fb: mdss: Add eDP controller driver support eDP controller is one of the output interfaces for MDSS. Add support for eDP host controller driver which runs in Video mode only and eDP related changes for msm_fb panel driver. Change-Id: I0a150f8d712f57bdfaee9051b2893e2910195567 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 4fc9350b124ded06f90c43410c2c0b512681c0db Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 09:03:18 2012 -0700 msm_fb: display: return fail if pipe still staged Pipe is not un-staged from mixer when it is unset. It expects a pan_display() to un-stage it out of mixer. Return fail at overlay_set() if pipe was still stage at mixer. CRs-fixed: 399193, 393979 Change-Id: I562f6e133bb239b30f4f53669dbf1cc5ddf80d02 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4aa5b44e20ba129a98fedff1cc6ea4a9495f0ebe Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use MDP_Y_CBCR_H2V2_VENUS as the output format for writeback For Wifi Display use case, the Venus variant of NV12 is required since the Venus core expects it in this format. Change-Id: I68ded4373212021486bc6b7b89514fdecf05d4da Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 636779a7ddbe69a6f8be39cba9755e352fce39b4 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Oct 12 19:06:16 2012 +0530 msm_fb: hdmi: Proper update of ACR CTRL Register While changing the audio sampling rate, the older data in the control register needs to cleaned before writing in new data to avoid mixed or wrong data writing. CRs-Fixed: 405772 Change-Id: I95d0807ea8cf544e4a0c8caed00de6cd60352efa Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 35c724bf61ef9432cd467152dfeab25e517b50a7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 10 11:51:20 2012 -0700 msm_fb: display: add dtv base layer swap Add dtv base layer swap between border fill pipe and rgb pipe to support hdmi as primary display. Change-Id: I127a301385d5d83e5d06507869132c6e124cc94f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0e53b6627814d52e3cf5604e0793f4780ec4a9c1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Oct 4 20:29:52 2012 +0530 msm_fb: display: Make sysfs read request interruptible Change blocking sysfs read request to be interruptible and protect vsync timestamp value to prevent corruption. Change-Id: I510d84134b0ab70d17729e8c53c91fa926035142 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 97104cc8bf4881f41dfd79e6bdc31383c5ccabfc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Oct 3 17:50:39 2012 -0700 msm_fb: display: extend mutex protection for mdp pan display When mdp commits a buffer to play, functions inside pan display, e.g. mdp4_overlay_mdp_perf_upd are based on the current state of play, so extending mutex to the scope of pan display to avoid race conditions. Change-Id: I2e55567fd21de3738be066a2dee298d8122f12a3 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5b567514a5cebae7b6fdabd0b94c29efa4aef18f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:50:16 2012 -0700 msm: mdss: fix rotator session not being closed correctly User space expects non-negative number as session id, update rotator mask to avoid making rotator session as negative. When rotator is closed, need to recalculate bus/mdp clock numbers. Change-Id: I6c0e3bfa5394fb64b78fb47be1f24462e320916d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6e923f52e81757c6fdb03fe4184f79be7b4068ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:30:03 2012 -0700 msm: mdss: update performance calculations to include border color Current clock and bus scaling calculations consider only source surface pipes to set clock rate and bus scaling factor, however since MDP also generates pixels for border color this area also needs to be considered for final clock and bus scaling factors for data paths that use layer mixer. Change-Id: I9463c01dfd0b7a301797bd036f563e15d5195dbd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 35143f7156a7f651f2cfcc511b2ebbb12b2ceb02 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Sep 13 10:43:15 2012 -0700 msm: mdss: move unstaging of overlay surfaces to display commit Perform cleanup of surfaces destroyed with overlay unset until next display update. This enables a smooth transition in case multiple surfaces are unset before next frame update. CRs-Fixed: 406645 CRs-Fixed: 406553 Change-Id: I843c7f11fc943d8351b7408116101ba20f25d116 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 70236f7a01bcb9278b99f2df7b8acd4d1cd323d2 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:12:14 2012 -0700 msm: mdss: remove display commit during overlay play All display commits happen with pan display in order to have a single sync point when using multiple pipes, and avoid blinks that can happen when updating surfaces out of sync. Exception for this case is writeback where commit is still needed, keep this implementation until this exception is corrected from user space applications. CRs-Fixed: 408105 Change-Id: Ib40c4872f43e6a939c45624677b2ab1f64a3b31e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 944b88e82e9baaaeb52a2ec38298ed2e48c33f1d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:06:21 2012 -0700 msm: mdss: implement commit ioctl for display commit Commit ioctl is used to update contents on display while avoiding console_lock done through framebuffer pan_display path, which causes additional delay on display pipeline leading to flickers on HDMI. Change-Id: Id3522d322ba08b110d540e10214cadfbbb0bcc25 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d74db5fcf24a223570137087aa5632593b315fcc Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 5 09:05:58 2012 -0700 msm_fb: display: wfd with vsync driven frame push To improve performance, hardware vsync event at mdp driver is passed to framework so that both composition and frame update are aligned at vsync event. This patch will upgrade wfd to incorporate vsync driven frame push in consistence with other interfaces. Change-Id: If088826ec387446301f1f6acc311d909edb04163 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f0d08071a4e97c9018b8e8def498e07720201da8 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 18 17:32:15 2012 -0700 msm_fb: display: add checking y direction for alpha drop Alpha is dropped when scaling with non repeat pixel method. Both x and y direction of scaling need to be cehcked for alpha dropped. Change-Id: Iba0df5a85011f179199c13ffdebac911e5c14c3c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6745082aec2b97f07dcfbc49ea7b8b79099f4d13 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Tue Sep 11 18:04:34 2012 +0530 msm_fb: Use background alpha for all destination alpha enable cases Use background alpha for modulation in all the cases where source alpha is not available. CRs-fixed: 366834 Change-Id: I300c04181ee3fa4f305a26a3e17e7eac2572564c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit bd556dc51ccf32a7ddc8d435d31f39e981815f8f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Sep 21 14:11:30 2012 -0700 msm_fb: display: check base layer pipe at irq handler There is a corner case when overlay and dmap interrupts are fired before base layer pipe is allocated. Therefore Check for base layer pipe before performing any operations. Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7d136bef71281855cd224ccc967e4e95286f5356 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 26 13:10:42 2012 -0700 msm_fb: display: add fput_light to frame buffer Frame buffer's (fb0) ref_count need to be balanced. overlay_play() increase fb0's ref_count (fget_light). This patch will decrease fb0's ref_count by calling fput_light after commit. Change-Id: I34ea738bf21d0858b7361ec8e289464a217a1231 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f08f2387cdc5a2d365c33bef1fe2a87b6c5911c3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 4 16:21:33 2012 -0700 msm: mdss: remove pan display no memory warning There are some framebuffer devices that don't allocate any memory such as HDMI or WFD, warning for no memory is not necessary and it just floods kernel log hence removing it. Change-Id: I8f9ba1cda1f55c741b99d462adf74531d73aaeee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a4c377fbf133bd53913d451b478c177c271ab365 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Sep 28 11:13:49 2012 -0700 msm_fb: display: remove background invert alpha option for alpha drop pipe When the blended background pipe has dropped alpha and it is going to be blended with foreground pipe on the next stage, MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is 0xFF, so we need to use this alpha value to show background, instead of its inverted value. Change-Id: I1fe0572f9bb54db6280bcc44117a21b8c0d8b07a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 19:31:33 2012 -0700 msm_fb: display: empty pending queue during suspend Overlay_play() adds a pipe into pending queue and pan_display() will commit those pipes to hardware and empty queue. This patch will make sure queue is empty at suspend so that no unexpected pipes will be commited to hardware by pan_display() at resume. Otherwise, iommu page fault may happen. Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a77eca6cee55531e81e21d83b474563f9c143e77 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 13 13:22:04 2012 -0700 msm_fb: display: add pipe commit ioctl currently, pan display serves as pipe commit. However it may spend long time pending on cosole_lock() which cause flickering on HDMI. Add pipe commit ioctl to allow commit from overlay in addition to pan_display. CRs-fixed: 391564 Change-Id: I163b5d96f727b70b4d5693e9a414b59339818998 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ee79b635fc78d5abe40e3918f2bf6f754f3516da Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 25 17:04:18 2012 -0700 msm: mdss: carve out memory for framebuffer Use carved out memory allocated exclusively for framebuffer instead of using up memory from ion pool. Change-Id: I4b248a21380a3ef737fe2fd8eed6de9747fe47c7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d7a09f0c134c61f3d3dd2239073c3363e4306858 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 2 16:48:16 2012 -0700 msm: mdss: remove play_cnt reset in overlay set play_cnt is used to manage currently displayed buffer, this value is incremental and should be initialized only once for new pipe creation, but overlay set can be called after pipe creation to change params. Remove reset of play_cnt to avoid reset on subsequent overlay set calls. Change-Id: Idef90a6123c4e1a9e8b1ab963bf78330cdd912bf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ac990ba5e32295c9efbffb56b7c659efa6cae6d0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 13:57:51 2012 -0700 msm: mdss: allow dynamic resolution change Modify initialization function to take changes in input paramaters including resolution and format instead of doing a one time initialization. Change-Id: I01c575fd1d957218296e658b3b4b8d72cd138614 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b4b75a59b665c0d1b3aa14a41fd81f754d4f093 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:25:22 2012 -0700 msm: mdss: use half of panel width when using dual pipe MDP layer mixer only supports up to 2048 width, if the panel resolution is greater than this dual mixer needs to be used. Setup each mixer width as half the panel width instead of allocating max width on left mixer and use left over for right mixer to have better load balancing. Change-Id: Ibc01591e2e6d5e5f98e81dfba766493abd9895a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6c6a597e45a2d7daafdfd2c63832cce638334d6f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 24 10:51:13 2012 -0700 msm_fb: display: remove extra dmap irq disable Both irq enable and disable need to be called symmetrically. Remove an extra dmap irq disable call. Change-Id: Ic51003c50431ebe46a9fc540163cda77a1c91797 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b453fc7adc6c02e0f23550c5703bf93f8f6bfea Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 28 15:22:37 2012 -0700 msm: mdss: disable framebuffer memory check when not allocated HDMI and WFD don't allocate any memory for framebuffer, in this case there is no need to check for available framebuffer memory. Change-Id: Id3fc6279e1b2a5d4b96d3b85e29ba6865a4dd38f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 105ef65f2db0be51711a5d3fc293064da0a38e2b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:26:05 2012 -0700 msm: mdss: fix height align for venus format Venus format expects luma height to be aligned to 32. Change-Id: I1ccd5ddb91d1067a68b576891ddf4d73360108ba Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c87b83203c2069c71a732e3164357b02649c12dd Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Sep 28 18:48:15 2012 -0700 msm_fb: mdss: Fix dsi controller reset sequence during dsi initialization Move the dsi_sw_reset from panel ON sequence to controller initialization function. Enable clock lanes and disable controller before doing reset. Change-Id: I570615a931214021360070cd1cfea4ed3b6812d5 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit ed1430f0336a587a63729d2b698f9e23de46c95d Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Sep 12 17:00:27 2012 -0700 msm_fb: HDMI: Remove HDCP Kernelconfig Remove the kernel config parameter for HDCP since enabling or disabling HDCP will now be controlled using a corresponding module parameter. Change-Id: Iae23b8fa66ca75d99423547e77f850f3c86615ee Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 16229f5a1ce7007eb44dc1d43482f85c03e07f57 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Sep 7 16:08:10 2012 -0700 msm_fb: HDMI: Driver changes to support HDCP module parameter This change removes the need to use HDCP feature flags in the HDMI driver and adds the necessary support to configure HDCP feature based on a module parameter. Change-Id: Ie0eacc5b447230927cfdedfcb979c22d60e81981 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d8d660a6011c903fef1d9c1a58ea578e6a58e1ee Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Sep 11 18:10:33 2012 -0700 msm_fb: HDMI: Add module parameter to disable HDCP This change adds a module parameter that can be used to disable HDCP at runtime by specifying hdmi_msm.hdcp=0 on the fastboot command line. Change-Id: Ifad5da9fcb86fb4ed663a5ef2bb14fe4dafd241e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 51d631dd2b8a301828b4780f6496a6fe5490e454 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Sep 18 20:34:16 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP3 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Change-Id: I22cfbd68c8bcbe4a47e94074393f1cbf79920c58 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d473df4fba1417b4d7d429849af2a4243869e55a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Sep 7 00:37:24 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP4 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Also, for smart panel, wait4vsync is removed. Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit a8d45ced76c79333af546ad63ae31972aa00b109 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 18:42:29 2012 -0700 msm: mdss: Enable hpd for HDMI Tx controller Enable hot-plug detect circuit of HDMI Tx controller to sense connect and disconnect events of HDMI cable. Change-Id: I4e5614d32f5c9885f23060d68ad5b6a72a045177 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4f56d21f84a2e2adea6e83b8c75501904feebf7c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 18 15:17:07 2012 -0700 msm: mdss: Fix EDID read failures in HDMI Tx controller DDC data channel is used to read HDMI sink's EDID information. Fix the request length for this read transactions to prevent EDID read failures. Change-Id: I74b2ce344cdd08721a78641a7553c85927a96831 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1e88b6e0ecdb4485d21e94ad3e87c1caabdcde37 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 15:54:25 2012 -0700 msm: mdss: HDMI Tx clock clean-up. Generalize and move HDMI Tx controller's clock access mechanism to mdss_io_util so that other mdss modules can reuse it. Also correct the name of iface clocks. Change-Id: If0ed2c4244a9a0fcdb819f63010555d968a0b036 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4e055b701f5600e391ed5d440b90fb1958924c49 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 14:10:48 2012 -0700 msm: mdss: Debug enhancement for mdss modules Move debug log macros to mdss_io_util so that all mdss modules can use the same mechanism. Change-Id: I960fc394c60b74d694a81ad636b7055a224a2c6f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 60a6b37db0caeb736291f0eccd99baa307d60a86 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 31 18:20:45 2012 -0700 msm: mdss: Provide generic io access mechanism to all mdss modules Generalize and move HDMI Tx controller's io access mechanism to mdss_io_util so that other mdss modules can reuse it. Change-Id: I097af956706dcbf2e9fa1f6b5983a550a462fed1 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e782ceab26e38590cd49a9bb273da1dbf1984ccd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Sep 28 11:49:26 2012 -0700 video: msm: Enable mdp clock for histogram and histLUT Enable the mdp clock for histogram and histogram LUT to ensure that the clock remains enabled when they are being accessed. Change-Id: Ic744f2ee96b64442f23ba19aa1c38552c0dad83a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 61832135cad75ef082a905fedb30d835c85611b5 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 13 17:41:46 2012 +0530 msm_fb: Return pan_display call on Vsync interrupt Till now, the pan_display call returns on DMA_P_DONE interrupt. For command mode panels, the DMA transfer starts only after the DMA engine receives a TE signal from the panel. Hence, return pan_display ioctl on vsync interrupt to improve performance. We still wait if the previous DMA transfer is not finished at the beginning of next pan_display. Change-Id: Ie92bc000a5842aa02a77a08b6bafdc8472bbebbd Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit f6044334ee63fe9553f5cce8aa65c172c88e1175 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Sep 20 16:57:51 2012 +0530 msm_fb: configure LM1 and LM2 CSC coefficients with RGB2YUV for WFD 1) Initialise the LM1 and LM2 coefficients with RGB2YUV as WFD expects these coefficients to be programmed. 2) LM2 is available from MDP ver 4.3, fix conditions accordingly Change-Id: Ifad2be0fb5c3c96fa1515e114097a87d250fd62a Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit ce328861aa1f4fa489e9abfc9d1e02b13af2ba47 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 25 18:52:00 2012 -0700 video: msm_fb: Ensure backlight is scaled atomically Ensure that when backlight scaling ratio or backlight level is being changed that the operation execute atomically. This prevents a backlight level change from being overwritten when it interrupts a backlight scale update. CRs-Fixed: 404017 Change-Id: I708513cfcec558c5d65f21f189dd52331fdf0f4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0f523bdb25b2af4f09e79eb58d3daee3775851d2 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 11:14:03 2012 -0400 msm: display: pp: histogram collection for mdss MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support Only read the histogram data when there is a new display commit Only generate the next histogram collection when there is a display commit Cache the histogram data in order to respond quickly Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit bf5fb4c17c220a91160e48a2ca65e709c0a35511 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Aug 19 14:41:01 2012 -0400 msm: display: pp: gamut mapping support Support gamut mapping via pp ioctl with logical display id. Allow changing processing order with pcc. Change-Id: Ia37afbe40b73c08fd8760bae84307889280368ce Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 7fb85777173a3048765a52fc1ec4a3178c1fb2a9 Author: Ken Zhang <kenz@codeaurora.org> Date: Sat Aug 18 14:51:33 2012 -0400 msm: display: pp: backend dithering support Dithering configuration from PP ioctl with logical display id for mdss. Change-Id: I4c8409b253dc1ab5625f342f45f61246d538691b Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit b9498c688a4a20d707233dda585a96b8e3681666 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 17 14:20:25 2012 -0400 msm: display: pp: enhance hist lut support Support histogram enhancement lut control for logical display for mdss. Change-Id: I915e1f1ca0ba1c53b8ce5b627a8d10cc15ebbf76 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 16e43d6c628bbfb14ba3a7e5024f60b9d216f9f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 22 17:14:19 2012 -0400 msm: display: postprocessing: argc lut support Area reduction gamma correction support for mdss. Support logical display id via PP ioctl for argc setting Change-Id: I8d1dedc016809f73de0605ea68e6a1bfda580648 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 824758e1c1d780014b4d404be9d7f85cb414fb46 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 15 11:02:21 2012 -0400 msm: display postprocessing:igc lut support Inverse gammam correction display support for 8974 Use logical display id via PP ioctl Change-Id: I9f1bec84a401f079690ecfd622a2e5f0f8307ff6 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit ea6a09511a1d812f3b0f836dac9193900ccb9a3d Author: Ken Zhang <kenz@codeaurora.org> Date: Tue Aug 14 15:11:39 2012 -0400 msm: display: pcc configuration Enable 8974 polynomial color correction support Cache the setting via logical display id, config hardware in the next display commit Change-Id: I11e3d2036c2ab8de881d394d53c6098932f810b5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit ad6db3d66cb2f826f4f223898012d7d7aa6ca645 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Sep 26 17:57:34 2012 -0700 msm_fb: mdss: Remove spinlocks for set_rate and clk_enable APIs The clk_set_rate APIs should not be called in atomic context. clk_enable APIs doesn't need to be in atomic context. Add code to remove spinlocks for these clock APIs. Change-Id: If5e543135bda681ee8ddae35ab91288f535a9e9a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit aaacec6420069ba21992ddd39db991b3717d6436 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Sep 20 16:59:10 2012 -0700 msm_fb: Fix display corruption with continuous splash screen feature During boot up, we observe random lines on screen between the splash_screen image and the android animation. MDP clocks were turned off during bootup. Fix this issue by enabling the clocks when this feature is enabled. Add check to see that the video mode engine is not busy before turning off the dsi controller to avoid any underruns. CRs-Fixed: 399634 Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b05e8b1ec779ab5cc94f0847a99baa4d97eb4e10 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 13:16:05 2012 -0700 msm_fb: display: turn vsync irq off at suspend Turn off vsycn irq at suspend to prevent vsync irq firing before vsycn enabled ioctl called at resume. Change-Id: I2428cdeb5cf7008e50f6d8dabfad52416db2fff7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 911b4b702a63fbd241863966cad45909e40e4665 Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed Sep 12 14:42:50 2012 -0700 ion: change ion kernel map function to not take flags argument Buffer flags are going to be specified at allocation time rather than map time. This removes the flags argument from the ion kernel map function. Change-Id: I91589ca7b1ab142bb5ac8e6b0f4c06fa1305f23a Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 7d72bad55a0e03392d81eee77a9a8c9df6b73a9a Author: Hanumant Singh <hanumant@codeaurora.org> Date: Wed Aug 29 18:39:44 2012 -0700 ion: Port heap mask change to ion Heap mask field passes as argument at allocation time to specify ion heap. Change-Id: I8881dfc491dc0f8f70581ad97b35756a6a33dd6d Signed-off-by: Hanumant Singh <hanumant@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 5e0fcdbf8b22bc9637413de9cd0592c159dd4e8f Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Sep 12 11:10:26 2012 +0530 msm_fb: Make Vsync IOCTL during disable sequence as NO WAIT Change to make the vsync IOCTL no wait during the disable sequence. This is to increase the performance. Handle the synchronization of vsync interrupt using state variables in drivers from now. Change-Id: Ia5ec14493f233a95f21d01ea627200a6c278239f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 57e2bed7fdf998d9dcb1a3bea98f43d75c7cf3a9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Sep 24 11:39:29 2012 +0530 msm_fb: display: Add support for vsync driven composition on 7x30 This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time for 7x30. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: I2acb83f871f16c2278dc10cb958580a2826efe70 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3545573720822ce97ec37586f10fdf74a6d4f090 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Sep 24 22:07:47 2012 +0530 msm_fb : display : Block RGB downscale in MDP 4.0 and 4.1 Downscale is not allowed on RGB pipes in MDP 4.0 and 4.1. Hence, fail the OVERLAY_SET ioctl for such configurations. Change-Id: Ia18de77e78b84ec5f10a03fe9b48ef0821222e84 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit b54b6d4974f0a7c42e66502fca3644fe3ae406be Author: Ken Zhang <kenz@codeaurora.org> Date: Mon Aug 13 14:49:52 2012 -0400 msm: display: csc configuration support via overlay Implement overlay pp csc configuration for mdss Reset the play cnt when MSMFB_OVERLAY_SET is called Change-Id: Ice2e3700a275c5375ee4939bd3484b7ee5def898 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 08065c0bd558140a26622f9bb15c8649a8333723 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 15:48:31 2012 -0700 msm: mdss: implement early suspend api Use early suspend API for suspend/resume to allow display more room to turn panel off/on before system goes to suspend mode. Change-Id: I70b8b1055c30b940eda49ebad0db341259e903b4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e977b389d047b630be6178b6f2588dc339498b2d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 16:28:16 2012 -0700 msm: mdss: cleanup suspend/resume logic Remove references to global variable by using driver data to access mdss global data. Change-Id: Icaedf0fffe22b6d375df8f87f555b415101c6628 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1121a7fab5548575f1a30388c5b1b0f5b773eb42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 17 18:52:56 2012 -0700 msm: mdss: fix vsync ctrl logic during suspend/resume Sometimes vsync ctrl ioctl can happen before panel is on after resume, in this case driver needs to remember state of vsync ctrl and apply after resume. Change-Id: Ia583bd9e3a858c5972623eae0512fa27da8452e1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 01b0d13ad1071385bb938ee69d268f799b7de6f5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:26:35 2012 -0700 msm: mdss: fix mdp suspend/resume sequence Free overlays used before panel off sequence to ensure source surface pipes are properly detached from layer mixer. Change-Id: I712bfc1961607e09dcb976e4888db1885de09871 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4a1fb9ce546b946a184601cbeb3a278dd351a0df Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:38:36 2012 -0700 msm_fb: mdss: Fix suspend/resume for panel driver Avoid disabling video mode while sending OFF commands. Add delay between the display reset line toggle mechanism and GPIO display enable API for proper reset of the panel. Modify the PHY regulator control configuration sequence for proper reset of the physical layer. Change-Id: I2c890d52d773faab6020267121ea4557a59bd108 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 37e723cfad97be59d5a28e59220f9dcafe24ce32 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Sep 5 15:43:02 2012 -0700 msm_fb: display: wake up system around vsync To avoid frame drops due to power collapse, wake up cpu right before vsync. Change-Id: I63385eb329ae5e74cbac5256823fd3a213e0a0e1 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 42f4dae926438b40ac3ba1a48f54c1fad31dc125 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 26 22:31:06 2012 +0530 msm_fb: Reduce the display wake up time for NT35510 panel Reduce the display wake up time during resume by reducing the sleep values of the DCS commands during the panel initialization sequence for NT35510 panel. CRs-fixed: 392321 Change-Id: I6b55e48582a97adc451105802f5b2ca826767954 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 7e73b56cb67779bc700938acbb226dd99d361882 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 11:26:57 2012 -0700 msm_fb: display: free base layer pipe at adb stop Base layer pipe need to be freed at adb stop so that same pipe can be allocated at adb start. CRs-fixed: 390644 Change-Id: I948bb27687cfe1c96cc3b071b7bb9bb84b2c52c6 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e5f3b4ff8a4a0d980e02fa38c2b70fec7095e79 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Sep 10 09:40:44 2012 -0700 video: msm: Ensure idle state before enabling histogram Disable interrupt, set state flags to false, cancel histogram collection, and clear the workqueue before attempting to enable the histogram. This guarantees that this is the only configuration of the histogram running. Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 2dd5234c094157bf77781b8646ac9ad114f819b0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 6 12:03:29 2012 -0700 video: msm: Defer histogram reset to workqueue Currently, when an underrun occurs, a reset request is sent to the histogram hardware. This has been observed to cause a hang in the histogram collection cycle. The fix for this hang is to instead rely on the existing checks for histogram validity in the histgram read worker. When the underrun occurs, the histogram is invalidated, which in turn causes the histogram read worker to reset the histogram collection when it attempts to read its contents. Change-Id: I66d33ddedef76fdcb6c4a3d8095c0e8ca695e33d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 9218ac41cc42b55de227d7b967e15395feff89ca Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Sep 17 15:33:10 2012 -0700 msm_fb: MHL: add fwd declarations If MHL feature is enabled from kernel config compiler throws errors. This is due to the re-ordering of the function definition in some of the earlier patches. Need forward declarations of a few functions to fix compilation issues. Change-Id: I486b3d6efc33f6557b5ef301bd7037867bb8c562 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1026832c51cbadeea9a717fa20fb42b6a7c5661f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Aug 29 19:22:57 2012 -0700 video: msm: Dynamically toggle histogram interrupt Make histogram enable/disable functions also enable/disable the histogram "interrupt enabled" bit on the MDP enabled interrupts register. CRs-Fixed: 398556 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Change-Id: I56f811e88cf3fd44ae0a2df8a6e5de32ba9a0c1c commit bc79d49dacc9e416c7f9ea98fcff21eec3050fcc Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Fri Sep 14 14:44:30 2012 -0700 msm: mdss: Return correct error value Return a proper value rather than 0 everytime. Change-Id: I0065a420c65e4800d114be4698618d66de89d105 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 8914c1ca05e90d80432c104a509eab129038de1c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 12 17:32:21 2012 -0700 msm: mdss: increase bus scaling factor to improve performance Fix performance issues seen with different use cases such as HDMI and MDP composition by increasing bus scaling factor used. CRs-Fixed: 398503 Change-Id: I2391f81c0cba1fa7f5849ce55ec89762765d7575 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ad3200279e62eff01fd1bb9136cc9c0d11e10380 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 23 18:26:09 2012 -0700 msm: display: Add DSI clock control for MDP GDHS power collapse Enable DSI clock and regulator before enabling/disabling power collapse for MDP GDHS. Change-Id: I9effb5b4e9ca8033c51085260c8fb9f32c422dd3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Thu Sep 6 10:33:12 2012 -0700 msm: display: include msm-specific ion header All msm_ion clients need to use <linux/msm_ion.h> instead of <linux/ion.h> Change-Id: Id079277f1f5688f08c8dec7f20308315ab46a081 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit d635cad054f3860f8ca13a8cf79f3e46f8892ce6 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 3 15:52:06 2012 +0530 msm_fb: display: Copy splash image to kernel memory The bootloader memory from which the splashscreen is shown gets reclaimed before frame update happens from framework. Hence, copy the splash image to a local buffer as soon as display is initialized. This will ensure proper continuous splashscreen functionality. CRs-Fixed: 378721 Change-Id: I55a7b97eeced56d2f108d34998d58966610c4305 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 77ce0197185ba16c4cf6c2745065f339aa32ef46 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 10 11:27:19 2012 -0400 mdss: display: postprocessing: picture adjustment Support picture adjustment(hue, sat) for 8974 Use logical block id as input. Apply configuration at next display commit. Change-Id: I0e35e50aecdd346ec91373d0c304e21185f28502 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit edd57ca52bd12fa42865557bc5cfcc70cbbb8e6f Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Sep 11 15:29:10 2012 -0700 msm_fb: display: Update mdp clocks based on perf patch MDP clock was not getting updated to the correct values causing underrun issues. Change-Id: I4902ede1a8dda7408384261ca352e1ca1057a69c Crs-Fixed: 395054, 395166 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7c31ee7933fff437acfaa69cf443c81638a495de Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 17:20:36 2012 -0700 msm_fb: display: add wait after overlay kickoff MDP writeback overlay kick off needs to be a blocking call to avoid WFD tearing issues. Change-Id: I03ce16b1e11c458bc8602880f22f1aed536a2e5a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a61ad91ac33d5ec756a39201ed4350f4af55f701 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 30 16:21:32 2012 -0700 msm_fb: display: add blt condition check at video/lcdc off Blt mode may be enabled during system suspend. Need to make sure blt overlay done before turn off video/lcdc timig generator. Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30e707acaba6cac235c86b84f9735ae1aa94b5cb Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Sep 6 16:48:04 2012 -0700 msm: mdss: Move HDMI Tx controller's regulator get to probe Move HDMI Tx controller's regulator get to probe function in order to support deferred probe in case regulator in interest is not available or not successfully probed before HDMI Tx driver. Change-Id: If0a5cf97a86c39fcdf649997c18121cc500f08a8 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Aug 22 15:01:15 2012 +0530 msm_fb: display: Program source address registers correctly Scale filter FIR uses the adjacent pixels as part of the processing. Source address registers should be program such that they point to the first valid pixel so that non-ROI pixels are ignored. This is done by making source x,y offsets to zero and adding the computed offset to source address. CRs-Fixed: 380020 Change-Id: I998fdd46f39dc67f32c422ec209da59d1add2e95 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit f9bc16bf6dcb8beb7d5d6405ee5dc767e6decdff Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Aug 21 15:15:13 2012 +0530 msm_fb : Add option to enable/disable mixer commit Adds support to enable or disable mixer commit during pipe staging operations. Depending on the current activity, this selection can be made. Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 8c13d2615b1c608f941137166efb649353cc0bdb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 25 17:02:52 2012 +0530 msm_fb: Update backlight level on resume after first pan display Use shared workqueue to delay the update of backlight after a first valid frame is displayed on the panel. This avoids any transients being displayed during resume. CRs-fixed: 361002 Change-Id: Ia2c2e39aae62e9ddfebe3a26fb4dbc969d0892c2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c3c52ddda318fcf7e15bd0674c2ba1903fbfa49f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:32:45 2012 -0700 msm_fb: mdss: DSI driver code clean-up Remove mmss_cc base variable. This is no more needed. Create new controller platform data. Move the needed variables as part of the controller pdata structure. Change-Id: Ic5c72911dbfe889e1f8ff6992d438b6631796507 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 00baebf181e4dc29d128a2fd16422333b81a8e43 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: display: Enable IOMMU for MDSS driver Implement all calls to iommu driver from MDSS driver to map all buffers to virtual address space instead of using physical addresses. Change-Id: Ia194bf53dd881e36c702bbe4c024b652ed34df13 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2fa3b134d43a6f9e47542fd25d288ed07205fa66 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 16:02:25 2012 -0700 msm: mdss: expose panel frame rate to user space Some framebuffer clients expect panel frame rate within reserved[4] member of framebuffer info. Change-Id: Ie74950366372af7211ef1c743f26657e89cb7283 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5cf85c06bed6b7bb416093555d347d9eb221f58e Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 19:32:52 2012 -0700 msm: display: fb blend setting via MSMFB_METADATA_SET ioctl MSMFB_METADATA_SET ioctl is added for the fb user to pass in additional infomation rather than using reserved fields. User can set pre-multiplied alpha for the frame buffer via this ioctl, overlay blend setting will take this into account. Change-Id: Ic2f6236d84691fb03174ec479874c6928489ea30 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit cbd2a940d95056c51f6cef0a1641a716c8ed292e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 29 10:46:31 2012 -0700 msm_fb: display: free iommu buffers for WFD Iommu buffers from overlay destinated for WFD (mixer2) are not freed after kickoff. This patch will free those iommu buffers. CRs-fixed: 394270 Change-Id: I6b58b5d1831e7c59c5107641b786730511803557 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b6843a3a56e60e73305c66369f8ad806353e22d Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Wed Aug 1 15:57:52 2012 -0700 msm_fb: display: Add timeout for waiting on update Content Adaptive BackLight userspace algo waits on UPDATE_NOTIFY to get the screen updates. When turning off CABL, this blocking ioctl causes the CABL threads to wait until next screen update, which may take indefinite time. Add timeout value to the wait_for_completion call, to make ioctl call blocking for at most timeout value. CRs-Fixed: 384026 Change-Id: I6715a36020c24ddd09823bd54d4321900429a6b9 Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org> commit f947731692cb9480b53edfb6008a9ab2965fda2a Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Aug 31 03:08:52 2012 -0700 msm-fb: display: double the lvds pixel clock for dual lvds Lower MDP clock causing the underrun issues on dtv boards. To arrive at correct mdp clock pixel clock needs to be doubled for LVDS DUAL lane panel case Change-Id: I202f0d16896f88090a9f8407e067a31cc47eb4ea Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 877932c6538689854e2b6a75ce24c8782fbe1fe0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Sep 7 16:22:31 2012 +0530 msm_fb: Return ioctl on vsync interrupt disable Before the vsync interrupt gets disabled, initialize the completion structure and then disable the interrupt. This enables the ioctl to return successfully in all the cases. Change-Id: I6a7c233f818a773d00497502213d1ecf8fe9dc24 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c5ac568e5050209ec2d2eb63995357cabfd43525 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 19:12:40 2012 +0530 msm_fb: Enable MIPI video mode interface on 8x25 EVB/SKU5 Change to enable MIPI video mode on EVB/SKU5. Initialize the need_wait variable to zero to make sure that during suspend, we wait for MIPI_CMD_DONE interrupt only when the command mode engine is busy. Change-Id: I61a9132a9a9343d136ddc70ce76d8682f9ecf7bc Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit eb868344503ed72b7a7a88913ab16250f934d9a2 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:17:46 2012 -0700 msm: mdss: Add EDID support for HDMI Tx driver Extended Display Identification Data, EDID, provides support to read HDMI sink's various capabilities like resolutions supported, HDCP compliance status, Audio format supported etc. Add support for this in HDMI Tx driver. Change-Id: Id9367a2f64557c385082bbd528afc24b54b98514 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e0a71b9705f4301c39e029f92c7e4c0ca3610f17 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:25:10 2012 -0700 msm: mdss: Add DDC support for HDMI Tx driver Display Data Channel, DDC, is responsible for transmitting EDID and HDCP information between HDMI sink and HDMI Tx controller. Add support for this in HDMI Tx driver. Change-Id: I58d10c61277d36425d89a2270f0ad0495ffd3a1f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 8bb5150587d79db7f60a5336f267666a7bf56bfd Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:14:17 2012 -0700 msm: mdss: Add power on/off support for HDMI TX driver Add support for HDMI panel power on and power off. Open and close of fb device associated with HDMI panel results in HDMI Tx's power on and power off respectively. Change-Id: I9becdffefe681ce104d631e798d196e23dae4995 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0b4ce9984ebbe740103568da1cc2db0d7648c4d9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:03:00 2012 -0700 msm: mdss: Add Hot Plug Detect support in HDMI TX driver Hot-plug-detect (HPD) circuitry is responsible for notifying HDMI sink's connect and disconnect events. Add support for this in HDMI Tx driver. Change-Id: I40fdc64007bffe063ce125ce2e819b06a49d0eb5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit d49fe89aa7eb042947a64f1d5b5f12f54d2c033b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 13:31:29 2012 -0700 msm_fb: display: fix division-by-zero bug Panel v_back_porch could be zero for virtual panels, so the check for zero is added to fix the bug. Change-Id: I6a29f3d8d771092bca2374cc9a1c11dd77ad569e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 108090e77d90ff15da5ef94dd72b7aa6f18b5e94 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 12:38:56 2012 +0530 msm_fb: Change refx100 value for NT35510 panel in command mode Change the refx100 value of NT35510 panel in command mode to bringup PVT command mode panel. Change-Id: I3e9a303a4f203bd7f2ca88f6cd2fe0b1134f8d65 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d6770da3eb24a8d617145526a7f04398bf44b328 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 8 19:35:57 2012 -0700 msm_fb: display: add support of mdp clocks controlled by vsync Mdp related clocks are controlled through vsync enable/disable ioctl from userspace frame work. Crs-fixed: 384482 Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ffe9cf9b1f49bcd8b140cef21c4655d1b69bb1f9 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 15 18:00:05 2012 -0700 msm_fb: display: add wait for overlay0 done Dcs command mode BLT involves both overlay0 done interrupt and dmap done interrupt. A transaction is start at kickoff and end with done interrupt. At some corner cases both overlay0 and dmap transaction need to be completed before kickoff of new transaction. Change-Id: I5a3cc6e8255acf2c61fc627d35f990182d226f63 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ac37f42a6428b4a1a8bc964ea17902ea41772ba4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: improve mdp buffers management Currently buffers are unmapped as soon as it's queued to MDP, however the buffer still belongs to MDP until a new buffer is pushed. Change current buffer managment to track of buffers currently being displayed and properly unmap buffers after a new buffer is received. Change-Id: I6932191fc787f6f5b673edfb690ce1317e283587 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f281368edca05e3171631b17c5767179bd0a77fc Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Aug 27 20:28:38 2012 -0700 msm_fb: MHL: Fix premature register access Until the information about the MHL feature through boot param percolates to the driver via probe we should refrain from accessing the registers or requesting irq. The init and probe functions are cleaned up with all the real initialization such as power, gpio and chip specific settings moving to probe functionality only if mhl is enabled from boot param. Change-Id: I68c0a2848493a7478f3046e439c42f8fb131f000 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e79dde6faab507c51994a8588bebd03dfc5fb57a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 24 16:23:06 2012 +0530 msm_fb: display: Fix blend configuration for MDP4.1 MDP4.1 blend operation registers are not double buffered and take effect as soon as they are configured. Configuring these registers at any place other than between dma and vsync produce flickers as new blend values would get applied to previous mixer configurations. Configure blend operation registers just after dma is over, before vsync. Change-Id: I377c11222f7a0cd77e98e90edec6e2e1dc0c17ca Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit e9d4bc826ca849b873f9e91bda68004aa7d78b25 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 22 10:36:46 2012 -0700 msm_fb: display: add mdp clk rate calculation for low vbp For the panels that have low v_back_porch, if h/w FIR scaling is used, during vbp time, mdp clk should be fast enough to output a line from 4 input lines. MDP rate equation for very small scaling, e.g. 1 or 2 pixels' upscaling or downscaling cannot cover this case, where underruns are seen on those panels. Change-Id: I4f35f98c2c1bc4ef04dfee193427bd3ff674945d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5d3e219fd4e44d67fb122b99745e5e4d4637257e Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Aug 24 17:43:31 2012 +0530 msm_fb: Keep LCDC timing generator enabled during boot up Keep the LCDC timing generator enabled during boot up on MDP 3.03 targets if continuous splash screen feature is enabled. Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5dcea9b4522d3bdc1a0fe38406881b264ce074b8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Aug 28 15:28:12 2012 -0700 msm_fb: display: fix the underrun issue when playing interlaced videos Interlaced videos require higher mdp clk rate and the current code sets mdp clk to max and return. However mdp clk calculation may still give a result higher than max mdp clk, for this case the result is kept and used later to enable blt mode to avoid underrun. Change-Id: I185d0d15e5b79e94561e790e41713cdb405f8bf4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit df6b645836bafcca027bd0820a477e86cf767823 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jul 30 20:12:34 2012 +0530 msm_fb: hdmi: Soft debouncing logic improvements Currently, HPD(Hot Plug Detection, a module used for detecting HDMI cable connection) soft debouncing logic implements around 1 sec mechanism to stabilize HPD event detection. In case of fast HPD connect/disconnect, it is missing a real HPD event. This change implements a new debouncing logic in driver which will make sure the first real HPD event is correctly processed and at the end of debouncing processing, if there is a change in HPD state, the changed state is also processed. This way we always process the change of HPD states. CRs-Fixed: 384513 Change-Id: I02d9814e4a55b7eec11a8e0d134c9ed9b5747422 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 26d04f92047ce213301596f167d84fbc05019f7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Sun Aug 26 00:57:04 2012 -0700 msm: mdss: Correct HDMI interface polarity for different resolutions. For HDMI, hsync and vsync polarity for resolution height greater than or equal to 720 lines is active high. And for resolution height less than 720 lines is active low. Program the these settings correctly for mdp's hdmi interface. Change-Id: I1a8889662f55676c13dfa8b7172bf7bcf7351cf5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c678e139570f7c1c4560c19f284926b6149e7bbf Author: Mayank Chopra <makchopra@codeaurora.org> Date: Sat Mar 3 06:51:20 2012 +0530 msm_fb: display: Add pseudo-planar 422 H1V2 support in the MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation. Add changes to support MDP_Y_CRCB_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: I8083bf44f9e2addf9e8732268147c1c3f6c0e2af Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 3c34bf24b6ba56d4a2633043d8be0c84d0f449f8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Aug 25 18:07:27 2012 +0530 msm_fb: Handle vsync interrupt properly on MDP 3.03 targets Handle enabling/disabling the vsync interrupt and mdp clock enabling/disabling in a better way on MDP 3.03 targets. This will avoid target crashes due to unclocked register access. CRs-fixed: 388751 Change-Id: I5c4a409772464ce7d06869374dcba5ad7e335955 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 330c0bf5f090f05395f0ae64994a6273853aa9e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 14:15:33 2012 -0700 msm: mdss: add color format for venus core Venus output format expects luma and chroma components to be aligned to 32 bytes, add new color format to support this type of input. Change-Id: I1fc9a61a0c8cfa8244460105fdab02d019d31556 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 248948310712bf710ba097a1d1ef8c840f17169f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 19:34:43 2012 -0700 msm: mdss: implement vsync ctrl and events Allow users to enable vsync events to be sent as uevents to userspace applications. This allows applications to listen for and align composition to hardware vsync. Change-Id: Ice480659f8c2adda3b5fe3f2d5bcfb9bf779933c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7e1ec9ab4a865e57372d3536991770f1773af6fb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 24 15:53:35 2012 -0700 msm: mdss: request bus bandwidth before panel on Panel on sequence requires access to bus, make sure bus clock is enabled before panel on by requesting bandwidth for panel commands. Change-Id: I2f92e81b20dba7875a8b1160d14e8fa1895c8f15 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c40f9f9bc1e83ce521759f03b6fd01d9699cd39f Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Aug 13 17:33:26 2012 +0530 msm_fb: Retain CSC values across suspend/resume sequence CSC values pertaining to various H/W blocks are stored in a global structure and will be re-applied during resume sequence. CRs-Fixed: 376159 Change-Id: Ieb151185efd106041e28feedf4fa271ae4ba2666 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 9ed0ef8c7d126938c453aa52c7b69ac869613cc6 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:12:03 2012 -0700 msm: mdss: Add support for HDMI Tx driver This patch adds the HDMI Tx driver in mdss domain. It uses device tree framework to get the platform data and then registers this device as dtv panel to mdss frame buffer domain. Change-Id: I55534919bacea5b044c1da5d44dda8db496e1528 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 907b7e097f61fb5dfeacd23dfddb75b92737b1b2 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Aug 8 18:47:12 2012 -0700 msm_fb: MHL: MSC cmd schedule to prevent overload MSC commands to be sent over the CBUS line need to be scheduled appropriately from the ISR. Reduce delay in any processing within the ISR. Schedule each command over a queue and handle them with a worker thread. Change-Id: I6cbde8ce9e4f8c69b7f0a40bcf12c5d3930d0b8b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f7110b8272c8b46c732f0cb9c9290ca9e7f688c3 Author: Manoj Rao <manojraj@codeaurora.org> Date: Sun Jul 29 22:29:02 2012 -0700 msm_fb: MHL: MSC, RCP/RAP feature implementation MHL implementation of handling CBUS interrupts to enable and handle MSC translation control packets. This change also includes implementation of RCP/RAP protocols with place holders in MHL driver. Change-Id: Icfc31ee1cf71a57cb9b3733d068ea4478b6c4e90 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 83fba4a6a627923fb358fd445a96df5cf9eacbe6 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 16 17:02:02 2012 -0700 msm_fb: display: add mutex on overlay_play to fix iommu page fault An iommu page fault may heppen When a pipe_commit is executed in between of frame dropped and pipe_queue during overlay play. An mutex is necessary to mutual exclusive between pipe_commit and overlay_play. Change-Id: I736e821c6c648a6ebd435303a1906a40e9b75791 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 79e294bf767b12470d08b4300b286403cb40aaa9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 23 19:26:56 2012 -0700 msm: mdss: fix hang when down scaling video to more than half its size When down scaling video more than twice, PCMN filter scaling should be enabled for all components to avoid MDP errors which lead to hang or underrun on screen. Change-Id: I237bc3a16e4916c9270382f55ecae21b46743a5b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e5612f210482d39d41966ebe003bc924f079db2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Aug 27 11:07:32 2012 +0530 msm_fb: hdmi: Correct checksum value This change writes the checksum value to registers after doing all the calculations so that the correct checksum value is transmitted. CRs-Fixed: 388272 Change-Id: Ia0543e458d5a11b148bd29e0d57ae355a051b2a9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bef3d659b9f7538c4a208fe4b29f93d1a9795f76 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Aug 12 09:17:08 2012 -0700 msm_fb: display: alloc/free writeback buffer done at do_blt() To avoid double freeing writeback at end of blt mode, let both alloc and free writeback buffer done at do_blt(). Change-Id: Ida5d24589c19be8f6f655eca6add00badca356b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 580e37bbcb2334315cb9535cd4d1e30147f1142f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Aug 2 17:38:12 2012 -0700 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item HDCP authentication should be kicked off as a scheduled work item so as to ensure that MDP is already configured and frames are being transmitted over the HDMI channel prior to the start of the HDCP authentication procedure. Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 73c7b2f7e9b25a3173aa00a5ea3d9d73484a5cf4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Aug 20 14:49:28 2012 -0700 msm_fb: HDMI: Driver changes to support MHL boot param Add necessary driver changes to support enabling MHL using a boot parameter. The MHL driver will now only be used if it is enabled using the boot parameter. If enabled, the default video resolution and available EDID modes will be set accordingly. Change-Id: I9c07a4bdd07ce1d9120296efb143e987390fa0a2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ea0dcd3f4ad4fd3142bf081795c17d05c42957a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 20 22:21:50 2012 -0700 msm: mdss: refactor overlay parameters validation Some checks done on parameters don't apply for rotation only mode where rotation is not limited by the bounds of panel resolution. Update overlay checks to perform correct validation depending on request type. Change-Id: Ic0cf9863231300f7190dd118b78fa753f77f217f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d2c48e228631fefef2e5a2d9406447358d910f9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 10 22:53:40 2012 -0700 msm: mdss: Add support to make use of interrupt data pointer in an isr Add support to make use of interrupt data pointer during an isr such that mdss panel devices retrieve and use their private data to service an interrupt rather than using global variables. Change-Id: I51a6b1c2814a23b3297556e914ce9601ef266533 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit f502022c101dc1c6d6af35d112be76a88c874a3f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jul 6 18:20:25 2012 -0700 msm: mdss: fix null dereference when using hardware cursor Null dereference kernel panic is seen when using hardware cursor because buffer for cursor is not allocated before using hardware cursor API. Allocate buffer once when API is first called to ensure buffer is available to hold cursor image. Change-Id: I2250c4dd93e54fa4e7122c2465fbaf1deef0fa1e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 15177f038fc05e5de18c437fa8dce63327b42d17 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Aug 14 09:16:37 2012 -0700 msm_fb: display: fix mdp crash during overlay unset Check real_pipe address before refer to it. Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9bfdbf0473204b0267dc86ac4b8cc351194c3ee2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:31:30 2012 -0700 msm_fb: mdss: Add DSI physical layer settings Add support for dsi clocks. Add support for DSI PLL configurations. Add strength, regulator and control settings for the DSI physical layer. Change-Id: I04a0eec869e40b4813cf5187e8eeef63ae2f5a1f Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68b9675c9c5d889e3fcc550fa39fd23ea960ceb0 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:23:11 2012 -0700 msm_fb: mdss: Add support for Backlight control and panel gpios Add code to support the WLED client interface to control backlight levels using led_trigger mechanism. Add support for msm gpio that maps to the lcd_enable line for the panel. Add support for pmic gpio that is mapped to the display reset line. Change-Id: Ie89692f1c0a38d7878271d4a91122d61fbba8c1b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 90e71d1da087b5690eee35e5e88d8faa689c5f8e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 22:57:11 2012 -0700 msm_fb: mdss: Add support for DSI specific regulators Add ldo2, ldo12 and ldo22 regulator support in dsi driver. Change-Id: Ia8e9907e87a293588688e7a47c74fecf155382af Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit d7784e051a508a667a13d431b7d834725cef0379 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Aug 21 19:16:27 2012 -0700 msm_fb: display: Removing clk_set_rate in atomic context clk_set_rate was getting called in an atomic context. This change is needed to comply with Phase 3 clock API's. Change-Id: If7fa9d624b07789803177da55e6c84c3686a2bde Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9cbd41158a2aabc9bc675fd8473bc1ed64251e82 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:29:51 2012 -0700 msm_fb: display: add dcs command list for dsi command mode DSI dcs commands and mdp pixel stream share same dsi link. Add dcs command list to serialize sending dcs command and mdp pixel stream to avoid contention which may cause dsi controller to stall. Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 076901a58037d533840ce6b59c33796a96c2d56f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 10 14:31:37 2012 -0700 msm_fb: display: fix page fault during supend/resume There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d1fff85a0074e6caa8e6136f18644670d76d8f06 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:57:38 2012 -0700 msm: mdss: fix MDP hang when using 2 or more layers Hang is seen when 2 or more overlapping layers are used in MDP, this is caused by problem with VBIF dynamic clock gating. Bypass VBIF dynamic clock gating and force clocks on to avoid MDP hang. Change-Id: I369d036aa059f79c48f3b2feec8ca2b0f49dd301 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 452289427cbf054e7830770333f663ec866ca61d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:19:18 2012 -0700 msm: mdss: add perf settings during hardware initialization Add MDSS initialization sequence, tuning for optimal performance. Change-Id: Icd44abf2707d74bbf29a8d095184067ae3a420d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 21c74c4c8bda9a1d62c052f6b93355de6ce935fa Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Aug 21 21:04:20 2012 -0700 msm: mdss: refactor mdp driver probe Remove references to global variables, remove untested support for board file in favor of device tree. Change-Id: If97536116f5b4ea64ade5938d713572c10415bfe Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 963bdc732baffeb24acc29d6e7e96460bc12ffdc Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:56:24 2012 -0700 msm: mdss: fix irq getting disabled when running concurrent displays Add check to make sure there are no other active interrupts before disabling MDP IRQ to avoid disable of interrupts. Change-Id: Ic2bb9398dfa67d2b210f988de6648d49fd8336ac Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d559ef1c0cfd13d3bef877692babab65a278bba1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jul 12 20:16:14 2012 -0700 msm: mdss: refactor mdss color formats Add missing color formats and reorganize color formats to have better code reuse and make it easy to add new formats if required. Change-Id: Ic7c6bb6f35a9c282d9ef99bd5e1d18b0b8033971 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 114c07229fc6f166e0e14d6f6f5e601e192be8f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 15:47:06 2012 -0700 msm: mdss: use framebuffer line length as base layer stride Adreno graphics core expects framebuffer to be aligned to 32 bytes, this alignment is observed in framebuffer and needs to be used for base layer. If not followed stride corruption can be seen for frames rendered by Adreno GPU. Change-Id: Iea5e729dc4e4613bd7270d7bcf616cff6377109a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ae341d162288d796e0d205897df8d010e059c8d6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 6 11:22:46 2012 -0700 msm: mdss: fix suspend coming to MDP before panel drivers If suspend event is received by MDP before panels, MDP needs to ensure other panels are off before turning MDP clocks off. Remove handlers from framebuffer driver and handle all suspend logic within MDP driver to handle this scenario. Change-Id: Idcda2dd29b28a9993edca78b7e0778985e44b664 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 05bb0b78d6eb80dfe1339f54fa24a4cec7529353 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 8 18:12:43 2012 -0700 msm: mdss: improve clock and bus scaling logic Current clock logic only considers panel pixel clock to calculate mdp clock speed, MDP clock speed should also consider other factors such as surface scaling. Bus scaling should also consider surface scaling factor. Update logic to consider these new factors and perform these performance updates together. Change-Id: If274a7f40f496e1a730e1d0e8d7c35fa4384a832 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a5a987a43f8a24592e0dcdd387dd5ae668f03410 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:46:01 2012 -0700 msm: mdss: allocate framebuffer memory from ion pool When panel size is increased dma_alloc_coherent is not able to find a chunk of contiguous memory big enough to hold framebuffer, this causes framebuffer initialization to fail. Allocate buffer from ion pool which has reserved contiguous memory at earlier stage. Change-Id: Ibf7e3f7fc2c7ad991d69c106bbb6a9dd4c7f0e79 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 67ddb9b38b1793c297ff431ef9f650f355c4abf2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 14 19:00:22 2012 -0700 video: msm: Move histogram disable to before panel off Histogram expects the display to be on while running, thus moving its disable call to before disabling the panel timing generator ensures this assertion. Change-Id: I308b3e0c24f0111fb8549d0a0ae025910d649b75 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41b206d0792724c3ee2e1d881dcaf6025cc200a8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 15:25:44 2012 -0700 msm_fb: display: commit mdp baselayer pipe When in resume or boot time, baselayer pipes need to be committed for mdp to play, otherwize underruns and blue screens are seen. The previous pipe stage up func has this commit which is removed now, so the commit calls have to be added for the cases where base pipe is initialized. Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 496f928dd8cdd2b1b554c379d9336e2e902e0540 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 17:41:34 2012 -0700 msm_fb: display: change implementation of updating mdp_clk and blt mode Currently mdp clk and bw requests are predefined in a 4-entry table passed from the board file, and the logic to decide which level to use is mainly based on source resolution. This patch is intended to address several issues with this approach. One major issue is clk and bandwidth depends on seperate things, and need to be considered seperately. e.g. with mdp composition of multiple pipes, bw request may be high but clk requirement may still be low. The current approach that binds these two things together causes inefficiency of power. Another major issue is that there is no logic to calculate mdp clk requirement of a single pipe based upon panel clk and downscale parameters. Further the worst case of mdp clk should be determined by all pipe usage. Without proper logic, many underrun have been experienced, and blt mode may not be enalbed properly. Also mdp_clk or blt mode update must be on right timing especially between these two pathes: overlay play and pan display. In the situations of performance from high to low or from low to high clk and blt must be handled properly to avoid underruns. In a summary, to support many different panels and targets and complicated mdp pipe usage(mdp composition), mdp driver related to clk and bw needs to be implemented differently. This patch is to seperate clk and bw, and maily to deal with mdp clk and blt. Later increasing granuity of bw will be added. Change-Id: I678fbf86d6997ed7b602ce81cf2e0fff6164d129 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit db0fb308df4830ce3586618c62e77fc157bb9e4d Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 10:25:22 2012 -0700 msm_fb: display: Set timing generator after register flush Timing generator was getting started before the register flush. Stale values were sometimes causing IOMMU page faults on bootup. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Ia671c3603e383af94197a23a8e5e5f32274a9978 commit 36898359d3e8c21b8fa45ce24d3fe472a3813d4b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Aug 11 17:33:04 2012 -0700 msm: mdss: fix incorrect programming of timing generator setting Fix typo in code which is causing incorrect setting of vertical front porch on timing generator settings and incorrect output to panel. Change-Id: I4de61209443fcb284b7d4064a2039b5f546935d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34e216d7db0466fef4b9114ec18cf684275607a3 Author: Lei Zhou <leizhou@codeaurora.org> Date: Wed Jul 25 12:52:13 2012 -0400 msm_fb: display: Correct LVDS bitmap setting In case ASIC 1.1 is used on 8064 platform, LVDS bit mapping misalignment is fixed and no remapping is needed. LVDS bit mapping should comply with VESA format to get correct panel display. Data line #3's bit mapping should be coded in this sequence: DE + VS + HS + .... Change the original codes to go with this sequence. Change-Id: Iaebcfcea9c52207e16bac54ec37dc63e97286ff4 Signed-off-by: Lei Zhou <leizhou@codeaurora.org> commit 8f0326e19752f9b2b083a433621d3581f4e9a9da Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 16:00:03 2012 -0700 msm_fb: display: add dmap waiting before turn off timing generator Wait for dmap done to turn off TG to avoid underruns before base pipe setup and after constant splash during boot time. Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 00c9a911ba43e3ddb4ea6ea1c843dc7101b3b1ab Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:35:16 2012 -0700 msm_fb: display: add stage commit before kickoff to WFD Since stage commit had been splited out of stage up fucnction, it needed to be called to stage pipes into mixer befroe kickoff mixer. Add this function into overlay writeback for WFD. Change-Id: I11e4486d92b89a15e58531033d474b3137b5935a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2a811f2a333ca0507eb98c35831af463f43fb011 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 17 16:54:28 2012 -0700 msm_fb: Display: Fix Dithering issue for rgb565 format Using RGB888 as source format and rgb565 as destination pixel format, will cause image corruption on the display. Fix this issue by setting the destination format as RGB888 in MDP and DSI controller pixel format as RGB565 for DSI specific panels. CRs-Fixed: 377484 Change-Id: If58976ee9cd4825efb39437170e54796fa2213e0 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 3c5ae1f883a8b6a7812d936c5f7e5bb4d0d3142b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Aug 6 19:43:42 2012 +0530 msm_fb: display: Update mdp clock counter for unsuccessful probes If a panel probe does not succeed, call mdp_clk_ctrl to maintain mdp_clk_cnt counter else mismatch in counter results in mdp clock to never go off in cases like suspend-resume. CRs-Fixed: 385560 Change-Id: I4ca54b051af98e823dc7f3ff7b9bcb960532c7e8 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit a28d1bb434e8505630fc5d03383a0ed6d4565885 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jul 29 08:56:58 2012 -0700 msm_fb: display: Add BLT support to dsi command mode panel At run time, mdp BLT (writeback) mode is enabled and disabled base on performance level to avoid mdp underrun. Move BLT enabled/disabled logic to pan display so that enabled/disable is done per commit instead of per queue. Since all panels are shared same logic, dsi video mode and lcdc panel BLT logic have been changed accordingly. Change-Id: I6e04bf0f7bf1c13634e19b18d8ac4368affbc4d8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1c15029f8551ca8f5ffa57973c4eabc471177333 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:19:11 2012 -0700 msm_fb: display: retrieve correct base layer pipe Base layer pipe is cloned and cached at satge array. Retrive the real base layer pipe before used it. Change-Id: I6fc606559684156348a57b500083ed4089fc71b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit df5e3279961b1f43a38ba50f787d785a81ed1e36 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 3 13:47:04 2012 -0700 msm_fb: display: free dtv iommu buffer Free iommu buffer after pipe is committed to hardware. Change-Id: I00506d6fd55d99fec7921c02953fd755a7536d3e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1bb4edf9242b0397975636a4442318713a53b5e6 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Jul 24 13:34:23 2012 -0700 video: msm_fb: Increase display timeout to 2 seconds One second time out for no frame update, as in current implementation, does not allow CABL to reach minimum backlight level possible because histograms dont get generated after one second. So increase time out period to two seconds which seem to be sufficient for complete black to complete white and vice versa transitions. CRs-Fixed: 370804 Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5d7e5b30a98110dd138fddee58bc2a4f3ffdc715 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 9 12:23:53 2012 +0530 msm_fb: Allow MDP hardware init for continuous splashscreen MDP hw init is getting avoided for MDP3.x targets to support continuous splashscreen. This avoids complete initialization of MDP and hence usecases are failing. This change allows the hw init. Change-Id: Ib0304b54bda4a62a20716bde85fe94b2dcfe6824 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5cb07af87572d44d74a2586dfffd1ee537f64941 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 8 16:52:29 2012 -0700 msm_fb: display: clean pipe free or unlock calls A few places have unnecessary mutex unlock calls, and iommu pipe free depends on pipe parameters so move it before pipe is zeroed. Change-Id: I7ef39c66be611907b1b0c38675b15f8bc919d0c0 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b50f747dee6db1d9413fe46cba3d7c42263b21b2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Aug 4 17:04:18 2012 -0700 msm_fb: display: fix fake iommu buffer drop During pipe free, some content of pipe is backed up and then after pipe is zeroed out, the content get restored, in between there should be no actions to change the content since any change will be wiped out by the restore. Change-Id: Ia6da0162d1f9b614682e1fc36edab1db003b42ab Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4a652002fecbd5d984d01fbe2f32515f1a98ba91 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 17:38:07 2012 -0700 msm_fb: display: clear correct pending isr Clear correct pending isr during irq enable/disable to avoid unexpected side effects Change-Id: I5e7afc778cb8d5feda40f359ff2aae6493dc7cd2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 45301d3beb046201b8d4a54a2de274dabf1ebc46 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 2 13:27:49 2012 -0700 msm_fb: display: fix iommu leaking Fixed iommu map buffer dropped after overlay unset by saving origianl iommu list before zero out overlay pipe structure. Change-Id: I498dd4cf62e93f4571883fe20a0298e9fad4ccab Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e2b559d1a1694e10bb2aa47826db24a8baceda6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 7 13:23:23 2012 +0530 msm_fb: hdmi: Give proper buffer size Need to give proper buffer size for snprintf function calls. CRs-Fixed: 378343 Change-Id: Ia4df74c9871b26255572bb3ba226317c3076b5b6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f3b0c231a85ceef488440ab02fba9b15e468faa0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jul 27 20:46:06 2012 +0530 msm_fb: Add support for Vsync driven composition on MDP 3.03 targets Add support for vsync notification to user space using user events. This is to trigger frame composition based on Vsync. Change-Id: Ie94edfcdb5e540dd2f9a4a5df4bc3b7c4eb9041c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c58fcce723e54466b85981bafe7179b717ff2371 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Apr 23 20:39:17 2012 -0700 msm_fb: MDSS: Add DSI driver support for MDSS Add the dsi driver implementation for DSI version 3.0. Use the panel information retrieved from the 'dts' to configure the interface parameters. Add the device tree binding file to specify the basic configuration and panel features. Change-Id: I6a3677401454ad1d2bc29b0b845b0366eb7842b7 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 17182d61f4cfdc990706bcacfb1ab02f631fa154 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Aug 3 11:14:36 2012 +0530 msm_fb: display: vsync support for HDMI as primary When HDMI is primary, dtv is associated with node 0. In this case, DTV vsync and ctrl need to be called for node 0. CRs-Fixed: 383877 Change-Id: I425cddf453dd159259883e71f92c32918ca8e6c7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 378fed12479c91893acbc56124b7d69ab7bd8166 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:40:51 2012 -0700 msm_fb: display: enable sending uevent as default Enable sending vsync uevent as default so that uevent will be sent to usersapce frame work when first request recevied Change-Id: If72248007d68cba8fc814d449b46a58d842544ba Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 68446e5773292eea8a7bb33e7240cf7a67c0194c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 30 15:14:55 2012 -0700 msm_fb: display: add iommu mapping for mdp cursor buffer address The mdp h/w cursor buffer physical address needs to be mapped to an iommu virtual address when iommu domain is enabled. Change-Id: I73b4492fc4d63632117074136e4d908f5089eb93 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit dc5cfefb1bd5a30f8f1a611fca61cc9d7bc7bddc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 12 11:19:20 2012 -0700 msm_fb: display: set pipe src and dst size same in solid fill mode When a mdp pipe is in solid fill mode, the pipe outputs constant color and pipe itself does not fetch data from memory, so pipe src size should not matter. However, when src size is greater than dst size in solid mode which means downscaling, underrun happens. In this situation, setting src size to be same as dst size can remove underrun. CRs-fixed: 368478 Change-Id: Ie3ffc34486129cddcc872fe6e5317873db985b97 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit efb6c143ea951dab6dc72586100999d5b94c1c8d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 26 17:45:57 2012 -0700 msm_fb: display: no early suspend for writeback panel Writeback panel is not real physical panel and no power consumption concern, so it is removed from early suspend registration to avoid open fb2 error during suspend/resume. Change-Id: Ic61f69e069f2da8c73f2b5a13d103a2f20034d20 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 98b3a61592b34d0f39ed2dd00ef56b3ad575e0d2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 16 21:12:33 2012 -0700 msm_fb: display: remove mdp_lut_enable call to avoid hang issue Calling this function is not necessary in mdp overlay2 writeback driver. If called, it causes command mode primary hang. CRs-fixed: 365332 Change-Id: Id7054c3e56224035ec5939d91f8ce152b038e858 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit f15aa8bcd2f3b4333e8f010c8af6be3a16cfb882 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 3 11:52:31 2012 -0700 msm_fb: Increase the pixel clock range for DSI panels Increase the upper limit for the pixel clock that changed with the newer version of the DSI controller. CRs-Fixed: 380003 Change-Id: Ibbeaa478b4d12ae8f350be41f959d53a6ae6c923 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit cc3df57a918118a1b70a43921d0377fb2790fa1b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 18 18:28:42 2012 -0700 Revert "msm_fb: display: Register MDP fault handler with IOMMU driver." This reverts commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b. This enables the IOMMU page fault register dumps from default handler. Change-Id: Icddd2394f5aa337e1a4998247cc4e3201f752e84 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5f3807bcf41ae01b17a4140b010db6ed02899c18 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 4 00:06:20 2012 +0530 msm_fb: Add "Continuous Splash Screen" support for LCDC panel Add changes to support continuous splash screen on 8x25 SKU7 for LCDC panel. Delay the MDP hardware initialisation, keep LCDC timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Ied091b01ad2f26acdff73e3ffe158d844198923c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0a3699b368fd72a86fb293e37a420b9a34dbd5d0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 30 16:17:10 2012 +0530 msm_fb: Add support for "Continuous Splash Screen" on 8x25 EVB Add changes to support continuous splash screen on 8x25 for video and command mode panels. Delay the MDP hardware initialisation, keep video timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Id5e635ca986e66abb3cbf7c5a174f952ea489708 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 14baef8b22dee8e1d5019a9ac9c6e6cdb48fbbe5 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use YCrCb 420 as the output format for writeback Use YCrCb 420 (NV12) as the output format for writeback. For Wifi Display use case, NV12 is required as the encoder requires this as the output format. Change-Id: Ica8851073476b9c05f3b5b41232803c2d71f7a3e Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit dbb6355114354211a5bcc2ba9f120d601d7a4712 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:17:53 2012 -0700 msm: mdss: Return proper msmfb_data back to client For local clients, return the relevant msmfb_data which contains a cookie relevant to the client. Change-Id: I9b845c0cd7fde1bc8c53a5063ba331460d67427d Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 3d36e64838fbd064ad4868e1a3770e27c183f83e Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jun 21 18:23:52 2012 +0530 msm_fb: display: Add pre-multiplied alpha support for MDP4. MDP4 blend logic differs from GPU blend implementation as MDP4 does not differentiate between pre-multiplied alpha layers and non pre-multiplied alpha layers. Check layers for pre-multiplied alpha and change blend logic accordingly. CRs-Fixed: 355755 CRs-Fixed: 361729 Change-Id: Id8253d3888f1ebbadba1b6bbd87e7d98bac22da7 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 5a19b70f2846822228d0ae0ef56d14162812ff9e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 25 11:15:20 2012 -0700 msm_fb: display: Map framebuffer region in Display Write Domain Framebuffer is currently mapped for Display read and rotator source domains. For MDP writeback mode, Display write domain requires framebuffer region and it is mapped at initialization time. CRs-Fixed: 382550 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iba6fd0201a48fe1864bf42e9576f063cd58646fd commit ec5b2ff6857134832d165b8c2db8174c0d0ef4a7 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 20:06:41 2012 -0700 msm: display: use the fb reserved fields same as kernel 3.0 Reserved fields of fb structure used for various use cases in qcom fb driver. Reducing the reserved fields caused lot of side effects and it will change the reserved fields same as kernel 3.0. Change-Id: I7bf82a9b5667cb5c84b54e428bbfcb6869157bd7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 071280769e98128452ce8773e7ac2bc353f0cc93 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 25 17:57:15 2012 -0700 mdss: display: expose panel parameters through framebuffer API Panel porch values and pixel clock can be used to calculate the refresh rate from user space. Assign these values with information from panel driver. Change-Id: I29995d27904e50892d72de5e8c7dd39285f9d421 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34c2b52441d968030b31841eda77a09d73b89b8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jun 28 15:48:10 2012 -0700 mdss: display: allocate buffer from ion when debug writeback enabled Debug writeback is used to output MDSS framebuffer contents to memory to for debugging of MDSS core. Use ion buffer allocation for debug writeback buffer instead of using memory from framebuffer base layer to allow entire framebuffer area to be used for composition. Change-Id: Ia1a91f5f14bed1d29691092142fc94f7a8b6f4d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 686c70adef370bb5b60a116bdf326b2062c946d5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 15 11:28:12 2012 -0700 mdss: display: fix incorrect rotator programming Source format should indicate that source is to be rotated 90 degrees instead of indicating source has been rotated 90 degrees. This is needed for hardware to fetch source in correct order and generate correct 90 degree output image. Change-Id: If8d1e12ef3e7a291e67ec9763f5ca92ec6fa983c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 38506ba57f21ea83fbb8adb6d6818e9f1611377a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 18 10:26:56 2012 -0700 mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bff7356885b596340c9701fd1a6b18b08f8e75a5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Jul 26 10:59:49 2012 -0700 msm_fb: display: free writeback buffer at correct time When mdp pipe is freed at end of video play back, Writeback buffer is freed while mdp still fetchs data from it. This cause system crashed and blue screen shows on screen. This patch will free writeback buffer at correct time. Change-Id: I46a5031c13d86f943d6604713e1841b482dffe96 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 586fd1628cdd10468e0d6496a77a236f18eaf9c7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 14 15:24:16 2012 -0800 msm_fb: display: vsync driven screen update This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: If630a6d94fd38483ee313f575b1a71ed8bd65a52 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe8e81ccadfb4ba621094c924f31f8c230daf63 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 9 17:54:01 2012 -0700 msm_fb: display: Set LVDS Chimei panel frequency to run at 60 fps Modify LVDS Chimei panel pixel clock from 75 MHz to 79.4 MHz and update PLL settings to achieve refresh rate of 60 Hz for better user experience. CRs-Fixed: 375510 Change-Id: Ifb4036c790552b1c43d5a3c817ed05691f86c7f6 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit dfe5751941ef2478c57565f8ebca09623d83a8a4 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Jul 23 12:34:47 2012 -0700 video: msm: Add CSC and QSEED support to Overlay API Add support for CSC and QSEED configuration through MSMFB_OVERLAY_SET and MSMFB_OVERLAY_PLAY ioctls. Provide better integration than previous attempt with the existing Overlay and PostProcessing APIs. CRs-Fixed: 380750 Change-Id: If895391074ef1e7d7a6824d289e1ed9da6a52180 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 3118cb077358e472adb0db8e207a63bd84fd267f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jun 22 18:15:18 2012 -0700 video: msm: Remove old post processing overlay integration Remove old implementation of HSIC and QSEED smoothing/sharpening overlay integration. Need to replace with new implementation that better integrates the existing functions of the two APIs. CRs-Fixed: 380750 Change-Id: Id3469fad16764ed88e74a8da75bb873f726ba366 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 382b00b9a664fa0bd9b8d8bee2dae3f4340d425d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:45:07 2012 -0700 video: msm: Add QSEED Table2 Support Add support for QSEED Table2 reads/writes. Table 2 is a table of coeffients for QSEED Table 1 to offset into. Table 2 is quite large, caution should be taken when writing into it. CRs-Fixed: 380315 Change-Id: I89be18c0047dcf1d9a3bcd538967b2bbe7b4efe1 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fbf467206a4b5d09f51268535364f0a1b462eef6 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:43:39 2012 -0700 video: msm: Add QSEED Table reading support Add support to read the tables of QSEED values. When the values of the QSEED tables are able to be written to, it is beneficial to be able to read what's there as well. CRs-Fixed: 380315 Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 43da18d00abc2a61834b6650a49bf7edcf4f4df0 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Apr 12 15:37:44 2012 -0700 msm_fb: display: switch blt mode on/off without turning off TG Turning off dtv TG may cause blink. MDP requires h/w idle to change blt mode, turning off TG can make sure mdp h/w is idle. If turning off TG is not desired, one way to do is to check busy bits of overlay and dmae and once they are both idle, the mode can be changed. CRs-Fixed: 363717 Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit fccacdf4e72f8b39c3087628aee41bf94652e220 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 12:01:01 2012 +0530 msm_fb: hdmi: Proper switching of switch device Switch device used to tell userspace about HDMI connection needs to be enabled when: 1. HPD connect 2. Authentication successful And disable when: 1. HPD disconnect 2. Authentication failed Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 53156f5794a1eb8625033cabe243bf35bde93d1f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jul 24 10:13:05 2012 -0700 msm_fb: display: add out of range check for display sizes MDP pipe or mixer size registers have 12-bit number, so boundary checks are needed for those parameters. If not, input req sizes could be very large 32 bit unsigned numbers, e.g. 0xffffffff, unsigned operations may have overflow to pass all later checks, causing MDP underruns or hang issues. CRs-fixed: 380469 Change-Id: I096d7022ede21d54266b46a140782ab0348dd54b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6957fa026060675c197e2aad0762065a6aba7e31 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Jul 11 21:08:50 2012 -0700 msm-fb: display: Tearing issue during video playback Tearing was observed while playing 1080p H264 videos in potrait mode. Enabled blt mode check for MIPI command mode panel as well. CRs-Fixed: 369365 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7 commit 62d4a8cb1a5a1a98b3a70988de9ff9e2c1368be6 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jul 17 11:44:25 2012 +0530 msm: HDMI: Re-initialize the scan details for every HPD After disconnecting the phone from TV which doesn't support underscan, and connected to TV which support underscan, underscan is not working due to non re-initialization of scan variables. Re-initialize the underscan variables for every HDP events. CRs-Fixed: 375862 Change-Id: I22b7b8785ec93f9cf226e9b646a851ffb3ceff62 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit df67a26bb4e4eb274ef367ad67b10d1c845ef7f9 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 17 23:54:47 2012 +0530 msm_fb: display: Remove unnecessary dtv_pipe checks In case of PAN display, PAN update function would return without allocating dtv pipe resulting in no HDMI display. This change removes unnecessary checks and enable dtv pipe for PAN display as well. CRs-Fixed: 379625 Change-Id: I533392a1120a21e962fbbbf0c07a89997832406f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 30befc28305440f30770a6545839fe4b55ee2207 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed May 30 11:04:00 2012 +0530 msm_fb: display: suspend-resume on HDMI When HDMI is primary, suspend-resume is not happening. For HDMI as primary case, early suspend and resume can be used. This change implements early suspend and resume for hdmi as primary case. CRs-fixed: 381097 Change-Id: I7b83d07a8b109294f3606c60f58b760836b88685 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6b82d2ba8296e956abcd4c0c2014138390439dee Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 17:23:26 2012 +0530 msm_fb: hdmi: Boot param support for resolution change Boot param support for dynamic resolution change for HDMI as primary case like MPQ. With this change, MPQ can also be configured for different resolutions than the default 1080p@60Hz using boot parameters. CRs-Fixed: 373211 Change-Id: I2c8537724ddd1ece7e81e6022afb9315c5147aa2 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2568be7b453fc06ac0ce2a293021f2309e3ebbfa Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 21:20:58 2012 -0700 msm_fb: display: Configure MDP clock table based on DSI Video pixel clk To avoid display underrun issues, configure the MDP clock table's rate according to DSI Video mode panel's pixel clock frequency by 1.15 times. Change-Id: I9bc864a754c2d51c9d86ece79863820eb72cdae8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 16c8ae2beba81d102bccd130ccf8cca06533cc28 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 21 11:31:15 2012 -0700 msm_fb: MHL: Adding MHL api's for USB interaction. Adding MHL api's for device discovery and registering callback mechanism.USB driver use these API's for synchronization with MHL driver. Change-Id: I0846951302e3b5f5d20d566c92c2f224528ca455 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c8430bd159039340c5a50e6897b256631f5dc7bb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jul 9 12:34:01 2012 +0530 msm_fb: Add histogram support for MPQ 8064 Currently, there is no support for histogram on MPQ 8064. Add support for histogram ioctls to support histogram testing. CRs-fixed: 375580 Change-Id: I24ccf73c6ea6d230da4624ea196cba2d8195f8b2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit bc49e8330d32669aadc012585e3a2bcad0f34b85 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Jul 14 16:18:02 2012 +0530 msm_fb: hdmi: Turn on switch dev when connect to HDMI Audio is not routed to TV after deep sleep and resume. Userspace is dependent on switch device to indentify audio route. When HDMI is turned on, this switch needs to be turned on as well. CRs-Fixed: 377159 Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f0a3914b984c75b66ca7d96a479c08230928e2d1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Mon Jul 9 16:59:35 2012 -0700 msm_fb: Remove control of HDMI PLL regulator The regulators required by the HDMI PLL are now controlled within the clock driver. Remove the explicit control from mdp.c. Change-Id: Ia2975a5a83b77cd9e21fc43cabea754b7b040dd5 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit f0fd8e7323ea0f60539918528a4cfa1edb39b828 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 3 15:08:20 2012 -0700 video: msm: Add user-defined backlight scaling Add method for scaling backlight based off of a user provided ratio and minimum level for the scaling to be applied. Change-Id: I74c2329c842dd9cbbc9eddfff38cd56fd0e939a4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 649ca22aba67cd429025ee026015b6082b38539f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 9 18:19:18 2012 -0700 msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch DMA addresses are configured after Layer Mixer is set to writeback mode. This leads to IOMMU page faults due to incorrect addresses read from DMA. Hence DMA is programmed before Mixer setting. Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3bb47a097c62b71c7f8f2be888a1f73c6cfb8142 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jul 13 11:51:24 2012 -0700 msm_fb: HDMI: Fix for high HDMI sleep current In certain cases, the HPD circuitry is not switched off when the device goes to suspend state, resulting in high sleep current on the HDMI power rail. This patch ensures that the HPD circuitry is always turned off during suspend operation by removing an unnecessary condition check. Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f7f94cef2a64930e1476c09a5a402631bd39d99 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 10 16:08:30 2012 +0530 msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 10bbb7da8663f44fd348d72fef24f08bbc789cd5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jun 3 07:56:23 2012 -0700 msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk Since dsi clock is accessed by both thread and timer context, spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing of dsi clock. Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 97c332da161665e9ec31a222dcd919267889af1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: Id007cf96588f817bcfe8559177abb073a9b00755 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3d297368b8199b07bda815915e94ecb5761561b0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jul 5 17:24:45 2012 +0530 video: msm: Fix corner cases of "read twice" error Fix several cases where histogram's completion structure is completed multiple times which causes the next histogram read to force the histogram software state machine into believing that the histogram is always being read by someone. When the timeout in mdp_do_histogram times out and then soon after the work that was being waited on completes, the next do_histogram call that is processed will not wait (and thus will not have its hist field set to NULL). This will cause all subsequent do_histograms to think that the histogram is currently being read, and will cause the "read twice" message to flood the kernel logs. This error is fixed by always initializing the completion structure before waiting for the histogram to complete. That way if the completion happens after the timeout, instead of causing the error, the completion's internal counter is reset to zero, which prevents the next histogram read from completing without waiting. Change-Id: Ic1bc4b8688cd191d226de1df15d389de09996106 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 18e97cde0f9875c41692139d30bce497df31b8fb Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Jun 22 00:33:51 2012 -0700 msm_fb: MHL: Driver changes for Integrated MHL Power up and GPIO functions have been moved to the driver MHL HPD event also triggers the HDMI HPD event since 8x30 FLUID device doesn't connect HPD line from 8334 to HPD line from MSM HDMI. The pull-up resistance in 8334 has been set to the recommended value so that the interrupts are sent over to MSM-USB driver. Change-Id: Ib8bb462c81706ff2dc027535ef766917bb7da39d Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9d7db4fd399109999f4ec0207651f335920f06db Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 23 18:49:59 2012 -0700 msm_fb: display: Wait for overlay done after DSI Video writeback switch After writeback mode is switched for DSI Video interface, wait for overlay done for prefill frame to avoid unnecessary fetches from previous buffers resulting in page faults. CRs-Fixed: 372389 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617 commit ef95ae33a328426b45f502eeb86f2edc120faf30 Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 50f0f86034c97484081e1bbf4ea36253a21474f2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jun 21 18:53:25 2012 +0530 msm_fb: display: Add ion support for PPP Add support for ion in MDP PPP drivers for accessing source images and destination images. Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a43f44b44ee221df11ad84b8536c1c8d5373cbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jun 28 20:00:42 2012 +0530 msm_fb: Handle multiple histogram reader errors during suspend/resume If a histogram reader waits for completion in the do_histogram ioctl and during this time the device is suspended, the complete for this gets called from mdp_histogram_ctrl_all() in the panel_next_off() sequence. This results in mgmt->hist not set to NULL. The subsequent do_histogram ioctls after device resume fail due to multiple reader failure condition since the histogram irq will be enabled now from the same mdp_histogram_ctrl_all() during panel_next_on() sequence and this by-passes mgmt->hist getting set to NULL that is present in histogram_start() ioctl. Handle this scenario. Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c45b820e3000c1c7f76cc1a3e1efcfaa33b75eba Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jun 27 12:00:44 2012 -0700 Revert "Revert "video: msm: Always queue histogram work"" This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90. commit 2423ba8... will be refered to as commit X Commit X should have been listed as a parent of commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue histogram work & lock histogram calls). commit 56a123b... will be refered to as commit Y Commit Y is composed of 3 commits that were squashed together after they caused errors when only one of them merged into mainline. Commit X was created to revert the first of these 3 commits, and thus resolve the errors. However, when updating commit Y, commit X was omitted as the parent commit. So when commit Y merged as a parent of commit X, commit X reverted part of commit Y. By reverting commit X, this commit restores commit Y. Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit b14ed96f74b1258b1f102831a2b0ccd56f991132 Author: Laura Abbott <lauraa@codeaurora.org> Date: Mon Jan 30 14:18:08 2012 -0800 gpu: ion: Pull in patches for 3.4 Pull in Ion patches for 3.4 upgrade. Inclues the following patches from google: commit 7191e9ba2508ca6f1eaab251cf3f0a2318eebe26 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Jan 30 14:18:08 2012 -0800 ion: Switch map/unmap dma api to sg_tables Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 6f9e56945d4ee3a2621968caa72b135cb07e49c4 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Tue Jan 31 09:40:30 2012 -0800 ion: Add reserve function to ion Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 9ae7e01de1cf03c77054da44d135a7e85863fcb0 Author: KyongHo Cho <pullip.cho@samsung.com> Date: Wed Sep 7 11:27:07 2011 +0900 gpu: ion: several bugfixes and enhancements of ION 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in those virtual address spaces. 3. Makes the return value of ion_alloc() to be explicit Linux error code when it fails to allocate a buffer. 4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and relavant call to ion_buffer_put(). 5. Checks if the task is valid before calling put_task_struct() due to failure on creating a ion client in ion_client_create(). 6. Returns error when buffer allocation requested by userspace is failed. Signed-off-by: KyongHo Cho <pullip.cho@samsung.com> commit 043a61468f395dd6d4fc518299726955e9999c59 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed Feb 1 11:09:46 2012 -0800 ion: Switch ion to use dma-buf Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 0d1259b5f84969bd00811ff9faa1c44cdb9fdbb5 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Apr 30 16:45:38 2012 -0700 gpu: ion: Use alloc_pages instead of vmalloc from the system heap With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit be4a1ee79a89da3ca705aecc2ac92cbeedd032bd Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Thu Apr 26 20:44:10 2012 -0700 gpu: ion: support begin/end and kmap/kunmap dma_buf ops These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 46d71337f9aa84694e4e6cca7f3beb6b033bbf76 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon May 7 16:06:32 2012 -0700 gpu: ion: Allocate the sg_table at creation time rather than dynamically Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 903f6c716db3d4e26952aae9717f81dd5bc9e4ba Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed May 23 12:55:55 2012 -0700 gpu: ion: Get an sg_table from an ion handle This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> The commit also includes fixups needed for MSM specific code. Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 24502cb2cfd176d72cc6884dbeb375c7fb054766 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 25 18:58:45 2012 -0700 msm_fb: display: Enable MDP clock's overlay block during panel on MDP clock's overlay block is enabled during first update after panel on currently. This is now moved to panel on to keep clock enabled right from display on time. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ie201186c1471201874f2eff246486bc4a73b5872 commit 89dd8eb788bc97479a7c7bfbcafc25f1b63ceda0 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Jul 2 17:05:16 2012 -0700 msm_fb: HDMI: Fix lockdep warning Locks must always be taken in the same order to prevent AB-BA scenarios from occuring: ====================================================== [ INFO: possible circular locking dependency detected ] 3.4.0-g55e6e49-00052-g71783d6-dirty #3258 Tainted: G W ------------------------------------------------------- kworker/0:1/15 is trying to acquire lock: (hdmi_msm_state_mutex){+.+...}, at: [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 but task is already holding lock: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (external_common_state_hpd_mutex){+.+...}: [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0341510>] hdmi_msm_hpd_on.clone.0+0x230/0x2c4 [<c07e5dfc>] hdmi_msm_probe+0x378/0x588 [<c03dcc00>] platform_drv_probe+0x18/0x1c [<c03db920>] driver_probe_device+0x148/0x334 [<c03d9f5c>] bus_for_each_drv+0x48/0x84 [<c03db7ac>] device_attach+0x78/0xa4 [<c03daa4c>] bus_probe_device+0x28/0x9c [<c03d97e4>] device_add+0x438/0x5e0 [<c03dd13c>] platform_device_add+0x13c/0x1a0 [<c0d255d8>] hdmi_msm_init+0x218/0x2d0 [<c0008708>] do_one_initcall+0x94/0x168 [<c0d002fc>] kernel_init+0xe4/0x1b8 [<c000f4f8>] kernel_thread_exit+0x0/0x8 -> #0 (hdmi_msm_state_mutex){+.+...}: [<c00cc6b8>] validate_chain+0x944/0x1080 [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 [<c0097420>] process_one_work+0x37c/0x694 [<c0099978>] worker_thread+0x22c/0x3bc [<c009ecdc>] kthread+0x8c/0x9c [<c000f4f8>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); *** DEADLOCK *** 3 locks held by kworker/0:1/15: #0: (hdmi_hdcp){.+.+..}, at: [<c00972b8>] process_one_work+0x214/0x694 #1: ((&hdmi_msm_state->hpd_state_work)){+.+...}, at: [<c00972b8>] process_one_work+0x214/0x694 #2: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 stack backtrace: [<c001521c>] (unwind_backtrace+0x0/0x12c) from [<c00cbb14>] (print_circular_bug+0x288/0x2d4) [<c00cbb14>] (print_circular_bug+0x288/0x2d4) from [<c00cc6b8>] (validate_chain+0x944/0x1080) [<c00cc6b8>] (validate_chain+0x944/0x1080) from [<c00cd744>] (__lock_acquire+0x950/0xa10) [<c00cd744>] (__lock_acquire+0x950/0xa10) from [<c00cd990>] (lock_acquire+0x18c/0x1e8) [<c00cd990>] (lock_acquire+0x18c/0x1e8) from [<c080c248>] (mutex_lock_nested+0x68/0x3c4) [<c080c248>] (mutex_lock_nested+0x68/0x3c4) from [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) from [<c0097420>] (process_one_work+0x37c/0x694) [<c0097420>] (process_one_work+0x37c/0x694) from [<c0099978>] (worker_thread+0x22c/0x3bc) [<c0099978>] (worker_thread+0x22c/0x3bc) from [<c009ecdc>] (kthread+0x8c/0x9c) [<c009ecdc>] (kthread+0x8c/0x9c) from [<c000f4f8>] (kernel_thread_exit+0x0/0x8) Change-Id: I251049edbc97a5fe0e6c67801cf472fdc48722a7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dbbca9b8710704bd0ae37acd40e30b6aba6d1462 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 19:04:08 2012 -0700 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call Attach IOMMU call is currently done from DSI cmd mode DMA update method. Move the attach call to kickoff which enables it from restore and video paths Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf commit 07876121525c631cbf914c8777e01875c293d0ed Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 12:27:49 2012 -0700 msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get() After regulator_get call for HDMI PLL footswitch purpose, set output voltage to 1.8 V to ensure proper state while enabling and disabling regulator. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24 commit 3ac0c174b21293d50773bb8b2bc5ad9ee2aedf23 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 22 18:46:33 2012 -0700 msm_fb: display: Fix Toshiba WSVGA panel porch and timing settings Fix the porch and timing settings for DSI Toshiba WSVGA panel to enable writeback mode switch efficiently. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ib768d13617470f75ae027970c6ca4779d6b5a367 commit 254d6740cfa0a32afe9bb66762199ea5931f53d0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 30 22:12:09 2012 -0700 msm_fb: display: Flush pipe registers before staging for Mixer 0 or 1 For Mixer 2, register flush need not be called. Flushing is done only for pipes on mixer 0 and 1. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I54758f79552790de2ad936703ba6140ac57b76c4 commit 37320fb657169e39aef13afb468ae551481658f4 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Jun 26 14:50:28 2012 -0700 mdss: display: Correct regulator API usage A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit b5085c57a43b2ba6cded7b4adeb646ed3c8ad095 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Jun 20 11:43:54 2012 +0530 msm_fb: display: Increase wait for VSYNC Wait time for VSYNC needs to be increased to accomodate 1080p 24HZ resolution which requires around 41ms. CRs-Fixed: 368521 Change-Id: Ideda24bb83e32a6d5035c6193ef3dfd5e0c947fc Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 4a4f2d591cebc94b179e58cc6418f4598146f3c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 20 18:30:05 2012 -0700 msm: display: Add MDP footswitch regulator control for HDMI PLL Add support for enabling HDMI PLL regulator along with footswitch enable/disable to avoid PLL lock detection failures during suspend/resume Change-Id: I9b161cab50d2b6c39de39b588e326f5ff97cbc65 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9c4743fd7d5e5230b4f05564432bd6d6b51b4a88 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:31:43 2012 +0530 Revert "msm: iommu: Split rotator/mdp iommu domains" This reverts commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a. Change-Id: Ie93cbb23eaa1e35bfbacc53cd18f05b345acea4b Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit fd233093130a8b11519630cf3b38f02491e634a3 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:30:49 2012 +0530 Revert "msm_fb: display: Add DMA and Overlay blt mode address to MDP driver" This reverts commit 5f979254a80b7a844df3d9c1f49e16427f2477cc. Change-Id: I595afa529d96e8378d00e75bd836cfa191ab5135 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef5b150ffa574ec1aac76618e2cfd1d94ee626ba Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 13:08:06 2012 -0700 msm_fb: HDMI: Removing unnecessary HPD detection code. HPD read work is used to detect HPD at bootup which is not required as HPD detection is taken care at bootup by toggling the HPD circuit. So we can safely remove this redundant code. CRs-Fixed: 368865 Change-Id: I8eed00c4f5af2ed2ca37e86da622ab518e5eb887 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2423ba8ae07458ec93efa07d777454f26d1d7c90 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 19 18:09:36 2012 -0700 Revert "video: msm: Always queue histogram work" This reverts commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b. Revert patch that is causing excessive histogram logging. Will merge original patch with fix when issue is resolved and tested. Change-Id: I99b04362f6acd4f75a72e4b3ca52406907971e67 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14c5e7a160faee03393994b064a093019aca9333 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 14:02:58 2012 -0700 mdss: display: Add writeback support for WFD - Implement APIs used to support wifi display (WFD) based on ioctls and functions declared in linux/msm_mdp.h. - Restructure writeback interface file to support custom output formats and take buffers from WFD APIs. Change-Id: I3e6b75bd8b7d73eb20c97899de1891bbd85e9fa4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20684ab9fdf25602872a602d89a3d3eda1b15102 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed May 9 19:16:40 2012 -0700 mdss: display: implement common irq handler for different mdss blocks All of MDSS blocks (mdp, dsi, edp, hdmi) share same irq line. Implement function to manage MDSS irq line with common API with support for irq callback handler for each of block. Also fix incorrect calculation of MDP interface interrupts. Change-Id: I1271f7e1065aac95175b6e92504917264f4043a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2dca5a058c622a7bd0803285b10ec081b8f8e3ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 19:00:54 2012 -0700 mdss: display: add video display interface support Video mode display interface is used by DSI, HDMI and EDP controllers. Implement MDP support in order to setup data path to these controllers. Change-Id: Ibc766a1d10a55bcf64a3ab693db034a378afe4ee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4e584a304cdf03c4ed7cc28a6457ac22e5d4c688 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:25:01 2012 -0700 mdss: display: implement csc matrix programming Implement color conversion matrix programming to support YUV surfaces. Also add dspp initialization stub function. Change-Id: I7ba57eca24e15acffbddf7b81fac6b8a6ce3bba5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1857f06647e420c97f9b0e24bb1b77da710d858a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:57:28 2012 -0700 mdss: display: add rotator interface to mdss driver Add rotator session management support with overlay interface using MDP flag MDSS_MDP_ROT_ONLY. Overlay interface can only support overlay surface or rotator (written back to memory) but not both. Change-Id: Ib2f494683b2e6c2fd8c67818df2b57afb82a3df3 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 96a1e9e9a778f0729b7073f20a0fbd9a63c9ba8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:36:57 2012 -0700 mdss: display: add clock and bus scaling logic MDSS hardware supports different bus bandwidth and clock frequencies depending on the load on the hardware. Add support to driver to calculate the bus bandwidth and clock frequency requirements and activate changes before the load on hardware changes. Change-Id: I9bb5bbc7b3e18fb1a738f527b875506dfa0c5c81 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ef3ac01347acd86ea5a3f7a7b44cbe88bb90221 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 14 18:40:47 2012 -0700 msm: copper: add device nodes and clock information for mdss Copper uses Mobile Display SubSystem, add device tree and clock information to be used in mdss driver. Change-Id: I67397a28168407b3268f4f026f35d69a04062995 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5f979254a80b7a844df3d9c1f49e16427f2477cc Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: I522944b804fe65925df428d6bb312262328a11d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: If3e556171645e8ea02deb12ca543df36233db5f2 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work & lock histogram calls Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). Lock the mdp_histogram_start and mdp_histogram_stop calls with the same lock used currently by mdp_do_histogram to maintain that every do_histogram called between a start and stop will be completed. Add a timeout to do_histogram wait_for_completion so that it will unlock and yield to other histogram calls if it waits for longer than 33 msec. CRs-fixed: 363763 Change-Id: Icc503aed4e60dd01941682003ca3dbc844aed8d9 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41cdae666312bdc248a8e707a2d8f9ca568178cf Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jun 11 17:18:42 2012 +0530 Revert "msm_fb: display: Fix for HDMI bootup issue" This reverts commit a369ce03ca048fb511642ac1cb73c1f652d70c50. The change is no more required as pan_update is not being called and overlay set is now being used instead. Change-Id: I7b25c256ab57e620f319058638371e079642c448 CRs-Fixed: 367233 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d60ac323a1e3e7086ef2d77c866d5ed482d2a4e9 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 31 18:16:31 2012 -0700 video: msm: Resolve post processing memory leaks Allocate memory for post processing only once. Free post processing memory when MDP is removed. CRs-fixed: 366325 Change-Id: I244f4e10a6933e2acaf69a83d8b91ee5f6e27557 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit cc91399843c5ffb5a57d890c0ca835cd7f5a6e8c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 9 14:57:28 2012 +0530 msm_fb: Add backlight support using both GPIO 96 and PWM Add support for backlight control on EVB using both the LCD_BACKLIGHT GPIO and also the PWM approach on 8x25 EVB. Also increase the backlight levels supported on 7x27A from 100 levels to 256 levels. CRs-fixed: 365523 Change-Id: I4806644783cc98e01192a3101bc852487bb3b592 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 691524c2e330592b2561df4c0fb6e7d2a741a924 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 12:44:46 2012 -0700 msm_fb: HDMI: Do not add HPD state timer during probe Currently all HDMI timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HPD timer being fired 5 minutes after boot even though cable is not connected. This change fixes this issue by not starting the HPD timer during probe. Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit df694561ecc3105707af6bf323cd42f988293e3a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jun 5 15:06:21 2012 +0530 msm_fb: display: Fix compilation error for non-HDMI builds HDMI dependent functions need to be guarded under HDMI panel macro to avoid non HDMI builds complilation errors. CRs-Fixed: 366864 Change-Id: Ib2a9f6db4eb511b2a170fcc7ac979f6c41046baf Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3db0ca75238989ad2b5860c48901952bb15483a3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:32:43 2012 -0700 mdss: display: add overlay ioctl apis to mdss driver - Add support for overlay IOCTL APIs defined in linux/msm_mdp.h - Support for ion client buffers and framebuffer memory Change-Id: I0418ecab9aacf826d900f82f179fa20688fc763e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d6d2863519c2351ef790758ed134e012d4563c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 16:52:09 2012 -0700 mdss: display: implement writeback interface for mdss Add writeback interface support, using one page of framebuffer memory for writeback output. Change-Id: I0a44c6907cbc10d97c78642f45dc018dfb2d1750 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e55fa120321f49385973b37f8b258bf78163743b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 15:36:08 2012 -0700 mdss: display: Add Mobile Display SubSystem driver - Implements Linux frame buffer interface to interact with userspace libraries and applications, based on msm_fb frame buffer. - Implement MDP driver which handles MDP core data path setup and hardware blocks programming. - Support for UI through Linux frame buffer FBIOPAN_DISPLAY ioctl. Change-Id: Ib98677b8d81d74283b27dea08a9f1a705c101bce Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 75692782e15de0990247e2d6252fbd26ca849278 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Thu Jun 14 14:56:11 2012 -0700 msm: display: reduce pwm frquency to fix the broswer blank issue screen goes completely blank while loading a webpage at low back light value. reducing the pwm frequency range to fix the issue. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb CRs-fixed: 362987 commit 14db6b404f2b1627791dada77ea303ef970910a6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed May 23 17:22:15 2012 -0700 msm_fb: HDMI: Start HDCP authentication only on device open Currently HDCP authentication is started for a default resolution upon HPD connection event. With this change, HDCP authentication is only triggered after the HDMI interface has been configured for an appropriate resolution following the call to open the HDMI device. CRs-Fixed: 368865 Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 56672d222b15602826d0200a6baee5ca02a450c6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jun 8 15:57:29 2012 +0530 msm_fb: display: HPD rework for cleaner approach Currently HPD is turned on and off with HDMI turn on and off and turned on again after HDMI off so as to detect the cable plugin. With this change, HPD will be turned on when HDMI drvier is initialized and turned off and on with suspend - resume. The HPD handling during HDMI turn on and off has been removed. CRs-Fixed: 368865 Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 7d11c271b2ca399783975d3b6ef3199cd937a2e0 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jun 7 12:25:31 2012 +0530 msm_fb: HDMI: Update HPD logic to address HDMI PLL related issues In the current implementation, the regulators pertaining to the HDMI core are turned off/on as part of the configuration of the HDP circuitry. As a result, the regulator that powers the HDMI PLL is turned off before the HDMI clocks on the PLL are disabled. This might lead to the PLL not getting locked when it is re-enabled. This change turns on and off the regulators and clocks in proper sequence. CRs-Fixed: 360135 CRs-Fixed: 358598 Change-Id: Ie3630b543e78e83dc565edc32239935135ca4ca5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 66c3c2d50b970ee5f2275d89945271677018ddb3 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jun 12 17:46:53 2012 +0530 msm_fb: display: Add support for command mode on 8x25 SKU5 1. Make command mode default on 8x25 SKU5 devices 2. Add command to change panel scan direction to have proper display Change-Id: I9440ed01541a18ddabe2029c37565dda1181ac2f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1c2bee0158437f485c32f6750e8df3314ae9168b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed May 23 11:30:28 2012 -0700 msm_fb: display: detect if timing generator is on when do dma waiting If the timing generator is not on, dma waiting won't return and system crashes. So add TG on detection to avoid the issue. CRs-fixed: 362503 Change-Id: Ic472e7b75be1fd8960e5ac18929181513085212e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). CRs-fixed: 363763 Change-Id: If9e3c13b5e4005f81fd1b5d2664af206b1decf5b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ba2fa104b3d51b24ccceb168b6bae96fcc851080 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri Jun 15 07:43:20 2012 -0700 video: msm: Don't make the framebuffer cached The video framebuffer should not be cached when mapping into the rotator or video domains. Change it. Change-Id: I407c68ac21a030aff801ebfae01d360bb6bf338c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit aadc14e2ef6a6a84681233ba8020b72b38b98819 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Apr 10 15:28:50 2012 -0700 msm_fb: display: change ion memory map for mdp mixer2 writeback One way that mdp mixer2 gets writeback address is to get ion memory fd from userspace, then mdp driver maps this fd in kernel. When mdp iommu domain was not enabled, this maps to a physical address. Now after mdp iommu domain is enabled, the map is changed to an iommu virtual addr. Change-Id: I461a00cc93169de586565834af4fb9a43949cf95 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9acbfb0eb688bac6a35f12b58e2e9c3de4d2d3b8 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 6 10:00:43 2012 -0400 msm_fb: display: add support for frc Frame rate converter(frc) is treated as LVDS 1080p panel Its configuration is based on HDMI 1080p60 mode LVDS dual channel mode will be used Change-Id: Id3a17f107c8398ddb47105d064be2743a150a3b3 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 94fea065072fc6afd61bd7e2c05f0e552dd1e578 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Jun 12 17:52:12 2012 +0300 msm_fb: display: Fix D2L register I2C driver more than once Fix error message seen on kernel log after suspend/resume Change-Id: I908efec9fde6e9de838e28d2c778fa4b3567e4f6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 913cf20260442f1335ec6ad82549bdae65b120c0 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:12:38 2012 -0700 Revert "msm_fb: display: Attach and detach MDP IOMMU on suspend/resume" This reverts commit aaf74ca34581feb8be797a6d8793824e73fecf67. Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: If9ec76cd040b0e834301d3d9ddbbab04b38b7a7e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f6ef081fb7c9d779401b88c00314127333f9df83 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:05:30 2012 -0700 Revert "msm_fb: display: Add MDP IOMMU detach support for DTV" This reverts commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4. Change-Id: Id1d127080040962c1ad33c9d4bca5005415283da Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1ce7e4c2f39c787fa82aa10a5189df7d0c41b3fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 13 14:05:54 2012 -0800 msm_fb: display: Add support for 4 layer MDP composition Add 4 layers composition support to MDP by allowing borderfill pipe to be used as base layer of mdp blending. This releases RGB1 base pipe which can be used as a general purpose pipe. Change-Id:I517485d738e8bb555a263b3ea885d78d5e4f4396 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 12d6b1f102f45566a0d3089d4e5eeb46a328cf00 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jun 4 11:18:11 2012 +0530 msm_fb: Correct the chroma offset calculations for Yamato format In the PPP blit operations, when the source image format is Yamato, there is chroma offset calculations going wrong in the case when a frame is split into parts and blit is done separately. Correct the chroma offset calculations in this case. CRs-fixed: 366908 Change-Id: I867024632fda9f64a569150e0b6389d55614cd3a Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit a382195e358eebc39640ba8e7f2fe7a3d583aaec Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 5 17:06:10 2012 +0530 msm_fb: display: Set the minimal sleep time for DSI PHY Initialisation On 7x27A/8x25, set the minimal sleep time required for DSI PHY hardware to get initialized and for the display to come up. CRs-fixed: 367652 Change-Id: If040a5ac37f694e83b819ecf08fc80f2afb7afaa Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 2fcabf92eea31cad2ec4852dcab563f2c93e4294 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Wed May 30 10:41:11 2012 -0700 msm: Replace idle wakelocks with pm_qos Idle wakelocks are being removed so replace them with pm_qos. Since we don't know every driver's latency requirements we maintain one-to-one compatabilty with the idle wakelock API by replacing the wakelock with a pm_qos request of the correct latency. Once we determine the actual latency requirements of each driver we can replace the latency used with the correct latency for the device. Change-Id: Icc40f1642218e0de8fc2f56eaf9e8f92914d142f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 12:25:31 2012 +0530 msm_fb: display: add writeback mode for mddi on 7x30 Add support for BLT mode in the MDP4.0 overlay architecture while downscaling to more than half of the source dimensions to avoid underrun issues. CRs-Fixed: 313524 Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef9ccdb031e1fc3c80067cfad59fc5c2d9db77be Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue May 15 10:52:00 2012 -0700 msm: display: Change DSI escape clock to byte clock Changing DSI escape clock source from PXO to byte clock to add more flexibility. Change-Id: Ia78093f8b8be6a27c86f3e8db68fa1f4a4d85086 CRs-Fixed: 361022 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit f98c498b5ef8827afb24bad495f4e175f0829807 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu May 31 15:15:29 2012 -0700 msm_fb: display: Wait for external vsync before DTV IOMMU unmap In play wait call for DTV, software waits for overlay1 done before unmapping IOMMU buffers. This is replaced by external vsync wait to avoid page faults. Change-Id: I67d3615121e9eda3a4378553049a41e32860a520 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c0399fc8064b7e09bf41b9213faabc448ea95707 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 11:43:49 2012 +0530 msm_fb: display: Remove chicken bit config during video playback Remove the chicket bit configuration and overlay status check for MDP 4.0 v2.1 hardware version CRs-Fixed: 313524 Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b411a253ea37acbe8cc817bf004ae08d877d9bd1 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed May 16 00:47:38 2012 -0700 msm-fb: display: lm2 writeback support on mpq platfroms lm2 writeback has broken on mpq platfroms as lm1 and lm2 are selecting the same axi writeback path. It adds the support to select the right axi writeback path based the availability of the write master Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 140748fe6442df1cc95dc1a2519ad8db2190b2b3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu May 24 20:44:07 2012 -0700 msm_fb: display: Disable LVDS phy & pll during panel off LVDS phy pll power rail is consuming power in suspend state. Hence phy & pll are disabled during panel off cases on suspend and device release cases. Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ff42a9a426ab9a76d75a29464412807dd72ceb13 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 29 11:03:00 2012 +0530 msm_fb: Check for Histogram NULL while queuing work Don't queue the work if the user hasn't requested for the histogram data CRs-Fixed: 365729 Change-Id: I0b28097fa00f13a836c2ee9d35e8e4557f1c70f0 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit adf8fef78bf5f77f6c378d8889a35844278148e3 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri May 11 14:13:05 2012 -0700 video: msm: Migrate away from subsystem map APIs The subsystem map APIs are no longer the preferred method for mapping into the the IOMMU. Migrate away from those APIs to the newer map_contig_buffer APIs. Change-Id: I29608bd1cf7f9fb8c5584952826b6f3ae56bc3d8 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit a2afa0dbade27d11382e2486c079d20532a5d73c Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed May 23 15:38:50 2012 -0700 msm_fb: Display: Add additional settings to improve DSI signal strength. Modify/add new Physical layer settings for Lane, BIST and PHY strength to improve the rise/fall time of the DSI clock waveform. CRs-Fixed: 364037 Change-Id: Ie2503100eebdf9d4c82d457c187ab8fa903778c6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 493c38628f7288d0c9ef384517b0eda3b76d50a8 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 23 17:18:18 2012 -0700 msm-fb: display: Perf changes for mdp composition Display under-run issues are observed with mdp composition. Fix underrun issues by changing perf level. CRs-Fixed: 354377 Change-Id: I82346e65af173d7592506f1cee7f90f40ee01485 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7a77c7ca07bbcc390967552d0973238ac48b5597 Author: Anitha Anand <anithas@codeaurora.org> Date: Tue Apr 24 15:46:36 2012 -0700 msm_fb : Disable power collapse before VSync to negate wake up latencies. For a 16ms frame period the CPU may go into deep power collapse. Based on the power collapse exit latency for that low power mode, the frame period gets extended by the latency to wake up the CPU at the next VSYNC. This results in a user experience glitch. Adding an hrtimer to wake up the CPU few ms before the Vsync and disabling power collapse compensates for the extra time spent in waking up the CPU out of deep sleep. On timer expiry, set wakelock to veto idle power collapse till the next VSync. The wakelock is released on the next VSYNC occurrence. Change-Id: I3e013cc54c36d3015d6fafa4b9ccd435cb5532ab Signed-off-by: Anitha Anand <anithas@codeaurora.org> commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 15:15:16 2012 -0700 msm_fb: display: Register MDP fault handler with IOMMU driver. MDP fault handler will print minimum information on display related page faults and its registered with the IOMMU driver handler. This is to minimize logging when a series of faults are seen to cause watchdog bark. Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c96bc441e59d6f0439671c85bc41a3507f232e8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 12:31:31 2012 -0700 msm_fb: display: Free staged foreground pipes during suspend During suspend, some foreground pipes might still be staged and have to be removed before disabling timing generator. So, these pipes are staged down and freed before timing generator is switched off. Change-Id: I3f2376cac43464c64cd1c9e2f16f3d801298c25d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 13:24:52 2012 -0700 msm_fb: display: Add MDP IOMMU detach support for DTV IOMMU detach support on suspend is currently meant for DSI Video and LCDC modes. The detach call is moved to early suspend for primary display and external DTV to avoid page faults related to suspend/resume cases. Change-Id: Ia45071c44c20b951a328f39a033bdd83ff77d8f8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6877b7fc326cd18bbf6c83b418005f7cffbffb9c Author: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> Date: Thu May 24 12:30:35 2012 -0700 msm_fb: display: Flush background pipe after solid fill configuration For is_fg support on a foreground pipe, the background pipe is currently set to Solid Fill mode without being flushed. Add flush after enabling Solid Fill on background pipe. CRs-fixed: 352855 Change-Id: I91c4e391c9577a9198d048d2b369369d348efeab Signed-off-by: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> commit 10a9758c95a68e11f27c9f6452ac9b5b978a8ca8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 21 17:32:07 2012 -0700 msm_fb: display: Fix invalid x offset programming for YUV444 fmt Source x offset adjustment is not properly programmed for YUV444 format, it is always programmed as 0. Add support for correct x offset adjustment. Change-Id: I73e87f961bda60670cc764c66be955e48ccf2734 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit aaf74ca34581feb8be797a6d8793824e73fecf67 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 18:37:20 2012 -0700 msm_fb: display: Attach and detach MDP IOMMU on suspend/resume MDP IOMMU is not in a clean state on suspend/resume with page faults seen with video playback after resume. Hence, IOMMU is detached during suspend and attached on every resume call. Change-Id: I906cd7fa79ab67fd69eb1974d06d3521d42bf55b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ef70852238212e6df24584426ad263291df1bf4 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Tue May 1 19:19:40 2012 -0700 video: msm_fb: Wait for dma to finish before terminating If writeback takes too long to finish, after calling _stop() writeback client might deallocate buffers during the DMA causing faults. To prevent this situation, make _stop() a blocking call that waits for the writeback to finish before returning. Change-Id: Ia710095a55d705589a81aa9bc29c41d536c2a42d CRs-Fixed: 351773 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 20c1b5887a5ba7bae742225bfceaa2268e0e7549 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Mar 12 13:58:07 2012 -0700 msm_fb: HDMI: Video Quantization Ranges changed Quantization settings applied based on default range for source format for 480p. If a non-zero value is sent then it must correspond to transmitted video format as per the standard. Setting RGB Quantization values in AVI Infoframe for 480p to default range (0x0). Change-Id: I01fc263c9406fe80a4b3c73628f265bb733ff90c CRs-Fixed: 349246 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 77f82aec5a4785f89cb2ab968dcde1452f3073c6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 09:42:25 2012 -0700 msm_fb: display: Flush MDP registers before staging up any pipe Add flush calls to MDP's pipe and mixer registers before staging up any pipe to a mixer. Change-Id: I36f5aa04634bae43a38e57cd97bd2aafe9631eda Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c9fa6999ad8b2f10ec4e807ee3dae621f8c6d4fe Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sun Apr 29 22:39:48 2012 -0700 msm-fb: display: Reducing the display wake up time 100 msec sleep in phy init delays system wake up. Using usleep instead of msleep to optimize it. Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit aa356f6c4d44965233c79d68bd293a258730d8c1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu May 24 12:25:27 2012 +0530 msm_fb: display: Keep fb1 for MDP version < 4.0.2 For better memory usage, fb1 memory allocation is removed for targets like 8960 which support BF pipe and true mirroring but required for targets like 7x30 and 8660 which still needs fb1 for border fill. CRs-fixed: 364669 Change-Id: Id741223a0107e356b9164b582aa1f901caa21988 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e9658eb364860826d3924b3d45ba74a2a6c2a2e6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue May 15 14:58:55 2012 -0700 msm_fb: display: Rename MDP IOMMU context bank names MDP IOMMU context banks do not correspond to the input processing pipes like RGB and VG. So the context banks are renamed based on port and number. Change-Id: I39a6b1a66226aeaaf48fb3697f90ab55b67a592c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d995a89cd61bb7295f0226420c4752dc0a9a8fe1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 10 12:18:58 2012 +0530 msm_fb: display: Move mipi dsi clock enable before dsi soft reset mipi_dsi_clk_enable() is called after dsi soft reset. Move mipi dsi clock enable before dsi soft reset as per mipi dsi hardware design document. Change-Id: Ie1cfdf53bc74b87b5a0e0679ab26bc513205673d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 8 15:04:27 2012 -0700 msm_fb: display: disable pan display and memory access to fb1 and fb2 The native fb1 and fb2 framebuffer memory is not used and not allocated on the board file. So on the driver side, pan display ioctl or other operations on fb1 or fb2 framebuffer memory is checked and invalidated. CRs-fixed: 357242 Change-Id: I2883926251a0465f69f18c442d5867556a4651bf Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0dc81db9cf48d869987e8fa8ab8914fcec964bda Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue May 15 13:38:45 2012 -0700 video: msm: Avoid waking readers on failed histogram copy Avoid waking up the waiting histogram reader when the current histogram has failed to copy. Additionally, clean up initialization of histogram workqueue (was initialized twice). CRs-Fixed: 361640 Change-Id: I376c0193b8e34aba5b0aef54feb9504f450ffff4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 71cf95bf1100ab5de55bf3858d40996be7dc445e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 7 11:30:52 2012 -0700 video: msm: Check for multiple readers of histogram Check to ensure that only one reader attempts to read one frame's worth of data from a histogram block. Prevent the case where two readers attempt to get data, but end up causing a loop where neither of them do. CRs-Fixed: 361640 Change-Id: I48878d9fe02d96f306894ed9acc47bf41cd9984b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 19e4b71f617e307cacf0be077e08bec5c37df290 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 14 12:01:04 2012 -0700 video: msm: Clear previous histogram data on next startup Clear the pointer to the userspace histogram struct when histogram is started. Previously, when the histogram was stopped while a histogram read was in progress, the pointer was not cleared, causing the next histogram read to think that someone was already using the histogram. CRs-Fixed: 361640 Change-Id: If09017149e98b35c49603372c554aa4c97f2de82 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ee888e34e20ec3bb4c2c385f3967ecaa9e97f49c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 15 16:39:10 2012 -0700 msm_fb: display: add blt mode enable and disable for lvds panel The check for lvds panel is missing, so blt mode can never be enabled for lvds panel. blt mode is critical to avoid underrun issues. Change-Id: I3cd74bcd978a73997df638f10cd2126ba9ab6577 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8f7c96dc7ee42acd71ea962cf0580f0a9480d5af Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 15 12:42:57 2012 +0530 msm_fb: display: Add support for MIPI NT35510 client on SKU5 Panel is 180 degrees rotated on SKU5 devices. This change fixes the 180 rotation on SKU5 devices in video mode. Change-Id: I9c7ff12de9e19534f8df8ebd9215d74ff0e429f3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9f1453ec3eb2b22160d25148a45f1731a23d4c95 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Mon Apr 16 13:25:00 2012 -0700 msm_fb: Increase PWM granularity to 255 levels for 8960 fluid Currently 8960 fluid display panel only supports 100 levels for backlight. Content Adaptive Backlight Control requires 255 levels of backlight for optimal user experience with CABL turned on. CRs-fixed: 342485 Change-Id: I02226a7790f2dd0144c1eb623c8177724e33a715 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit fee56a86ba3582e2985b2f5a0e535743381544ff Author: Pankaj Kumar <pakuma@codeaurora.org> Date: Tue Apr 17 14:26:49 2012 +0530 msm: Add support for 7x25AB MSM 7x25AB is new msm which can go upto 1GHz. Add required cpu checks to add support for this new device. Change-Id: I0be886d471fe0c70b8afd4da87b9991862a8571f Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org> commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54 Author: Siddhartha <agrawals@codeaurora.org> Date: Mon May 7 18:58:56 2012 -0700 msm_fb: display: Update video format on fps change Added check for frame rate change. Corner case if there is no change in xres,yres and pixclock. Change-Id: I0ff5eb65364d2a370e0973da7e84f738bd042a20 CRs-Fixed: 356328 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 514b1c651a33b7b73fb6f654d04355eac5ecb146 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Change-Id: I8d658ddf4f2ccb2ae47015fe411e8c1a5a55e4df Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ca15287e50fe00dd6526fdc166cb526298099fb2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri May 4 12:56:36 2012 -0700 msm_fb: HDMI: Do not add HDCP reauth timer during probe Currently all HDMI/HDCP timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HDCP timer being fired 5 minutes after boot even though reauthentication is not necessary. This change fixes this issue by not starting the HDCP reauth timer during probe. The timer is only started when an authentication failure is detected from an existing valid HDCP session. Change-Id: I0a28437daa2e95d24a02131322305f3b21a6445c CRs-Fixed: 352080 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d4aab1eb15aa7f9452f1e40688732815b39d4182 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu May 3 20:26:56 2012 -0700 msm_fb: Pass device pointers to regulator_get() Passing a device pointer instead of NULL as the first argument to regulator_get() allows the device to be taken into account when finding a matching regulator. Change-Id: Idc9990eff2c6c78fc9fc9a36d638eef4fd1b632a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 275f94daff0211c145526ee6d45bf48454b13afa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 15:46:01 2012 -0700 msm_fb: display: add mdp version info for later mdp h/w fbtest needs to get the correct mdp version number, but now only the version up to mdp4.0 is returned. Add the latest mdp version up to 4.4. Change-Id: If1ff302bb4a02ed13bb4dcabcb933fd5adfbec6d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit cfd004fa326a6dc4c7e80da707248b5bddaa39b8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 7 12:02:41 2012 -0700 msm_fb: display: Flush pipe registers before staging the pipe Flush pipe registers before staging the pipe for the Mixer with pull mode panel interfaces. This fixes the IOMMU page fault/underrun caused by pipe fetching previously unmapped buffers due to missing flush calls CRs-Fixed: 356484 Change-Id: I6bc2e49746a7c3773708796bc1709c75a8afaa4b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit eee66c6ffa18c954fa2583fdda66526f90bad40b Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 28 16:07:08 2012 -0700 msm_fb: Increase backlight granularity from 15 to 255 levels Currently number of backlight levels are set to 15, which causes noticeable flicker when backlight level is changed from CABL functionality in userspace. So to improve visual performance, increase backlight granularity from current 15 levels to 255 levels. This change is for msm8960 & apq8064 liquids which use Chimei panels. CRs-fixed: 342485 Change-Id: I204f881d45fbcd4a419cc8e61c3bcb1f4d520f7e Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 134786b7bbcb3c8b07b4f56b4421842b75e8471a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu May 3 14:44:39 2012 -0700 msm_fb: display: add dtv wait for vsync when in blt mode Currently dtv is waiting for overlay done when in blt mode. When dtv frame rate is low, this return may be too soon. So before dmae finishes updating buffer, the buffer may be overwritten by userspace. Add dtv wait4vsync after overlay done to lock the buffer untill the next vsync to avoid tearing or flicking. Change-Id: Ic57544a5305fdf9081bfeeccd8d364395faaf602 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6f043415300f58c5868e02050b15c8aa21c26342 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri May 4 01:16:06 2012 -0700 msm_fb: display: Correct LVDS Phy mux settings Fix the display color issue in 1.1 chips due to wrong mux settings in LVDS Phy Change-Id: Ia51500e15e0ffb3e4cc056073985cdeed5751652 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 29c5fb0392a1bf36ac385f5e8790999d70f6d2a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 27 13:50:44 2012 -0700 msm_fb: display: Clear background solid fill on closing video pipe Clear background pipe's solid fill setting on closing Video pipe to avoid blink issues in display Change-Id: Iac3c884334f38580fb5c9dbfb260dd6940ef5019 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b2bdae8ee4262a4e1d8e8e7f9c91b80790bdff27 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Apr 6 16:05:05 2012 -0700 msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe dtv_pipe is the base layer pipe for mixer1. Waiting for vsync when staging down this pipe (it happens when we unplug HDMI cable) causes mixer1 under run because at the vsync moment dtv_pipe is disconnected to mixer1. CRs-fixed: 349765 Change-Id: I3a09159c3ae2dfea963e5ad064076f5a9452ec1b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e534683723654af2a904e6dec3a646a2d9542408 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Apr 27 22:27:31 2012 -0700 msm_fb: Correct mdp_iommu array size to avoid scribbling The mdp_iommu array was undersized. This resulted in scribbling of nearby data structures which, through a long series of events, lead to invalid pointer dereferences in the workqueue framework's process_one_work() function on (at least) the 8930 SoC. CRs-Fixed: 357011 Change-Id: Ia8027ba8714bb90b336ee79d43920a7f71a8091b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 59508db9d5cec32ff59c2ff5a689288db2b027d4 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 30 16:30:29 2012 -0700 msm_fb: display: increase mdp upscaling range The old range is x8. Acturally mdp rgb or vg pipes can scale up more than that. The max up to x20 is verified. CRs-fixed: 340747 Change-Id: Ief7ee936e39de2ada87d47b14872bca0c3cf36a7 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b18c9e29486f574bc6353243e1c0116956ba712c Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Fri Apr 13 18:29:34 2012 -0700 msm_fb: Provide support for ARGC and CSC for layer mixer 2 MDP 4.4 supports additional layer mixer (LM2) with ARGC and CSC blocks. Extend existing ARGC and CSC functionality to additional layer mixer (LM2). Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0ae152b929dfc538bbb2c72f01b5f3bf14c3c6bf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 14:17:39 2012 -0700 msm_fb: display: update dtv panel info clk rate dtv panel clk rate is dynamically changed with the HDMI resolution. s/w panel info needs to keep its clk rate updated. CRs-fixed: 355110 Change-Id: I9365d67820158afb2bc520736df9152864a2a962 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e01bb5a4944eea27e87ca00a869105185c13664d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Apr 24 15:14:26 2012 -0700 video: msm: Add QSEED API to MDP_PP IOCTL Add the ability to program the QSEED Table 1 coefficients to the features supported by the MSMFB_MDP_PP IOCTL Doesn't support table2 writes currently, however, the code to write to them is already present. QSEED support is currently only configurable via a tuneable parameter that maps to a small subset of possible QSEED settings. By moving to the MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value requested by userspace. This also allows for future expasion of the QSEED feature by allowing dynamic loading of the table2 coefficients (rather than only configuring them at init). Change-Id: I7394e211169efb0e677391e2c150a6a6b8d0477c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 28ffb9c964d8d303c38f90b6c4bc8bf313356a54 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 11 23:37:15 2012 -0700 msm_fb: display: add dtv_pipe null check before dereferenc it There are chances that a null dtv_pipe pointer is dereferenced and system crashes. One such case is unplug HDMI cable while playing video. So a null check is needed for each dtv_pipe dereference. CRs-fixed: 355238 Change-Id: I1ff57b00169e217fc5ed98574db7fd49b9319d0a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 14648740d17ca1f154222aba29a1f2946609f460 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Mar 30 19:42:12 2012 -0700 msm_fb: MHL Driver for SI-8334 Transmitter The device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I845bc1b30dc799183357224a296215ecc1d44893 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b41048b637d4341e24f8f36b68b127fe600f6a1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 15 10:40:40 2011 -0700 msm_fb: display: add YUV444 interleave format support to mdp Add support for H1V1 interleave (YUV444) to mdp Change-Id: I86b76831ad87dede90ddd8d8f5ae64e51fa28c27 Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6098eee975076350586eb3010edda8b96ac998d5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 19 10:35:01 2012 -0700 msm_fb: display: Unstage video from primary mixer H/W on unset Resolve video playback suspend/resume IOMMU page fault by unstaging video layer on VG pipes from primary mixer H/W during overlay_unset calls immediately at the next vsync boundary CRs-Fixed: 350371 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ia1b2369005db500b5042d3226cf8d43027783fe3 commit 5ff2cb661c0575a45e8cf70384dd6c1d2dc8e7ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Apr 11 10:43:07 2012 -0700 msm_fb: display: switch mdp mode without turning off timing generator MDP need to be in idle state before switching to different mode. Dmap_done interrupt is delivered when the last line of frame is clocked out. Therefore mdp is in idle state during dmap_done ISR. This patch execute mdp mode switching inside dmap_done ISR. Therefore timing generator is not necessary to be turned off since mdp is in idle state already. CRs-fixed: 350154 Change-Id: Ib10557bde90856ffd5284a0a76dddbe92f2abc0e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d94b7d4d0c67a9bcdbb4ab1929ce70f4b6ec7136 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 23 16:02:08 2012 -0700 msm_fb: display: remove mdp writeback2 overlay kickoff waiting Before overlay2 kickoff, there is already a dma busy waiting, so once overlay is kicked off, mdp driver can safely return to userspace. Then if there is another request while ovlay2 is still busy, dma busy can take care of it. Change-Id: Ibb45a8b306a393c8e240fc64b5857e8700afcaba Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 012a8e79ebc3cd375f501a862e7b401b99c53054 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Apr 11 10:41:13 2012 +0530 msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers Many of MDP input formats don't have correct unpack pattern, so image displayed on screen is not in the actual format set. Also,Some rotator output formats differ from input, these mappings used to be handled in userspace, but to avoid issues this is now done in driver. For YCrCb planar inputs chrominance order is dependent on rotator hardware version. Add hardware check to swap Cb and Cr for 7x30 and 8x60 rotators. CRs-fixed: 339114 CRs-fixed: 337040 Change-Id: I55691aa7c9d38e83e4fc63a162ffb23959ba30c1 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 7a62a68bfa68cf9767b9cb6432c05a47e296067b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 14 15:56:13 2012 -0700 msm_fb: HDMI: Compile error when HDMI is disbaled Resolve compilation error when HDMI is disabled through kernel config. Change-Id: Ie89ac666fe4db83294cce07f59f61790b200d463 CRs-Fixed: 341412 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 87dd72e286299134b5783cb90f61e7eaec7d2788 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Apr 16 19:07:36 2012 -0700 msm: display: Clean DSI state on continuous splash disabled cases Reset the DSI clock control, disable controller and PLL to resolve boot issues for DSI command mode for continuous splash feature disabled/unspported cases Change-Id: I1e5e9a9d2d548c518d2620bf6d9e125d5efc8fd4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0769dbd1fabe600bf6a8bd1d563c9e31b8d7c122 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 19 16:54:09 2012 +0530 msm_fb: display: Update clock prepare changes for MIPI DSI Update the clock prepare/unprepare changes for MIPI DSI clocks and update the clock lookup table for ebi_lcdc_clk for MIPI DSI interface. Change-Id: Ic31e2e1b169894e633849573eb54325457080b53 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 60d51beb9dd5db3f1adeb203728b1d7ccdec8e0c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 18 17:18:31 2012 +0530 msm_fb: display: Change panel init command for NT35510 for proper display On NT35510 panel, the display is 180 degree rotated right now for video mode. Change panel init command in the init sequence for Video mode for proper display. Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d16485de65e9e7d611293f5b6174b3a3efa7a3d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 21 16:51:26 2012 -0700 msm_fb: display: Add clk prepare changes to MDP and rotator Use clk_prepare_enable and clk_disable_unprepare instead of clk_enable and clk_disable respectively. CRs-Fixed: 351340 Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0f0000abcba6f99593dab94ca869c3d865a73e29 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 12 10:23:02 2012 +0530 msm: display: Backlight control on 8x25 EVB for qHD panel Add support for backlight control on 8x25 EVB for qHD panel Change-Id: I488786b45b844df776952fed4d23b9a4fb337107 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5479cc16a03c6b791daa5eac8f45018ea873cfc1 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:40:40 2012 -0700 msm_fb: HDMI: Enhance EDID Parser to read supported 3D formats EDID Vendor Specific Data Block (VSDB) contains information regarding all the 3D video formats that are supported by a sink. This change enhances the EDID parser to read this data. Change-Id: I61ca8adbff8f4662e437bab42786149c39ea78da Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8b25b2a0b5910befcf0668dc76294f83dccc080f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Apr 12 14:19:12 2012 -0700 msm_fb: HDMI: Fix EDID parsing logic for multiple data blocks This change fixes a bug in EDID parsing logic when there are more than one data blocks of the same type in the EDID data. With this change, the starting offset used to scan for the next data block, is computed correctly. Change-Id: I5d09fe61be9f7c749197991f54e430ae3aaddbcb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 45ce501383ee71df0072b4e5426f9daa7941636a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 9 11:19:07 2012 -0700 msm_fb: display: add mixer1 writeback buf init call mdp4_init_writeback_buf call is missing for mixer1 interface. And blt_addr should be nulled when dtv interface is initialized, otherwise, mixer1 writeback mode may be false enabled which causes system crashes or garbage display on TV. Change-Id: Idbf5fe90eb50f0a68b434f2c76012c64a38553a4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 7b8b64075ee4b61c15e28f3042672b26674e0b45 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Mar 1 10:58:03 2012 -0800 video: msm: Add Histogram collection framework for MDP blocks Expand the previous histogram collection implementation to support the addition of other MDP blocks that allow for histogram data collection. Support the VG1, VG2, DMA-P, and DMA-S histograms using this new framework (VG pipes only supplying the histogram of luminance). Change-Id: I94088c1f714fa5d91256ae7b0f5548f8a0b81763 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 20582a5cf3fad8e9fda7ded6478ed8a32b376b97 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Apr 11 10:57:22 2012 -0700 video: msm: Remove an ifndef from mdp_isr Remove ifndef so later patch does not require adding more ifndefs. Change-Id: Ia06e844f42086ad76019f66b575ed78a40ebafc4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 5 19:09:40 2012 -0700 video: msm: PCC/GC config register protection PCC/GC configuration registers are shared with other features. This patch makes sure that the other features implementations don't overwrite the existing settings for PCC/GC. CRs-Fixed: 345395 Change-Id: I5467a4c50eae214181d67a7976eee92c0ae26fe5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97e2fcf862d913feff157f536ee14cfc5f3197f7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 10 14:11:22 2012 +0530 msm_fb: hdmi: Disable 1.1_FEATURE Some displays support Enhanced Link Verfications(1.1_FEATURE) which makes HDMI Tx to verify Pj on every 16th frame. Three consecutive Pj mismatch will result in HDCP authentication failure. If 1.1_FEATURE is supported(this can be detected by reading BCAPS), it needs to be enabled by writing into AInfo of display. Default is disbaled. This change sets HDMI Tx core to disable 1.1_FEATURE by default so that we don't see Pj mismatch error unless the feature is enabled. CRs-fixed: 348752 Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b52a25139f7b14bb3b9e052d1af3def2fff5d25d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 10 18:27:23 2012 -0700 msm_fb: display: Fix HDMI as primary issue with continuous splash support Fix HDMI as primary boot failure with continuous splash support by resetting MDP hardware and disabling splash feature flag in board data Avoid flickering issue for HDMI as primary display with composition bypass updates Change-Id: I9620062f10b24072ea23b7e712e24aba533f044b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6b7005caf369caf819c1bc3e29a633893b9ebcc4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 6 18:58:44 2012 -0700 msm_fb: display: Allocate writeback buffers of panel resolution sizes Allocate MDP writeback buffers based on panel resolution size dynamically Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I4a456199a05850f35c204edfa7ae3679036138a9 commit 8c23e070b04aa6160681203bf431db60eb7e2e9a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Mar 14 11:35:49 2012 +0530 msm_fb: display: Enable 32bpp framebuffer format. Enable 32bpp framebuffer format for 7x27a and 8x25. Change-Id: I38deabca45ea849710bd2edb2b6847c5309a0c9e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 2e931122a4bab690ed345730d7733904eb97d5b8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 11 11:05:39 2012 +0530 msm: display: Reset BG_alpha register while alpha blending Reset BG_alpha register when pre-multiplied alpha is not set for a layer during blit request. CRs-fixed: 351158 Change-Id: If103af384d59c3349cb2ef556a497c709d9280a2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1b064f5e1e5a7426fad6ab8ada8e47dbb091937e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Mar 15 18:17:54 2012 -0700 msm: display: Add device pointer with clk_get for retrieving clocks clk_get requires device pointer to return appropriate clocks for display subsystem. Rename the names of display related clocks in the lookup table based on functionality. CRs-Fixed: 336925 Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59e7b0e47eaee57850157361f31c230b3e1c8a8f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Apr 6 15:51:44 2012 -0700 video: msm: Allow PCC/GC to be disabled/select bins Current implementation would not set enable/disable bits to PCC/GC nor be able to select the zero'th bin after selecting the first. Change-Id: I0f52beb8914cdaecbabe913455c00fb9ea6100db Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fff7a7d207a8791a68706bf8fac3838884981204 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:27:19 2012 -0700 msm_fb: HDMI: Enable SPD InfoFrame transmission Sinks use the information in the SPD InfoFrame to get the vendor name and the product information of the source device. This change adds the ability to specify this information and transmit the data as part of the SPD InfoFrame. Change-Id: Iff3db2e21cc30cdcc18787de5fd83c6a0790794e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b64b8dee8c93cb806a906440ef8a4aa72486df75 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 3 23:04:35 2012 +0530 msm_fb: display: Unstage mixer staging on next commit for video use case Unstage of mixer occurs on single vsync. For video playback case on 8660 it is observed that sometime unstage does not complete due to which flicker is seen during unset. Unstage of mixer is now done on next commit only for video use case to avoid flicker. Change-Id: I4939148989d49b3190142f858a40d2cf7617c7ba Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit bea9c06d44800da4c7cbc75e25731a75bd9f84ae Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Apr 9 10:33:48 2012 +0530 Revert "Revert "msm: display: Backlight control on 8x25 EVB"" Enable backlight control on 8x25 EVB for WVGA panel. This reverts commit 75cf6b84b36b054cb7b8074af165cb082112c7d7. CRs-fixed: 339158 Change-Id: Ice8426442c9d82a7316dfd4d812e9f6301a97850 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c55856c548e0cec8b29e415a08a353a0ab1ac4c8 Author: Alhad Purnapatre <alhadp@codeaurora.org> Date: Tue Feb 28 13:24:57 2012 -0800 msm_fb: display: MSM V4l2 video overlay driver Provides a V4L2 device that uses the MDP overlay pipes (on MDP4), or the PPP interface (MDP3) to overlay frames on top of display framebuffer. Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org> Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee commit aabbf2b21c415c226b680df7ee61b565f47d8603 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 7 10:50:19 2012 +0530 msm_fb: hdmi: CEC re-transmission improvements. Adding some improvements to HDMI CEC code flow to reduce the risk of system crash and compliance failure by proper CEC resiters settings and positions in code flow. CRs-fixed: 336541 Change-Id: I8fb3510190e5c4ff83b3785c51bade139f20692c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6fdf4becd5fe50e52d587d35d1ee047385351f83 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 30 18:34:05 2012 -0700 msm_fb: display: Create hdmi_as_primary node for boot parameter case Create hdmi_as_primary node for both boot parameter and compile-time cases when HDMI is set as primary display Change-Id: Ib170637e3792477e46ae0fb6044b298bf8de875c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f0bd4cd4ca4114298fba41f18db9babe0533e075 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Sat Mar 31 14:35:50 2012 -0400 msm_fb: display: Epson ebi2 panel support Support fb with ebi2 only(without mdp) Add Epson ebi2 qvga panel support Change-Id: If61b2c522a102133f98f27b21dcc18d057b7ef25 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 226b429d026195ff93b7de8066d8943b58dc65a5 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:35:31 2012 -0700 msm_fb: HDMI: Enhance EDID parser to read physical address This change adds the support for reading the physical address field in Vendor Specific Data Block (VSDB) of the EDID data of a sink. Change-Id: I435705a7709ea26cff71121a2c37fd630b267ae5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d89c0e7712dd5cf13769b4d0facfecb93028538c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Mar 28 10:17:20 2012 -0700 video: msm: Load correct default values to QSEED at init The previous QSEED Table 1 values are not suitable values (would end up smoothing and sharpening content which can lead to artifacts). The values loaded by this patch are the suggested default values for QSEED since they do not smooth or sharpen most content (bi-cubic filter), but will slightly smooth low frequency components of the image (i.e. helps reduce artifacts that produce sharp edges on content that is supposed to be a constant color; often introduced by some video encoding algorithms). Change-Id: Ic4c0ca4719141bf52123ad239fcca5d3767a2c2b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5066a5f662d0d88ad4c94158fe392bb0fbd61cb4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:29:32 2012 -0700 msm_fb: HDMI: Support VCDB parsing of EDID data This change enhances the EDID parser to read the Video Capability Data Block (VCDB) in order to check whether a sink supports underscan mode. Change-Id: Id4e48db4ff7f54fd72d40a413e2f03b692b662c1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 6e73f0a25171e3e5d2d520da99a02f74c5646592 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 8 17:32:55 2012 -0800 msm: Display: Add support for backlight control on 8930 chipset. Register the PMIC WLED trigger driver to control the backlight level on 8930 chipset. CRs-fixed: 339310 Change-Id: Ia73625cfeaa18f2515c81a4c128f98f9fb5c0b32 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b7c45f42b50b609bb632a0f1f1b2e404af38329a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 3 11:39:39 2012 +0530 msm_fb: display: Enable pre-multiplied alpha for MDP303 For images which are pre-multiplied with alpha, driver support is now added to blend them properly. CRs-fixed: 347803 Change-Id: I859c26c5f52fa0886c106928ef338bd9d0db4462 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 18e249a842a459c14624354f00ef3434d3b6c643 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Tue Feb 21 01:10:56 2012 -0800 msm_fb: lvds: Fix uninitialized variable warnings The compiler doesn't know that there are only two values for mfd->panel_info.bpp. Add an else arm to catch the unknown third value as a BUG() so that we avoid writing initialized variables to registers. Change-Id: I643df7e256cda59a4af73571e1cc5eef610d781f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 2d19103b77ae63fe127304b9c3ceeb1f399c756a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue Feb 28 09:46:31 2012 -0800 msm: Enable all IOMMU's Enable video, camera, display, and rotator IOMMU's so that virtual contigious memory can be used by these devices. Physical contigious carveout regions can be reduced so that more memory is available to the rest of the system when not in use by multimedia. Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 70b866b2ca1d92ee632b5f3eb591d7ae09fab492 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Mar 27 14:50:25 2012 -0700 msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication All HDCP interrupts should be disabled at the beginning of HDCP deauthentication process so that we do not process any redundant HDCP failure interrupts while deauthentication is underway. Change-Id: Ib5149460446b6073122a8249807918d5ad06492c CRs-Fixed: 341921 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 92e58bb7966bbaf8b4c73bf98a5d55dde9980b37 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: flush base layer pipe when solid fill is enabled Need to flush bgpipe with solid fill format to avoid fetching from bg pipe when its contents are not displayed. Also add other missing flushes. CRs-Fixed: 342961 Change-Id: I03e517e02c02d9abc26fd9365e7b67025fa59657 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c0852b7c3a9d08f8d80ad2bb01316f7252f23ced Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: perform data flush for each data path separately Performing data flush on stage commit causes some frame updates to be missed waiting for stage commit, this can lead to old data being overwritten while it's being displayed causing visible corruption. Change flush to happen on each frame update to avoid corruptions. CRs-Fixed: 341597 Change-Id: If91800068d2bfd5a2e43fe3e2a96c457e173763d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d46e8d072e432c19eec0e7a2b04a9b6967906242 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Mar 27 16:22:11 2012 -0700 msm_fb: display: remove #if 0 Cleanup all #if 0s in display driver. Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit aabb74cb030c086ca67f51b3d56deb678d4f040a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Mar 15 14:25:32 2012 +0530 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> commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 2 10:20:48 2012 +0530 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> commit fd0df3ccda02dd1fad680735333bea7ac025abc5 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 30 17:03:51 2012 -0400 msm_fb:display: add display support for mdm platform add setting for no mdp hw case add ebi2 epson qvga panel setting Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 687b109b5f46caf68efde0a1c3a1084a5576a997 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sat Mar 31 15:45:21 2012 +0530 msm_fb : display : Add 60fps support for NT35516 qHD panel This change adds the required support for 60fps using h/w vsync in Command mode on NT35516 DSI Client. Panel Init comamnd has been modified accordingly. Also, since the panel gives 59 to 61 TE signals per second, refx100 has also been modified to indicate the maximum possible refresh rate with this panel. This will ensure smooth operation of DMA Tear Check algorithm. Change-Id: Ib2c03e61509946b7929c3cd21b497a972359fee3 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ff6bfa8e6f2a62ebb19aabd9ed499ee7efa0e006 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 23 17:48:47 2012 -0700 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 commit 3ef84a5ab70bbd65799dbf72b3375b0bc764140d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 22 22:14:41 2012 -0700 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> commit 75cf6b84b36b054cb7b8074af165cb082112c7d7 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 30 15:04:52 2012 +0530 Revert "msm: display: Backlight control on 8x25 EVB" Waiting for the vendor approval/permission letter. This reverts commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd. Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d85b55446992dd36bb9b8ee56f7e95be97278425 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Mar 26 15:59:58 2012 -0700 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> commit 5b5f2188eb7f6c774b435263284f6179cb35c508 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Mar 21 13:43:55 2012 +0530 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> commit 6bc448aefa897a1e08a6c817280809afc189faa7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 14 11:31:52 2012 -0700 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> commit 87260cdaef95054474e97fab85e3fb691f03a035 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 12:00:45 2012 -0700 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> commit 4a9d3382873adb7aecab07345f3d253eefd150cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 19 16:10:42 2012 -0700 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> commit 2aa111c008157070e871aa5788e9c3664935847a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Mar 20 11:58:44 2012 +0530 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> commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Mar 6 18:23:50 2012 +0530 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> commit 14e8c40443d2c2891c232c2becda9073a1a44186 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 5 14:57:09 2012 -0800 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> commit 042cd63a1b7674feaf70e41a44550678ae338bbc Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 19 12:51:37 2012 -0800 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> commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Feb 28 12:24:39 2012 +0530 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> commit a3b168b4d1f6b32f17a3498940cf198fdfba0722 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 11:13:11 2012 -0700 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> commit e350d9bcee496c06f79a6490f108f77ed73f66e3 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 26 08:29:54 2012 -0700 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> commit 28338aebe08832ba8a01c28b290615d60c023128 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 13:31:28 2012 -0700 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> commit 8d3b0fce866e5f05f18a47bc0cd8f60356dbeb23 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Mar 14 20:18:30 2012 -0700 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> commit 88ad8a7be06a86104169cf2739c18c7d4409dde6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 14 14:19:18 2012 +0530 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> commit a1f9df15e005241ecf23069f7d345f9a943c06ef Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Mar 9 19:48:18 2012 +0530 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> commit 56dfb682a5bf274842140716333c791d010e38ef Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 21 16:23:54 2012 +0530 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> commit 16f27dc68e406e181c306cc1fb924dca43fb1080 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Wed Mar 7 17:04:24 2012 -0800 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> commit fa530308e1fa485a39e35ed17879b6ab1e665c37 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 12 15:03:10 2012 -0700 msm_fb: display: Remove base layer for DSI command mode during suspend Remove RGB base layer pipe for DSI command mode during suspend to unstage all pipes in Mixer 0 properly CRs-Fixed: 343233 Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c1fa46367d021fc3e457df2bf5b6331c41ad189 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 7 17:49:09 2012 -0800 msm_fb: Handle flags for updating AR GC lookup table (LUT) In current implementation of area reduced gamma correction (AR-GC) LUT configuration,flags for read/write AR-GC LUT and enable/disable AR-GC LUT functionality are not handled even though the IOCTL accepts these flags as part of arguments. So in current implementation by default updates the AR-GC LUT which may not be expected always. So, handle flags for read/write AR-GC LUT and enable/disable updating area reduced gamma correction (AR GC) functionality Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 225152437092241cb3f6ff5b97896684d856f844 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Mar 1 17:45:52 2012 -0800 msm_fb: Restructure PCC and AR-GC code for clean implementation Current PCC & AR-GC implementation uses macros for base addresses, while other post processing features use mdp_block2base() function. Also, in current implementation check for feature supported for MDP version in device is not performed, currently function which implements AR-GC, is named as mdp4_pgc_cfg() which is bit misnomer. This change uses uniform method for calculating block base using mdp_block2base(). For checking MDP version and feature supported using mdp_pp_block2pcc() and mdp_pp_block2argc() functions. This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to correctly indicate the functionality it implements. Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Mar 12 14:55:04 2012 -0700 msm_fb: display: disable mdp flip when enabling mdp solid fill If both solid fill and flip mode are enabled, MDP underruns. So for any pipe, if solid fill bit is set, flip operation modes including left/right or/and up/done are disabled. CRs-fixed: 334782 Change-Id: I879231d03c6aab6f82d80bde65c9f01c34f1fa6c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 2bd101d5bed1729b317114456360605e86289c15 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 16 11:32:23 2012 +0530 msm_fb: Clean up the fix for error in y-offset check in FB driver There is a failure observed in yres_virtual offset check and every third frame gets skipped without an error message. Due to this high fps is noticed in the test applications. Correct the yres_virtual offset check. Change-Id: Iddce0b75e0a9c466adad6eb5726203ae0586c27b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Mar 12 19:43:41 2012 +0530 msm_fb: display: Change perf level for VGA video Change perf level to 3 from 4 for VGA and less resolution video usecases. This avoids underruns seen with camera/camcorder usecases on 8660 and older platforms. CRs-fixed: 338044 Change-Id: I12fa81f10dc6d02caed44c5b7e6f5732a57bb095 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Mar 15 14:40:11 2012 +0530 msm_fb: hdmi: CEC Message queue flush CEC message queue should be flushed when CEC function is enabled. If there are residue CEC message, they might cause collision at message queue. CRs-fixed: 338811 Change-Id: I6268528417d660fab48818ae67e94e169abbb217 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a950365ed12ab0d66367b06bd1c3236cbcf695a1 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 12 16:17:23 2012 -0700 msm_fb: display: check dtv_pipe before unset it Dtv_pipe is the base layer pipe for HDMI and it is normally populated before overlay_unset() called to free a mdp pipe. However at wireless application, there has possibility that overlay_unset() is called to free a pipe even before dtv_pipe is populated which cause system crashed. Therefore check dtv_pipe before free fore ground pipe. CRs-fixed: 340884 Change-Id: I32b69e937f21646204c7fd7275988ee12e439655 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e5c9f6e5f9fe550e228cc5b34dbde086b151a613 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Feb 22 15:09:07 2012 -0800 msm_fb: display: initialize is_flag variable This local variable needs to have init value, otherwize it is always true, possible for mdp4_overlay_perf_level to return incorrect value. CRs-fixed: 338543 Change-Id: Icbb665773545e866c7f48edaf3ecf11272713d19 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Feb 21 12:00:12 2012 +0530 msm_fb: Clean up of frame buffer 4KB alignment changes Remove redundant code from the 4 KB alignment patch and reduce the overhead of calculation of the hole size by using bitwise operators in its calculation. CRs-fixed: 325134 Change-Id: Ie2e3ea7cbb2a815ae4f50cb97e6c5be1bd72fe27 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 10 08:40:51 2012 -0800 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Change-Id: If5b80d0c3a9b5edd21ae6651321572c2fdcac951 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0507c8cefa525a89df9b9e2a305e2bd7c4f6d7b2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Feb 16 17:16:05 2012 -0800 msm_fb: HDMI: Add support for HDMI on APQ8064 Configure necessary PMIC regulators, GPIO, clocks and parameters related to external display to enable HDMI on APQ8064 target. Change-Id: Ia2741fc13c6a640ebc610461ad4242929383b611 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 5245ec886f6e282b8f3c1b0e3f7aecbfae9ed85a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 2 13:49:53 2012 -0800 msm_fb: display: change pixel sequence on lvds lanes This is a s/w workaround to fix lvds phy h/w bug. On the rising edge of lvds phy clk the phy transimits d0d1..d6 sequence, however, lvds panel from the manufacture expects d6d5d0...d4. So s/w adjusts the sequence on the phy side to meet panel spec. CRs-fixed: 338715 Change-Id: If852ba29954b363911d04cd08d3784ce7d385c2f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 416878307740e2d475511ed0f12ebbd50db8c156 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Feb 22 09:15:28 2012 +0530 msm_fb : display : Add support for NT35516 qHD panel This change adds the drivers for NT35516 DSI Client and Truly qHD panel. Change-Id: Ifb7e02300a8e42d7097845638b77e311e92f69d6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit d37b52404236bf4cadf530a238cafc5d6499d32a Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 9 20:16:21 2012 +0530 msm_fb: Fix error in y-offset check logic in FB driver After 4 KB alignment changes, the frame from 3rd buffer doesn't get updated since during PUT_VSCREEN_INFO ioctl, the driver returns -1 to userspace due to error in logic because the hole size is not considered in calculating the logic for validity of the y-offset. Change fixes this error. Change-Id: Ib151970eacab4df36fb8274be0079bc814e93efe Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fff132dffafe129620475a51c34309b4fff08dce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Mar 7 13:22:30 2012 -0800 msm_fb: HDMI: Enable HDMI on 8930 target Register HDMI device and enable HDMI driver initialization for 8930 target. Change-Id: Ia3d1f0963de079e7af3cd683a498897cd677e97a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit fd3a0274fc30e8f795365e8cd8c90d2b0b3df2d7 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Sep 26 17:29:37 2011 -0700 msm_fb: display: Add MIPI DSI 720P Orise panel driver support Add support to run 720p MIPI DSI Orise panel in both cmd and video modes Change-Id: Iefd5594ba2fafe7797378f3297d169ebbce9b963 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a6f72edcca16dbed1e345fe472df32f08f5548ca Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Mar 2 16:51:57 2012 -0800 msm_fb: Display: Change the VCO frequency range for 8960. The DSI PHY PLL is not stable for VCO frequency between 500 MHz to 600 MHz on 8960. Fix this issue by changing the VCO range from 500 Mhz - 1 GHz range to 600 MHz - 1.2 GHz range. CRs-fixed: 340956 Change-Id: If09ac96455e16c5c2ca219c74e7ee0c758d55851 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 0bb7fe942f5e655d1ac1b10398ccda73ce83550e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 27 16:06:30 2011 -0700 msm_fb: display: Dynamic boot support for HDMI as primary display Move boot parameter to board display file as early_param for proper allocation of PMEM and ION sizes. Change-Id: Icfb163f572e8e010550747ec83787b6da6e86ee2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit beaa9356713db6949eefa32ed329bf87a3461842 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 16:59:26 2012 -0800 msm_fb: display: decrease file->f_count when play Frame buffer's (fb0) f_count needed to be decreased after both overlay play and rotation so that fb0 can be closed and display will be blanked out after system suspended. CRs-fixed: 336254 Change-Id: I966e7b2bb4def0c9c09580be12048933723e2c2e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d19d0d22e03dba3b2b08356bc18ed1b2987e70c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 12:50:37 2012 -0800 msm_fb: display: call mdp_pipe_ctrl() with correct block name Mdp_pipe_ctrl() needs to be called symmetrically within same block name for both ON and OFF operation so that mdp clock will be turned off after OFF operation. CRs-fixed: 338802 Change-Id: Idda450a32c0c897327c17dda70fc05e9fb74d510 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5649bcea56c8aecbf88fb97a2a88d7142f5ca1f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 7 18:23:32 2011 -0800 msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth On HDCP reauthentication, the HDCP link status register does not get cleared unless the HDMI app clock is deasserted and asserted. Stale values in the link status registers can potentially lead to the HDCP HW block getting locked up resulting in a device reset. Change-Id: I4952c64d4087e4303cbc75dbb61f66510b0a0798 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 682888654f146d6c34c76b9db435c9c6fe58eeea Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Jan 18 16:08:55 2012 -0800 msm_fb: display: add overlay1 writeback enable and disable This logic is used to enable mdp overlay1 writeback mode when downscaling in any pipe for mixer1 requires a mdp clk rate more than its max, and disable it when no pipe requires more than max mdp clk rate. CRs-fixed: 330895 Change-Id: I67632fdc2cf4c357753603fee293817bb87581ca Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4c7ccb31068e6b606520722279fc8add740d7578 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Feb 21 12:56:04 2012 +0530 msm_fb: display: Use FIR (QSEED) for upscaling. Low resolution UI is observed on HDTV connected with HDMI. FIR (QSEED) algorithm needs to be used instead of pixel repetition to improve the performance in case the BYPASS composition is not used. CRs-fixed: 332123 Change-Id: Ib4c2b107b4ae1300458cccc7e8066d31aee50a0d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38eac1aef2250181f1a2f9d75529f0961257740b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Feb 28 16:24:06 2012 -0800 msm_fb: display: set max clk level when more than 2 pipes used Correct logic to take all pipes into account and increase clk perf level to max when more than 2 pipes are used. Change-Id: Ibe6594e23a95e72c113b98c8f08b33395677d212 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c246a1bd2edbf1607e5437ee46c0f7a043d6bd5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 20:38:43 2012 -0800 msm_fb: display: perform bus scaling updates when idle Move bus scaling updates to same place where MDP clock is changed which happens when MDP is idle. This allows MDP sufficient time to finish fetching buffers before commiting unstaging changes. Change-Id: Id6e04522928b0f815091e17054fff94e0e111ff1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3e9ca08c34561167db0e7aa7179b224d8e10a1e5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 13 12:14:59 2011 -0800 msm_fb: display: Remove boot parameter parse support Remove boot parameter parse support from framebuffer driver. This is done as a part of moving this to board-display file. Instead of detecting the panel in msm_fb file, the detection is now handled in individual board file. Change-Id: I722cc6964a815bd99b1cf0856ef9c1a4481898d4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b88ffd3484ecddbfe7a24ae9a8438b0d3792d116 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 19:42:44 2012 -0800 msm_fb: display: enable unstage caching for command panel Enable support for caching of overlay unsets for command panel to flickers between frame updates. Change-Id: Ide9a165cfddb33a5cd0756b9cd469b0c3374f2ae Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d60dff3ca61bbdc6881b9aaf34baea570c25fa32 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 14:01:09 2012 -0800 msm_fb: display: wait for vsync staging down in overlay unset Need to wait for vsync so registers are properly flushed when commiting stage down changes in overlay unset Change-Id: I56bfdf56c2a32f109f3d9264c8cc4a086ef2c356 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit acde4b6510b352b97ca1dc7d3386c6696e8f10fb Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Dec 16 15:50:56 2011 -0800 video:msm: Add IGC LUT functionality to PP IOCTL This patch adds the functionality to write to the IGC Look Up Tables (LUTs) in the MDP. Change-Id: I4789820a56748b1a5e33ee4ca979e418170695a3 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 330b4ae84d423bee684af24a2e52b4d81831a37f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Feb 20 19:24:56 2012 -0800 video:msm: Add support for updating Histogram LUT using MDP_PP ioctl This adds the ability to write to the Histogram LUTs in the VG pipes, DMA_P and DMA_S. Change-Id: I548140d01aee5c2fd437aa218a307b4d1364dade Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14b56ad8f78a974de534aa02523624304983acfc Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 22 14:56:21 2012 +0530 msm_fb: hdmi: check for multiple hpd on/off calls HPD on/off may be called from userspace and from kernel asynchronously which may result in system crash or reset. Returning in case HPD is already on/off. Change-Id: Ic6233925e02e6070e3ebc3fa40a87717e7b2ad1e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6cc11c405ae51f50436f48160faf302b8b29d486 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Feb 7 15:25:46 2012 -0800 video:msm: Move histogram reads to workqueue Histogram must be read after each histogram completion in order to clear the histogram registers; this patch reorganizes the histogram code to use a deferred workqueue task to read the histogram registers out of the interrupt context. As well, this re-organizes the histogram start-up to clear, using the same new workqueue, the first histogram that is read because it is often incorrect (too many or too few bins filled). CRs-Fixed: 328214 Change-Id: I4088028fc805113e74b5b763c6458183e75421cf Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff10d072f13a0845fc4e6dc0f82d2f51d9209e6e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Feb 15 15:19:29 2012 -0800 video: msm: Allow Enabling of DMA P Hist LUT Histogram LUT enabling was accidentally disabled by a previous patch. This patch allows it to be enabled again, while not conflicting with the patch that previously disabled it. CRs-Fixed: 336128 Change-Id: I5106999d79b5fdee255e23d31e5bc7de5d59b937 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e063a05cb7b869853ac7968c29acc0891b0d70f9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jan 30 16:26:57 2012 -0800 msm_fb: display: change perf level for 720p landscape video New perf level 3 (128M mdp clk) is used to play 720p landscape video, changed from previous perf level 2 (160M mdp clk), to save power. Change-Id: Ie27de4d2e407513eeb4cfb8fba6dd535a45c1364 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 20bd54d7d64317f2c9e3b1384133a1c550454948 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Wed Feb 22 10:22:36 2012 -0800 msm_fb: HDMI: Create hdmi_as_primary switch node If HDMI is used as primary, rather than external, create a switch node named "hdmi_as_primary". Change-Id: I694a12c1b8d223417090183b9d57913dca4df5be Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit c7a7cc6dc79a6f60b0468efd0fb3964b1ebc7a70 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Dec 15 16:25:45 2011 -0800 msm_fb: Add support for Area Reduced Gamma Correction (AR GC) Provide API for programming Area Reduced Gamma Correction parameters. AR GC is used for adjusting panel gamma behavior for R, G and B channels. Tested using dummy AR-GC data from panel calibration and fbtest Change-Id: I64e9f81510160ffaacb6927de1812dfd2a3e5436 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 85153bdf335804c526746ab8d930087b658f3d50 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Dec 13 13:56:46 2011 -0800 msm_fb: Add support for Polynomial Color Correction (PCC) Add support for programming Polynomial Color Correction (PCC) parameters on MDP. PCC is used for enhancing colors on display panel by programming the display panel calibration parameters Tested using fbtest and dummy calibration data Change-Id: I57dae828365f02d560e932ed0f26aa76c819fd31 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0056791344518f90c5708a5d3233373bb4e4cca6 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 18:27:42 2012 +0200 msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver. The Toshiba bridge has both DSI and I2C interfaces. The DSI interface is used for configuring the bridge registers during setup. However, when video is running via the DSI interface then the I2C interface is used for read/write the Toshiba bridge registers. Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit ac5337bb28f81c29b7449626f442e84742186574 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 03:26:00 2012 +0200 msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps. Fix front porch blanking according to the panel EDID for 60 frames per seconds. Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 91e4135c0f44697891b7ea933a8dacfac375a1e3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Feb 10 18:23:04 2012 +0530 hdmi_msm: Power down PHY register during suspend Add change to power down phy register to save current when device goes to suspend state. CRs-fixed: 333739 Change-Id: I5c1c4202637cc8391d1dba03071a246e4f891307 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5f4b579b68fdc6f50ba20a50e31814a7ec2bc45d Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Dec 7 17:14:10 2011 +0530 msm_fb: Change the sequence of backlight control for Gordon panel During Resume, backlight control settings are getting set before the Gordon panel has been initialized. This change corrects the sequence and ensures that display is proper after resume operation Change-Id: I22a6c857da3cb011404198b94e4347f76292a77e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 25 12:01:28 2012 +0530 msm_fb: Make buffers aligned to 4K page boundary This change makes the frame buffers aligned to the page boundary. Improves GPU performance since accessing the frame buffer from page boundary is faster. CRs-fixed: 325134 Change-Id: I6ce4477f62536a3cd81064e26dc08f2b199e181b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1573599adbb42c606d8b91854c76461b3f212c3e Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. Change-Id: Ia5a2e09372129a4358a46a623e6880095da4f0b4 CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9919b7e5503bc078720337da27a421ec3833e528 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 15:57:39 2012 -0800 msm_fb: display: perform mixer flush on every commit Mixer needs to be flushed on every commit instead of just when mixer cfg changes to flush changes in blending configuration CRs-Fixed: 336655 Change-Id: Ia56380eac1bd9dfb0795d930dc97a85dd30ba8a8 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a369ce03ca048fb511642ac1cb73c1f652d70c50 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jan 20 16:13:43 2012 +0530 msm_fb: display: Fix for HDMI bootup issue If the device is booted up with HDMI cable connected, HDTV would go blank unless the HDMI cable is removed and inserted again. This is happening because the dtv pipe is initialized after HDMI core is initialized. The dtv pipe needs to be allocated at the bootup time when dtv is turned on to syncronize the HDMI core and DTV overlay. CRs-fixed: 331867 Change-Id: I90f6434e8440548391a6846b47bb5539f2e436b7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3b9595f629805408d572892227091cd1b42560fd Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 8 16:36:03 2012 +0530 msm_fb: hdmi: Fix for EDID parser error. For an older TV, which doesn't contain Data Block Collection, the EDID parser was parsing wrong supported video resolutions. As per EDID standard, if EDID block 1 byte 2 is 0x04, it means there is no DBC available in EDID so the supported video resolutions should be read from DTDs of block0 and block1 instead of SVD of DBC. Reading DTDs for supported video resolutions instead of DBC for byte 2 being 0x04 case, fixed the issue. CRs-fixed: 332148 Change-Id: I637b91059952b63029cf4f05f750c340bdfa37a6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 36d8ccd620799d2ad224f22a4c4c34c0256e1d08 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 10 11:53:49 2012 -0800 msm_fb: display: Add DSI Video Toshiba WUXGA(1920x1200) panel support Add DSI Video Toshiba WUXGA(1920x1200) panel support using DSI Toshiba WSVGA bridge chip for controlling panel Change-Id: I36de195a0f86acd5415f2c6a0c4f0cfe050512bb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 23fa9e7a958be09f9d6743cea026a4f56b84a48f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 31 10:31:53 2012 -0800 msm_fb: display: set mdp perf_level to low level after playing video This bug fix sets mdp clk rate back to the rate for UI after playing video to save power. Change-Id: I73a0db158536b27a4a50d25b7737db4327210b8f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3b6551e3642301c92a1c96a70c4905da87b268ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Feb 15 16:11:39 2012 -0800 msm_fb: display: Add supported MIPI panels to LVDS/MIPI detect config Add supported MIPI panels to LVDS/MIPI panel detect config for backward compatibility with old targets Change-Id: I31048cd51c8e8d09e7a16c5f81eb3e6dc9c59259 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 55648fc2ab536294f7d549c822df8f17317b91c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 19 13:43:44 2011 +0530 msm_fb: display: Add mutex during display turn off There is a possibility that suspend operation trigger during a display update. Add mutex to serialize suspend and display update operations Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 13c5b2aa0116ee7859eb9331efd111e535db335d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 12:32:37 2011 +0530 msm_fb: display: protect dma status for video mode panel There is a possibility of race condition between dma update in ioctl context and isr context, hence add spinlock to protect the dma status in video mode type panel for safety in dual core environment. Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7716ef8c6180714d9948ecc008fb82ffef5628d7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Feb 2 19:04:18 2012 +0530 msm_fb: hdmi: Fix for different resolution TV switch hang. On connecting 1080p TV, then connecting 720p TV and then connecting 1080p TV again results in system hang. Hardware is waiting for reading AN in hdcp authentication part1 and then the resolution switch happens, which clears all the registers and we are in lost state. We need to protect the reading of AN bits in link status register and the reset core from muliple access. CRs-fixed: 334143 Change-Id: Ic5399a79a37a4285b1d10998cb1ffb4913c39f51 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d7185f60b02879c6b07293380a505791add19752 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Feb 11 01:36:41 2012 -0800 msm_fb: display: add mixer2 writeback userspace support Apps, e.g. fbtest can access mixer2 writeback functionality in userspace by providing ion writeback buffers. Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1af8a35b8700d507016d6c05488401dbf6af0431 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Feb 9 14:34:23 2012 -0800 msm_fb: display: fix underrun seen due to scaling accuracy When making scale phase step ratio calculation, accuracy is lost when sizes are big since calculation is done in 32 bit and some truncation happens; this leads to underrun in mdp hw since scaling ratio doesn't match the src/dst rectangle. Increase accuracy by performing division again on remainder and appending to lsb of ratio. Change-Id: I6baa69a70a55e402c8924b51cab86afa6d0e9b5c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 57e30678c19f540108d99e81fb03fdaa86105d95 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Jan 30 16:58:12 2012 +0530 msm_fb: display: Featurize pm operations for external display Featurize suspend/resume operation of the external display to resolve compilation error in cases where external display features are not defined. Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit b0d8321014da0ff547e8386d09a6bb3146320834 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Feb 13 13:51:47 2012 +0530 msm_fb: display: Fix for compilation error with HDMI as primary Proper variable is now used to avoid the compilation error. The function where this error is seen is compiled only when the HDMI is configured as PRMIARY. Change-Id: I74a9693ceef49143412101a6a8360d2241f75e91 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ab05f94b75a40fdd70f018a12fef1d8e0b972175 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 9 19:18:45 2012 -0800 msm_fb: display: Add LVDS display & LVDS/DSI panel auto detect support Add LVDS display PHY/PLL configuration and panel backlight support. Enable auto-detect support for LVDS/DSI panels Change-Id: I36a1a3c4cee9e015ae6fd03257bd10efa81450d8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94f25dcbd137d139e31be55c461a95b39f730cbe Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Jan 31 00:18:33 2012 -0800 msm_fb: HDMI: Export interface for setting Audio info frame The Audio InfoFrame contains information that allows for the format of the digital audio streams to be identified more quickly via out-of-band information and, for multi-channel uncompressed audio provides channel allocation information for the sink device's speakers. Currently audio info frame is hard coded to support 2-ch PCM. To Support Multi channel PCM, correct channel allocation information has to be sent to HDMI sink. So export the interface for setting audio info frame to HDMI audio driver. Change-Id: I7d0d5cf9f8792250bfd6e5eb003a8360ccb9707a Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 56499ed9d52ec2adfab9d8d48fa1495698fbbb75 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Feb 9 16:12:00 2012 +0530 msm_fb: Display: Update panel initialization sequence Update the panel initialization sequence to avoid tearing effect on the panel Change-Id: I933ba5cadf1d2620bc571bd3a307494d838c2b38 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 5cef5f4de20c409e8e1ba31bd97aca111677f49d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 11:39:16 2011 +0530 msm_fb: display: add spinlock to protect dma status. During dma transfer to interface host the status of the dma needs to be protected in the smp environment. Change-Id: I02b4f046de7f693bb098343b7345c4aa6ca395bd Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7f4205b6487f81a3c504726263ffeddbc74df833 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Dec 19 12:29:52 2011 +0530 msm_fb: display: Add SMP-safety for PPP Operations Adds protection using spinlock for the variable used in controlling the PPP operations Change-Id: Iba6ef5e32d38668bd110ed23ee9631aa40de79e0 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5978cd2b581df55aa0c23a1478239b2e7bf7942d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 26 11:10:46 2011 +0530 msm_fb: display: remove while loop in mdp ISR As mdp interrupt is enabled on-demand, there is no need to have a while loop to handle interrupts at random time. There is possibility that mdp clock is turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Change-Id: I3716638974d8e24eda4a5146421d026b0ca85b4c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1e6fcce3a2382b6af0c02aaed6bb503ac5d53b5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 16:24:22 2012 -0800 msm_fb: display: fix primary not resuming after suspend when hdmi connected Update bl_updated variable only after succesfully changing backlight, otherwise it can be set on hdmi play which doesn't really update backlight so primary remains blank. Change-Id: Ia08713ff0fbc88a98acd004a909c995fcd5726c6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d3a2993f02636b865bb59b075b12586513c7ba9f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 12:26:39 2012 -0800 msm_fb: display: fix no resume after suspend for cmd mode panels Base layer pipe is updated only on ui kickoff, in bypass mode ui kickoff might not happen and that is why panel won't resume. Perform base layer restore on resume to allow panel to resume. Change-Id: I6031569077731fae0a716175d62fe4c0c85c6c36 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 540124b79dd7b3bc25651935999f6fe422152fa4 Author: Amir Samuelov <amirs@codeaurora.org> Date: Wed Feb 8 18:18:51 2012 +0200 msm_fb: display: Add write permission for 3D barrier file. Allow user space application to write to 3D barrier for control. Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit d9f38b0c3bcb8cb16e5b8d433caea647f9c875a3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Feb 2 18:57:03 2012 +0530 msm_fb : Add support for Yamato format Changes to support Yamato format as a source format. Change-Id: I334fd059d2a06ea2796eb24f4a69fdb4be4e9789 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0cfba7b42b33cc0712d81d3ea917a235b3cd8d7c Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Feb 6 11:02:12 2012 +0200 msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver. Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver. Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 4b3395e1e6441673fb41c8fea58ea3e1422c3590 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jan 28 21:45:03 2012 -0800 msm_fb: display: Read DSI platform's data lane swap for Novatek panel Read DSI platform's data lane swap setting for Novatek panel and set it in panel info for programming internal lane control register Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2664ca29cca2ba9a46b0a992ba4f529e5208bab7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 7 15:31:42 2012 -0800 msm_fb: display: clear mixer blending cache during resume Clear mixer blending cache so that new blending value can be committed during system resume. Change-Id: Ie4e8399cdbbdb2153417c19e7f8019f38a294dd6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 18044ce96c01a440a2ade3711aba776aa1fea64a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Dec 13 23:22:48 2011 +0530 msm_fb: display: Add support for MIPI NT35510 WVGA panel. Adds DSI client and panel driver files to support Command and Video modes with NT35510 client and Truly WVGA panel Change-Id: Ia41bf282d070fa5fc5e0afeb24366a540c7ca9f5 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e6f182a1d4d1e186ae75f3a73cc496d94f983761 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 7 09:14:03 2012 +0200 msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel. Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver. Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9705d1ebd4e39d0428a950589da9f5963d22ab74 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jan 17 15:29:57 2012 -0800 msm_fb: display: increase timeout value to 2 vsync wait_for_completion_timeout() may timeout before overlay1_done interrupt when one vsync timeout is specified. This cause mdp4_overlay_dtv_ wait4_ov_done() to return prematurely which causes a falsely increased FPS. This patch increases the timeout value to 2 vsync to prevent premature timeout. Crs-fixed: 330723 Change-Id: Iac516525f328be01cf81ce3f4e95e5d6a4ab80ca Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit bbcf4477c7e7d8ba7208e179f55bc8e550de08a7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 20 11:35:24 2012 -0800 msm_fb: display: enable MDP interrupts base on panel interface Enable necessary MDP interrupts base on panel to avoid triggering dma_s isr handler. Crs-fixed: 331668 Change-Id: I139a6193338a1b0a7c9cc7869e3ea1b3f9a65c4d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 94c8a2c7f32371057f094cac19aa1bb905e714f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 6 12:35:14 2012 -0800 msm_fb: display: perform staging updates on a single vsync Store all staging updates locally and write to hw on a single vsync only when changes are detected, this allows a smooth transition from using multiple overlays to framebuffer for UI Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9cb0ead92fa1188c99ee9bcdc1148dab17b48a36 Author: Jeff Ohlstein <johlstei@codeaurora.org> Date: Fri Dec 16 13:30:08 2011 -0800 video: msm: change normal operation prints to pr_debug There is no need to print every time an mdp4 overlay pipe is allocated or freed. Change these prints to pr_debugs so they can still be used for debugging if necessary. Change-Id: I91ba245ce54ab8a963539cfdea6d8d92efaf52a4 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> commit 207b565179fe95d9537ad1d8172ba9de91a3fbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 18 21:21:15 2012 +0530 msm_fb : Check the validity of Histogram start/stop ioctls. Histogram start/stop ioctls are called now without checking if the panel is on or not. Add check to validate the ioctl calls in this aspect. CRs-fixed: 327910 Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 62f887ce4c6a52be4a4b846606768c19487742b7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 11 22:56:59 2011 -0700 msm_fb: display: Add LVDS display driver support for Chimei WXGA Add LVDS display driver support for Chimei WXGA LVDS display panel Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba commit 79d05a646f8af2658ad8f0aadb73c47cb277cc95 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Mon Jan 9 15:18:33 2012 -0800 msm_fb: HDMI: Switch device node for HDMI Add switch device node for HDMI on initialization. Final node path will be /devices/virtual/switch/hdmi Set the node state to 1 on HDMI cable connect event, and successful HDCP authentication, if applicable. Set the node state to 0 on HDMI cable disconnect, HPD off events and HDCP authentication failure. Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940 Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit cb6b2e9c9ecb6884f556456b3d1ce4d877570534 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 19 16:05:27 2012 -0800 msm_fb: display: Add external display PM suspend support Remove PM suspend registration from HDMI driver and add it in MSM framebuffer driver Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8562e7893e41969f1fe15839b7020b75401f6d72 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jan 24 18:34:29 2012 -0800 msm_fb: display: Remove HDMI PHY power settings for proper PLL locking Remove HDMI PHY power settings for controlling PHY along with HDMI PLL in clock driver for avoiding random PLL lock detect failures Change-Id: I4016d5711b06785be3dd47782a187196d61445de Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 175d1281a5c1635cffc911dac261efc67d807c9d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 20 16:57:23 2012 -0800 msm_fb: display: Cleanup log messages for ION buffer management Cleanup log messages for ION buffer allocation and de-allocation functions Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5 commit 0bd48279653be46c7b91648e1ae0d93c7131e425 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jan 24 11:59:50 2012 +0530 msm_fb : Check validity of histogram bin collection When CABL is disabled from UI, wait for completion gets killed. Histogram bin collection is invalid in this case. Add checks to handle this scenario. CRs-fixed: 331527 Change-Id: I0c25417672ee44a63011f76f2c998cbef9ae95f5 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fa1de67dbadc084aa9fd6afa5ab4fae335089334 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 5 12:37:59 2011 -0800 video: msm: Adding CSC support for other MDP blocks Adding support for VG1, VG2, DMA_S and Overlay Mixer 1. Change-Id: I95a5832a70fd893970e82dadcec1e11ed608d79c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c7d7aa888a33818f278bdce86fa6c349561e05ea Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Jan 21 17:17:06 2012 +0530 Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3" This reverts commit ff77f57b5bb1cd55bfdd3a14430470829e360822. Patch causes histogram ioctl to fail after there is no UI update for 50 ms. Abl-daemon handles static screen update case in CABL from now. Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 3ab14ddf6e9fa157c292ba7442550628f090b5a5 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jan 20 22:40:52 2012 -0800 msm_fb: display: increase wfd resolution to 720p Wi-fi display can support upto 720p resolution. CRs-Fixed: 332226 Change-Id: Idd4f293d364bb52ff5e85c58a713fc1d36b29c1b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 228895ae217589ca71aa464f7c22bc4cedd06f77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. Change-Id: If5de484fe19dd3e949107d5b0d72f9594ee2e76f CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0da46929eb69a01fa4b1d26a317e8fcc60a024ac Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 15:08:04 2011 -0800 msm_fb: display: add mdp overlay1 writeback This feature is enabled to avoid underrun on the display external interface (HDMI). For example, if 1080p to 720p downscaling is required, and mdp clk rate already is in its max, writeback is the only solution for this situation. Change-Id: I2323272a90730da45601f1d4c7dfc2bf06337b59 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jan 5 10:36:31 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 284fc85908c31b7424cc600083c2499d4188bdfd Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Sat Jan 14 14:45:23 2012 -0800 msm_fb: display: Fix incorrect goto call During the probe for writeback panel, for MDP hardware versions earlier than 4.3 an incorrect goto call un registers the bus scale handle that primary panel uses. This is causing the boot failures because the primary panel turn on sequence triggers the bus scale update request on already unregistered handle. Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit fa559f6cb6c9a75beb48b594f952ccfe213c4234 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 13 16:28:54 2012 -0800 msm_fb: display: fix underrun seen with big src coordinates MDP underrun happens if combination of x + w or y + h exceeds 2048. To handle such use cases add an offset to the source address instead. Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit da2f3cc0003c55cd18d6f052ecb9530fe2acea9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jan 5 15:32:57 2012 -0800 msm_fb: display: perform backlight updates on overlay play Perform pending backlight requests on overlay play to handle cases in which framebuffer updates are not happening to update backlight. Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ff77f57b5bb1cd55bfdd3a14430470829e360822 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jan 13 16:32:31 2012 +0530 msm_fb: Handle static screen update case in CABL for MDP3.0.3 Avoid histogram bin collection and copy during static screen update. Histogram ioctls are also returned early in this case. Change-Id: Id75a2a61e018f683e2ec2d23c0fb78e1c7605a7d Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit daa069f0949391f7b6fa7dcc26d854b790c14906 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:09:24 2011 -0800 video: msm: Adding CSC configuration for DMA P This enables the ability for the MSMFB_MDP_PP ioctl to configure the DMA P CSC registers. Change-Id: I1e18646decdd26641592bbc2a2dc0a4aa74e5f8a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff85b428535a84bc00648e4a097332aeaebd676c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 9 00:07:05 2012 -0800 msm_fb:display: Fix compilation errors when DTV is disabled Change-Id: I33b6426a202b60fe2f3d2fd007e05ce839283c0a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ca82bd65223f61c193fd2600479bd18c09f7b1dc Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Jan 10 15:57:53 2012 -0800 msm_fb: hdmi: Correct logical clock rate for 480p We need to keep the logical pixel clock rate for 480p video resolution to be 27.03 MHz even though the hardware internally only generates 27.027 MHz. Change-Id: Idc653062e0a155e69753a8b58b9abf6106cfb8e0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4f4b108a0931736c2b3d5d0b577f1f557247167c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jan 11 10:02:34 2012 -0800 video:msm: Fix histogram error check logic Current error check logic is incorrect. Starting the histogram should throw an error if the histogram current state (mdp_is_hist_data) is already true. Similarly, stopping the histogram should only throw an error if the histogram current state has already been set to false. In the cases of suspend/resume the mdp_histogram_ctrl calls should only be allowed when the histogram desired state (mdp_is_hist_start) is true. Change-Id: Idef307293a7e4fb70807e9cea53078bf3cc67f15 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 061c8d1b5097067a2348431f26ad193a37ae02c8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 18:37:36 2012 -0800 msm_fb: display: fix underrun seen for some YV12 format input Underruns seen on display because source rectangle width is aligned to 16 before being passed to MDP. Only ystride should be aligned, source rectangle should be passed as received. CRs-Fixed: 329453 Change-Id: Ibb71ad316023d21ebad4c5db37fdc5e5c8acb02b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e1ba2705ea4c9960f4349c57d115f4a79482f3a0 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Wed Dec 21 16:24:52 2011 -0800 msm: wfd: Adds writeback start/stop functionality. Removes register/unregister calls and replaces them with start/stop. No need to pre-register the buffers anymore. Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit e240c2f738e6b3c4bc754442a8da3a351a0d68cf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 3 15:43:29 2012 -0800 msm_fb: display: fix mdp clk rate settings If the video resolution is changed from higher to lower, mdp clk rate cannot be changed before overlay_play. Otherwise, underrun may happen because of a lower mdp clk rate for current higher resolution frames. On the other hand, if the res is changed from lower to higher, mdp clk rate must be changed before overlay_play to avoid underrun. CRs-fixed: 327811 Change-Id: Ieac4d2e1644e5687e3506b37799c56e19a17b991 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bf300479078611dc528cd0e2decc4fdb3c282c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 12:33:13 2012 -0800 msm_fb: display: fix hdmi connection crash on 8660 Crash happens because RGB pipe is not completely setup when initializing the base layer pipe. HDMI crash no longer happens after initializing RGB pipe correctly. Change-Id: Iff2e989db95b86fd81afc7e04d12d3d8f099acd7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 06237550f191c8d218030a231a9fefe0d7bd3f76 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jan 4 16:35:26 2012 -0800 msm_fb: display: Move debug messages to debug statistics Move some debug messages that were shown as errors in display driver to debug statistics to avoid excesive prints in kernel log. CRs-Fixed: 326925 Change-Id: I529586f0e79baf27e2ae17f08fac203ba28bf416 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9add8a944993cb6bf90b12344731bb279fb366c9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Nov 21 12:51:36 2011 -0800 msmfb: display: fix the issue with overlay wait api calling overlay wait api asynchronous to the other overlay apis results in race condition in protection flags. this case is observed with HDMI true mirroring feature. it modifies the protection logic to fix the race condition Change-Id: Ib933055a395c2fc743f018aee96090defde33d37 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ca0aeaa65f7d4c2896e881e20e2b1892e5f96dab Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:08:03 2011 -0800 video:msm: Adding stub for MSMFB_MDP_PP ioctls Basic handling of invalid copy_from_user and op from an invalid range. Change-Id: I788b28d3804e7312ee18310011c75d11287c4c6c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 880f847f5daf4517a4090e62ea1345ed69ff05fc Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Dec 14 03:52:28 2011 -0800 msm-fb: display: ION based allocation for writeback buffers ION based allocation is added for the writeback support for content security. Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 285745f9b9cf52a4f69711a3737ca185e0e699ec Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Dec 29 18:31:46 2011 -0800 msmfb: display: clean up of the writeback buffer variables clean up of the writeback variables to change the write back allocation for ion support Change-Id: I4999e43cb2f7111853e9c4a17852b2d5a351204e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. Change-Id: I526ce7bb5e6894e07040cc409c8a700e4a78a9fd CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 304248c9d5bfa96e965a2a08c134cb5b20aac00a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Dec 29 14:04:27 2011 -0800 msm_fb: display: fix mdp blending logic Handle case where blending downscaled VG pipe with alpha channel since alpha channel will be dropped by MDP hw. Also propagate framebuffer pipe alpha to top layers only if they are opaque to avoid picking up from layers which contain alpha. CRs-Fixed: 326178 Change-Id: I73cfc0716d1f5f8a803a645bdc09b97f909e593d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 276bdaa5717d379e072137f004dd79133058d70d Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:44:53 2011 +0200 video: msm: Update CONFIG_MHL condition Replace generic CONFIG_MHL by a specific define CONFIG_FB_MSM_HDMI_MHL.implemented in Kconfig Change-Id: I3a8393518ca4f3adc1d74a62cb615ca629269af2 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 819b257a51108b3833256804030c522dc7059cb0 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:36:56 2011 +0200 video: msm: Add FB_MSM_HDMI_MHL to Kconfig Add FB_MSM_HDMI_MHL config to enable/disable the HDMI to MHL conversion support Change-Id: I51b58e9ca687e244c5b818a3aefb211e605c8e2a Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit b52368bee31a047be045687253e3805c008bd4e6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Dec 22 12:09:17 2011 -0800 msm_fb:display: Enable Layermixer2 for nv12 writeback enabling the layermixer2 for new MDP hardware so that it can be used to writeback the output in nv12 format for wi-fi display usecase Change-Id: I70322e722d8382102077db2d94a9320c2f2bb175 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit d0de5f990ab738a8b9c67fefc63b67e31d457f89 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 20 13:57:28 2011 +0200 video: msm: Add support for Sii9244 MHL video modes. Currently the HDMI driver reads the video modes of the external panel using EDID and matches those modes with the HDMI TX Core supported modes. If the HDMI signal is routed via the Sii9244 MHL chip, its video modes should be also taken into account. Change-Id: I841071c47dde94d9a91727d5f31b0ec43a957689 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 6a75b86e9f0707f46f0fd161481da25235bd037c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 10:33:39 2011 -0800 msm_fb: display: Add backlight with first pan display after resume Add backlight call with first pan display after resume operation of framebuffer driver CRs-Fixed: 323682 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic27c2c9fe37b622bbd9ab5933ca45626decd53ae commit 48d8f219004677ead97d6a5a0b89b54625c2f15d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 11 18:22:29 2011 -0800 msm_fb: Power saving for enabling HPD feature. Don't initialize HDMI PHY while enabling HPD feature. CRs-Fixed: 310913 Change-Id: Ib18f93dfa848218e0a6a1fdf06944e6696e08bbc Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 402adc6142598abcb2a41a941895003f57f289a5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e88f8f552a6102b8622ca6f88e78f2a244531746 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 19:07:20 2011 -0800 msm_fb: HDMI: Fix Coding Style Warnings This change takes care of all the coding style warnings reported by the checkpatch script. Change-Id: I31506132176f269ce2971dc45ffaf6e8b4b9dab5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Change-Id: I6d21103d049bf22d3a09aeeafab1a50119597d7e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b7b13f07b1b7f3c721752163f8b0279042636a02 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 18 11:20:08 2011 -0800 msm_fb: HDMI_COMPLIANCE: Disable Encryption on NON HDCP builds. HDMI Compliance require non HDCP builds to work on HDCP SURF's. Do not set HDCP flag for NON-HDCP builds, so that encryption enable bit is never set. Change-Id: I6f2df598fe2ed4d9ae3673fcec74b76c30e3c0dd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 910183691eb3d8c06f6344cfd57ae4e30716ff94 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 14:57:43 2011 -0800 msm_fb: display: allocate mdp writeback memory The writeback buffer is already reserved on the board side. This allocation separate writeback buffer from framebuffer. Change-Id: I312be3e0dfcf4c5b611cd06cd68d2baae7e2add8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c174d301d899a3242efc5d30d549c9fde8270b78 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 15:38:26 2011 -0800 msm_fb: display: enable pixel repeat on VG pipe only for alpha upscaling VG pipe doesn't support pixel repeat/drop to avoid alpha channel drop during downscaling. Keep pixel repeat only for upscaling. Change-Id: Id400d0f823bc0054a94330600d5085778a65b936 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b879b66c84b849ea78bcdd2400bacd7e0311561 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Dec 16 16:04:09 2011 -0800 msm_fb: display: Add MDP 4.2 footswitch ctrl at suspend Add MDP 4.2 footswitch ctrl at suspend/resume for non-HDMI cases Change-Id: I1071c0106ffc52c7f337e9f612a6ec9eb4746edd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52e88234977cd598e4902841869207b670f1321b Author: Ajay Dudani <adudani@codeaurora.org> Date: Tue Dec 13 13:33:10 2011 -0800 msm8930: Temporarily disable HDMI by default On some 8930 variant boards, we see a kernel panic on HDMI core power on. Disable HDMI temporarily until this is root caused. Change-Id: Ibfa1d851897c6f38c8f17cde8d3529a373203f1e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 89d519ca92ba2f8c70d595f1950691170c577486 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 17:31:35 2011 -0800 msm_fb: display: Fix DSI cmd mode color swap issue for MDP rev <= 4.1 Fix DSI cmd mode color swap issue for MDP rev <= 4.1 CRs-Fixed: 323479 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic9841f0eb89df7afea7ec1c9486e8cb0e6bbb58d commit 6a601cdc35501835a0b19718329be70f696a34ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 18:16:25 2011 -0800 msm_fb: display: fix mdp underrun on disabling writeback Writeback fallback for mdp underflow can be enabled/disabled dynamically based on parameters; if writeback is disabled while displaying previous frame it can can cause underrun. Disable writeback after programming new frame to avoid underrun. Change-Id: I6c73887043f19596cb3611c83c51c1aeac907ff0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8e3cb69445244c620d5742b8f3cb57c3a8bef5c4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 17:35:51 2011 -0800 msm_fb: HDMI: Remove Audio Packet Ctrl Reg Setup With a recent change we do not set the Audio Packet Control Setup register (offset 0x0020) on HPD connect event. In addition, we should not reset the value of this register whenever HDMI is powered off. CRs-Fixed: 323928 Change-Id: I1ecbb9c87470b5cedc7351198cf73c5d7406ceb6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit db7007f5a6697cd5239f433b010440bf5a5650e7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 14 02:17:58 2011 +0530 msm_fb: hdmi: Add DVI sysfs node For DVI mode, audio should not be routed. This routing happens through HDMI daemon in usespace after confirming the mode from HDMI core. This change gives HDMI daemon a way to determine if the mode is DVI or HDMI, based on that HDMI Daemon can decide on routing the audio. Change-Id: I4afa746d6195b02046305a33a2b6a8b693510ba6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Change-Id: I304bb088ef1147e562fdeb6f7eb02ed570aba627 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 88426ca238a783acf165f8b4e0958cd3cced6cf9 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 13 13:31:41 2011 +0200 video: msm: Add mhl api header file MHL API defines an interface for HDMI driver. The API provides the information of the MHL connection state for HDMI to transmit the MHL supported video format. Change-Id: If19e497b7a238eb0465f9fb13b5586d3b9043360 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit a35b234783de0a3dd4e21d784081d35309592e51 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Thu Dec 1 17:38:01 2011 -0800 msm: wfd: Fix compilation error. Changes function call to match the new API signature. Change-Id: I6b1cadca697c5b7431ee2648a4d34df21b46ce52 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit b240803778c9d2c9788bd33587c9c63edb7d6801 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 10:52:48 2011 -0700 video: msm: Track validity of and synchronize histogram Adding mutex to more thoroughly lock histogram calls; additionally, adding a flag to track histogram data validity. Together they ensure that the histogram is not started, stopped, or read out of order. CRs-Fixed: 310429 Change-Id: I276974811a5e673b05c68b41f5fbff5b178165cb Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 562c58fbf58a55b9dc8cde472361cb8d3cb6a1e5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Dec 8 08:47:33 2011 -0800 Revert "msm_fb: display: decrease mdp_timer_duration" This reverts commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00. Change-Id: I3312c878370ce72a611423085c8cefe42028d21e Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fc6be921eeb73aea9bd625189f225d199908b685 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 4 15:22:39 2011 -0700 msm_fb: display: enable border color fill on external display Enable border color fill feature on external display. This avoids usage of RGB pipe for background border fill and can now be used as overlay layer for UI display. Change-Id: I652ab3ffe2c43260590e4e5a2ffc986340c4a8c0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d2fb0bd826f83b6bc3fc2d0819773f25bd2b049f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:38:14 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Reset DDC control logic upon failure This change toggles the HDCP_DDC_CTRL_0 register to reset the DDC control logic, in effect enabling the DDC controller logic to continue to function after hitting a DDC failure. This is needed to pass HDCP compliance on MSM8960. Change-Id: Ic11a4d4de375aab9b3948cbde7eda5aca7aefbd6 CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit daf5e17901e7519de3bfc5752dbd95093aeb2527 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:34:40 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Disable HDCP interrupts on de-authenticaiton This change disables all the HDCP interrupts upon de-authentication. In addition, we also clear the HDCP AUTH_FAIL_INFO register upon processing the AUTH_FAIL_INT interrupt. This is required for passing HDCP compliance for MSM8960 Change-Id: Iefe544c8c972e4d3b5fa4ccdd513c411d1781b3d CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 34c5f958890c8881e92a05e05ac6f95b5a48eaf1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 13:56:59 2011 -0800 msm_fb: display: cleanup overlay0 writeback funcs and config flags The writeback blt mode is controlled by assignment of blt_base (NULL or not), only the #ifdef in board file is effective. Those flags and funcs on the driver side is cleaned up. Change-Id: Idc9a7fbb5525071bf3cf68e5182bc7f6a5693932 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a12cc95a7e8b5f4882307f0ec7516f62ef8ab21e Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 18:14:50 2011 -0800 msm_fb: Discontinue use of clk_set_min_rate() This proprietary API will soon be removed. Replace use of it with a combination of clk_round_rate() and clk_set_rate() where appropriate. Calls to clk_set_min_rate() with a rate of 0Hz followed immediately by a clk_disable() served no purpose and are removed entirely. Change-Id: I56d680ee36cc6292dcc436eeec7acdc57f3c243a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 2aab6fd9b00955b2e836a873cd5a27bddd2f3644 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 7 07:23:34 2011 +0530 msm_fb: hdmi_msm: No HDMI for 8627 The HDMI driver should not register for 8627 target. Change-Id: I3ef882e76d374eabc15ed5c3121ac7d6f618f616 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e8943499da4389b9f32658f19da0ced6b7ff565f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Nov 1 13:04:10 2011 -0700 msmfb: display: enable the blt mode for bigger line length blt mode is enabled for bigger line length to avoid the underun on qt devices Change-Id: I6055f494034b1e64fbf6fb083442f9513634659c CRs-Fixed: 316327 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 954620c40355894763ea1aeff4646b2adb30a594 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 14:50:48 2011 -0800 msm_fb: [HDMI_COMPLIANCE] HW reset on HDCP reauthentication We need to add a small delay before reading the AN0 and AN1 registers once they are ready, in order to avoid hardware reset. Change-Id: Iba9465ee83dce66ae99ab5885015d977d54c0612 CRs-fixed: 319542 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9a2673aca6aae756ef36b35e981c7c349845edf1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:03:25 2011 -0800 msm_fb: display: fix invalid receving length bug Since expected receiving length need to be divided by 4 evenly, it need to be &= ~0x03 instead of &=0x03. Change-Id: I68912245c6fc499bdb652ed327d60bcf60487d40 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e22c42d680cfa7abedb0b29431bbbd83451f19c1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Nov 30 17:35:51 2011 -0800 msm_fb: display: move the prefill function inside the config flag There is a compilation error if the config flag is not set, so the func has to be moved inside the #ifdef. Change-Id: I6163606c389e8e4767239cf74eb8260fca728728 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ebefc805a139e8222061b32cbf7686d76122de5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 30 09:15:12 2011 -0700 msm_fb: display: decrease mdp_timer_duration mdp_timer_duration decides when both mdp and vsync clocks be turned off after last screen updated. Decrease mdp_timer_duration to 20ms to have clocks be turned off sooner. CRs-fixed: 315271 Change-Id: Icf7f0a64ab38dd5184a12242cfc190efa31016a9 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit edcb9567783846d292410c14fc4b99612ef1caff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:02:50 2011 -0800 msm_fb: display: remove mutex from mipi d2l register read/write Mutex had been acquired at dsi_on() already. Hence no need to acquire same mutex at mipi d2l registers read/write function again. Change-Id: Ie47590771c287a8e7c42aae568c1703a7e9107a4 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fa14cb039938c7a60007b6e5f1c4db2541faa18e Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 19 13:00:16 2011 -0700 msm_fb: HDMI_HDCP Compliance: Fix for test case 1B-01a In the case where there are many downstream receivers connected to a repeater, we need to poll for HDCP_SHA_BLOCK_DONE bit everytime after writing 64 bytes of the KSV fifo. Change-Id: Ic304250a73ad6573c43b4eb910a7eb7eb2b4dee9 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8863118c485d2dff94dfa259a95d069d15994b29 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 28 23:55:53 2011 +0530 msm_fb: hdmi_msm: dynamic sample rate change for non-hdcp Adding support for other modules to dynamically change the sampling rate in HDMI core for audio which is supported by NON-HDCP surf/FFA as well. Change-Id: I2e4f239e43251b2dc5f8529b7c352a94456ad974 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 0948c68fe35913119f2d025168b381e6ca1d2db7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 16:50:43 2011 -0700 msm_fb: display: update mdp statistics Update mdp4 statistic information so that it becomes more useful during debug session. Change-Id: I0b88428bc692c28284f9091e143f0cf10079225d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0fc5d36176b8feaa360bff9c5d46c481cea8a42b Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Nov 16 05:48:33 2011 +0530 msm_fb: hdmi_msm: Add support for audio sample rate change. This patch provides the support for changing the sample rate dynamically. Change-Id: I973e5240e6f545b85ab2872aa0786b2d80ee2d2f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a077d0063dfb8a39a869f56099dd0ffe85301180 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. Change-Id: Iee8d5d019b74edd675b23ac8dd34535766714eb2 CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 6b2d8af94b0fc441eefb65e87a964208783dac3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 16 10:02:01 2011 -0800 msm_fb: display: commit BLT to mdp register during video kickoff BLT (writeback mode) need to be committed to mdp register before kickoff. Normally, UI kickoff will follow immediatly after BLT enabled/disabled. However sometimes video overlay play happen before UI's pan display after BLT enabled/disabled. In this case, video kickoff need to commit BLT to mdp register too. Change-Id: I7b085f516f869009e7fc4b443f7858a61fce5ba3 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 3875379164cd350591eb8a1f4ea06994004a21ce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 18 13:14:08 2011 -0800 msm_fb: HDMI: Support for 576p 4:3 in HDMI Driver The firmware upgrade for the QD 882EA box requries us to have support for 720x576p 4:3 aspect ratio. Until now, we have only supported 720x576p 16:9 aspect ratio. This change adds the appropriate values to the AVI Info-frame lookup table. Change-Id: Ibc1165ab2445977e7b253a20b0d9396e1ae88ce1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4b910f252587e25699eaa4daa5036ab3bfb73c3f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 15 09:43:04 2011 -0800 msm_fb: display: enable mdp chip select controller Enable mdp chip select controller so that CS signal is asserted or de-asserted by MDP according to activities of memory access on both read and write to save power. Change-Id: Ic0acc1c8cbe06c5f3cf25627af209abadeb1350c Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 465c15903f44453a235d7eb9be4b6bde51368370 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:06:15 2011 -0700 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Change-Id: I9ab9bf2b6c02d73e40cd1a28241ffb20cdd69516 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b16b8f13507e9ea078b2f612d74b024a11afd13 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 16:58:21 2011 -0800 msm_fb: Use clk_set_rate() to vote on ebi_clk rates clk_set_rate() and clk_set_min_rate() share a common implementation for ebi_clk, but the clk_set_min_rate() API will soon be eliminated. Remove its use in preparation for this. Change-Id: I5a4a4a2f5e2e0ba4989bc7c1f9423653bec0af0f Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit cb8fbbcbe0630451ba582a0747987c48b2c603f1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 26 13:00:18 2011 -0700 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Change-Id: If723802d9405001baa69f132a143d21c8aa85613 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. Change-Id: Id79795dd4c17c3a75337a4c3818219ba6d87ff25 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d973663b4a2086c7fe1bf0264f16d413673c36c3 Author: Liyuan Li <liyuanl@codeaurora.org> Date: Fri Nov 11 13:47:59 2011 -0800 video: msm: Adding support for MDP4 HSIC controls Adding support for users to adjust Hue, Saturation, Intensity and Contrast of the display. Change-Id: I79cb69c871686ccba115798f635f768b9a50affc Signed-off-by: Liyuan Li <liyuanl@codeaurora.org> commit 4b1bde4cd20b889b3fc49972d3210c5308044ca1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 8 15:26:26 2011 -0800 msm_fb: display: add mutex to dsi_on During resume, backlight dcs commands to client may be issued before dsi_on completed. Add mutex to dsi_on and check dsi state to make sure dsi_on is completed before sending backlight command to panel to avoid conflict on dsi link. Otherwise screen will stay blank if confliction happened. Change-Id: Icfba079b228f02aeb89949befb10cca29bf6d744 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e69bed86ffa5b7cc05545fd986a21ebef5123775 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 17 16:21:42 2011 -0700 msm-fb: display: ion framework support Add support for the ION memory manager to the framebuffer driver Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> commit 6a3a01ae8eca6d615ead5be9ed28720bc0c79dab Author: Deepa Madiregama <dmadireg@codeaurora.org> Date: Fri Oct 28 06:34:17 2011 +0530 msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue LPA_IF dma channel is disabled without checking the per count value. Because of this dma channel is not functional after few iterations of continuous playback. Fix this issue by checking the dma per count value to stop before disabling the LPA_IF dma channel. Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89 Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org> commit 81be67988ef149f601064a9e8e5d91705e636ff5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Change-Id: If2622631a7cd03276ae7fbd8326155d0e9c7b66b Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 27020d1b5db194e11b08dc46dd7b89078895b6eb Author: Vinay Kalia <vkalia@codeaurora.org> Date: Fri Oct 14 17:50:29 2011 -0700 video: msm: Writeback support in mdp for WFD. Adds writeback mode in mdp for wifi-display(WFD). This mode can be used to get the captured frames from mdp. This is added to support wifi-display capture device. Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit 584b96a4a3b0f5842178fb8fd1b1235501cf7ef0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 10:33:30 2011 -0700 msm_fb: display: add no_max_pkt_size flag Add no_max_pkt_size flag to allow toshiba dcs to lvds bridege chip work. Change-Id: Icaed4bc749dec96f12e3e0e78c098294658a2c46 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 4c4c286176e91b24f2399309ce9f379902be58d2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:28:55 2011 -0700 video: msm: Clear and disable histogram interrupt When the histogram is disabled, its interrupt should also be disabled and cleared. Note: only applicable to MDP4.0 onwards as earlier versions of the MDP expect the histogram interrupt to be left enabled after running mdp_histogram_ctrl. CRs-Fixed: 310429 Change-Id: I5a8df4fdcc41520e1ed0af970a8628479a4645a6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e19a2869b3db914e93335746ef80878103d5c0cd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:26:24 2011 -0700 video: msm: Remove redundant code in histogram collection Rewrites start and stop histogram functions to better use the existing mdp_histogram_ctrl function. CRs-Fixed: 310429 Change-Id: Iecc97c1376319021f99dd00eee6fb154bf7a5740 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 13f48ed4a9141772385eb44bd8c1923668ae32df Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 13:44:31 2011 -0700 video: msm: Remove ifdef from mdp_histogram_ctrl Replace the mdp revision specific code with reference to mdp_rev global var. CRs-Fixed: 310429 Change-Id: I09fe3707bc9926af89874966e7d640c5862cffa0 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 7484515be07eebc3a12a087921416f1b373decde Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Oct 11 10:24:32 2011 -0700 video: msm: Block histogram requests with powered down panel This causes MSMFB_HISTOGRAM ioctls to return an error when they are called after the panel has entered a powered down state. CRs-Fixed: 310429 Change-Id: I39c768c62a37ca83df2db2309230971cb6492bab Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 40a43409804073a0442d2a1ea09293c0b95fdab1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Change-Id: If8b6220c26ea8d08857f87f33609b1673238b2ec Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0737d65bb7faf91f3dbf87c32a86c5e7cb9e454e Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Oct 14 02:02:33 2011 -0700 msmfb: display: support for overlay wait ioctl this adds supports for overlay wait ioctl and it allows the userapce start overlay play and HDMI and can call wait later point of the time Change-Id: I8000cc52a497861e0a5fdfe58c0c049219724ab6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit d1b9d7ab0c98fe2bb8d6ab3f6dbd489dd17b3c5a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 14 18:18:51 2011 -0700 msm_fb: display: enable hw cursor for dsi video panel fix hw cursor updates not coming for dsi video panel defining callback during driver setup. CRs-Fixed: 309515 Change-Id: I12586e813c19ff4dbe1e3877eaf14b5a396b273a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit dee95105fdbc21ca2cecad26403e7c6a9942f445 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> commit df021cf202ea5f026c9d8862a06997e43346b2aa Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 20 12:53:27 2011 -0700 msm_fb: display: Fix suspend/resume for HDMI as primary display Fix suspend/resume for HDMI as primary display by setting solid fill for RGB pipe connected to DTV Change-Id: I2f6bf1892137ef40c55e26498c03cfb7a439219b CRs-Fixed: 310198 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d893034f3c7b3bc9435cd0cba78f220349b484ae Author: Taniya Das <tdas@codeaurora.org> Date: Tue Aug 23 18:47:05 2011 +0530 msm_fb: display: Add support for MIPI DSI Truly panel Change-Id: I499f050622e72c9f1daafa251b16ac67c35a7991 Signed-off-by: Taniya Das <tdas@codeaurora.org> commit 959fd6fc48da46199ac1faf8b7d8be18d50af253 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: Id8344af1a1607cbf4a6c01ad35441bbdd4fcbd49 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 4b99172a1df8b1ad2b48343bead39685f294e680 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Change-Id: Ib6fb8f2eab4b1e871a406a3a2d7274fcfdcdd9d1 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 8611e05dc5cb4b3ce155c04ab4e851dff1438582 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Oct 11 17:44:32 2011 +0200 msm_fb: display: Change the backlight PWM freq to 66 KHZ for LiQUID Change the backlight PWM to 66 KHZ, according to the backlight driver HW spec. Change-Id: I67bc02b7863d7e8721841edfb4cfe3a4414a1bab Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit a2c2767ee7fa7e55d9cb30873739dc42311d60f4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 30 17:19:39 2011 -0700 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I62ce418b7f1e887550319081cc4b78fbd564a6f5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5e48f5f6701a3cf0f8c325d252037bb49be67fc1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 23 18:56:59 2011 -0700 msm_fb: display: Fix DSI WSVGA Toshiba panel PLL control settings Fix DSI WSVGA Toshiba panel PLL control settings to avoid over-write on reset values from phy table Change-Id: Ia4b3a4a409a4601a3a2c9132ff66c164f1f8c9fd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7a95a8f6a93bbca3f1664cd12d516041f6d926cf Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Oct 17 15:20:11 2011 +0200 msm_fb: display: Fix dsi read packet size for LiQUID The toshiba DSI-to-LVDS bridge supports only packet size of 4 for reading its registers. The DSI host should avoid changing the bridge packet size. Change-Id: I08a4cb5921c90e9fa07db62e0310fcdb6155f131 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 051489246f2a6a4538e7dad2b985837fa06d567a Author: Praveena Pachipulusu <pveena@codeaurora.org> Date: Mon Oct 17 10:42:36 2011 +0530 msm: Change the permission of 3d barrier sysfs entry Change-Id: I64f7e028701d65d864d9ed30499bf0bfc00c8ab6 CRs-Fixed: 308897 Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org> commit 898f4bd8a9e7027e2fd9e50000e34abb41834e19 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 15 18:25:47 2011 -0700 msm_fb: display: Add support for HDMI as primary Add support for using HDMI as primary. Includes changing number of framebuffers to 2, using RGBA format, enabling HPD by default. Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 09ab565589a8a1409c222ce79b6885aa9e96d33d Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Change-Id: If9797a3b8490ecba05969d546fc70a80c0f76dd0 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Change-Id: I77e660f4b9843991a6948532eea4199b7377a6b9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 10 20:51:31 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Change-Id: I46139c2126b47ac6e1b33135b792ef702cc04446 CRs-fixed: 302409 commit a27bde25b4efd43946c19f1e672554ce0bce63c8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. CRs-fixed: 306936 Change-Id: I0e3776c7ca86f7c4a0f0d090da108599753b9997 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 8717a17a1a5555e53d2f8f8160462417105dda6c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I630cc47be806a8de383648aa80804b4d65210d4d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c430223b113ff533ef34c5acb0de6a6ccc3a1b51 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5a7f32c088bda86c7f0de08d06c8176920b28439 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e17a2ddc109e0691a25c69acd3ee16de354f5a82 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e1ed1ae1d4c6d17ddb2a027ced9524c23e878d72 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c719c541d8ec1c9a036002a80725457aab10e54f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e2833e9f0a24e1f1d3dc1a912977884920bc5487 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 27 13:26:01 2011 -0700 video:msm: Reset histogram when not read Reset the histogram collection if there is no one waiting for it when it is completed. CRs-Fixed: 308367 CRs-Fixed: 305674 Change-Id: I76de44f237f842a1163d8b9f0783bf3457ff1d3d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5a4f1ba19d0172fe3566f3df5bc78844d84c485b Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 1429568ba55646240d551e8f8f9bdd25e4cb249f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aff429ae7d2d1b272d98935907ddfbf43ff4aaeb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d48737e7b42e51a73d8084cc37d7c1b63fcdefc0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a591110794daf54865c88f3f3fcfa8b5b4ab45c2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a7c9891a83bb0dbb6729173b0e7a204f20220849 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 95169f2d316397b15f2666591951c937bdd3de4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a1b240fc59964122076812ea4c2f2ebcda99f4f2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2f19595abd7e55f302f6b50f39ed81a67cdbee6 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit daf1d2101d21f27ed21dbc8e9afe9e82f24083c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 1dcb24860f556c8e60b333ffbfa26f22773560c1 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 83eac3cec4e5957abd90a7a73a645f91d477a603 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c6ecb836e9afb41bc9475b2a4c39dad8888f5e5f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 419051b1b98b5f86ef72a6299ee9d73d039ce09e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 18f63087971116fc2af33f90ed42fd764d8ae7c0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c42862ab0b4149d6264b39d849aaf70b3de7a1fe Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 054dc107f98f31b2941489bd37e647e8be7b34e6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 7a7e46f6c1b48a5e2a3234bf0bb0e0ccfcd90323 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bbf9a472c9484c9e7a0b6ec15995a29afa0dfaeb Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9e4491612de7c7a322d061b85c8d42ee42ea831a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3d4d275bd9442307af9f0ffb36660114e842e529 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5c6cfbf2a4f8e76a0d14e37453c31561bca41019 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 074ee02cd301d9831de59b55d34e2ab5625cc983 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 07d19c35fd414757f4535f721522ed6379286b47 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 668d6d5e3e38f9aa55e78333fb8d200a83f32be8 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b84120b47e318d5144604e7249e0e0bc119e1301 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 21ef2feb1cddfa15f0a88c0838e3c941a84e9c7e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 073f1221221adb52039bc49f79c81e06335f9c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e91203dfd1bb3dda16c712a4accde6b2040e437 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8fef09a792fe01ec564d09a2b0b29d2bfa55fd21 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 33dc7b93d4fd73307bb8f68f8067cbe481c5bbcb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2ca30356bd3e2db7de9df06670ff9ba2f6dfafe4 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 57dcfff1206da4b1f6e3cdbbc63b5c27d57ded24 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bea4783bcd4a65f11a6c5c00995a04dcea72c002 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 3a8b8514533d94af2e9fcb4b215f968f07d14253 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit d5315bd98102b8a2f8e36bbd69b15b679dc43e84 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit e52976fc8742c1734c3fda80735d0dfd21c61826 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 48aef6d5c2dbe622a0c44440809f4860ff7a5770 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0a3249ebfc2d474378fb2a3e49dad2140fd6b042 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 4d3c779eb9d906b381225be5065976703d91872a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 1833754d1f71e8b52e3ac0fcfb4602048763f39c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9452ecb5b57e5bde9b880a2a1ddcd0f210ce9dea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 01d682803053d294ef11da8bef3e88b073c43cc8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 115d7975e66ab3e5f9c03d9660413a940517ddeb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 164fe8a429e39cad3f03d56dfa4dce85ff90a0b3 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 120232e5eed881f12c9d6196f2f5567106c2c98a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48551552f956565389a760cd46fd6db8ad79a044 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3436daeb9f5e1216c827a85252b4c35a6d8380e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3a76ccb3dff876cea6494d777c24c232c5964c4e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ed016bedc8c2af80b10a9d0558b537cf5e396636 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit e7833e230a3843070f4628532e5902442eeed2c4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 58b5555b7d19272e43732364b68e5d7c74b30870 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bb3d48517f5d590cb66cee5b2fe418abf4eb69d1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 492049ec4f59bf04275878a9d16ae20528159636 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e546d48310bbb1b62e56a4f361af923c8814de54 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b91fa71c588a9785f639193c49295b88031971d7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 7b57bb815b5287b0c8ef618459d989475aa2f071 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 405dc3051b06637b6a38aa6b1f4da1660cff37d0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4b8b2fb9d783be26b85381b3618bbe253a75b89 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f74d2edd791b3fddaf147c5e358a8f41463dc1f9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 49a83b2caa9718d35fab9a9fa9ad2d9436040ffd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a411f7e5195777253d4c3c94430787b4f19ea068 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 4aea274b69eeee685d87e159107f0d0eb9b35b70 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d1f8724f0d89d474a283f2ba6f51801d14daaee Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit ebca0c796cb22947a224c1afea9b7950886804e1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 3de11f35c77c7239a51c64254b00e400abaf93f1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9d28c3e809aac17dc2e3f6923e730293ae4aa977 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 759a8cf14ce1c2f0d6551a090fac84ec7f4705f2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Tue Aug 16 17:27:22 2011 -0700 Initial Contribution msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit 39fff5a3899f8d95886ba2e50d70001602b279c0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Change-Id: Id270b97eba6d01583dac3091cce0403a6aa96be7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cb472111d93fa119c52d56c102b90cc3ad2c8030 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Change-Id: Ib64ddaf9d887ac3250b40451fab70d7ca9df081e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b9047132b38c211d4d8a26896ceb4e151bf618a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Change-Id: I32a7c220efd33f748a7b46fb1006e5f0a59dc4dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 91be717084e45121fc1232e8309343c605603928 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Change-Id: I5f5167411ac2e5bbc4287148d22608a7e1f2af35 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d8a25911705d1baef68f3accf2bdcb4327152705 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit a2e6ec896e8d2e10965d6f8df6f0affdf162a489 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: Iff123c6046eb69b5d26e632ad507605774f6562f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5a95ccd976434514d06384c2684c187daf3925ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Change-Id: Ifb4f6d16967cb98a25a253c99a8af2da2a22404d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Change-Id: I1795bb154fcee4813b4a1e5e935ed7c9863cd849 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6e4e76632b3e8e109da4b63fdf653af246dcde1e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Change-Id: I39f263a8e0263aa04274d95fa43e2bd4b5815185 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 46e3767f9ec607dddb2fa6ac8f41a0c0e455a479 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Change-Id: I2f0ab81c2432d7d04fd685f0d104858b8342bd9c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit f076525d4ed93b77ca5a4cad20771e34dd5cbea1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Change-Id: I75d46e16564c4a7d1486f1ac59f79b8b218290c3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 96fbbf3272449febc1a33861af1d275200563965 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Change-Id: Ic007306a019956f565b0336d966cec7fdeefe918 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Change-Id: Ibbdbdaedf4ad5000e3f44d1e80888d68e23ff842 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7ec6eccf30ef970ec47444058f490530ac92600 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Change-Id: I89a8dce29c1ea41894eebdfd3bdb5ad7178aa8ee Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7e65d5e31f62a20ae919e0e70f04d000a353bd52 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Change-Id: I03ae784750eb4763569cf8faca43ecd46f995638 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c2177245161614a0302380d0eca57deae0cb10b5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Change-Id: I2012cc3cd9a69b7d5eadb690fee4faa1857ee059 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Change-Id: I462422e4b0d17013d61e841f66fd155db4b7ea00 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Change-Id: I00ab1fa277a86d721a78ea2d2c9d8139c92e0719 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9955cf6062327857c43947cc7ec78649619c8735 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Change-Id: Ie179e0281bff19ea69ec60fdabcf18190c390660 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7b31a46e449747c2ca79605450f57658c855c756 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel Change-Id: I47a4a55d85f4fe2555628d833220b7e72c69cbf5 CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 313e9c47ee295bff714ca1a535fe6681945d5421 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Change-Id: Ia7054e7f1d05740b765a6c9b88f8f844cb605bbb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Change-Id: I5b4f8e11262c60d286d98c79f0c32e0104a7d57b Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Change-Id: I5c0804854cb33d1fb875bf1f6c52acd0a0e0940c Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a8d17b9e9d8c1f980002994c81c9ae1ff25dca8f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Change-Id: I0ef69645fa08e8c756aa25be95ac5a9d038a3910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c60d7efe10dd5b2824464d3187bb8262ee25d2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Change-Id: Ia81a8d52c6f9a24f8107d62596eed3cdc966e4dd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 9f1bb9925e9d0ea9eb505695601941f48f8aed7e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Change-Id: I754a23592901225f3f52772b7ff4666f5b6d429f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 743f162911247ba260445deb01b5406d0067daf3 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Change-Id: I107af5cc0c1a914c53a22558085123798ca2b5f2 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Change-Id: I056c15de115367a33209c876a0d64cea85a02655 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 446d22d4641f699b741d16ea6086ce570c49dd7c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I7f493f1b850d40156b505cf88da308844ee34b42 commit 4f7e10164fc8f8477a0929cb910a849772620bc9 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Change-Id: I0409909ea6f24db3da6ebf4d92233e45da93c2a4 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9c08f6850dbd998adf7956887060eec599a8f26f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Change-Id: I5cf94a2523c453cf4e82f68f3167c3c2442d9c82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d93d76ca62d758fa6f584a5a6f86ed92b0ea845 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Change-Id: I3ede2a9fa25adc62c85b5514c1bb1600ec7ce460 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ee9289450d530ab1fdec2379859fca5845a7808 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Change-Id: I6f03e957983c4161499a26cfe2f9008a997a04c5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4d8813b4fd6fe7588c411e90a2603b23a772f738 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. Change-Id: I252df99c085bf3e9ada117aa7c08f3a1f3023475 CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c429f0a0d694ee7ef3471c1b5172b050bf17a1f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Change-Id: I8b054f61ae907735064da549e493964176ed3090 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bca2a2055432cdf78380ac070ba0ede9c5893083 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Change-Id: I6a0793ff049017785b75624d30d0fe862e41b210 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 871edcfd5a801feed587b6c7f72aa4e1387d245f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Change-Id: I06c21a6fb480e119ad4ec75e993203124b97f4b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ede104a0244a04ca6fa6ce8fe9fc98008462df9e Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Change-Id: Ic5714dad929cf56505569cba14722a20dee12c15 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 716e97e704c6591f05f5b88743fca7770f0c61cd Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Change-Id: I3c80e4307f84d32b02872e977858fb0adc293b94 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 64b4b03461e39a715b33a2ea1ab97f5b27850535 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. Change-Id: Ie2a0785d490dc92f7f14f64aa3c2e28e6a231202 CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Change-Id: I94ba3457311c58415ba29bccdc2d146891b17897 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Change-Id: I0ce9cf2a7eefd785ad161b10204e56285248661f Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit cfb68532d8d09c54564590fb8eeaa83383004472 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Change-Id: Ie3e020394492fdb0209b7eec2ab2303b4f2a9ebb Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ea9be62c230d982d6122b16b8717131f0df6f215 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Change-Id: I47d68ddb2565be4f3d131061a21c5d921142e933 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 60dc151a43093fad5f68d02323570d5efd58ee4a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Change-Id: I98bd1a4547bb7e310b0df2311aa41ed4115cf8cf Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit e6613b38e178e67f441936e6820c966f553074ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts Change-Id: I032883b9de9e51c6844cc66e3d1945a14ca05e19 CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ddc23bd81a174843ee09fe464e0afafa62bc7126 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Change-Id: I7188e5dac6d4eb2f4ca6a7833c84e1fb1251b1b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset Change-Id: Id2eb0be74e72c8982a2def8e333032174ec1d23c CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 14db758bfd64c473185b369b311e2cca443d01a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Change-Id: I960e441210deaf7edba38b2409954f938160e875 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a41b7a628978951a3d2b58409eaa131a65707f4d Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Change-Id: I37e0cc6394ffa8dce8aa8a4cc5fde61402f44334 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit fb8a7f9d09f3c068fdcdb7e880fd11688db2df95 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I39cdcb78455e07332351b7312ba149aa4f8c2f07 commit aa3c63a48f18740c0f90f2d85218891b0b3899b5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Change-Id: Ide2beb306ed09e4b5478877d2f000eb00f1c317b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Change-Id: I5fc29a314eb6eeb9a88ff7cca5779e95ca954ede Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2920965c1443096f1707888d2fe311cb79dd68dc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Change-Id: Ie55ac18e6b196276023d7f28f291e5410d309217 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6935ec9e55cb488fbbb377cc49697b6d37b254f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Change-Id: I0c30f41a5d46f357110b619ba90d16d95d9576af Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. Change-Id: I1b9e562c257fac563934b5b1477e58e5382b45be CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens Change-Id: I7448525e9f11638c4505e0ce39fa9da05813f5d9 CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bf2d82ddc93d20097fa1021b1c7629b9d9986384 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Change-Id: Ib794b76cc7b9e1a8e9ce53ff9ede57108f0eca88 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38bae35c81f7eee8605d854cda9f3854c3be2051 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Change-Id: I555cf7871da84a91806cb5b1c269e7ed79080009 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Change-Id: Id6fdb3249825405fae058d54772a86145de9d8e8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit bb597c0640d5f87aadec33d29c03eaa0d3718a4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Change-Id: Ie2e3bd1df66b5cb944cd0e28d97227c408cfcaa2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2be87760e94044f23ffefc7a753f9abaf14134ba Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. Change-Id: Ic691103e5d1de894f81d90ff1eb4c1a0f9830ecf CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Change-Id: I0057bb34c6bb90ba3c13861978c5cf71ac620ef2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Change-Id: I23c6ee2a6802baa98af495320f6bee94915ecfa5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Change-Id: I8f6374ed2e27529215a7d66dc32e65e7b4a79983 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1532e778ce5b8c30e8261f2b73bc78819f99ea3d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Change-Id: Ie052e986bf21277685d4f52205d3401a5d85c3bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f711ac25a68e521ce2bbb450d34f46eb76d39a20 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Change-Id: I0ea1d8797ae850fcfd21b8964ee967282b23910e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a34b0bc9e1e66f9e9c6ef6063bf3c858bca2e2f4 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Change-Id: I043abaf33ce6a5f926a3b27551a517e829b30af9 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 917fee282ae07cc98541a54204069bf7955e352d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Change-Id: If2722fc012aa97f0cdb2577589d2e51b82160c24 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3eaa215567715925b93e5d5d60f679de6028d0c1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Change-Id: I34148433f8fd946a9aa664df6ca7782cb02bba2b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 959f5c62d3b83b65567cd8088db9d9d84774273a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Change-Id: Ib7598cb8e4ce16be39d0586c718c0753f50056c6 Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 802cea1a8b7f850495f900b8519df1d4a064c880 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I0898f3eac7ecec85b499b73ff118d846ba32bc3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8cd1e18d1f8fe351e42a0ac5287536cdde7efcd8 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. Change-Id: I0bc92777a172a2ecf26ce34d8882a04165e859a3 CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 03522b71418c110c98c5982b9d28ffc97c9afdba Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Change-Id: Ib8865c8bd3390ac12a2fe1eac158b7e4fcab4bad Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8f43f4bb7d9d56c82aa2a7630116b9f44aa99a62 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jul 7 21:41:10 2011 +0530 msm_fb: display: Enable lcdc for msm7x25a Enable LCDC interface on msm7x25a with dynamic detection between msm7x27a and msm7x25a Change-Id: I935ae65f8ed43b5e524da100d38feba44c3c4a16 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit bd0ef9258776385559fd032134e0a28e9aad8f34 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Change-Id: Ic27d304ec6bff44c29b8d10c622363dbc5fcee75 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic3060030dece7ab531d3630eebf6e4ee7267804f commit fe926e8303dc6da0adf7be76c045ac93a9f8818a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Change-Id: I4a6d78ad939085128d261fdf8c70018fff424b26 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jun 25 15:51:14 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Change-Id: Idd3b9e6562acad96fc0f460f81e64d4483059b9d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0423ef3ca01755267a1f4e157c8ea7e468b145f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: I92bb11888b004a6fbd7af900ccb490cc7f9547e3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c1abee46365a0a8b976877a6ad5f2752f410ed7b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Change-Id: I7a3f274dd5472fa3842a6fda586539e85c7defd9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 16636524b5635644f554435a99553c097b74a605 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 15:12:21 2011 +0530 msm_fb: display: reduce display initialisation command for lcdc Reduce display initialisation commands for lcdc toshiba panel to reduce the time delay to resume. Change-Id: Ib36c2546423d1b7c5c0d0c1531c480b477c2d975 CRs-fixed: 291494 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 4e19f50c3e21f6be4595eab4ffb1d07abfbe8025 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 10:52:46 2011 +0530 msm_fb: display: Configure full resolution update in dsi command mode Partial update is supported only for mddi interface,hence update whole screen for dsi command mode on msm7x2xa. Change-Id: Iecfc8d5edac2f962c3710692ed87abaa90fbe184 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Change-Id: I57ee5704dc3ec2aaa16086727470b4f6dfd9ce9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Change-Id: I380a4727c0485bcdcdbfc9fad43476569f2b78ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. Change-Id: I90b3582fa73040bf66239f5258592a1f08cba0f0 CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit da07df81fe450fb08ec68511bd4ac5004ee96f3d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Change-Id: I2a941fafc92de61df9077cb3bb5bbb78964d1809 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9568223aa6d0fa91fd8f3a042d75e91b1895d494 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 16 18:22:52 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: I380b05d8d9158c49be5bdb9a52e52a114725c22e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 20 18:47:53 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Change-Id: I6d8b766fe316522451eb5e2c548799b17da431be Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f25bec14f4ab386015cd034c59ebdff9f3d266b5 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 28 09:14:27 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about whether the panel supports 3D display or not. Change-Id: I3f8f9d8eb4014a77f9b4f4752858999009ab2407 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7eee7cfb58b63b1e710e20d994b3926b4dd126ae Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 23 20:18:38 2011 -0700 msm_fb: display: Add HDMI PHY settings for 8960 target Add HDMI 28 nm PHY settings for 8960 target and separate 8660 specific HDMI settings Change-Id: I3fe023c28fe0bf3728f7dbba8cb16fd3096985d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 27f99bb784c6e390674373ae980d9fb15194f0dd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 20 17:16:42 2011 -0700 msm_fb: display: Fix suspend/resume for 8960 DSI panel Change-Id: If3716f131b7b5c9d5dc176d3995622355696c5d7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Change-Id: Ieae169e3ece870cac7f2c73922b60789fee11a9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit afc6ae9304f27c240546f15580555913f7e27644 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Change-Id: Ibbc77d3f369d4bf4e1a1311609039764a692d66b Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit 9322f759f8437a816e44aa921a64fcb566defcfb Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I60e4cfee8215139671248506caf0d625a1bec1ec Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 918ecc5201654cc8c1b5bfcaa7ef5ebc32304733 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jun 10 15:05:35 2011 +0530 msm_fb: display: Fill the last frame to NULL while suspend in MDP 3.03 Toshiba panel stores the last frame in its frame memory during suspend. This last frame gets displayed while resuming in quick succession which is not a valid frame to display while coming out of suspend. Hence fill the last frame to null before going to suspend. Change-Id: I605fbed97455298dcd00d884bb9f4b7256078902 CRs-Fixed: 290419 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit fc299bb8066e0325db239bb356c546e57c7ef347 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. CRs-fixed: 287700 Change-Id: I4ced3fa8927fb94e5457957aab274e7d07acdd79 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit 6de2b7363df7ad3bfe02b6752910675c749f910f Author: Vidyakumar Athota <vathot@codeaurora.org> Date: Sat Jun 11 22:52:24 2011 -0700 Revert "msm_fb: display: provide panel refresh rate information" This reverts commit 7b401565d2ab400a3e68e1112c3d601d13a34837. Signed-off-by: Vidyakumar Athota <vathot@codeaurora.org> commit 55e656e68cac78eaa367341df2e693a483a53f84 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Mon Jun 6 14:34:38 2011 -0700 drivers: barriers: Replace dsb() with mb() Replace explicit dsb() calls with mb(). Now that the generic ARM implementation defines mb() to mean (at least) dsb(), it is appropriate to switch back to the generic kernel version of the barriers. This is also needed for correctness on certain targets (such as 7x27) where dsb() is insufficient and other operations (such as outer cache sync or writing to strongly-ordered memory) are required to ensure proper I/O operations ordering. In some cases, remove explicit calls to outer_sync following a barrier since the barrier will now have an explicit outer_sync call. Change-Id: I2c53b8534af9c3cbac4d4d77b322f897a39e7758 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Change-Id: I2593b225353ec3758f18e33ea58fd867b30ec062 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 47c54ff0e010190f0a11e7e2792642d70caa339c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Change-Id: I10dbb23a7f13f472c8de3014115890e689a2b6e9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b35d093b7b22e380ffc9f066a92dc0ef218944b Author: Gregory Bean <gbean@codeaurora.org> Date: Sun Jun 5 11:34:02 2011 -0700 msm_fb: fix forbidden compiler warning. Providing forward declarations of functions and then redeclaring them to be inline later produces forbidden warnings on some versions of the codesourcery compiler, breaking builds. Change-Id: I4a65e1af002f4bc412c30b5c96601f8e650c74d1 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Change-Id: I5657379eb4593eb551127a016393f231f445f423 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 63a81111eb3e7143bf37e125c3abeb94fcc611ac Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I7e98935f0bd4f29c188f46601d8df09c37cd20d7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6a194de79ae35f9785c5a5c63cda330c7dab1a80 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 25 08:44:37 2011 -0700 msm_fb: display: waiting for vsync for UI frame push Add waiting for vsync for UI frame push through pan display. Change-Id: I9be701c6615c139d6d07b16c32039074d5b5a431 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b11c3b46619d3eaee600223859041a51fa0af218 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Change-Id: I620d133941739eb8024cdb6d79227078c3193fac Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit cef59b7b35b714df7b81f9bc2e96b8d49181f95a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Jun 1 15:38:08 2011 +0530 msm_fb: display: support suspend/resume for lcdc toshiba panel Add support for suspend/resume and backlight control for lcdc toshiba panel for msm7x27a Change-Id: I49916776cc532974eed7f858cd7e2fd85b6c8fda Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e8f469582b62d0d76faa4051227228734f226325 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Mon May 30 18:04:44 2011 -0700 msm_fb: display: Tune DSI setting for Toshiba wsvga panel Change-Id: I71df1f019b1604f806af6b7ae7f379edb810a583 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 6a11cb6f4d7bf536d2881512daed6e3324f65b64 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 23 14:17:53 2011 -0700 video:msm: Updating QSEED table2 values This patch updates the table2 QSEED filter values so that they apply visible filtering when using the QSEED smoothing/sharpening API. Change-Id: I4431a02e24f9bcae035898b758e8c462c9c044de Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 589c897daefbcf28e8610226225bd2d8fcddee4e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 28 13:53:07 2011 -0700 video:msm: Initial QSEED sharpening/smoothing API Adds an additional parameter (.dpp.sharp_strength) and reuses flag MDP_SHARPENING to mdp_overlay, to allow for overlay_set to request for sharpening/smoothing. The overlay parameter is designed to range between -127 and 127, with negative values infering smoothing, positive infering sharpening. This range of values is then mapped onto 7 levels for both smoothing and sharpening (i.e. ~ every increase/decrease of 16 aligns with an increased sharpening level). This commit only adds the API for sharpening, a patch that updates the QSEED table2 values is needed for the desired effect to be visible. Change-Id: Ib6522e43bde4f4a54e752258553822e78a95749d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 4298b4f972b395b92ab0346978a9e9e9999c2e9f Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 24 20:10:15 2011 +0530 msm_fb: Display: Add support for DSI Single Lane for 7x25A Add changes to support QVGA resolution and Single lane configuration with DSI on 7x25A Change-Id: I3f33e3b41a860b7339abfb824aac00435606e5a2 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 54aafeb90b88663a423be3459f4c05c38ccafd97 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri May 27 01:16:55 2011 +0530 msm_fb: display: Enable backlight control for mipi dsi on 7x27a Add support for Backlight control on mipi interface for msm7x27a target Change-Id: Id22cba59929eeeaecb6383b273242f12c52535f4 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7b401565d2ab400a3e68e1112c3d601d13a34837 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I738b254bf8d2db0bd79864c0731ad0542f657bf6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c394da5a206ccb6aab93b0a3beba9d38f479d7e3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 25 12:55:58 2011 -0700 msm_fb: display: Fix for the color swap issue for mipi simulator Color swap was wrongly added for mipi simulator panel, which makes colors to invert on simulator. It will disable the color swap at DSI controller. Change-Id: I1f00cdfaaa9e60804045d81581d3a1de059e21c6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Change-Id: I382aab2bf908f0140004a6713c8e77a16f5aa925 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 395c7c1d9c82d56977a611080d305aee0d974372 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ief48dca2b596ac4f2c6fb23a5f20802e8b3ef4d9 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8ad47e5a01f5e95cc0e41c1a4a71317d4d8a9a17 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure. Change-Id: If4546501eae383755d0a5ddd059e166007f64bf7 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 2604c2884489e8c76474249fff6f8d1103503f21 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 23 15:36:47 2011 +0530 msm_fb: display: Add histogram in MDP 3.03 Add histogram functionality in MDP 3.03 required for Content-based Adaptive backlight Change-Id: I24dd8a42c12b2311823fc25b2aca568a8c391b0e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9925e41f075235b620b9d6918f9d00662a60e9d5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: I4247b600e31e7a5f39b44e77a49c174b8c0bd11f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit dcc36cc4b33d1b82b803fe1dbdb904656eef0aa8 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri May 20 13:06:06 2011 +0530 msm-fb: DSI: Add Support for DSI CMD mode on 7x27A Add changes in MDP, DMA-P and Panel Configurations to support DSI Command Mode on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Change-Id: I912866f9072dda690d5e6354a05d74dcb2d2aaa0 commit d567f25ae4afa37f8f7e2fda53bade2099f7ad87 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: I508d250c9193449e6663e13570c2c9fac3b8feca Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit c7163d9a33d86d1001aa4083423c68c07743861c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 16 14:07:15 2011 -0700 msm_fb: display: Reorganize DSI clock and PHY settings code Reorganize DSI clock and PHY layer settings by moving code to different file from base driver Change-Id: I7d02a4cd0f5322b80462e3721d5c8fb4f83d002f Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ae66ded8ca3d1e7184dc04f1c165fae30ba8a203 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Clock changes to MDP driver Adds the mdp_axi_clk, mdp_lut_clk to the MDP driver. they are the new mdp clocks added for MDP4.2 hardware on 8960 Change-Id: Ib936a280e83a414806365836a839b5555f445724 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 46ad60f0cff5c2222ded7a639f337417e59b2375 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. Change-Id: I077d497c2ac9b1dd181f4f4ea874bd2ea4dfede8 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 4217a1dacbde157ce26238904450b091778fe872 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. Change-Id: I76f7246f855d7a3e99de29da7297053c477fbbef CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3700ca00ba19855081822169e144c87aa1d4953f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Change-Id: Ic635065f2bc42cdfb422f440fe65fc01a246e18f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 22cff13e1115962207254980acffac8d20bd9b26 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Change-Id: Iee5ea7287ae8879f961a095327b71a38b8b60f57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cd0bd24a3fffff873821618009389378372fb73e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. Change-Id: I55316d9dc96fa17d275d87e75480a2209b1fa46c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d89efdbbdf521f05a7b9f191e98914b40bc1962d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Change-Id: I630f1df16212d02bd694e086d695067262b6203c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 757e2ea8064b379ecfd02a6fdd36f6f2894066c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Apr 6 11:15:36 2011 -0700 msm_fb: Display: Enable WSVGA Toshiba MIPI DSI video mode panel. Add code to configure and enable MDT61 Toshiba MIPI DSI video mode panel. Add new command set to initialize and configure the new panel. Change-Id: I8c543677f75ade967a77100a7878b9e487dc991b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. Change-Id: I83cf278310a902c263e191b714b550ee29afa5e5 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 8dae3d06d1c41aa2de609056811646ff50e77791 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. Change-Id: I436f1eee110562587223fd1de97821968d494034 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. Change-Id: I3df0dd292ac7d28f9eb6028ee16e5c60180e5c35 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 065b9f72784c2686aca0233e8e510229efd329c4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. Change-Id: I0ee5412dc5801172c00570748fbcc9a9efe04582 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit dfcf3ef2212026dfb53e87f571b294627f34a4a7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If69a6781dfc493125b5f57b937c24d17b4cbbea6 commit f0771a155634cae4052dab0c0c7ae2fc0abc4b56 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 16 12:19:53 2011 +0530 msm_fb: display: Enable suspend/resume for mipi dsi on 7x27a Add changes to configure Soft Reset of DSI Controller. Also, add changes to control the power of the DSI Client. Change-Id: Idb72327da1219c215c36e6b3a94d4a763e071fb5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I450a46cda3f18f1a54cc5e2cd0500c9d54473b7d Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e814b7842af3b7f15047f3f922c1f1648bb2705b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. Change-Id: I77dcf3d91046f4f6f71f4dd5c1aea90bd766e7ef Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ccdb0372092c3a359754897ebec2bb8be37d6a3e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I1e00a561774779703b343e08868f3da633f6dbdd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication Change-Id: Ibb25f7cab29c2c361020cac868b58c298ae74560 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. Change-Id: I98fb0e3b09501aa30a23eb6939102de08665f66f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ce25d616d046ee3db897fe921d300f44553d83c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 12 17:26:39 2011 +0530 msm_fb: display: increase max BL level in panel driver Increase the maximum backlight level for all panel drivers supported by msm 7x27a Change-Id: I534b8e5e3ee296e68e81d4dcdceea70319cbd0da Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 829c88376705c6b58e62dd93e9802ffb905ad49c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. Change-Id: I8a058147f8bd147ee2330d445f27b2ee58e5ef99 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d8df7faccb2ec330eb859179ed0db07313626b7c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Change-Id: I45a92c91dc5c250a91a6c069e0695f72c97a6272 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e80420254616b39d0c350dcadf8f6954394e7647 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Change-Id: I95dd4b8bc654a923730a9e4ecf16499c556201d9 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 15bd60d7b277f7850bbdc814ae1e151c5cea31ba Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 9 18:45:45 2011 +0530 msm_fb: display: turn off dsi ref clk for 7x27a during power off sequence, dsi_ref_clk is not disable and hence TCXO shutdown fails. With this change, dsi_ref_clk is disabled during off. Change-Id: I9424120370a6a6feec98ca228777ecaac9249f30 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3d3439c820a1a0e79f3c3b706556a6ea11b6ee76 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 5 10:48:02 2011 +0530 msm_fb: display: Resolve compilation errors for dsi on 7x27a Change-Id: Id7cc3e3df2c0005f0442e03625567c40797feea3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Change-Id: Ibe731d0c562d46a0c3888704f50b2010ec1769c0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Change-Id: Ic31ca511afe2c44bc045442c807c2b2fc554bb5a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 894c60beca1296b1cc16f948f45ed140a016921f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 2 17:38:17 2011 -0700 msm_fb: display: Configure 8960 serdes settings for DSI host Configure 8960 serdes(Serializer-Deserializer) specific PHY settings for DSI host based on target type in platform data Change-Id: I433e61f13f19a582fe3e21dc6832fcf93046a3f1 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c7711029d933b918a97749af7e31beafef3e0d96 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 3 05:59:44 2011 +0530 msm_fb : display : Correct DSI Byte Clock configuration To configure the DSI Byte clock, clock string ID is different for 7x27A and other platforms. This change handles the difference appropriately. Change-Id: Ib5bad3283287e7d36d428aa4721c87985c112d59 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 64189b417cc545add2f496609ef11df6b491d177 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 13:29:40 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. Change-Id: Ic68a2dc646a2e2693e5eea5d9c81e629a0a84244 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dee181e845c10b3b9a68fff89d965d6b99691c09 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. Change-Id: Ia0f5ff8a55322546dd7d18fca4e1d7b3ad02f8ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 393e367e14977c42f62df3101535712503f1f133 Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I3d567d73d1854d62c86aed95824c39bfd1f20859 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 0b0d5c46c0fd92350be9cd838f621aef566ce7d3 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Apr 26 19:01:21 2011 +0530 msm-fb: Display: Add changes to support Renesas DSI panel on 7x27A Added changes in the DSI client and panel drivers of Renesas Tremolo-M panel to support it on 7x27A Change-Id: Ibacec50454e573a065a3eabfe30e02b22896e44d Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c192a65bed1be0d4d8cd80be809ca59a9fe100ee Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 11:17:56 2011 +0530 msm_fb: Display: Add MIPI DSI support for 7x27A Added changes in the DSI driver to extend support to 7x27A Change-Id: Idd55b0aae9aed653721357ff2c414ce081d6bbbc Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 551c692934c576d7105a0d65b39aca126652ec3a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 12:37:54 2011 +0530 msm_fb: mdp: Add support for DSI Interface in MDP 3.03 Add new interface support (DSI) support for MDP v3.03 Change-Id: Ifc85b8d1f84a91e97ac11c8e62480568096f1845 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5e744543c3f81650a1cea1402c58c01ae6ee421d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Change-Id: Idc788125da12f3c3aae3c2a64292e8ca8580e7c8 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2afd5ab819fe894511ed58fc1262d0452a4c70fd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 21 16:11:20 2011 -0700 msm_fb: display: Disable MDP clock directly during suspend Disable MDP clock directly during suspend bypassing the pipe ctrl workqueue CRs-Fixed: 284441 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic04fe003c51c2081496760531e5c7379fcfd39f7 commit 902ea8d6bcc516f383e3335cd690ef5e384c267f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 25 18:53:29 2011 +0530 msm_fb: display: add initialization of toshiba LCDC panel only on surf Only mipi dsi has support on FFA but not iLCDC. Hence the change to have LCDC panel gets initialised only for surf and not FFA. Change-Id: Ifd6526b0020c004bc413b12939701f1935c16dc3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 565ecc608d46993c4afe6dd15c95942c75f1e932 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 Change-Id: Ife0af10358d3e61112f6f70349262d1bf2105c62 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 801290d61d4426c1504079bbaa702f5439dc96d3 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 12 19:19:17 2011 -0700 msm_fb: display: Add DSI PHY settings for 8960 RUMI Add DSI PHY settings for 8960 RUMI Renesas Command Mode panel Change-Id: I4323413414f89f60e16962887362908458bce400 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a6a1618edcdfa45b8a03dceb768e873ac5cec731 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Apr 21 00:12:44 2011 -0700 msm_fb: display: Mipi driver for 8960 simulator Mipi display panel driver support is added for 8960 simulator. It will control the data flow between dsi controller and the mipi dsi panel. Right now it supports only video mode. Change-Id: I3712907a0e0c07b9ebd7e9fb2678f37a3058d5f3 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 708f3b8c4c8115e9a6543b6cef50288dc94aedfd Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Feb 17 01:13:07 2011 -0800 msm_fb: display: Add support for MIPI DSI Renesas panel Adds basic support for renesas mipi dsi panel driver. It will control the data flow between msm dsi controller and the renesas mipi dsi panel. Change-Id: Ib92a342bfb3d596d99dbcf564c86a684c2d2f8c4 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit c5ac53e3e4aeb1d73587719f639210a1b7610481 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Change-Id: I8970ca2ad9481c4b725b6431309d6153f18b9435 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8825c2547168a36b5fbb30a14add7509e33f9b41 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 20:41:54 2011 -0700 msm_fb: display: Adding the Interrupt in MIPI DSI Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MIPI interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I04ec4b3d1230dd4e5e9be0041db6efdd31045a32 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 994b7d8d34a81ddc9c6fd9bbf8c71791e8f36bd2 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 19:10:53 2011 -0700 msm_fb: display: Adding the Interrupt in MDP Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MDP interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I84d2825dad00fd8b6c4425b290aca070b847e9f5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 75df47a6dc38b5bd08d0c8e2d7595662f9a3ddfe Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 18 20:17:53 2011 +0530 msm_fb: display: Avoid EBI1 clock setting by Display in 7x27a EBI1 clock is already set to a higher rate in 7x27a and hence there is no need for display to set it explicitly. Change-Id: I316f61dd8d345d6b66a070b75c6be804ce9db0a4 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 04a6f98fb77c9749cfa50fa9e5cbfda132fdd28e Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sun Apr 17 03:42:22 2011 +0530 msm_fb: display: Add support for LCDC Toshiba FWVGA panel. Add driver file to support Toshiba FWVGA panel with LCDC interface Change-Id: I15dd2abcfe474ec7737e7915884ea33ea78da689 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0df29adef313157f99c814e86f3a73e7d3c657db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 17:49:59 2011 -0700 msm_fb: display: enable vsycn on mipi novatek panel Enable vsync on mipi dsi novatek comamnd mode panel to prevernt tearing. Change-Id: Ib71a0204e5ef4cc8a0e0b977dd3744fdb74c8af1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 605a44c18620ed364e53d1e4cc0f03fd2f815029 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 Change-Id: I930c3e9869c6bbabfd70203ddbddd15c84fbae92 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 14:59:21 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. Change-Id: If54c4cd125a8504eee4cd468282f4dccabb0398f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4a80d9e8bd74410f4f9a3e636c3c617e8afa7b8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:59:02 2011 -0800 msm_fb: display: provide option to pass chroma pointers seperately provide option to the user space to pass seperate chroma pointers instead of deriving the chroma address based some assumptions. This gives flexibility to derive chroma address that has size alignment restictions for luma. Change-Id: I384ade86993810627655a8a446e6b9316979aca8 CRs-fixed: 274238 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47 Author: Michael Bohan <mbohan@codeaurora.org> Date: Thu Feb 24 12:10:11 2011 -0800 Initial contribution This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.38. Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> commit 1ad6a901db3038e67a58b98ac60cf048deb7d7aa Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> (cherry picked from commit 514b1c651a33b7b73fb6f654d04355eac5ecb146) Change-Id: I15ae4a26a1d1f964b41bb6174e5ea31bc4da8a59 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 837fbaa4e02d07502c8969503ebb936c0c1716a1 Author: Swetha Basineni <sbasin@codeaurora.org> Date: Thu Mar 15 17:08:38 2012 +0530 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63) Conflicts: drivers/video/msm/mipi_dsi.c Change-Id: If7adff01a7fd50177761f015227986a3f93d1e49 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 5fa503114b95e1cd0e4650a543184e36215e2522 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 1573599adbb42c606d8b91854c76461b3f212c3e) Change-Id: I60a2fb051add9973d98c177b58c33445260cb359 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 08c0d505198f988d10f4f55fe30c0448b33a815e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 81be67988ef149f601064a9e8e5d91705e636ff5) Change-Id: Ia0552b3b645389efeaf2b8d3986f5ba10c4d9142 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit e4326532759c3e05741616760bb11e456ba31cff Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 228895ae217589ca71aa464f7c22bc4cedd06f77) Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: I06b2cc1658e49fc5a82f156911726a41a8467bf7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 8b7fbe6ed5f4f38b34c69a82d711438a570304cf Author: Swetha Basineni <sbasin@codeaurora.org> Date: Fri Jan 20 12:43:12 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> (cherry picked from commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980) Conflicts: drivers/video/msm/mdp4_overlay_lcdc.c Change-Id: Ic8a2d59163c807c24ffa54a5b72d5bdd70712301 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b77817fa07694f7fe1bd56d11e1765a66787b4e9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> (cherry picked from commit dee95105fdbc21ca2cecad26403e7c6a9942f445) Change-Id: I43abe64ab53feb09a0494c9f642241e5791ce9a7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 721d78d25c007c5e8ac9474d95f4a952e0a1ba76 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> (cherry picked from commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9) Change-Id: I395c49c3d6308c4ef2b9a7dab41167467be3519d Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9326c60c83647488f2e33d9112b07d70296f5a6f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9) Change-Id: I5069e50dea973895b67e21e60e335818c30fc142 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 184cd5a52d1ab1864f58baaa81aeed091897667e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce) Change-Id: I3f97aadf0a7635bf07b206a3477afd18a23b7b44 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit df013ad8114e7e8391c90df172da0a04609fae65 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 402adc6142598abcb2a41a941895003f57f289a5) Change-Id: I28d6f11b20f123c52d5872f0b550c3c4531356f7 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9882bb2dc947df434befbae40b0d681973a4b5e4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit ebefc805a139e8222061b32cbf7686d76122de5f) Change-Id: I7bc723e53244983b76937deedf3524c642194e62 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 63fcfdde892762d72a7ab15b0628167d584a2ce4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn CRs-Fixed: 311139 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0) Change-Id: I7410e176b0a2e09b87f623bdbfb08927d2525b05 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b18226c8a815117f985eafb06439bd0d692531f4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit a077d0063dfb8a39a869f56099dd0ffe85301180) Change-Id: Ib664232c07d00dad7a2d89875fe2903b8ab1016c Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 1e6428ce9512b074a2a586b403c331690a9813c8 Author: swetha <sbasin@codeaurora.org> Date: Thu Nov 17 19:08:30 2011 +0530 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit cb8fbbcbe0630451ba582a0747987c48b2c603f1) Conflicts: drivers/video/msm/mdp4.h Change-Id: I0f36f65db00884b017a5bad4670794cd65e2c5e5 Signed-off-by: swetha <sbasin@codeaurora.org> commit 5dcef0415fe4312e4fed83c6974780fe163e6523 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. CRs-Fixed: 316345 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f) Change-Id: Iaeb6b9b121d8c9eb4cf2413ddcaf0024b06e0d8b Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 0506478f4ef8b397b3916db47133c4d0cdc05c89 Author: swetha <sbasin@codeaurora.org> Date: Fri Nov 18 11:27:28 2011 +0530 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: Idf36ab257d4bb493c578529d4d8a7f0d68e2b1cb Signed-off-by: swetha <sbasin@codeaurora.org> commit 79d8f3eec036a1f0604bb296048a5c21a34a6a36 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Nov 17 23:54:16 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. Resolve GB HOUSE conflicts, below FR on gb house had conflicts. CRs-Fixed: 319078 Change-Id: Ie93aeb8837151ef98814a4cde463a3be58c6c1fb Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 0a693110809d2a782a137f242f6438cb0e32218b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 16 22:00:05 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I00ccf91c022d6b9962ec0231eb3c8f159a200e40 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c55b00c069de596e0d539314381b1139139c6932 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: I23fb10ea30117e20de654d9516f7d024b99f6c96 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6b5cabad0561eda616f892cb67306dc4231626a9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. CRs-Fixed: 311137 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178) Change-Id: I79a67ebe0a24be65c2f588d06e80e437d850dc16 Signed-off-by: swetha <sbasin@codeaurora.org> commit 1b0fe24150908a0474460c32347e71d1f904008e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 40a43409804073a0442d2a1ea09293c0b95fdab1) Change-Id: I46ab957bb1f6f9289ea62f49c4c012450965cc9a Signed-off-by: swetha <sbasin@codeaurora.org> commit d8b5b8b42652bdf50d9d2f32c9f5df9a683bec0d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 5a95ccd976434514d06384c2684c187daf3925ea) Change-Id: I645e953bcb614f18ee0d0469e7e05a81c90d6027 Signed-off-by: swetha <sbasin@codeaurora.org> commit 8da556479db6a5798cd64278c0a59098bab1b89f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Wed Oct 26 11:19:57 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6) Conflicts: drivers/video/msm/mdp4.h drivers/video/msm/mdp4_dtv.c Change-Id: I5a2bb2982f49d9e3f5fa04addf60d498e8177931 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0716a0cfbaa4b71cd46359b97d0595fa5eb13dd9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 09ab565589a8a1409c222ce79b6885aa9e96d33d) Change-Id: Ieb7db1ec90fb6e57b7e3cbc1929ffb74a1d96d8e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit e2a4d84ae6cea7d8c32186e3d94d66814ad8f5cb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. Change-Id: Ib8c95024dc593794909893bd7daafc68ecb77769 CRs-fixed: 306936 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 5f775050abd5416a04e2999101e98b9206fe8a25 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I096939b519c0e007e69e58d0665408799e7f5e83 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b5b8af371375fad123b3b26a1c8f85bc6b6c72e7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: I5261356f75205eb1d3ec17522779693deed09562 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6fb10dc13bdcbec93462149c90ee11a8f3101118 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb) Change-Id: I85bbb414a9d34981487bee63ebd7b10e76711c89 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 30e1b13055d905f4276d3e9fc9e0a93d9dc1f9f5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit 4b99172a1df8b1ad2b48343bead39685f294e680) Change-Id: Id54327394748cc4a80864967b21caf8a378f37c3 Signed-off-by: swetha <sbasin@codeaurora.org> commit afff1683341cc4ae64ec618a86aecbbf1a1b83ff Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7) Change-Id: Ia3ec88bb19cd2f06fd9784afb2302bce4bbe2858 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f00cb084795b659746359544e2d2c80acf15bd5f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 18 00:37:14 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-fixed: 302409 (cherry picked from commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87) Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: I54afdaacc9b3b96be22ef5c0bd1ca2a2478a8f16 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3c12051aa756e8ad7c9fc40bdff1171d401fea42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 39fff5a3899f8d95886ba2e50d70001602b279c0) Change-Id: I4f81ec5a61e0e12013bb866e41301b95a10c7e45 Signed-off-by: swetha <sbasin@codeaurora.org> commit 7a851968932a82b4b21acae0fe788fc2c48b053c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit cb472111d93fa119c52d56c102b90cc3ad2c8030) Change-Id: Ia4586f17bf7696d422c25be7c6a55c4ebfa403e1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3d3a9c230489cebc3c20eece3639e175923d604c Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee) Change-Id: I9a4355eaec13aca70f9c2890e3eba96fbedf3454 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0f189a55ed89593cf430e850c923369d3acb2e7b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler Change-Id: If0ede3234d0ab844d2d49119873af5160e8a3e70 CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1df2948178c9ff509f28fdd2757119ae0923a494 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Add revision to MDP driver Change-Id: Id86814725955c743df4a0f85548fa64c3656feae Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 96145b95dd0688ed0c83f33d129b4bcd8301ee54 Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 4 12:25:44 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57) Conflicts: drivers/video/msm/mdp4.h Change-Id: If070171b933f4b74d5ce817340ed04be0ccbf270 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 433b95fa866ea12a0acc768ce0378f992c1dd09d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 8ee9289450d530ab1fdec2379859fca5845a7808) Change-Id: I8eb4caee64a67863180dbfb45e7d8062488d493e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit b374b85bad548b148cc232c0045351a5b4d524ad Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32) Change-Id: I478dcd2a98d8825783e710aa751d89b9348f2782 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ad3f14bb1b57a8b3b41ed6559689f414a3d020bf Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 446d22d4641f699b741d16ea6086ce570c49dd7c) Change-Id: I4a7a22c5a0ac32120a7fec0a3fd22a62c8182556 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit cbf8fea88bfcff5134c5843bb46a4ba15ea75353 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> (cherry picked from commit 7b31a46e449747c2ca79605450f57658c855c756) Change-Id: Ib03d80616982f4b6febbf5216b5774780e9fb726 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fedb6a40b997178ad2d142ae1a4209b729320c1c Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d8813b4fd6fe7588c411e90a2603b23a772f738) Change-Id: I82c39cdfa4676293ec9a0c02b5f491ffe4b2e6aa Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 18174612d6683ca96b4f13528af46b1f7949174e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> (cherry picked from commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b) Change-Id: I8e26c37b9a54699315fda2cfcefd1f439945c67d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 776f9a5d02a45e7c580a494bda81cf58e6dc7242 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 743f162911247ba260445deb01b5406d0067daf3) Change-Id: Ic309e3b9311bcf0e47284fd5a13b8344a44d3315 CRs-fixed: 302527 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6676fee7d309ea699e302a8d039b85754acf10e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9c08f6850dbd998adf7956887060eec599a8f26f) Change-Id: Idc020deaee364116facc5db471f6f4e9bde4a09d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit dd5a748949a292fe22bcf7e8e8a4f8d9f8dca7f1 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Aug 31 10:04:28 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 64b4b03461e39a715b33a2ea1ab97f5b27850535) Change-Id: I2ad23f7a384b4f149bd3e4529e1bf5a01de66dd8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit b0db685088e013e1af1378583e9798618b153f94 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 871edcfd5a801feed587b6c7f72aa4e1387d245f) Change-Id: I6c880c61b540e83072cc5ea54b120e630d5c0e04 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3dc8e34c9ccf719f476019a0c2abec9ebd38034b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit e6613b38e178e67f441936e6820c966f553074ec) Change-Id: I5e43c80137900b9c04519e1e052cb54068d0860d Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 69b0f5d57c7470195ee4126ceca6b52e16fc1868 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Mon Aug 22 11:24:32 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 60dc151a43093fad5f68d02323570d5efd58ee4a) Change-Id: Ica2d2026a5ea6ffdba8e53cfd3f40013435db009 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 7049edede74ae3ab929c0ae7261b014bb65d9ee5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c) Change-Id: I3aa9a1ab4984ef7bf7b56e83b69d7eb41355f7e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit db2b5ddcb77b564d0e569e27d7484dcb521f9498 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5) Change-Id: I72ceb2efe73ce6990b352f65cf3f36ddcd94b2b3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 78e1b670c1c6d43f45ddb4d1cd290839dfe8fdb6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit ddc23bd81a174843ee09fe464e0afafa62bc7126) Change-Id: I7e0dd6fdb6ea50a90ed44e0dc7e9b9d8b2f71f38 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 575799be2dc6eae0d576e676a3c335dc9929d672 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0) Change-Id: I3c6a115fc116beb96c0ddd5324359efe992d00a2 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit cde0d4265de0662e2f0b119477381e7f8c10aa77 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> (cherry picked from commit b11c3b46619d3eaee600223859041a51fa0af218) Change-Id: Ia57a4dd092811f1430367ba7285f15b4e37e6247 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ce2e933002ea2b6e044d8c0109e6787b3e4674b5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2920965c1443096f1707888d2fe311cb79dd68dc) Change-Id: I7599dc56b1c3a8bfe4eda7fa1b888cafd86a8df3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ee9a51030967ac3c293675da9e67b438c5467c34 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Aug 5 14:18:30 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3) Change-Id: I71790f25e80641c821a87275b1b37088f6402cfe Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ba5def9929507a7501e95c25cb815043d33655b9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0) Change-Id: Icacbafc93eb831ea681fd6815d6f3ff5055a5394 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6e113b50c4af73ee87e90f7fc103e3f339a00719 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce) Change-Id: I2fb8f17d6b94223ba9c35e429acfe571e80e0ed1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 514b196c41f9e2c978b0d540f7d27a748f0264b7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15) Change-Id: Ie22e272d2356289e0bf286464381e23ea9ef3581 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1bdb7c7482741d74e5bf85a14f5a0dbf3e700511 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83) Change-Id: I55c8d6844ff7eb676c7f8bc76e363a7769b35b23 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ea67ae814ceed3004bed07870545725ddd4aeb6d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit f711ac25a68e521ce2bbb450d34f46eb76d39a20) Change-Id: Iee4d72dc85d4042a6490dc9b4f3c593a0a325d54 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8782b22d00d1211ce80d9093e658d3bba3b1b57f Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374) Change-Id: Ib05a6ee172acf80a77418912da3a4f8a54fb64ce Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 296d3f254c3cd93a9296c80d9a654f86105f7343 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 917fee282ae07cc98541a54204069bf7955e352d) Change-Id: Ie3585ca85d6714e262c3fe724d6b5b5f8c8a26bc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 9afa1e2e91ccb4169ea6a2365b4d98cfe237d0e8 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Thu Jul 14 17:41:05 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> (cherry picked from commit 6caa28428d79953af20f6f65459b9217db260aa2) Change-Id: I6270dc95a85f3958c98bfffd429577dab79f408c Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ebc6dc50dd48e2c7fe6133dfd2873aa29d5bed08 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 13 16:51:06 2011 -0700 msm_fb: display: add spin lock to synchronize mdp irq enabel/disable To improve performance, UI push thread release mutex before blocked at waitting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I165f94e77164fa5091ac4f31a7a73ed0f735c576 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 93b1ca29a4ac08326bdfdf2ec618cd275613d71c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: Ic9d68781d02d6bd66be107c446a706936c70ab64 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e5c60572a13dd16426e7356e544e51d36c8a440e Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jul 12 21:07:32 2011 -0700 Revert "msm_fb: display: release mutex before vsync_push" This reverts commit 78318a7a0357fc96cf4a38c90e38be0848cde0db. Change-Id: Ic2dfc460517927e853dc907fc708287bae8a98f2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c0c86f1e14e98efc85f9866fff89f08d1432095e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit bd0ef9258776385559fd032134e0a28e9aad8f34) Change-Id: I6944f98caeb98bdb963d19596791469bf863e18e Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1ce934cf550c3f647c3eec8ddae54d1fbd891519 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda) Change-Id: Id12bf05976b26611e53fd9ed7d31c912bf6840c8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0ad0f07f95ff9cf373c3ea0053ea540701fd38de Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564) Change-Id: I0b7df64ef83329b769f3200ac4cfda975118b4fc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6f4be7effea2e7d42b209b83a53e29d0e599f24a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit fe926e8303dc6da0adf7be76c045ac93a9f8818a) Change-Id: I4c3e5f63a6d6b54bd0d12b1be609a5f0d1f73874 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 78318a7a0357fc96cf4a38c90e38be0848cde0db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: I4a16e8313399c55d71a2e406e56c0c5d3f8f33e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit eacd237f51c20c08c225b6b817e7a6e109ab0b52 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 6 11:21:01 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948) Change-Id: Iad796bc1dde524b600cd5fd37ac4b85ca6f47b81 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 85200a4e8aabf77e3df2bbb0d50b359ee54ba402 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5) Change-Id: Ib5b4a9d0be4c03eb0d6525ceb1d5cdd04e970a96 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 784b785c7c52ce1d74b1e2ab827f485e9b9cb759 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c) Change-Id: I05abf7a3b52d015a146fdfab82a7106523d39847 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 90e312fd2e0f238cd374aab1c7c88905c22d22ae Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit da07df81fe450fb08ec68511bd4ac5004ee96f3d) Change-Id: I3f8bff425a158592cd572e0c487be41590ceff32 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit d00fd730650f26f690df997c91243d0470b1cc3b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab) Change-Id: Ia2f794da7f0d4717833000b7c657d7fc31987d7a Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 53310ca7798873e4f48c426db8cd2f352cf25d33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 14:41:53 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: Ieaf6595baddcef945ad5606a4bbafa18bbd8033b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 59863dbc83da3fd3a06a8c8be50c28b08c60b9be Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jun 28 10:38:06 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e) Change-Id: I547f00f4500b40777686fc0491500c06b5b4109f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 6a50674d696213efebb93a5d9d109723aa69d758 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Jun 22 23:38:16 2011 -0700 msm: Display: Fix IOCTL ID for 3D ioctl. Add code to have unique ID for 3D Ioctl call. Move Novatek specific changes for 3D to novatek panel file and remove the usage of featurization macro "CONFIG_FB_MSM_MIPI_NOVATEK_3D_PANEL". Change-Id: I01e2ec5cd85d2778fc800fd452ee3b1e6d0602f3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 66c31a935e3d692aba41a8fcd419dab4c8acbd3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738) Change-Id: Ib5993ad1967be2244892fe02325094b4e40c7ec9 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fb47e7b99107e99d4b972d2b3c9f80c7d3b62b07 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> (cherry picked from commit afc6ae9304f27c240546f15580555913f7e27644) Change-Id: Iadc2b2df0f7418fa86c4cc69d35208e8b32d095f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ba5be4afb461abba65cd1f588dca788c0df307b9 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 47c54ff0e010190f0a11e7e2792642d70caa339c) Change-Id: I7061c82f24db6e70845a68d27d82dcded81b4b7f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1fbbeff4b9853054cca7d585596a16ae8bfb78c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: Ic8a96a1c2ef6473b9c95701dcebb19b43ed570e9 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 6a5a125bf8fca8b9dfe3b4cb10a536c148e81c77 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jun 22 11:49:45 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about wheather the panel supports 3D display or not. Change-Id: I1086b8deb2980ffcacae153ba5ac80c680e04eb8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e373013d44b00be5114ae6af212478a728eae68f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 9322f759f8437a816e44aa921a64fcb566defcfb) Change-Id: I658c08b4a0d06ca2c58a06a9dfba1f80ad541c9e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ef8a1203fa188df6f9c905b8dbaf13d640418d9c Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7) Change-Id: Ia7d9249dfcc6c85039304336b3f86b2e3194ec50 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3b6b2347a2b87e96c566d8460c6e697622a759a5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. Change-Id: I74898d7d80e9b4727eb417b0f1d831845d229c73 CRs-fixed: 287700 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit bce29e40828551984b3326f13d210d338edde5b1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1) Change-Id: I9c070246b5099664c62dc665dc27ccd8f69926d5 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 8f6405853a986f8e887d733b93386c705bae6c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I4b5ee7fcaf24b81a830320d1a47a9fe6b5095f7b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4efc6788d96403be44453d9d83ad0598fdf17795 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1) Change-Id: Ia30bbdabec6abdcfc2e17912d9d3506ab56283cd Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 884a69dc1ab07f18d5bec5a6868a7dc8ed0648c4 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Jun 3 14:12:43 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. (cherry picked from commit 64189b417cc545add2f496609ef11df6b491d177) Conflicts: drivers/video/msm/mdp4_overlay.c drivers/video/msm/mdp4_overlay_dsi_cmd.c Change-Id: Ie04cc7322fe7b53058f371941af5ba16c93174d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit a150e2043331160e9b996d1fead53d095ec1578b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 3700ca00ba19855081822169e144c87aa1d4953f) Change-Id: Iba7ef824baf4f95aa0fbb6bfa09446ca589f7648 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 297c5cba4110a4595f5e84082f5970c9a7f225d2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 22cff13e1115962207254980acffac8d20bd9b26) Change-Id: I3c1c3518db28d80e5a5a31bfd5b5740dbba65ada Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0ec06ef1a1ecf52b5408e4c0509bcbe0a70ead3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 18 14:46:20 2011 -0700 msm_fb: display: add memory barrier to mdp Add wmb() to enforce mdp registers are updated before kickoff. Also add dsb() to mdp_pipe_ctrl() to make sure mdp register updates had been finished before shut donw mdp clock. CRs-Fixed: 288084 Change-Id: I056143511cfa7e397983b7465fcebff06ada8a3e Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 52c880d22b6e58f259f02f956357e4b8650102f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 (cherry picked from commit dfcf3ef2212026dfb53e87f571b294627f34a4a7) Change-Id: I0083bab592975576d511ef8f6070d38acc40d117 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0f990641485d3340fb8bacd741eb6ccfcac51186 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 4217a1dacbde157ce26238904450b091778fe872) Change-Id: Ife220d4f0f756aba62e3c30dc7ea52a1e4814ebc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 978d4d142600a38bff5082b0ff2ea23fab5d2f91 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ia4578cc5c35f44c5708d9c4756600490df35ff67 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit d0244c6c479ee348493568556afe49ff9f80f2f0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 14:52:03 2011 -0700 msm_fb: display: remove un-balanced mdp_pipe_ctrl() remove un-balanced mdp_pipe_ctrl() called from both mdp4_overlay0_done_dsi_cmd() and mdp4_dma_p_done_dsi(). Change-Id: Ie47dbe02c7fa5938eef8414a6041b431e55cc986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 89f874aa1fce2e9d4f488a5e37d226e3ecbe7cf2 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: If8db70e22f7b5163fa7a0cfbbdd27d8560f64df1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9e8929676679717bee2f16bad6611bb0b94a7780 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure Change-Id: Ib323dc9ca806b1bab22baa2612e2f470f5c2ecaf Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fc3c8c0bb9e685052b7edc8040167d643c63b3c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: Id08a8d74a0b681dfce6d7635d280e5c31b7acbc3 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 13de0ca3217e379d2c2574b0f6f81ebe3400a13f Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. (cherry picked from commit 46ad60f0cff5c2222ded7a639f337417e59b2375) Change-Id: Ie6e8378aeca07644c69bbfede61d457446c88f5a Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3c809bfc5abd0c13a50ad773268efc1bbe442d8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. (cherry picked from commit cd0bd24a3fffff873821618009389378372fb73e) Change-Id: I700599b4926770dc7602f970a4bd5c30dc457969 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e60b4d1c7ba520319c5ddc60b68b8fbe1a6c72a2 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. (cherry picked from commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97) Change-Id: Ie3fbcb42e8b313a1f0861df324c10e370fdfbb2f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c2a00f21c60eb88ed17e348ae947fdffcf7aedaf Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. (cherry picked from commit 8dae3d06d1c41aa2de609056811646ff50e77791) Change-Id: I793b3aee06cac0bd62158c55ee9233dadf51c873 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fa6ee4594caaa7cf28fd33bcfb8a62165602224e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. (cherry picked from commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0) Change-Id: I0b054dcfb6e98b635cb4d8b6a14f6541d97f3287 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 199f5f94edd7c6c127dd4b402cf7866e641a3396 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff) Change-Id: I96b1d3c3ae55dd427c7270d419bbece05917c590 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 33381e73bfa8c51bf91e04d3e5f6fe0930addb9e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. (cherry picked from commit 065b9f72784c2686aca0233e8e510229efd329c4) Change-Id: Icf3c87bce4102fc1d24931f8dde15478bf71fd19 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 57c3657ebbd5273c1f84f28f460482a68b50c968 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. (cherry picked from commit e814b7842af3b7f15047f3f922c1f1648bb2705b) Change-Id: I524b700973062f51b123f100dc115b5c873d7346 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1fdcac8e3387d1f8435090fae2bffeec3eae6970 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit ccdb0372092c3a359754897ebec2bb8be37d6a3e) Change-Id: I02ee8d0ce604cda993f90158282544afb7490cb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ffe43137a4024e0941417d19fb2e51946c1f4e0d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication (cherry picked from commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd) Change-Id: I82fa0248329d56f0662785b1ff7b35ad94e657d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 73d05af290793eb0da55a556c4bbaa28c9706dd8 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. (cherry picked from commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3) Change-Id: I4ce8dc81a137a3646c9d508d682f3ef05b3bc435 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 645ebc3ec6214d0d9fe32a32fa7e10558c74af6b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. (cherry picked from commit 829c88376705c6b58e62dd93e9802ffb905ad49c) Change-Id: I55d1ee5918b05279abcfe63ab74d172e5e8671b5 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 5208a4caa32f8775a10c1567d2749599a2fb839c Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I6cdd36efe643b0bdaec0436e57a6364076d47239 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit b8b834d4da42df635254a5b656e5579bf9237f73 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 7ff0f5166ed9f2ff4f1a37b8bce2501a2029905e) Change-Id: Ibca9d3a2427f484227a6083b6ef11fbb7555cecc Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 3ad826161f59f6531afa19412f3c8b2f2d0362da Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d89efdbbdf521f05a7b9f191e98914b40bc1962d) Change-Id: Ie5cbe004768986dfd5f53d4cbdec9c28506fac03 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 0cb3d75a60e141d786e68fdb713382620d39e18c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556) Change-Id: I0c3fc7d4ebcaada2732eced5ea84b94f1a2d9a0b Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 66f2c07c8a78044fb26cc853702adfc106c99209 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d8df7faccb2ec330eb859179ed0db07313626b7c) Change-Id: I8c566c3dfa8c638e370aba384b80936a03bee88d Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 231a253c7248971c0a3881ec2fefea45ab20b775 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 11 09:46:07 2011 -0700 msm_fb: display: mdp_pipe_ctrl called symmetrically mdp_pipe_ctrl() only need to be called when write back mode is not enabled at mdp4_overlay0_done_dsi_cmd(). Unsymmetrically mdp_pipe_ctrl() called will cause mdp clocks can not be shut off during suspend. Change-Id: I1783a736c86e5a36a2edfb6b266832e3d691be7b Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 64eaf4972c8dea0368d3a4113d6b19a058fc3b3d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit e80420254616b39d0c350dcadf8f6954394e7647) Change-Id: I84df4bc1ca3b0df34d2fab559cace1ca740f2702 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 1323385de767733a659d397ca487e578315d887a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 (cherry picked from commit 565ecc608d46993c4afe6dd15c95942c75f1e932) Change-Id: I908ffa60cd820a47c49d25b1732f7f0f0f1748b0 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9d7f8859560ac2f3c6f84f35e28f24b33809ccb0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 (cherry picked from commit 605a44c18620ed364e53d1e4cc0f03fd2f815029) Change-Id: Ia1c487a95cc7fba7aee2b8d9dc522296446a7fb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ad6004f89f6972f513b0a71cff515f670db661c7 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed May 11 12:11:41 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. (cherry picked from commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b) Conflicts: drivers/video/msm/mdp.c Change-Id: I88901c3b3640dd1030246de0dbeee3109787bc23 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit aa53b629ae7c52ffaa50934a87a48e2887357d85 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 5e744543c3f81650a1cea1402c58c01ae6ee421d) Change-Id: I0d16f22a98e25b8366b6c3eaf60cd6277f5a76f1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 754ac15b2a298b38873fadc47ec4b89602aa71df Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. This patch also move footswitch out of mdp_pipe_ctrl() and have footswitch always enabled. Change-Id: I8beb66da6afb606da9460f5c8027f298227bf0aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2c5fc636989ba248384240b8f31ff82791790a23 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 6 09:20:08 2011 -0700 msm_fb: display: mipi dsi read function Re-write MIPI DSI read function to allow it to read more than 4 bytes of data from client. Change-Id: I016bb0accfd71526a32f96878e64c439f2e53537 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 58979b79f5ca8211aac7faad413934ee8f09bf8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Feb 25 12:23:06 2011 -0800 msm_fb: Disabling DTV timing Generator after hdmi off. DTV timing Generator should be enable for updating Audio Packet Control(0x0020) and Audio Configuration(0x01D0) register in HDMI core. Need to checks Bit[0] of both registers before doing the HDMI Audio Shutdown. CRs-fixed: 274278,274284 Change-Id: Id15e4bcbddea4a7c0c9926f5420c0b639ab599bb Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9e0698f6708ed4da35b2da7281fb7a5044ba0801 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Mar 23 11:38:42 2011 -0700 msm_fb: display: Configure MDP clock depending on dsi_pclk rate. In MDP 4.1, the MDP core clock should be greater than 1.5 times the dsi_pclk frequency. Add code to set the minimum frequency for MDP core clock depending the MIPI dsi pixel clock frequency. For LCDC panel, add code to set the minimum frequency for MDP core clock to be atleast 1.15 times the pixel clock. CRs-Fixed: 279386 Change-Id: I065bb0eb13c68ee191c8693fe5ca73b3587c1edd Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 70b65dca8d88287a259f88591255f3725a50026d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 31 18:21:47 2011 -0700 msm_fb: Display: Fix MIPI DSI video mode configuration settings Modify the video mode settings according to suggestions from hardware team. Enable High Speed mode during horizontal blanking period. Configure Novatek panel to run at 60 fps in video mode. Change-Id: I9e68f1175caece135ac4074fcc35a907f8006158 CRs-Fixed: 279535 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68848ff4fc21b2dbd068e29ddb391a088eba2137 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Dec 21 13:48:40 2010 -0800 msmfb: msm_hdmi: extract 3D information from EDID Header Extract 3D presnt information from Vendor Specific Data Block from EDID header extension. Change-Id: If5d94382a9c610f7a241a91ef5c61801366d5e9c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 07099e1ef27c0dd6bc6bea859211bb36239d53db Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Fri Mar 11 13:33:23 2011 -0800 msm_fb: display: Remove RGB performance level vector With RGB performance level vector requesting for performance level 1 for all RGB type surfaces, power consumption increases. Performance level 4 is sufficient for single WSVGA size RGB buffer scanning. Remove RGB performance level vector and add check to request performance level 4 for signle WSVGA RGB buffer scanning. Change-Id: Icfb6f00799fc510d23a6f048fc4729471576d00e Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit c85505b79eb8b10c0bba8ed6891ded008588a55c Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Mar 31 12:18:02 2011 -0700 msm_fb: add DTV vsycn push Add DTV vsync push to block on vsync so that overlay play calls can synchronius with UI push. Change-Id: I382c16fda3846f983b00f175619d18d7ddc5e762 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f6b6e3fdee8ed083e609204bbd05d99923104ac Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 30 17:12:36 2011 -0700 msm_fb: display: add a flag to know the rotated source content expose a bit in the flags field so that driver knows whether the source content is rotated, this is used by mdp to deinterlace the content in horizontal direction for landscape video if the video is rotated portrait. CRs-fixed: 281389 Change-Id: I303f6c5f03763b9f68d1f7388839764a69bb428f Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 7c0c2fe5ac873e185dfbad153bbc5d489b0a8906 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 30 13:39:01 2011 -0700 msm_fb: display: turn dsi clocks off when no display update Turn dsi related clocks off after have no any display updates for a second. This is feature for screen static update. Change-Id: Ifa25a6af18c78ec6ee619347f124e5600831e173 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ac5d4ab983a05ec976a391234a74bb9ceae4807 Author: David Ng <dave@codeaurora.org> Date: Fri Apr 1 14:37:50 2011 -0700 video: msm: mdp: Optimize mdp_pipe_ctrl handler Optimize pipe control handler by aborting mdp block power control check within loop earlier. Also, reorder MDP_BLOCK_TYPE enum to move high likelihood enums near the start to optimize value check in a loop. Change-Id: Id656f005863bebf7fc9d4e8543f5161b25a9b5e8 Signed-off-by: David Ng <dave@codeaurora.org> commit 4f5de8242637db49dfd7e96499dc6866dfad084e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 10:36:18 2011 -0700 msm_fb: display: send dcs commands at video mode during booting up Add capability to send dcs command at video mode to initialize display panel during booting up. Change-Id: I826a2045b9b883c207e450c95d76dbf341de026f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5b3193d6655a955ec0dfc6af7583b15dee5053ca Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Mar 18 19:45:13 2011 -0700 video: msm: display: Bandwidth requirement for 3D display Increase Bandwidth requirement for 3D display to avoid the blank display CRs-fixed: 277304 Change-Id: Iaf3ac31b17521320cd2b7b6a5e82a7fa9fe07819 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 869aac9b3eca7661e13147063e15c9996056c5ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 08:59:33 2011 -0800 msm_fb: display: enable/disable DSI irq dynamically Enable/disable DSI irq dynamically so that the power grill can be shutdown. Change-Id: I6f4a4a3f740743804ee720712b4c0f2caa6e20a3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 86bacb945b5317d6600abc7206c9b5ad3a1c2b8d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 16:43:02 2011 -0700 msm_fb: display: check x offset before enable mdp write back mode When destination x offset is not equal to 0 will trigger dsi command mode interface hardware bug. SInce write back mode will introduce bus accessing overhead, only enable mdp write back mode when destination x offset is not equal to 0. This patch also add writeback statistic. Change-Id: Ia97d2c4d8080e8b0ca9f61d3d24fc3f13d106f16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ad9506b0811e31107fcbefe437ac2c5390ddf3f9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 29 18:09:17 2011 -0700 msm_fb: display: Fix MIPI DSI Video suspend/resume issue Fix MIPI DSI Video suspend/resume issue by enabling MDP footswitch during device probing. Change-Id: I3461e4c69f24d09a84bcf9d626a4212e0434be87 CRs-Fixed: 278357 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cd4d51d521d351649ad91695069fac6842052a61 Author: Jilai Wang <jilaiw@codeaurora.org> Date: Tue Mar 15 15:52:52 2011 -0400 adv7520: add hdcp hw support check Add hdcp hw support check since fluid 7x30 p5 devices have hdcp disabled in hardware. This will disable hdcp in software. Change-Id: Icb8afd23f06a97ba549522d8af98c7968c172e1c CRs-Fixed: 272573 Signed-off-by: Jilai Wang <jilaiw@codeaurora.org> commit a9e0558e9f28c19733b3f40d404c26d64d87fe78 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Mar 28 09:13:17 2011 -0700 msm_fb: display: add panel type check before disable tear check Check DSI panel type and only disable tear check logic and free vsync gpio if it was a command mode panel. Change-Id: I7b075d75cbf75d3b20bba3e6a52d1435133c7aa2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e7a0f2d0a1a9cf51bf509cdb3642dd5c20c39da Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 25 15:48:51 2011 -0700 msm_fb: display: do not check dma busy while in video mode DMA busy flag is used for DSI command mode (push mode) to indicate DAM engine is active to prevent double kickoffs.It is not necessary for DSI video mode to check this flag since it is pull mode which has internal timing generator trigger DMA engine on every vsync. Change-Id: I2420b525cffcfda110e25d0295e66fa28bb2e423 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a0a73f93763280b7129314d95c130ea42c8d87a4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 22 11:35:59 2011 -0700 msm_fb: display: use 720p tile dimensions to decide performance level decide the performance level based on the samsung tiled format aligned dimensions for 720p resolution otherwise it will end up using 1080p clocks with overlay when the input video is rotated. Change-Id: I68f71dc2e6a0c74b5324af945d58cf1dd3f1f33b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b73ec6089ff89a43e31c48ca696c264d26294d6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 23 18:08:35 2011 -0700 msm_fb: display: add dynamic enable/disable mdp write back mode Add dynamic mdp4 write back mode enable/disable capability on top of existing mdp4 write back mode implementation to provide software work around for MDP4 hardware bug between DMA_P engine and DSI command egnine. Change-Id: I2de277e2a5b31335907088862279f4a5c7fc60e6 Signed-off-by: Kuogee Hiseh <khsieh@codeaurora.org> commit e924f3c470540de586acdf4cf03bc91c0ea3f653 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 21 16:55:35 2011 -0700 msm_fb: display: Configure MIPI DSI clocks using panel settings Remove hardcoded clock dividers and other clock related settings. Remove support for mxo clock. Add code to generate the clock divider settings using the panel frame rate, format and porch settings. Change-Id: Idfe301d389d5f71d09b36e6957e473bd53be009b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ffa68409df9960b4cb9303bba0fa673dd1c9215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 24 08:33:41 2011 -0700 msm_fb: display: fix mddi overlay interrupt handler MDP4 write back mode provides work around for MIPI DSI command engine hardware bug. But it breaks MDDI overlay interrupt handler accidently. This patch fixs MDDI overlay interrupt handler. Change-Id: I759a26e64202b2bcdf359e76d09f1cbff8343769 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f4a2361bbaad07a9e7eade0e42a1a0d20bd81914 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 11 15:41:04 2011 -0500 msm_fb: display: AUO WVGA LCDC Panel Adding driver for AUO wvga(480x800) 3.61" lcdc panel. Activated for msm8660 Fluid platform revision 3 and up Change-Id: I528894540ed1990b7d0e8ea763fd9c54c70cf276 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit a10db6ff521dd54b213533f4093565bfa1275761 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 9 09:48:12 2011 -0800 msm_fb: display: shut off dsi pll with correct register setting To prevent power from leaking, dsi pll need to be shut off with correct register setting sequence. This patch also fix the timer configuration used for turn dsi related clocks off when no screen update for one second. Change-Id: I33452bc02fb33ef3c780b9f9aa0e840f90f8598d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c3a958f6c0573ba0bce94df40e50c2b5550645fd Author: Wentao Xu <wentaox@codeaurora.org> Date: Fri Mar 18 15:28:37 2011 -0400 msm_fb: display: not to register platform device from AMOLED panel driver The platform device is already registered from board file Change-Id: I469b70af30dffc5a8e5f08516d942f441ff21f89 Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit 79e20ca76f1db3c2861c28681f0e16cb97d3ccc8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 13:45:31 2011 -0800 msm_fb: display: add MDP writeback mode to DSI panel Implement MDP4 writeback mode by using double buffers for dsi comamnd mode panel. Write mode for MDDI has no changed (single buffer). Writeback mode is enabled at boot up. This patch does not provide siwtch between enable and disable of writeback mode. This patch provides software workaround for the hardware bug at the interface between MDP4 and MIPI DSI Command engine. CRs-fixed: 277310 Change-Id: I28d4dab3b05bda02e2def474644ed045776d0241 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a7c0fe5e2f435e45d2ba1ac1be8b310681a3ad18 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Feb 8 17:32:12 2011 -0800 msm_fb: display: Fix LCDC underflow by downscale parameter validation Fix LCDC underflow by downscale parameter validation against mdp clk and panel clk frequency during overlay_set. CRs-Fixed: 271494 CRs-Fixed: 279382 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I363a87777311b66e5acc2c29afe8da6b2287694a commit a225d0e971254d2c49fc8d08537d22875b83f46a Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 16 15:30:01 2011 -0700 msm_fb: display: handle histogram during suspend/resume disable the histogram irq and clear the histogram registers during suspend and re enable them when resume. CRs-fixed: 280419 Change-Id: I54154a89c7a2f92dba8ee9e99943e61279b29c44 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 54afe26ae0f0800584d19aa9495bcbd48c52440d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 16 10:08:43 2011 -0700 msm_fb: tvout: Removing mutex_lock in ISR CRs-Fixed: 278755 Change-Id: I6e5e13edc9048757c87f57f8579776d7ce878bb5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b35b92b71ded97db1d1e2b8fe34c45bfbf5ab6fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Mar 20 12:19:32 2011 -0700 msm_fb: display: synch mdp irq enable/disable Add spin_lock() and spin_unlock() inside mdp_disble_irq_nosync() to synchronize with mdp_enable_irq() to prevent race condition from happenning. Change-Id: Ieb76a5a920d7d92b627108d033e34874c7acdd82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b74ce77d0cebd282fb6b17c959146db9620383f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 15 16:46:52 2011 -0700 msm_fb: display: remove redundant call to disable irq in off function CRs-fixed: 278326 Change-Id: Ib0ffca8862aa34438ae8575ea3b9ed21cf7418f6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit df448ca39305b85fc318c16d067e1cb6ba386a0f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Mar 13 19:41:51 2011 -0700 msm_fb: display: Fix MIPI DSI driver initialization sequence. Change-Id: Ifcb67a166b68db45d6d3b14ba9cc5caa48316ee8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit de64d12d9e0806e630e148d3da7f9d390a92db1a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 4 17:18:18 2011 -0800 msm_fb: display: Remove secure_io to MIPI DSI register access. Only clocks belong to MMSS_CC need to be accessed by using secure_io. Secure IO access for MIPI DSI register region is not required. Use normal io access using readl/writel to MIPI DSI registers. Change-Id: Ifc49b1812efa0fbe82d48bef7f5054064f55043a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 00c6dbec219e11a71bc0c077e53779d97365e5c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Mar 7 13:34:56 2011 -0800 msm_fb: Reading Ro' from correct HDCP port offset Reading RO's from correct port address and offset and start HDCP reauthentication again,in case of authentication failure. CRs-fixed: 275796,276921,277082 Change-Id: I984054384cedbcc96fb8cd68b4d3f533ff33a969 Signed-off-by: Abhishek Kharbanda<akharban@codeaurora.org> commit 715b3fe8316555da278042f6371c3bc9a0dcea05 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Mar 8 18:31:10 2011 -0800 msm_fb: display: Enable secure IO access and fix DSI clock settings. Read back register value is not updated properly for MIPI DSI clocks. Revert back to the older method of configuring the dsi core and dsi pclk settings. Modify clock control block access to enable read/writes using secure IO. CRs-Fixed: 278206 Change-Id: I5d5503d39ddd5d2ae0fa0dbdaa592686ae5e5ffe Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit e3cc2ce88868ee28f9ba4268b75e5a7bd671953a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 8 15:00:36 2011 -0800 msm_fb: display: Log cleanup for LCDC Samsung WSVGA driver Change-Id: Ia0372db34b3c9a74202ef692d9c30c5fd43f6a6b CRs-Fixed: 275930 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d4b31a95cc9477c47fe9b1c5b5c96ddfb075da24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Feb 25 12:09:06 2011 -0800 msm_fb: display: Call pm runtime apis with the correct fb device use the same frame buffer device for all runtime pm apis calls. Change-Id: I2dccf69f6f9ed115fbeceef0636e39bbdfd5c67a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8ae66ceb26dd7baecc85d2b334029903cb7a1bb8 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 8 12:42:21 2010 -0600 msm_fb: display: Samsung AMOLED PenTile panel Adding driver for the Samsung AMS367PE02 3.7" PenTile 480 x 800 16.7M AMOLED panel. Enable LCDC auto detect when MIPI detect is enabled Clear regulator handles after they are released to avoid crashing Change-Id: I6abf705fd19d5baa429fb2a7c47e4299f73c6b67 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d91951d2c7feec7b81b814434848cc28e8a167c0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 17:55:09 2011 -0800 msm_fb: display: Fix dsi command mode compiler error Remove un-necessary dma_busy_comp and vsync_start_y_adjust to fix compiler error. Change-Id: Id56568bb3d4cdbe091dd09584bf6d26183812e1d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 73b51ce75cba3caa4ac511503f46705a356896af Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 15:51:27 2011 -0800 msm_fb: display: add support of sending DCS command at video mode At MIPI video mode, set CMD_MODE_EN bit to enable command mode engine before sending DCS comamnd to client (display panel). Change-Id: I6462eef5c3c378176e8df61d3a5108148cda3047 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5ed1dca7d697327a9ff9dbbae45fb20e73a2c010 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 1 14:47:36 2011 -0800 msm_fb: display: initialize comp struct at pipe_alloc Initialize per pipe comp struct during pipe allocation. Change-Id: I48c919b3b520cfaf12f5b6fa713fde9f5fb866d0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 03dac3988c186dfd125b5f07501e2e3fe3d7b6e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Feb 23 08:54:33 2011 -0800 msm_fb: display: add dsi clocks control Add runtime dsi clock control to turn dsi related clocks off after screen update and turn clocks on before screen update. This patch also provide clcok off debounce mechanism by using kernel timer. CRs-fixed: 276211 Change-Id: I68f4cc48ba4887d2240d96936674eb460618de1e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 74ce95472814e2561ff258668ba6c9febdf54556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 14:46:37 2011 -0800 msm_fb: display: add support of DCS backlight command Add backlight control by using inband DCS set backlight command. Transmit DCS backlight command to client while DMA is not busy. CRs-fixed: 275660 Change-Id: I6954bb6e86d15a8f4076d9bb576667669459725c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2245b9e330cd54ac4e4580a5208da1f61209c340 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:04:47 2011 -0800 msm_fb: display: remove extra bracket to fix compiler error Remove extra bracket to fix secure_writel compiler error. Change-Id: I11ebda03004dd0a7fea648cb32675c8dc456bc47 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 252d99d19002242dfb78b4b1c1ac604787c3d83c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:01:28 2011 -0800 msm_fb: display: check mipi panel mode before enable vsync Checnk mipi dsi panle mode first. Only enable hardware vsync mechanism if it was command mode panel. This patch also remove the unio declaration of lcd_panel_info and lcdc_panel_info of msm_panel_info struct to fix vsync configuration over written panel's porch configuration. Change-Id: I1d0806df04b884e1fb5a596baedd4b5f3630d01a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ab42fa9b082706916123315e5647789b7f01a3d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:55:24 2011 -0800 msm_fb: display: Fix MDDI CRC Error handling condition Fix MDDI CRC Error handling condition to avoid looping of MDDI reads infinitely Change-Id: I4e65b635fc4041213e544f64919a9a6f074b366e CRs-Fixed: 275229 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 38c908beabb5f40225314642d88d09e299806b6e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:53:15 2011 -0800 msm_fb: display: fix a typo in using the correct packing format Change-Id: I0f522ea04ece89c6f387d22634d4d33139f2a631 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4a3fed28675ebf7bacd209a8baea84265dd664c2 Author: Matt Wagantall <mattw@codeaurora.org> Date: Wed Jan 19 15:56:14 2011 -0800 msm: 8x60: Use secure_readl() and secure_writel() for clock registers The application processor is unable to access MSM_MMSS_CLK_CTL_BASE register directly. Secure APIs must be used to read and write all registers in this region. Change-Id: I2906d3b8e28b45ff896a41103fecce9491b5a991 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 57ea567a20d102404287eb09ee2dabeae04093c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 15:06:30 2011 -0800 msm_fb: display: mitigate lcdc interrupts Primary vsync interrupt are always enabled which causes interrupts are generated at every 16 ms. This patch will only enable ingterrupt when has frame push. Change-Id: I062bf19a9b56ef6fea4c4374d8751625bbb86a42 CRs-fixed: 275999 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c315489fbe1a75c52b968c4a237d9f7f4334336f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Feb 7 16:58:43 2011 -0800 msm_fb: display: add chimei panel driver Add Chimei LCDC panel driver. This patch also incorporate backlight control through PWM of gpio-24 (channel 0) of pm8058. Change-Id: I2e00d6ce0f6a9858a56d929c660776fcbfc54732 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 030612a798461326d82d5fab950ca2a071d057a1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 17 18:21:25 2011 -0800 msm_fb: display: Enable S/W Vsync handler only if MDDI clock is enabled Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I3800f7b27f7730cd9e60e37b0f060ede9f79c83e commit ac9fd472e5832a56d20e06654e5a8fd04d3583e9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:16:51 2011 -0800 msm_fb: display: Fix vsync timer deactivation by shutdown flag Fix vsync timer deactivation issue resulting in timer handler run continuously during suspend/resume by using a shutdown flag Change-Id: I71806b491d15b454b1e56f01e78223e26df7062b CRs-Fixed: 274480 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52f6889f672d53e9c80cfde8335fde65e1022fff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 4 16:30:31 2011 -0800 msm_fb: display: add support of mddi MDP_OV_PLAY_NOWAIT Add support of mddi MDP_OV_PLAY_NOWAIT mechansim so that overlay requester can issue multiple frame updates followed by a single DMA kickoff. This patch also remove 10 ms timer from UI kickoff which try to consolidate multiple frame updates into a single kickoff. This is not necessary at NOWAIT implemention since both frame update and kickoff are controlled by requester totally. Change-Id: I901054eba78d946549b05e667dd580a95ee18a87 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e9bfe26bd022597402b9070c41fe89c2040a7227 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 31 10:01:13 2011 -0800 msm_fb: display: add 3D side-by-side to interleave support Add 3D side-by-side to line interleave conversion by introducing MSMFB_OVERLAY_3D ioctl to allow user to change frame buffer's width and height at run time. Change-Id: I5801425a1f03ceedf69522c28780bb200ab63c57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e908e0c469fb2fa7dc7ecb659158d91d082b5d08 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 8 18:05:10 2011 -0800 msm_fb: display: Fix incorrect fail in tvenc_probe feature pm_qos usage correctly with CONFIG_MSM_BUS_SCALING to avoid incorrect fail in probe call. Change-Id: I5677e0d10fef30ef1f41a87e6415782777612d87 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ec2908a70273dec14893222233530f7cf5664a1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 11 16:30:28 2011 -0800 msm_fb: display: Cleanup of Log messages Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Icc911682233d48e3dcae0b78e8aa0138fd3af027 commit d034fc1101365fd5593b8dc1da66da63d8a5f61f Author: Harshad Bhutada <hbhutada@codeaurora.org> Date: Fri Jan 21 19:42:49 2011 +0530 msm_fb: display: add 3 frame buffers support Add triple framebuffer to improve display performance Change-Id: I132c74f11f5ddcee62d12599c85dd615e14235d4 Signed-off-by: Harshad Bhutada <hbhutada@codeaurora.org> commit f5593a5556724456bb71754554e06ce91690108f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Feb 10 09:56:05 2011 -0800 Revert "msm_fb: display: soft reset mixer1 when external under flow occurs" soft reset mixer1 has side affect of blank display on primary intermittently hence revert this commit until the corret software work around is found for mdp pixel shift hardware issue. This reverts commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23. Change-Id: I75e319461e474394cdc35d3f5dbbd2f7502107cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 9ad8eed3ad1e5fcee31bafb36f89fc27c8587335 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Wed Feb 9 14:54:06 2011 -0800 msm_fb: msm_hdmi: turn off hpd on boot-up Ensure hpd is off on boot up, so that the power on hdmi rail will be zero. Change-Id: I80212511d30d58e4f65ee938621ee959e5623a79 CRs-fixed: 274396 Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit 65ec3d97b4df9de23c46f82cf62f1ec32c4d8c51 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Feb 8 10:03:49 2011 -0500 msm_fb: Calculate smem size with correct bpp value Always the bytes per pixel for the framebuffer format to calculate the shared memory length, not the panel. Change-Id: Ief3adced9c8f0265babfde44b9ca5c40af2423e4 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 52a629f3ccc8caf40b2a4796b7287f1bef9b3096 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:57:20 2011 -0800 msm_fb: display: Use solid fill attribute for no fetch in is_fg mode. In is_fg mode, when alpha is 0xff, use solid fill attribute to set no fetch, also set constant color to black for blending. With this FB is not fetched and we could save bus bandwidth. Change-Id: Iff88269c9e00bb7b6277cb4368c3d0efbbfe5257 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit df9278b93dbba60b8cdb8f043d851f21508a8764 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:31:55 2011 -0800 msm_fb: display: Add performance level for RGB buffers To request highest bandwidth on SMI/EBI for RGB/VG pipe, this change adds performance level for RGB buffers. Also, add one more clock level for corresponding perforamnce level. Change-Id: Ifde6d7ee295d8335e2c2dac6de8580a9f6ee5dd5 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 17f4ba96318300509d022d1ef56678aa6e1a9787 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 4 11:59:57 2011 -0800 msm_fb: display: Fix MDDI blackscreen issue by vsync pending flag reset Fix MDDI mode blackscreen issues by resetting vsync pending flag when vsync clock is not enabled. msm_fb suspend routine requires the pending flag to be FALSE to exit. Cleanup vsync timer usage during vsync clk enable/disable. Change-Id: Idb5fcb5f281cbc7cc41db47a63cde35b18c5a1de CRs-Fixed: 271317, 271775 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d11c910649c0d88d432abe0253d9bfd45e924f6a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jan 26 15:54:57 2011 -0800 msm_fb: display: Add cursor support for MDDI primary interface Change-Id: I490d362c2389f1ececb850340fc97cbd64e2b296 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ec31d4b82b67e43cebf9467c1531288b7b36f6ce Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix crashes in MDDI mode during fbtest/boot/suspend Fix register access crashes in MDDI mode during fbtest/boot/suspend operations. This change has been reverted once since MDDI clock was disabled during the execution of mddi_on from a previous pipe_ctrl OFF request. This patch includes enabling MDDI clock in mddi_on directly. Change-Id: Icc302ea312b5dc96b65bdfe5cb65b9f12341f7ef Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a8b2d85d754bd338a05a574006a1a81366898b8a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Jan 30 15:13:39 2011 -0800 msm_fb: display: Fix underrun during suspend/resume There is MDP underrun issue while doing the suspend/resume when the video playback is in the pause state. Fix is added to set the right MDP clock in this case. Change-Id: I8b488cc629766aa2671537bfe3a3b3804966a7aa Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fb7f5cf847e4fe37e2af6c5c1a642f9875320b9e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jan 26 09:24:17 2011 -0800 msm_fb: display: Add dma busy checking at overlay unset Add busy-wait mechanism to ensure mdp dma engine is not busy (not active) before un-staged a mdp pipe. Change-Id: I66982d75b75e114cd9129a341af147a0e6dfdef0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5db13dea0a21124d3e33fdbdc832dd433521a215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 13:46:41 2011 -0800 msm_fb: display: add MIPI Tearing Effect support Add MIPI tearing effect support by connect mdp_vsync gpio (28) to mipi dsi display panel and send set_tear_on command to panel to enable it. CRs-fixed: 267852 Change-Id: I364202c5b4c824ca5be1716619a4bee836618da0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9768b27ab8963102d56f2de38c626c91edef26de Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jan 27 18:30:24 2011 -0800 msm_fb: display : Implement mdp clock scaling support scale mdp clock based on various performance levels to save power Change-Id: Ia682325f4227c083a783cd2fb33e6d54003b944b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b7f5eba092f72a42edeb7fa72502502317c22ba Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 24 16:23:47 2011 -0800 msm_fb: display: do not reinitialize qseed during resume reinitializing qseed tables during resume is causing artifacts on hdmi since they are getting updated while dtv timing generator is active. reinitialization part is already taken care by checking whether mdp hw is reset just before resume hence remove this code. Change-Id: Ic448cafd69e8a4c66b5097d55d8e59acd0985d71 CRs-Fixed: 272138 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 0dff7e9161fdcb5fdde2ec387f1686b9324ab422 Author: Vasantha Kumar <vasant@codeaurora.org> Date: Thu Jan 27 14:59:09 2011 -0800 Revert "msm_fb: display: Fix clock crashes during boot/suspend/resume operations" This reverts commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d. Change-Id: I7a9b89c8a116445aae47ca6b7f128bdf24822ad2 Signed-off-by: Vasantha Kumar <vasant@codeaurora.org> commit ef072d28af4812966be54a33f5b51d785ac1e2bc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 10:57:36 2011 -0800 msm_fb: display: Add MIPI DSI read function Add MIPI DSI manufacture ID read during MIPI DSI initialization. MIPI DSI host issue DCS read and issue BTA to allow client to send DCS long read data back to host. This patch also add MIPI DSI ACK-ERR-STATUS handler at reverse link. Change-Id: I2106df419cd809cc862fcdb37112cfaf3ad811f2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a269fdf061c0946d704eeb4a487b7aaa86aa5dc3 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 26 09:53:01 2011 -0800 msm_fb: display: Fix mdp underflow on hdmi underflow during suspend/resume on hdmi is caused due to incorrect bw requests on primary during overlay_set and requesting bw after enabling lcdc timing generator. Change-Id: I1e6aadee03b7c4c0f678bdd387515dbd07587fb5 CRs-Fixed: 271912 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 5b3a94e9512771acecec016cb1a6d39c2bc71017 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Dec 20 17:18:49 2010 -0800 msm_fb: Migrate to clock rate voting Use the clock api, instead of pm_qos, to vote on the EBI1 rate. The transformation is as follows: pm_qos_add_request() -> clk_get() pm_qos_update_request(*, 0) -> clk_disable() pm_qos_update_request(*, <nonzero>) -> clk_enable() pm_qos_remove_request() -> clk_put() The rate a driver requests is almost always the same and can be set with clk_set_rate() after the clk_get() call. Change-Id: Id7f4d1fef62d9ce1e49f88daae1ca56608d3cd7d Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix clock crashes during boot/suspend/resume operations Change-Id: I80aebe2ad76892f16c27f6d68aaff0a3a4d13a86 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 15ad3e6e356b0cd963e91db6a2eb1d3f7f65726c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 20 18:45:00 2011 -0800 msm_fb: display: Set MDDI clock rate before enabling first time Change-Id: I1beeca0d57ae294d18cb337d5b93285f87215f05 CRs-Fixed: 271561 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit da220e2b85a730c980a30500792b815035bd6dfe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Jan 21 08:10:56 2011 -0800 msm_fb: Add suspend/resume support for ADV7520 Added suspend/resume functions for ADV7520 chip. Change-Id: I2aaeed91615e9be66f9abe79b0502ba53b851a04 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0e38a1c08495abb77a088fe5310d66c885201396 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 13 15:21:53 2010 -0600 msm_fb: enable HPD even when HDMI panel is off - Turn on LDO8 & LDO10 during I2C communication - Turn on LDO8 while HPD and while cable connected - Turn on HDMI_5V_EN during EDID and HDCP - Always listen for HPD IRQ Change-Id: If24d05b3dea81cb73004900ea23ab51e483f1b38 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 98b8a1a579cef545b9700d7838f117ab43518c0e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 24 11:03:26 2010 -0700 msm_fb: display: synchronous with vsync at lcdc frame push When frame push over 60 FPS at LCDC may cause display tearing due to previous frame was over stepped by next frame. This patch allow mdp to hold push thread until next vsync to guarantee the previous had been consumed by overlay engine to avoid tearing. Change-Id: Ic9bc96377649805211baba8e1e2570b18fb26954 CRs-fixed: 270946 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit edca916e571cadbc7f7262b5a537ac3884972320 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 20 12:20:38 2011 -0800 msm_fb:display: Fix section mismatch The mipi_novatek_lcd_probe was being referenced outside of a non __init section. Fix this by placing mipi_novatek_lcd_probe in the section which exists for device intialization code. Change-Id: I4c9dbbbb7ca1368beda8aee59c8bedb60efa8dc6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a11f5f7eea649696e4c12bc057815a615ee201d0 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Jan 17 14:31:16 2011 -0700 msm_fb: msm_hdmi: reset HDMI PHY on resolution change HDMI PHY needs to be reinitialized when panel resolution changes. Change-Id: Ib01be9f51668cb290b61360b3775993d232169bd Signed-off-by: Urs Muff <umuff@codeaurora.org> CRs-fixed: 263676 commit c1ee3af7b4b1580eaf83bfe875df7ff0c44bd6e8 Author: Alan Gerber <agerber@codeaurora.org> Date: Tue Jan 11 18:26:37 2011 -0800 msm_fb: hdmi: Hold idle wakelock when HDMI is enabled In our current implementation, allowing idle power collapse during HDMI output causes underruns/flickering in the HDMI content on some devices. This patch takes an idle wakelock during HDMI output to prevent idle power collapse as a preliminary solution to this issue. CRs-Fixed: 266067 Change-Id: Id91011067b7c808548e6ee3df00e53c4e2aa8013 Signed-off-by: Alan Gerber <agerber@codeaurora.org> commit 7ca0f321d7c0815c1dd13387fcad55266a87c0da Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 13:42:06 2011 -0800 msm_fb: display: Disable Optimal Fetch bit in FETCH_CFG of MDP pipes Change-Id: I58af7a86c7a9b27dcff5573b44534c968cf4fde0 CRs-Fixed: 270136 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ed91ea3ea225adfc3bc7091eac5d22413af0d20f Author: Urs Muff <umuff@codeaurora.org> Date: Fri Jan 14 08:35:59 2011 -0700 msm: board: allow to hide hdmi log entries Reduce kernel log spam. Change-Id: I05a650041e47f5abadccf5cecac303ebf0c1c830 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519c18879d14b3bda62765c66f222afe2ac97cda Author: Wentao Xu <wentaox@codeaurora.org> Date: Mon Jan 17 15:50:33 2011 -0500 msm_fb: display: change sharp panel backlight Kernel pwm_config() parameter has been changed to expect both period and duty_level with unit of micro second. Change sharp panel backlight period and duty_level to have unit of micro second accordingly. Change-Id: I00f3b7f3b45161ba2152f935147e0d5fd22d2a8f Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d42938452d1c005046b00b50d61ccd65a15ae3a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 17:02:05 2011 -0800 msm_fb: display: Fix backlight issues during boot Initialize backlight level to 0 in msm_fb probe to allow the userspace/framework set the required backlight level. Allow backlight settings always in msm_fb_set_backlight call. Change-Id: Ic42b76e6b8886957856683ee0343afd383ef42c8 CRs-Fixed: 270638 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 12 14:38:11 2011 -0800 msm_fb: display: soft reset mixer1 when external under flow occurs This is to avoid the pixel shift on hdmi during under flow. CRs-Fixed: 264718 Change-Id: I4b178dadc3f0f4266da427f584ce10cf0f339d2c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f5c41e7535e347fb0aefcc533d8c3f015baf484d Author: Urs Muff <umuff@codeaurora.org> Date: Thu Jan 13 11:38:57 2011 -0700 msm_fb: msm_hdmi: correct hpd power-on logic error codes are non-zero, logic introduced with hpd feature change e7164df63e7b87b19ee69ddc7f3db74c65b863b6. Change-Id: I178f5bb5a6ce006599322418bb1b6ddf6849bf62 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit b3cd5d6a4ca3c12425c48fd9586500f088653042 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Jan 11 17:30:40 2011 -0800 msm_fb: fill framebuffer with black pixels On MDP with Overlay, on suspend write black pixels to framebuffer to show black screen on HDMI. CRs-fixed: 266993 Change-Id: Ibcd5802059154d6431888a61d6ad4f4c5c11b9bc Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit a739b3bead1308a7c40f0820e72f2031f532832d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Dec 15 12:20:15 2010 -0800 msm_fb: display: Disable/enable MDP/MDDI/Vsync clocks based on frame update Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic5cbac3efdcd87ab3b44a5c2866fefcab09ab07a commit 002d6e11806ada7ac8cde6d05f15b69138cbfa4d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Dec 15 14:30:36 2010 -0800 msmfb: msm_hdmi: Turning off HDMI PHY on power off Change-Id: I9f2d39076df35963dff3d4608c182f0ee6d9abb6 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 655c7961d9bce8ccceab635343c4157584e409d9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Dec 3 12:31:27 2010 -0800 msm_fb: display: Fix for the pixel shift issue with VG pipe MDDI kick off is added to make sure the VG pipe is disconnected from the mixer while switching it across the mixers Change-Id: I708b37b1d9e60e19acc25d5ca2b3589bc7ae04ed Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-Fixed: 256671 commit 7f4053846ddb619a4a23b7bebbf814eef0773ca2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Dec 15 12:53:59 2010 -0800 msm_fb: Display: Enable two lane video mode for Novatek MIPI panel Add configuration changes for Novatek panel to operate in two lane video mode. Tune the panel settings to improve fps. Change-Id: I151018b39429af747ecdc991748bdb17aa7c2051 CRs-Fixed: 266737 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c7677581e46b2fb42de29ad2c709e814a232f34f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:55:12 2010 -0800 msm_fb: display: add sync between UI and video for MIPI panel Change-Id: I5b505c07c42d80ce5e42a0b27a70076ccfb71233 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit fb3b75f1c2eb222113b531c482ee9fe936b4eae4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Dec 13 09:43:09 2010 -0800 msm_fb: display: fix bpp of MDDI BLT mode At MDDI BLT mode, the output format of overlay engine is RGB565. Therefore set bpp to 2 instead of 3 accordingly. Change-Id: Ibc321a6c9817b972652797966571b35ddd941c5c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 227aa0adacf9f947af8d16c633e1d3afa33f650b Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 14 17:04:50 2010 -0800 msm_fb: display: Fix registering multiple bus scale clients Do not register bus scale client if it is already register in the earlier probe call. Change-Id: Icc14898ce28e9507540ce2419c3f41accf3af651 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f58ceb6b3442958cbb2866fe115a33926b1b5bfc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Dec 8 08:30:38 2010 -0800 msm_fb: display: add support of DE_INTERLACE_ODD The de-interlace is default as even line reference. Add support of odd line reference. CRs-fixed: 260959 Change-Id: I637c79c2f5236fc38116693b50c69415e41ebdda Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbc4b8738bdca502c2cccbcfe1ee0c1755488ca5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:25:33 2010 -0800 msm_fb: display: fix MDDI compiler error Add CONFIG_FB_MSM_MDDI compiler option to not to compile MDDI code under 8660 platform. Change-Id: Ia905636bbe6800996fcf9eb24f1487e28cfc9c97 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4334af8abf1ec212df6778a7405de0d3070abd6d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 13:53:14 2010 -0800 msm_fb: Display: Add two lane command mode support for Novatek panel. Add code to change the clock configurations for MIPI DSI to support two lane command mode for novatek panel. Add code to turn off of the novatek display when the device goes into suspend mode. By default, command mode for novatek panel is configured for two lane. CRs-fixed: 264213 Change-Id: I98df05199a1680375ab4c0274418d1730b052f6a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a809819d9d5d0b59f2c2eee0534bc68048b09016 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 30 15:40:46 2010 -0800 msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6ac2d1a19bcfce5c9c60eb4d063bce4eac924515 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 15:19:42 2010 -0800 msm_fb: display: Remove backlight control from blank/unblank Change-Id: I3f1b1958423c2970f72bfa71f2ac5615055687f5 CRs-fixed: 265531 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c75292d6e2a31323236482442148bacc57ae1d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 12:36:36 2010 -0800 msm_fb: display: Fix MDDI video leak during suspend/resume Fix MDDI video leak during suspend/resume by waiting on overlay_restore to complete before switching off MDDI and panel driver CRs-fixed: 265531 Change-Id: I8c3f15800aade087145e50fbd053e817a51a903a Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 25953d224b91e2cf230ae845d5db0f374818bcfa Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 17:07:54 2010 -0800 msm_fb: display: Fix suspend mode for MIPI panel Add code to turn off of the MIPI DSI module when the device goes into suspend state. Change-Id: I243e77c37d4332f5c67794a3922f24355cb8273b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c98ad9e172386b9a53ed7f01658837b596e86e05 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 7 18:42:38 2010 -0800 msm_fb: Fix detection of MDP4.1 core reset The MDP status register cannot be used to reliably detect a reset of the MDP core since some of its bits come from peripheral interfaces external to the MDP core. These bits may not be reset along with the core. Instead, use the MDP_SW_SCRATCHPAD_REG register to store a flag indicating that hardware initialization has been completed. This register will be reset to 0x0 whenever the MDP core is reset. MDP_SW_SCRATCHPAD_REG is only available on MDP4.1, not MDP4.0. CRs-fixed: 266140 Change-Id: I7ceccc1cfb22a8cd9355aa6cc39b82cf3729936e Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8abbc4bc0ccfcfda27895a889091f6a21af3674b Author: Philip Elcan <pelcan@codeaurora.org> Date: Fri Dec 3 12:07:28 2010 -0500 msm_fb: Make smem size a multiple of page size drm_gem throws a BUG if smem isn't a multiple of the page size Change-Id: Iaa1a96bb259238f6e5850a7012aa5408c4a44e41 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 0d841d87f7ec8b59ff009af94c379e5a7b674bd1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 7 08:36:18 2010 -0800 msm_fb: display: set MASTER4 bits to icrease MDDI throughput There has DMA_P buffer hardware bug which cause MDDI throughput is much lower than noraml. This bug had been fix at revision 2.1. However MASTER4 of MDP_AXI_RDMASTER_CONFIG need to be set to correct value to increase throughput. Change-Id: Idee0c388f6ca4c0953bba86d6ef6c2132c298802 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 071243a12712d740c33fc632431b43381dcb848f Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Dec 1 13:39:16 2010 -0500 msm_fb: hdmi_msm: Fix compile with HDCP disabled Can't compile without HDCP enabled. Need some ifdefs around some unused code when HDCP is disabled. Change-Id: I9682febae5ec4d766fdb62c51180d8295f111646 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit e7164df63e7b87b19ee69ddc7f3db74c65b863b6 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 19:48:12 2010 -0800 msm_fb: msm_hdmi: enable HPD on request only Enable HPD sense only when panel power is on or when sysfs/hpd is turned on. Change-Id: Ibbd45d2c673aeea08660a0087cbec8b82e497584 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ecdbbed83e693269918ca9d0e7f94b0fb15d9d30 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 11 13:29:58 2010 -0800 msm_fb: display: add planar support Add support of Planar (Y-CB-CR/Y-CR-CB) source format. Change-Id: I0bed22156fc6c327c48d94764d8283ec9491b85b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1dbf239b10fa4255770704e5957340cd118582eb Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Thu Nov 18 19:37:07 2010 -0500 msm: mdp: Fix MDP underruns on 8660 To avoid MDP underruns, hardware cursor updates should be made in sync with the dma completion interrupt. Change-Id: If6b4922e2087c8a3f4c8354d173019f76cdaa519 Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 2d55c0bd07cafc12c7ed23a38433e2944de04b6f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Dec 1 15:07:26 2010 -0800 msm_fb: display: do not do mdp clk scaling turning on/off dtv or lcdc during clock scaling has side affect of showing blank on hdmi. Change-Id: I4ab5dabef12ecbcee014bee21ffe695b2d74646a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c7701ba49d17276c20dd4c7e4375844fc568f5cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 22 18:27:53 2010 -0800 msm_fb: display: Support to reduce power for non QuickLogic clients Change-Id: Ica37e9748c280bfe12f2c220f5dc585eac608e4f CRs-fixed: 264628 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59bd6d8480c4cb529f80069a2a575ac0b5e4f7a9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 17 10:49:46 2010 -0800 msm_fb: display: Fix invalid image errors in PPP stress test Fix invalid image errors in PPP stress test by fixing the internal blit regions that are split from the original blit region Change-Id: I73a9f424459fb0c4f0ceebc4fddf89d20c4bc744 CRs-fixed: 263764 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94d57fd66777b0387e50d4c39a241f097a3558b4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 18:28:10 2010 -0800 msm_fb: display: Fix USB OTG None mode flicker for 8x50a_st1x Change-Id: Ib8f2ca21cb29e7de3a2f12e4de434eef4549de93 CRs-fixed: 259149 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5ac62b6a6fbfcd5506bf83e83d0b52337649e602 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 25 09:42:08 2010 -0800 msm_fb: display: do not re-fresh primary display for external interface Do not re-fresh primary display when external display interface, such as HDMI and ATV, issue unset operation. Change-Id: I0d8865361c5377dfae7bec5cdc10e80eb7caf968 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 434f989b4b52133c7a204b9c72e06321e53bf48e Author: Urs Muff <umuff@codeaurora.org> Date: Wed Nov 24 08:57:25 2010 -0700 msm-fb: msm-hdmi: reinitialize HDMI core on HPD Ensure HDMI core is properly initialized after each HPD event. CRs-fixed: 262669 Change-Id: If96a9e0c0fb7c785c640254247adaac4b5fb8a77 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d0e8d669e6e1a9aa3924621b57b6bc314a75f895 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:43:01 2010 -0800 msm_fb: display: reinitialize the mdp hardware during resume turning off the mdp footswitch during suspend doesn't retain any mdp hardware registers that are initialized one time in mdp_probe since it turns off the mdp power rail. Hence reinitialize the mdp hardware during resume only when the mdp status is not active. Change-Id: I95c6b04be26ddbb6fd6f8346b9f44eacab698f59 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2d5b134c38b47c5f5d5aae81a60a59555ca2a9f0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:39:22 2010 -0800 msm_fb: display: remove redundant turn off mdp footswitch. mdp footswitch is already turn off during mdp clk_disable in mdp_pipe_ctrl function hence removing the redundant call. Change-Id: Id0e6178210b836703618137e4c877f1e7036277a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e4eb02a22a66ae82af4638a03ffde2b87878269a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Oct 9 11:33:32 2010 -0700 msm_fb: display: Add new pipe alloction to support 3D Modifiy pipe allocation algorithm to to support many applications including 3D. Change-Id: I3688ab44bd86b6eedf94bd7cb904e7b6fac4f89b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f773d073fa24a571b299034aeeb01a4c464a0390 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 16:41:04 2010 -0800 msm_fb: display: Set QuickLogic panel to MDDI Type 1 mode Change-Id: I32dcb588c4a583474f9c57fcda06e902ab94247c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit aba3918a084d9a914ce7cddfd2acbd1e4dad8c1e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 8 18:11:20 2010 -0800 msm_fb: display: Fix SPI read API for Quicklogic panel Fix SPI read API for Quicklogic panel with configuration of TLEN and TX0 registers Change-Id: I6728322e562f525c9a5cee1afa73bb47f173418e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e69f641acbe060badb10a354bfbf46076f8ad7e7 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:20:01 2010 -0400 msm_fb: Add VGA resolution to 8660 FFA panel On 8660, the LCDC panel and VGA display are on the same bus, so specify the maximum VGA mode as the secondary mode in the panel definition and the Samsung WSGA panel settings for the primary. This will allow userspace to change the resolution when using VGA mode. Change-Id: Ia805ce6477cf9b300a1f969679f2012980d14a61 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit be482dd056b5ff02c8a3f98d60875e7f80fe0aec Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Nov 9 16:57:21 2010 -0800 defconfig: Add configuration macros for MIPI DSI display Interface. Add configuration macros for Toshiba and Novatek MIPI panels. Add macros for both command and video mode. Disable MIPI panels and enable SAMSUNG display by default. Change-Id: Id2a9dca3a2467e588ffdad1ec9d149ca6a4d4d76 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 85e5df5ed487db598f06bd37436629ea2b637b49 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 08:37:11 2010 -0800 msm_fb: display: add control of dsi_s_pclk There has problem at dynamic clock gating hardware which may cause glitch of dsi_s_plck. Move dsi_s_pclk control to dsi driver. Change-Id: I466eebb0309b82ad83c54bed0840cd42d1f1b4ff Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3661713ece532d5b50fd0fa1ab415058736fd0ce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 3 09:19:57 2010 -0700 msm_fb: display Add Novatek video/cmd panel support Incorporated both video/command mode panel configuation to mipi_host_init to support both video/command. Change-Id: I51555e9065038607765de54e98c36128aa611d8f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2c8a3a62f8f9bdb45a606764edfb0efd25a7c24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Nov 15 10:49:41 2010 -0800 msm_fb: display: Fix command block power on/off sequence. Command block is not power off in all return paths that prevents mdp clocks to turn off when display is off. Change-Id: I4aecc8be8e25780a5e45d304dc2982df40433a4f CRs-fixed: 262107 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 667560bf45d30464fb82ccec0bce9a09653eec4c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 1 15:49:47 2010 -0700 msm_fb: display: add mipi panel and cmd mode support Add mipi dsi per panel control configuration along with mipi dsi command mode configuration. This patch also including supports of video mode suspend/resume. CRs-fixed: 259499 Change-Id: I6be8f8edb342874c1d90ce06df094157f320ffa1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 547f7aca18653ef13bf05da91c23c4a1b607fcfe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Nov 12 10:59:39 2010 -0800 msm_fb: display: add auto detection for dmas dmap switching Add auto-detection mechanism base on the mdp_hw_revision to enable/disable MDP switching between dmas and dmap. Change-Id: If9dbae23886c94ef52350614c1f27c568ff79ca4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5e8f857b0ececc25dbc5dbbc9967d2d80e40f90 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Nov 10 10:22:56 2010 -0800 msm_fb: Add support for AHB master and slave clocks. Enabling AHB bus master and slave clocks in driver to avoid glitching by dynamic clock gating hardware. Change-Id: I66facbc85374f30c28c4b93890fd29bb88559d88 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c7ab3f03de38180c7081b48fd29fce8caaef735c Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Nov 17 09:05:08 2010 -0800 msm_fb: Fix section mismatch of prism_probe prism_probe was being reference outside of an __init section. Fix this by placing prism_probe in the section which is the place for device initialization code. Change-Id: I4272e2bf283a8f2a59ecabf6287683b32f6601c1 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 249a736ee2ee7fd206cad6cf5a99a643ef78246f Author: Laura Abbott <lauraa@codeaurora.org> Date: Tue Nov 16 16:32:22 2010 -0800 msm_fb: Fix section mismatch of lcdc_panel_probe The lcdc_panel_probe function was being reference outside of an __init section. This fixes the problem by placing the function in the section. Change-Id: Iec1f60d98249802f9c9aff795b085bc0518c26ee Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit abf906b0506d2c38faf0deaafd3e1c26e9b52a99 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 18:31:52 2010 -0800 msm_fb: make HDCP enabled on all panels. Try to read DDC with different alignments for different panel for HDCP protocol communication. Change-Id: Icfb51764f42497375df4c58d0977105c8f6b757f CRs-Fixed: 261508 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7b0d8cbfa4f86a197bd88d99063df8fca1a23b32 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:02:39 2010 -0800 msm_fb: Fix section mismatch of hdmi_msm_probe The function hdmi_msm_probe was being reference outside of an __init section. Fixes the problem by placing hdmi_msm_probe in the section. Change-Id: I4dcfcbeaefde7e71ef9f18140dd64648b46891bd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 96c1a7422faeff26cbd70629ba1fbd838b988f50 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:53:23 2010 -0800 msm_fb: Fix section mismatch of samsung_probe The function samsung_probe was being reference outside of an __init section. Fixes the problem by placing samsung_probe in the section. Change-Id: I39de06c0692ddf963d2d11f069ff5dd0d8714d43 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 3f466d9a313a64af18e036d002d1738fc23c29fe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:47:19 2010 -0800 msm_fb: Fix section mismatch of mipi_toshiba_lcd_probe The function mipi_toshiba_lcd_probe was being reference outside of an __init section. Fixes the problem by placing mipi_toshiba_lcd_probe in the section. Change-Id: I9f0f2b1e0ed65edf9adbcf1dfb9a424aa379b7ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 596c4c2dafbb59ade4616387fe1531efaf738a4b Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:51:22 2010 -0700 msm_fb: Fix section mismatch of toshiba_probe The function toshiba_probe was being reference outside of an __init section. This fixes the problem by placing toshiba_probe in the section. Change-Id: I2d992ff67abf4f34ccb3c91f1b438df9fe7f0295 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 03b098b26bcb79921b55399dcf82a38e9770b560 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:53:50 2010 -0700 msm_fb: Fix section mismatch of sharp_probe The function sharp_probe was being reference outside of an __init section. This problem is fixed by placing sharp_probe in the section. Change-Id: I3d45fa65f34a91f9d28aaa812832a9e6d778a55f Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit f1fd48f9199f7695d7475a02e0ddfe489f49274e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:32:23 2010 -0700 msm_fb: Fix section mismatch of mddi_orise_probe The mddi_orise_probe function was being reference in a section outside of __init. This fixes the problem by calling platform_driver_probe instead of platform_driver_register since the driver is not hotplugable. Change-Id: Ic79081dea2775354dc9695747e91a6f96cbb6b23 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 23ad01dfe9d9bad23138e41c65ae7744235d2b90 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:38:24 2010 -0700 msm_fb: Fix mddi_quickvx_lcd_probe mismatch The mddi_quickvx_lcd_probe function was being reference outside of an __init section. This fixes the problem by marking the function as existing in the section, which is for device initialization code. Change-Id: I31dc111643915860a0ce9644c888240e611758db Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 5b1d692a8deae3fc06d1855bd84dfe18958d9e21 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:48:58 2010 -0700 msm_fb: Fix section mismatch of gordon_probe The function gordon_probe was being reference outside of an __init section. This is fixed by placing gordon_probe in the section. Change-Id: I11f58d7157a4bdf00fe0cc631fac9b24f6a12e49 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 8e8a8451d6b82a28b1606be1d54d60cd8df40500 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 19:13:27 2010 -0800 msm_fb: Bound checking variable "count" Put upper limit bound check on "count" variable to avoid acknowledging corrupted values from user space. CRs-Fixed: 262787 Change-Id: I31517a486803871be2e304747aabfc3d4f230c86 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit de90534498bde43541e7a8bf59ac640124b3e72c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 10:37:44 2010 -0800 msm_fb: display: add synchronous between DMA_P and DMA_S. Change the execution order from update --> wait for completion --> kickoff to wait for completion --> update --> kickoff to prevent un-necessary flicking. Also remove piggy-back kickoff mechanism to prevent frames from being dropped. Change-Id: I25cd4ced51d2f5cc72d9b83e938a93d92d6f5ed2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d2d3ec7c1cf9b0969d0b8f13955688063d1335c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Nov 11 10:19:05 2010 -0800 msm_fb: display: Kick off histogram when primary underflows When underflow occurs MDP clears all the histogram registers and driver need to kick off the histogram if it start before. Change-Id: Ib15e4084da5d9d170484e9e1b6d260d17035a864 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 82f8fe684610a3cfb65f3195912d3c0e870fcecb Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 18:41:43 2010 -0800 msm_fb: properly handles return value of sys_lseek handle error condition of negative return value of sys_lseek, to avoid allocting large chunk of memory through kmalloc. CRs-Fixed: 262768 Change-Id: Ide303f955de30c05fe56e9f528508b8bb6e027ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7ef97f597ece29145a252c95f3707961377d9d30 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 10 19:19:42 2010 -0800 msm_fb: display: Fix data size in MDDI host register reverse read Fix data size in memcpy in MDDI host register reverse read path Change-Id: Ia75bac5576898a510937cb0f6bc10304b7015314 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3e44b7399750352bd375a2d41a919fe4d737f437 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:18:24 2010 -0400 msm_fb: Allow panels to specify a second mode This allows for panels that support more than one mode to specify the maximum configuration. The framebuffer size is now based on the larger of the primary and alternate modes. The alternate mode is also used to check parameters when userspace is requesting a change to the framebuffer configuration. Change-Id: Icf644b0fb5e54fc95f45ea8c5ed97f6243cb886c Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 9a2a724813bada5684f6bf9eeef4ba1b13db315d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Nov 7 15:23:49 2010 -0800 msm_fb: display: Implement bus scaling for TV encoder Add usage of bus scale apis to scale bus bandwidth for TVOUT. Change-Id: Id0d9a147c3d24c94b1351656b6c8938c3db10706 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e9736b53a5642d93abb3631ea572d11f25c40b6f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Nov 6 23:29:55 2010 -0700 msm_fb: display: Implement bus scaling for dtv Request bus bandwidth for both SMI and EBI while using DTV/HDMI. This needs to be optimized once the bus scale api is integrated. Change-Id: I71162923ae8a11e7737c702b5f7b2078b995426e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 12b28ba64a3fce1b9c97432b0f54027c4436d3f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 16:34:23 2010 -0700 msm_fb: display: Implement mdp bus scaling Add the usage of bus scale apis to scale bus bandwidth based on the performance level to save power. Code assumes that FB is EBI and overlay is from SMI this need to be changed to find the correct buffer source whether EBI or SMI at runtime. Change-Id: I9936fef798379ce4698840f951dbf301430055dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2f6cc1402dc448174721be73c2d48a8f12a8e347 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Oct 22 19:04:46 2010 -0700 msm_fb: display: Add MDDI Type 1 Forward Link Skew calibration support Change-Id: I344403d67a9361b626eb67bd3c9e8ad5f21660e5 CRs-Fixed: 246784 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a179efda6e7588b3e3f56b8819c21b16647741f7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 1 10:18:10 2010 -0700 msm_fb: Fix hdmi driver for enabling/disabling HDCP Fix for enabling/disabling HDCP feature from kernel config. Change-Id: Icd7f76f263780212064833084d967ab10f001b70 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c1f05d2d08eec5e95b47088a6de5c6f560d6a7a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Oct 20 16:01:50 2010 -0700 msm_fb: Added support for premultiplied alpha. CRs-fixed: 258209 Change-Id: I891a81d76030b66e0133a689b695bb39af923b98 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 997d3c514075eb1246552aa313dd6964de36e6fa Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:43:27 2010 -0600 msm-fb: msm-hdmi: adding additional DDC request options Some panels succeed with 128bytes/page read for EDID, and some panels will fail. This will try 128/64/32/16 bytes per page in succession. Change-Id: Ibef7af8f6da57d2ecc12ed26ba5f2acb13fe4f1f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 8e230203d3a85e610bc4ec23993dcff8660474d2 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 16:45:47 2010 -0600 msm-fb: msm-hdmi: fix 3d info packet Use GENERIC0_LINE=1 for GEN_PKT_CTRL according to spec (bit 16). Add Top-and-Bottom mode as new 3D-mode. Use no Generic0-Line for none-3D mode, which fixes the VT issue. Change-Id: Ib1a6621bc4364fe3c56d3e26869894f52010c855 CRs-fixed: 261085 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3d480fcff95309472e8256829b5bde8f962565d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 25 17:56:55 2010 -0700 msm_fb: display: Handle Zero MDDI Reverse packet count error Change-Id: Ib4699b17524abff43cadda36856fa7995060b3b8 CRs-fixed: 260745 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 70b380c25316d37edc1da15cc3765b07dee175c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 26 15:50:22 2010 -0700 msm_fb: display: synchronize dma_s kick off with dma_p During switch back from dma_p to dma_s, check dma->busy flag and wait for dma_p's completion before kick off dma_s if dma->busy was set. CRs-fixed: 260626 Change-Id: Id22b65b410ddb3e5f9faca0b8423f0e74ee6ccbe Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aea07835e1659c9be68ff074b8f37654eb921799 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:45:46 2010 -0600 msm-fb: msm-hdmi: remove HDMI audio teardown from HPD event Leave HDMI audio running, so that audio-flinger can switch away from HDMI before tearing down the HDMI audio setup. Change-Id: I4090c8771143e50f9202e9e8c5902f5ce893c74a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 957bbadab433ec4a4f24830dcdd38bd30394eaf4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 11 12:09:21 2010 -0700 msm_fb: display: Add MDDI multiple data read/write support Change-Id: If34dcfb0ffca650f00d5cc897fc79ff42ad939bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 258225 commit 27c0c5d6471e1af1adaae6394717701f5f0949db Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:19:50 2010 -0700 msm_fb: display: Add new ioctls for histogram. Add MSMFB_HISTOGRAM_START and MSMFB_HISTOGRAM_STOP ioctls to reduce the blocking time for histogram generation from two frames update time to one frame update time.These two ioctls help to start the MDP histogram generation process for the next frame in the isr itself just after reading the histogram bins for the previous frame. Change-Id: I8adfe2314284703ea1f51a8bb76c586f553d065c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c6536fd7aa0b92270175f4bfc03a57428a75412f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 20 10:49:19 2010 -0600 msm_fb: msm_hdmi: HDCP support for 1.4 panel Ensure to retry HDCP when failing during phase I, II, or III. Change-Id: I60a1523a5ccca70cc660d5211f23f53e75827e0f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 164a5b01b3708c4c0e688ef93d628ef884a85aad Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 15 10:43:18 2010 -0600 msm_fb: msm_hdmi: handle EDID on different panel This HDMI sink does not allow to read the second EDID page in one shot, and does fail to read just 5 bytes. Changing to 32 bytes reads solves this issue. Change-Id: I36e65da1e5e67bf9b5a0bc00c0c8c1e8d67bae8f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit da8794fcb39dd8fb3a7daf994f693e1b06474047 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Oct 21 14:44:23 2010 -0700 msm_fb: Change Packet Memory map I2C default address Changed default I2C address for Packet Memory map to avoid address conflict with BMA150 accelerometer. CRs-fixed: 215783 Change-Id: I22f76f0b888cdb377bd91e00b54bd4ad8c46d4f2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c438f987bde833284286fb2e5434036c8def7c9f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 12:07:21 2010 -0600 msm_fb: msm_hdmi: add debugfs entries Adding debugfs API to debug HDMI registers. Change-Id: If0fd415c53cf49fcaa0d38387eeef33dc14fcbc7 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fffb24688cfd3560ecca5b8d162427c21467ecd1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 15:49:07 2010 -0700 msm_fb: display: Correct Initlogo filename Correct Initlogo filename accessed from display driver CRs-fixed: 257109 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I95e5ff1f473e3c0a73a7a693c1965ad6e7653ee5 commit 05ca25d7023b90920ca241058e5b3266846b833b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:46:50 2010 -0600 msm_fb: msm_hdmi: add HDCP status to AUTH_FAIL error log Add log entry detail for diagnostic of HDCP failures. Change-Id: I0f5520346952f85562e872795dde114247d5aae4 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 2c3fcdb2978ef1902717ab48c74214fa857346e8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:13:34 2010 -0700 msm_fb: display: enable runtime clock scaling for mdp_clk scale the mdp_clk based on various performance levels. increase mdp core clk to 192Mhz for lcdc/dtv when playing 720p video since 122Mhz is not sufficient. CRs-Fixed: 254222 Change-Id: I9454cfc324c74e99a2fe6d44dd58ae5d575b60cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 166854ea7e67749badf61ab7df82e833f7fbfc50 Author: Laura Abbott <lauraa@codeaurora.org> Date: Thu Oct 14 15:25:15 2010 -0700 msm: video: Fix section mismatch The function tvout_probe is referenced outside of the __init section. This fixes the problem by placing tvout_probe in the section. Change-Id: I14ae9a028f32d1b0de65c99d8eea740a929721e9 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit d4a6fbcb997b2800587eb5263c9dfc44d3843e66 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 14 19:10:13 2010 -0700 msm_fb: display: Fix screen split issue in suspend/resume Change-Id: Ic5ccffaa12e0e546750d65e604326a4a39281f51 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 253026 commit d5d9778a48d988002f87359973193749a924f3dc Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Oct 1 11:08:54 2010 -0700 msm_fb: display: change the pixel clk to 30720000 Changing the pixel clk back to 30720000 because the maximum pixel clk supported by panel is 30Mhz.Since making it higher clk is causing display corruption issue while playing some 720p video clips where mdp clk is not sufficient to push data even though mdp is running at maximum clk it supports. Change-Id: I7d68d8728fdc7c30c6ba9549eaffef748d1147df CRs-Fixed: 254222 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 414f630f8f60ede6a0d5982d7e41dd4fa9948a08 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Oct 18 14:42:09 2010 -0600 msm_fb: adv7520 hdmi: sysfs hdcp integration Use the external_common API to signal HDCP availability to the user-space. Change-Id: Ia5e8f51620ae29c84cf5dd8e16c81d3746b82228 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1ab44dda69fe0e7ee3995260ff06b0cdcc430746 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:27:47 2010 -0700 msm_fb: Fix section mismatch The mddi_sharp_probe function was being reference outside of an __init section. This fixes the mismatch by marking mddi_sharp_probe as __devinit, which is the section for device initialization code. Change-Id: I3c1103a956279e75db3bc9025186b260f901325d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 74213166390c1d70147bdf601892881ad8103c06 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Oct 15 22:47:09 2010 -0700 msm_fb: display: reset client_status_cnt to fix MDDI RTD Failure Reset client_status_cnt to 0 during system resume to make sure host does not send RTD cmd to mddi client before mddi client be powered up. CRs-fixed: 260405 Change-Id: I90194791521dd192ba1d7260ffcd2241c07b8221 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b57dd4b598f6e8a3f42d56927dc4ffc371bbc9e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:23:44 2010 -0700 msm_fb: Fix section mismatch The mddi_toshiba_lcd_probe was being referenced outside of a non __init section. Fix this by placing mddi_toshiba_lcd_probe in the section which exists for device intialization code. Change-Id: I1a43bc7fa61541b9be5e7aeed701071e2c756007 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 4611e9a0b0b7ce7f7f884ff28029500c5da281ec Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Sep 22 09:58:36 2010 -0400 msm_fb: Make lcdc use resolution from fb driver The lcdc overlay uses the fixed panel resolution. However, it should use the variable resolution passed to the fb driver in fb_var_screeninfo. Change-Id: I77818af8722be715b5281c00b5e6e752389e3dba Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 302e36a9907723d9b48d37297072b64ac078cd76 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 12 19:59:42 2010 -0700 msm_fb: display: Add dynamic MIPI panel detection support Change-Id: Ie1281a353c15c7d7575eb1b591d325382d61c303 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 75f34ead5e0489b5cae23339e0fe57dd7bb51ee4 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:43:51 2010 -0600 msm_fb: common_hdmi: add support for audio EDID packets Add parsing for Audio related EDID packets to the HDMI common package. Change-Id: I55ff5adba4382a30fb4a686cca63bdeabd21e77d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit c5c8c4cb8c7e9c7f0a48634f8b2965ccce2c4570 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Oct 13 15:40:54 2010 -0700 msm_fb: display: fix MDDI compiler error on 8660 Since msm8660 does not have MDDI, MDDI ISR handler need to be excluded for 8660 platform. Change-Id: I0bcc5e413e299cfdbf91fc5275388ba4e42ff1de Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e8aa64ba20b7939c4fa86aecec4101af9c248a04 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 23 10:02:42 2010 -0700 msm_fb: display: add panel info to mdp4_isr Since new panels such as dtv, atv, mipi video are added into system, They need to be handled diffferently at mdp4 isr. Change-Id: I25d720df12a0aaf0b3984683e283aebe7cd843b7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5c1074bff79decc6b1a52aa8db2cff198b288eaf Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 17 18:59:52 2010 -0700 msm_fb: Enable/disable MDP core power rail as needed On newer SoC like 8x60, power to the MDP hardware must be turned off and on explicity. Introduce use of 'regulator' APIs to turn on and off power with the clocks. Calls are introduced to both the MDP and LCD drivers so that MDP is now powered off unless both MDP and LCDC are idle. Previous SoC that automatically turned power on and off as part of clk_enable() and clk_disable() calls are still supported. The MDP and LCDC drivers now assume that if the calls to regulator_get() are unsuccessful, then the rail will be controlled automatically. Change-Id: Ica87d8ca439130cdd6d2df04801de76a888fbdc9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 63c1090c30f76a955d4a894f619a30c309101d61 Author: Michael Burr <mburr@codeaurora.org> Date: Mon Oct 11 10:14:50 2010 -0700 msm_fb: display: Fix framebuffer format used for MIPI devices Select the MSMFB_DEFAULT_TYPE framebuffer format instead of the 16bpp MDP_RGB_565 format. CRs-Fixed: 259512 Change-Id: I13ad0f3920baf286d9be994378c4e0538dbdbe9d Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 179e0ae68264329d3887d4d076623afd84e73171 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Oct 7 16:09:07 2010 -0700 msm_fb: display: re-program qseed table At msm8660 FFA, the qseed table corrupted during suspend. Therefore display garbled at both camera/camcorder preview and video playback after resumed. Re-program qseed table to fix this problem. This is temporary work around solution. Change-Id: I8d716f706f4926855ed008f5012bc2f5853161f3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3424827245f23f9423ac7671ecb40d9b6c5ce0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 13:35:29 2010 -0700 msm_fb: display: base on is_fg flag to apply alpha effects Change-Id: Ifdf7d9f247a3619c2d710367e63ca368c1762ba8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 82506520a0631fbc25bee646f410f8ca920d89ab Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 22:21:17 2010 -0700 msm: video: Fix warning in switch_3d The entry for switch_3d does not return a value, and no result is expected when called. Change the type and function to void to avoid a compiler warning. Change-Id: Ice08a08735a6d058e09a079cbe63fdc9681d66f5 Signed-off-by: David Brown <davidb@codeaurora.org> commit 80726b692d586d1d7d10d75db1966128f468f27a Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 14:56:56 2010 -0700 msm_fb: Warning fixes Eliminite some unused variables. Change-Id: Ia8d6d1edb99eb67bf60cc183a87482d5871a129a Signed-off-by: David Brown <davidb@codeaurora.org> commit a0f19d22dd7698cfd851c1ce75259c277d7b03bb Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Oct 7 11:23:19 2010 -0600 msm: video: fix for sending tv-out cable detect event Fix to send cable detect event only when connection state changes. Change-Id: If14f32b72f22f30dcb6ad869c5be69817ebc0996 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e91fcab88f81f3e8304f2040a684658816436018 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 15:32:27 2010 -0700 msm_fb: display: cursor update align with dma completion To avoid under run during cursor update, it is necessary to synchronous cursor update with dma completion. Change-Id: Ib2e6e18c88adacfe1b5235d42affa69ead5a3a11 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 07240c18f405c0a9a7c071635b5507072a2d2566 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 5 10:22:45 2010 -0600 msm_fb: msm_hdmi: change EXT_INTERFACE prefix to HDMI allow DEV_DBG to use a more specific prefix. Change-Id: I00b484f8f7f218ff6cfa1c6b17d4f6454da32519 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe019f3c4070a1945b8ba4d44943576ced22cc33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 5 08:22:49 2010 -0700 msm_fb: display: fix MDDI_LD_PARAM_SEL for DMA_P During DAM_P and DMA_S dynamic switch, the DMA_P's MDDI_LD_PARAM_SEL was over written by DMA_S. CRs-fixed: 256428 Change-Id: I79f96e8c3e5e61e0fc328fd7f83c2c6e60b50869 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aeb5596d9be836ab19e75d4db4ada457b26ec64c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 4 14:33:03 2010 -0700 msm_fb: display fix compiler warning message Change-Id: Ibf3609b882a99b9cbac33f6557bc633a6931a59a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e662af7106510eddc6f6144df0afd54704fff1c2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 1 17:32:16 2010 -0700 msm_fb: display: Add QuickLogic MDDI panel driver Change-Id: I2829ea3c91cbb658544a46fc1de5343a9883637b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9f1dcfb0004a4ebfbe6a4241895b40650a03a5b0 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Fri Oct 1 10:00:17 2010 -0600 msm: video: support for tv-out on 8660 Added support for tv-out on 8660. Cable detect is interrupt driven on 8660 & polling driven on 7630. Change-Id: Icdc6e8ae512ddcb91b766fdff2583e8157bc868c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 07cefc8f36b8d8f1827358e6000e8691697586f4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Sep 21 18:56:33 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: I0603f3a351a92b576a78370d3f974926e0441920 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2af9f6215c3ff34eb01d1c1032cbb026c2ae6dfa Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Sep 30 11:19:14 2010 -0700 msm_fb: display: Add error check for source and dest rectangles return error if source and destination rectangle parameters set by the client are invalid. Change-Id: I8c93e84005655a62b8f4f441cc6055d3d1af46d0 CRs-Fixed: 254320 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 870cbe2b5127a8cf5615249cc2c9aeff95283ded Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 30 16:21:36 2010 -0700 msm_fb: display: Enable H/W Vsync in DMA_P for MDDI type 2 panel Enable H/W Vsync in DMA_P for MDDI type 2 panel to avoid tearing issue Change-Id: Ifd0ad38f9c98b430c2c3c3fd01df8343684f5394 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255990 commit a38e51d5349c52705dd3baab850c1ba65988bee7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 28 13:15:16 2010 -0700 msm_fb: display: check power status before restore screen Always check current power status before restore last screen. CRs-fixed: 256126 Change-Id: If5b46683b7c112b32955bd0475a4cbe898f3ea9c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit de437f1260ebca32dadcf01fd15e8a8ea7b6085c Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 1 10:52:08 2010 -0600 msm_fb: hdmi_msm: fix CONFIG_SUSPEND undefined case Since 'pm_suspended' is not defined when CONFIG_SUSPEND is not defined, the guards have to be conditional as well. Change-Id: I6c8fe29999e8c18ee2d247ca87b0162e8dd8c18b Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4ae1f467dc6576fa4dfe0f60b14f047b78c0a275 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Oct 1 19:43:04 2010 -0700 msm_fb: display: Fix MIPI DCS Short Write, 1 Param packets The parameter byte of DTYPE_DCS_WRITE1 packets was being written into the wrong byte of the packet header. Change-Id: I6bf00d6cc287f8b6f88a9c332bf94db5f119bc89 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit aabef1e74db50ce5342171daf0119c2cee77ddb8 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 28 16:01:42 2010 -0600 msm_fb: msm_hdmi: support 3D Side-by-side mode Adding support to send 3D mode over HDMI. To turn 3D on write 1 into /sys/class/graphics/fbx/format_3d. This can be done during actual playback, switching in real-time. Change-Id: If933332b84ecbbe6b75fd896b3acf804216a6abf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe5ce8d4bbcd99721b6e914a863b85cbe1f888c1 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Sep 29 19:37:14 2010 -0700 msm_fb:display: kickoff DMA when there is no update for video When video overlay is used DMA is kicked off only when there is a video update. This prevents the UI bar update if the video is smaller than audio. CRs-Fixed: 255766 Change-Id: I19c54ee051ddeca3e89a183f878b5c2bb2f60461 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 61802d15a50c90f7ba01d308503f4d67c520914b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 29 14:22:32 2010 -0600 msm_fb: msm_hdmi: protect worker/isr from NULL pointer When probe fails HDMI_BASE can be NULL. Change-Id: I90d185e338df4fee9f37a62c1005c3b83f2619d5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 9391f66a1674cb0de65a91275bb355772c68c8fc Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Wed Sep 29 15:53:04 2010 -0600 msm: video: support for switching TV encoder mode using ioctl Use reserved[3] field of struct fb_var_screeninfo to switch mode. Change-Id: I5f027612410f26e1e9d440235c4d1924b490fd9c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit d7801961dc00f7c57f948296307610c35f541a75 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 27 15:38:01 2010 -0600 msm_fb: adv7520: fix audio mute after HDCP error Use Av-mute during HDCP negotiations, but turn off Av-mute after HDCP success or error. Change-Id: I82ef4e67e45c38f38f1fdd28b19028ab63a0d092 CRs-Fixed: 257430, 257702 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 770f7448a6ae89d0e20aa1f5724dc7283c3cc69c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Sep 18 16:42:20 2010 -0700 msm_fb: display: remove early suspend/resume from mipi This patch contains: 1) remove early suspend/resume from mipi 2) add pm_qos to mipi 3) register MDP4_PANEL_DSI_VIDEO Change-Id: I563fbae57dca0042355637e3f0da2fd3fbbd3b6d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 39e957faae7f1d0d0fbd3dec411f751a72fad64d Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 24 14:46:24 2010 -0600 msm_fb: msm_hdmi: guard against double suspend calls Suspend / Resume can only be handled once, and independent entry points are now guarded against failing while in suspend. Change-Id: Ie964db014354f4b649e153ac2d6077d17f18db85 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0a70e5f17ca65e8449a53585c89959e375e5bc69 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 21 11:25:30 2010 -0700 msm_fb: display: upscaling ratio to include 8 MDP4 support scaling range from 1/4 to 8 included. CRs_fixed: 255497 Change-Id: Ib3f846a71f126c7c36a72059e463027898bad7f5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aa117d04153ab8eda2a53bc60f1ed80a8caaa777 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 17 09:59:24 2010 -0700 msm_fb: display: add MDDI compiler option Add MDDI compiler option to prevent compiler error for 8660 platform since 8660 does not have MDDI interface. Change-Id: I6ecd990906667dd38fc6d50b94c1c0a00b9ba726 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a23179efe8a5b7f99c67eb046cec4f99601ab5a0 Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Fri Sep 24 01:40:40 2010 -0400 msm: mdp: enable framebuffer caching on 8660v1 for chromeos Enables FB caching on 8660v1 for chromeos. Xserver decides the caching policy. Change-Id: Id97a47c511270312614264b353b60c98f9cf96ac Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 45ec8d7a220095ef6e0ca6bf3240288a979a1d33 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 23:54:35 2010 -0600 msm_fb: msm_hdmi: completely reinitialize core after HPD Turn HDMI Engine off, init PHY, init video, init audio, turn HDMI Engine on, init HDCP (if available) after each HPD online event, and after a panel-on event while connected. Change-Id: I4f12d91885a6195c6fee1d09458183d615ac10ad Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3a154cdb742e479b0939107297465ec45c92318f Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 21 10:10:56 2010 -0600 msm_fb: msm_hdmi: move audio init to panel on Since the panel resolution may change, the audio needs to be initialized once the panel resolution is set. Also handle the case when panel is on but cable is disconnected. Change-Id: I857de36c4d42f9e2df14205cf498f02a049c3357 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 92df7eef80e028adfeb30445c6cbf66b1fbe830e Author: Neil Leeder <nleeder@codeaurora.org> Date: Tue Sep 21 17:54:34 2010 -0400 msm_fb: add qrdc lcd panel support Change-Id: Id8f57b99300075d4b4a0f7a53b222c8f9614b2ef Signed-off-by: Neil Leeder <nleeder@codeaurora.org> commit 33b773e2dbf0a973c0bfa187123271388b44be9a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 15 16:37:50 2010 -0700 msm_fb: display: perform down scaling check base on mdp revision MDP4 of Halcyon V1 has down scaling limition. The limition had been fixed at V2 and V2.1. Change-Id: I62ca1e62178fc1b69ce80aaa38d1e65cf242ba7f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 65dd5e92304aa362582c72def459c04141a171c9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 18:36:21 2010 -0700 msm_fb: display: Add common Debugfs support for all MDP versions Change-Id: Ifd57e1d9072444678d5d325ebaee1aecbb788a43 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 569245db188004bf6f76fc2fc25de7fc9b833840 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Sep 14 17:29:57 2010 -0400 msm_fb: Add toggle for VGA on 8x60 FFA Add sysfs entry to allow for toggling the external VGA out on/off on 8x60 FFA. Change-Id: Idb42de126daf0c4a8def9f85e80d55a586130591 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 34a939d02afa388b911070b3b872f6f12cfabbc2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 13:08:24 2010 -0600 msm: video: cable detect feature for tv-out Cable detect feature for tv-out. Interrupt-driven when external display is on. Polling-driven when external display is off. Change-Id: I41e9005c61d65657b9db54531306bd664d839cde Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 3f5bd44db5ebf8d27fefb386e81dc00bc0b2c20d Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Sep 15 17:30:12 2010 -0700 msm: Use VG pipe for all the userspace requests RGB pipe might be allocated when userspace requests comes. Use RGB pipe only for kernel requests. Change-Id: Ibb5dbd8f57f1d5bd656b719ddaac9b5d973df8eb Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 46e08cd2287d3f56715d6e6ca8f7e3d166fd0eaa Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 10:27:45 2010 -0600 msm_fb: msm_hdmi: Use mutex for synchronization The ISR and worker function (queued by the timer) both access the state variable. Rather than disabling the irq from the worker function which may not guarantee exclusive access to the state, use a mutex. Change-Id: If6aded298f6f40bbe374b4436fb43117c2501b8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0181e48defeac5f43304f78e32f3e08e4fb42e9b Author: Urs Muff <umuff@codeaurora.org> Date: Sun Sep 19 00:38:34 2010 -0600 msm_fb: msm_hdmi: turn on HPD on probe HPD needs to be armed outside of panel-power so that proper HPD events can be sent to the user-side Change-Id: I50c4c23617c9ae8905678250276169d0b688a90a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 515a37dfae03a50b16cc72c0a58952075e9e6f4a Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 12:52:02 2010 -0600 msm_fb: msm_hdmi: use regulators on demand Turn off regulators during suspend, and use board API to turn 5V HDMI and HDMI Core VDD on/off. Change-Id: I9c8736f81d212d80ad76440b5fd7bebf781f8bc5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 15556a05cdf0bee96e55df4e09415c02c364beb6 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Fri Sep 3 16:28:59 2010 -0700 msm_fb: Round lcdc rate all the time We need to round the rate before calling clk_set_rate() on 7x30 since local clock control clocks expect an exact rate when called with clk_set_rate(). Round the rate all the time to make sure we never fail to set the rate appropriately. Change-Id: I4aeaa70df728a614fe54ec7fb06bdf974ffafdc6 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit e3530ce520cb0622d58a0f9f8958199f16f80cd5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:36:58 2010 -0700 msm_fb: HDCP feature support on 7x30 Read EDID,set HDCP start bit,set internal keys bit, wait for BKSV interrupts,read BKSV keys against revocation list,shut down A/V transmission on HDMI interface on getting HDCP controller error interrupt. Change-Id: I5cf518598f2ccde8327757e5da39f5b8de46b765 CRs-Fixed: 254800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 8ed64a02c290b0cfa5071a31a4073fd2e5516309 Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 17 12:12:49 2010 -0600 msm_fb: hdmi: fix sysfs entry creation sysfs entries are attached to the fbx returned Change-Id: Iada960f1688564185b9de42ec7b9213018b8ec0a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 207a747004c6ead4c7fe7b9d3dca789744eabf19 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Sep 16 13:01:33 2010 -0600 msm: video: featurize external interface code for hdmi and tv-out Featurized HDMI specific code to use appropriate methods and sysfs attributes. Change-Id: I9b67ec23a6c3debfc6e65e9776d05e059c3e3cd2 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 36b51586aa3958f1f70687f0dc4315e86ee00e86 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 16 11:10:19 2010 -0700 msm_fb: display: Disable MDP DMA dithering Disable MDP DMA dithering to avoid double dither effect after PPP dither Change-Id: Ib218e6670deb2b9c0cc9cc18371495f75e66dbeb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cb25ff4fb1b15a0b2cc036fab46588213936acde Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:56:53 2010 -0700 msm_fb: display: turn mdp clock on/off during histogram Change-Id: I83b602ec4a01fde0b5531df7fa4b1f66295d69b8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b8ff10a55a733c83f9f9ab4eb4f308bd75c16be Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 15 11:17:59 2010 -0700 msm_fb: display: Don't flush img buffers unless it is cached There is now a bit in mdp_blit_req.flags to indicate if the input image buffer is not cached, in which case there's no reason to flush it for DMA. The upper framework (eg. SurfaceFlinger) should set this flag accordingly to avoid unnecessary cache flushes. Also removed the destination cache flush since the composition engine doesn't read back the framebuffer directly. Change-Id: I1916c6a51c335eb0bdc0c765319b603deca82f92 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 80225245ec846957a19d3c5cf97ef8e67ed0b0b8 Author: Michael Burr <mburr@codeaurora.org> Date: Thu Sep 2 16:55:27 2010 -0700 msm_fb: display: Add early_suspend element for mipi dsi Add a struct early_suspend element for MIPI DSI's use in the msm_fb_data_type struct for when HAS_EARLYSUSPEND is configured. Change-Id: I39357a9ef992881201a8a9f735b91dc6674de4aa Signed-off-by: Michael Burr <mburr@codeaurora.org> commit e0d8a781a00c43726baa32864925fa04f373e534 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 21:57:35 2010 -0600 msm: video: rename hdmi common code for reuse with tv-out Rename hdmi common as external common so that it could be reused with TV out Change-Id: I110fb77df6db097f9f60d1845b692fda5b9a1b42 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit b7c94c54bd67f784d5f109de6a6700fae40d2810 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:38:32 2010 -0700 msm_fb: display: Correct pixel clock frequency for LCDC Prism Pixel clock is set to correct value to achieve 60 FPS Change-Id: Ibcdbc6780a4fed6a81020edcc43cf6a6a605a43c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 251463 commit 4c5175576868064d48651819d0bbdc473b7ab49b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jul 31 11:40:02 2010 -0700 msm_fb: display: Add MDP4 BLT mode support Add BLT mode support to have overlay output to an intermedium buffer before dma to display panel. Change-Id: I14c6fd383d8d498e56620389c6a5a69768b5bffd Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c55ad5731465eb43c781b6d880e9bfe791ec4041 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:06:29 2010 -0700 msm_fb: display: fix op_mode over written bug Fix op_mode of overlay over written bug which cause some settings never executed. Add deinterlace enable bit of op_mode. Also correct DMA_E fetch configure address. CRs-fixed: 252617, 252845 Change-Id: I65ea5a2e718e7d34b7400394a20dbcd7d4891533 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8cbfe60ddfb5306f13267f1fecb866c04f0c6df Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 8 11:25:32 2010 -0700 msm_fb: display: Implement Forward Link Skew Calibration Packet Change-Id: I59d6e2f9cdc44cc702fd244356959931c30e616d CRs-Fixed: 246784 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit f5eeb754e03385d1b3e89b055626effca2bb1eee Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 11:42:51 2010 -0600 msm: video: Set clock rate in TV encoder driver Set clock rate of tv_src_clk to 27MHz and correct clock dependencies. Change-Id: Id7ffdc2de039f1ccc68f464e184409774e1dbb15 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit a0cede5868c6da21bdbb15ffc29e8bd734fbe18e Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: hdmi: power control entry points create required entry points to control the different use cases for the HDMI driver, so that the power footprint can be optimized. Change-Id: Ied0551077a33c63f1f6e250a12259fbcd30aff38 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 38dbe553fc35d1d3c0d1c2c2b5749101ea139768 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: adding sysfs entries in probe moving up sysfs entry creation from panel power-on to probe, so that user-space daemon can read the cable state before panel power is first turned on, and so that the driver can send uevents during initial panel power off phase. Change-Id: I43388c37dfbf048bd0c14130b807446cb6eaacdf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4d8d83fb198a309f1c99494d5863d68c673e1b1a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 16:47:48 2010 -0700 msm_fb: display: Enable EMDH PCLK Change-Id: I2a674dfec9c140e49250cb644126812d069fbb4c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255313 commit 74a75835cef8cde911a560fb5aff13756e30d7d9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:15:10 2010 -0700 msm_fb: display: Enable BG Tile fetching HW workaround only for MDP2.2 Change-Id: I483fe5182302293d0f967b99ce49de2109247858 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 249932 commit 4661621e735ac029293c6872bd7d342a351247cc Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:29:59 2010 -0700 msm_fb : Set proper FPGA setting for 8x55 platform Enable proper FPGA Settings for HDMI interface on 8x55 SURF platform too. Change-Id: I5da9539c008f05c32a9f7cea6b6af56d2305570c CRs-Fixed: 254427,250608 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 95079ae135cecb86a88e620f92de766c89ec0006 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 13 09:08:48 2010 -0700 msm_fb: display: add pm_qos to MDDI Use PM_QOS to request basic axi bus bandwidth for MDDI. Change-Id: I858706d224c7037d036e8c2e96649da4c9540bc4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Wed Sep 8 18:01:18 2010 -0700 Initial contribution. This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.35. Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit cd238df6940e8f3515c43e34e00ff825a4a8f9c7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:17:24 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: Ia11784f64216e58564b65da4935fca8f26ff5d2b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0bb93216c642f90e9be8904150943342b16f5b43 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 13:57:03 2010 -0700 driver: runtime pm annotation for drivers/video/msm/mdp4_dtv.c Change-Id: I1bacecbdec9e62dca1be99ab4fb8a593562d2cba Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 6c2231402b3d7a671939e8910589bc2b895e1a25 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 21:49:22 2010 -0600 msm_fb: fix dynamic resolution switching for 7x30 27.03MHz is not yet supported on 7x30, so we need to force using 27MHz instead, if clk_set_rate for 27.03MHz fails. Change-Id: I874d242b42e3e3b85d3370e1e277dea8db9e1d4d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1266c58750bd52a48be70514dd150975e1684180 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Aug 27 16:07:57 2010 -0700 msm_fb: display: select MXO or PXO for DSI PLL clk-ref dynamically A future hardware design will not have a 27MHz MXO crystal, but will have a 27MHz PXO crystal. Detect when PXO should be used instead of MXO and set the DSI PLL clk-ref appropriately. Change-Id: I4ae91435aad99ac34fdfb7540b49b901cea96fc4 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 625cb21cd30bafc1e7ac7dd0e45c5cfd244060d6 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Tue Aug 31 11:34:54 2010 +0530 Revert "mdp: Add support for MDP composition for QSD8650A target." This reverts commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2. Change-Id: Ia9e7d03d405cd9ec62dffa620081e52d4607c3b2 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 6aea65b1cabafdf0c37b4c3d1cb3e8f309117d3a Author: Philip Elcan <pelcan@codeaurora.org> Date: Mon Aug 30 15:00:09 2010 -0400 msm_fb: Add sysfs entry for panel type Add an entry in /sys/class/graphics/fbX so a userspace app can know what type of panel is behind the framebuffer device. For example, X will know if it is an HDMI panel and do any extra steps required for setup. Change-Id: I951041a0613502be1fbfaca3d7ed8b5a10fec3d8 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 444aa5a8324427cc42f7d757ad8eef42b22838c2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 11:37:40 2010 -0600 msm: video: sysfs support for TV out driver and replace old files TV out driver with sysfs support for switching video modes. Merged files for better management of sysfs attributes for TV out Change-Id: I3f71e8f92a3e420762190824265ad4209bd3f42d Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit f91289987a77d8d86199feb34c802dd86c7ce922 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Aug 26 07:47:17 2010 -0700 msm_fb: Add feature support for HDCP protocol. HDCP is designed to protect the transmission of Audiovisual Content between an HDCP Transmitter and an HDCP Receiver.Enable support for HDCP encryption in ADV7520 HDMI chip. Change-Id: I9704f64b9b0df169a0370ff8c5a6e96d8b4ac4b4 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0ef61e3116045dfd3af2d44598b90aa527551a58 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 22:55:16 2010 -0600 msm_fb: add kernel logs for ioctl failures fbtest was causing unidentified ioctl failures; this is helping identifying the cause for those failures Change-Id: Ic3980b2ee27b423f2936a468ef66f725a89fe8df Signed-off-by: Urs Muff <umuff@codeaurora.org> commit dec207bf6bd3c32c1965b07bd53ab7143c058741 Author: Mansi Patel <mansip@codeaurora.org> Date: Thu Jul 22 13:22:44 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HDCP Adding HDCP support Change-Id: I6f6f9a6cd3f3b0ed62973095a5abb91c9fb69583 Signed-off-by: Mansi Patel <mansip@codeaurora.org> commit 815a8e7bf3d8a1064ca2168a29bf98defb604ec2 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 25 02:31:22 2010 -0600 msm_fb: use hdmi common for sysfs entry creation Use the common HDMI functionality for the sysfs API. Change-Id: If42a4408469d262b72884b29fc69da42b8799c8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d7762c1f8c9dce3f410b0db65e78d459549b15cf Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 24 22:16:02 2010 -0600 msm_fb: using hdmi_common to parse EDID make use of common HDMI code to parse the EDID data Change-Id: I312942975067ae1bbfb10958d84e0f1ac2234142 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit e28154c9723ee7d232e7a9aab42a4d24b3390c3d Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 10:01:42 2010 -0600 msm: video: HDMI common code Move common HDMI code into hdmi_common.c so that it can be reused by 7x30 and other HDMI drivers. Change-Id: I41ecc78f9e68e8f80b3ce8da41eb27244e5b101d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4796e2b9f8c47659dca75d3eecd9e4068c5c5403 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 26 10:49:03 2010 -0700 Revert "msm_fb: display: fix mixer stage range out of bound bug" This reverts commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c. Change-Id: Ifc0a3be36b6b1e5c6db4e9c3b7c20671dbe95f71 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f876295641716521afe4b95d35465cde68ddeed Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:40:00 2010 -0700 msm_fb: display: Do not power on DTV at probe which will result in having no power on I2C for 7x30 until panel power on is call. Change-Id: Ifd50d9065432ad3a58764798405d04bdd9128700 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Thu Aug 26 20:08:37 2010 +0530 mdp: Add support for MDP composition for QSD8650A target. CRs-Fixed: 251979 Change-Id: Iba8281ea47b37a024bdd6239835909a90cb2a203 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 01ab957732bb79793d2ec4e7d0da02638a6dc6f9 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 15:07:39 2010 -0600 msm: video: TV encoder kernel driver: Clock fixes Proper error checks while enabling/disabling TV encoder clocks Change-Id: I13d9bec38968bf619f9b6258e4037faa3bb2df1a Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 0d41b4f23142deca25cb6d56a75944ab27ada063 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 14:34:05 2010 -0600 msm: video: ATV support for dynamic mode switching Turn tv encoder on before configuring overlay pipe to get correct resolution for the mode. Change-Id: I77f96633ce91df4658500e2cb7e7679ad0dbdeda Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e519e09063f60200d1397263c02845c639267972 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Aug 6 09:39:22 2010 -0700 msm_fb: display: reduce the delay during power off Do not have to wait for 100ms during power off 16ms is sufficient on 60Hz display. Change-Id: I06fe266de7f3848d2ad43f5837f95dd99c660329 CRs-fixed: 231755 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 6a2e3fc2cc64ae4e1b8ad30614271bd0f4e840bf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 7 15:09:53 2010 -0700 msm_fb: display: Add mipi dsi display panel support Add mipi dsi both video and command mode display support by adding mipi dsi host, mipi dsi client and display panel drivers. Change-Id: I67d6d6881993c021706f07d96b02902c9393f7d9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 730c676384f227032873f5066d78929d3baffdf5 Author: Urs Muff <umuff@codeaurora.org> Date: Sat Jul 24 01:45:52 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HPD Adding HPD and EDID support Supporting dynamic mode switching Change-Id: I95b7488ceffab919f76300f358ca6cdd15820b4a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519f339af23717cf871a12bf2458dba8c07647c9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 13:49:08 2010 -0700 msm_fb: HDMI should be powered ON by user space on HDP detection HDMI/DTV clocks should be enable only when HDMI cable event is detected, to save power. Also resolves the bootup issue with HDMI cable connected. CRs-fixed: 248533,249902 Change-Id: I13d8b2bcb1f17f2d6982636f749fef1e6b26e800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 150e5e7964e7fe4b8e77fe79c6770f6bcf28f239 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Aug 14 14:36:13 2010 -0700 msm_fb: display: reset vsync_handler_pending flag during suspend At both mddi_toshiba_lcd_off/mddi_sharp_lcd_off function call mddi_toshiba_vsync_handler/mddi_sharp_vsync_handler to set vsync_handler_pendign flag to false to avoid suspend process stuck at busy loop and never get out of it at msm_fb_suspend_sub(). This problem prevent resume process from happenning so display stay blank. This also contributes to "MDDI RTD failuer" problem since MDDI was power off and MDDI link is shut donw between MDDI host and client. CRs-fixed: 248624, 244906 Change-Id: I7ab0dc6420d80cda19ad43a4dd2ddbe7318bd698 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a469172a1c5884996d7d4cb66ebf6a8d0dda8d18 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 16:56:10 2010 -0700 msm_fb: Put last frame as black on suspend Put black frame as last frame on suspend on both HDMI panel and primary panel. Change-Id: I1620292c0abe0c81df1acfeffec54a5824175446 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 5455b12c4d410da95dd8a90f9934d494c122bd2c Author: Gopikrishnaiah Anandan <gopikr@codeaurora.org> Date: Mon Aug 9 18:52:09 2010 -0700 msm: vidc: Move 720p video driver into msm folder. Moved the 720p driver files from drivers/misc/vidc to drivers/video/msm/vidc Change-Id: I27cfd2e9258a95e9190ce0fec37fad2265fba8eb Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org> commit 9a72e92e095d14fffc8a31c3b9b1a7747057e253 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 17:10:14 2010 -0700 video: runtime pm annotation for drivers/video/msm/tvenc.c Change-Id: Ic9f6d859fdfc24d08ac27bc2d99898aba4e4bbcd Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 003b979f5e1e519a35b5697d1bf4bd423c4f6582 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:33:55 2010 -0700 video: runtime_pm annotation for drivers/video/msm/mdp.c Change-Id: Ic1531c6d31739a7d81de205692506f272888602d Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 93aba6dccc134cc2b14a0c3c8f18f0f0bc800902 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:20:12 2010 -0700 video: pm_runtime annotation for drivers/video/msm/ebi2_lcd.c Change-Id: I730e13dae48e04a5cc9b11586bd4526378b41e84 Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 17 09:55:18 2010 -0700 msm_fb: display: fix mixer stage range out of bound bug CRs-fixed: 251191 Change-Id: Ied2d51729e78dad6519d00e66e0cbf0d46920599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14d3db274a3eacea5878dd31e7e10927020d230f Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Tue Aug 3 17:40:00 2010 -0700 msm_fb: annotating msm_fb for runtime PM Change-Id: Id1b7ed4f8373b4431e33c8854d71658ebaab68fe Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 5fc970fd24f1d90a2fa371bf7eaf5780c3e310e9 Author: Gregory Bean <gbean@codeaurora.org> Date: Wed Aug 11 15:35:35 2010 -0700 msm: change GPIO_CFG enums to reflect .35 naming. Change the GPIO_CFG enumeration prefix from GPIO_ to GPIO_CFG_ in anticipation of the backport of the msmgpio driver from Google's 2.6.35-wip branch, where the symbols have had their names changed. Change-Id: Ie818d28f86f4c6c92aa052ddb9f594b81f067df0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit d2ebe7626ebab06648f9697515179e11e2c404c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 3 15:20:34 2010 -0700 msm_fb: display: remove DMA_PACK_TIGHT from mdp3.0 and above Change-Id: I853620cca00408b7e8da268e5066bc1393063b3d CRs-fixed: 245392 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2053340fb119a09a105ea110b37d9ae4b5fb08a6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 15 13:03:12 2010 -0700 msm_fb: display: create barrier when writing qseed tables workaround the 1K Boundary AXI Interleave operations from Scorpion that can potentially corrupt the QSEED table. Change-Id: Ia61076cbdb99b95aeb12a9ce4af7fcc12bc9d761 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 51edd49793e8567604efcc7d26376634af27288d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jul 14 10:08:04 2010 -0700 msm_fb: No Suspend/Resume function for DTV interface DTV interface connected device should not go into suspend/resume state for power savings to acheive continous audio playback functionality. CR's fixed: 244994 Change-Id: I69b46e5dc6c96a7138ff57ddaa545d5ba73e00c2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9d6106c7fa05809d972b95dc1834159aec0afeb4 Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 13:54:33 2010 -0700 mddi: annotating mddi for runtime PM Change-Id: I154695f4f9718464830e67e051b9e30f40dc0206 Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 42e1283c5f7d5928097e1d1b349ee8876d322c3d Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 14:06:08 2010 -0700 mddi_ext: annotating mddi_ext for runtime PM Change-Id: I5d53a2bb76e6ad535b55f60320593c7316c23dea Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 2768c4933148c64f318b7411ca3fd95bfc97ae9c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Aug 3 17:06:44 2010 -0700 msm_fb: display: correct pixel clock frequency pixel clk is set to correct value to get 60 fps Change-Id: I77fa24d148be1e1cb8f6b4874ebdd822a766b588 CRs-fixed: 248848 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c5cdaaa58e7b1bd6da45f4ab14caf749a9dc21cf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 30 16:04:45 2010 -0700 msm_fb: display: make TV_OUT is not set by default Make TV_OUT configure is not set at default configure setting to avoid confliction with DTV. Change-Id: I95b51f38ea9fcb3178639a161822880fe370059f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e29c212a71773a732f019b3d73b3c7a8d39dd4ce Author: Michael Burr <mburr@codeaurora.org> Date: Wed Jul 28 11:18:53 2010 -0700 msm_fb: display: cleaned up mdp_blit() to be MDP3.02 clean For MDP30 the tile processing is different and thus we do a different check. Also, 7x27 does NOT have MN scaling and overhang issues in the height so no height splits are required. ONLY split in the width for MDP30. CRs-fixed: 247272 Change-Id: I7bdc7832914eaa80d668fd00851272f162a0e0e9 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 1a9a814f18cdee2ff2b07b18222d5b6f6a0438ef Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver. Setup PHY and TX Core, and adding FB_MSM device. Handle Power on/off events by the controlling panel. HDMI Audio support (2 channel, 48kHz) HDMI SWI debug support (enabled by default until feature complete) MDP-DTV debug support (needs to be enabled) Change-Id: I74cdfe1489f8a981efa7b415f6f7ee0507643fe1 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 86b810f046b0d76146d46ae720dbbdc18fee4d5c Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 15:16:38 2010 -0700 msm_fb: MDP4 Analog TV support Add an RGB pipe as base layer to blend with a VG pipe to carry Analog TV YUV format and put it to tv encoder through dma_e dma engine. CRs-fixed: 241816 Change-Id: I847a7eeafe6f4b1b9977e144374eb3c1a6a2498a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e67ca29a62cac202adbf092efc28e76357d65a69 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jul 26 19:03:27 2010 -0700 msm_fb: Write proper FPGA value to avoid conflict with UART Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI driver to avoid conflict with UART GPIO's selection. CR's fixed: 241467 Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f6d4b96e080e6e3eebcc1f1b2a43e7535f62d377 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:33:45 2010 -0600 msmfb: Allow MDP4 overlays to use GEM objects Expand the MDP4 overlay structures to allow the user to pass in a GEM handle as a source for the overlay display memory. The GEM handle and flags will trigger the driver to query buffer information from KGSL rather then from PMEM. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 0f3a4677bdbb48e2df64de250b789a02167717a9 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:29:58 2010 -0600 msmfb: Allow MDP operations to use GEM handles Expand the MDP structures to allow a GEM handle to be passed in as an option for MDP blit operations. Rather then pulling the buffer information from PMEM, the GEM flags prompt the driver to query the information from KGSL. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 624e9899b6a4362218d5cdd073642fe367552bae Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Jul 20 16:41:23 2010 -0700 msm_fb: Added HPD and EDID feature support in HDMI driver a. Set Interrupt Mask register for catching HPD interrupt. b. Add ISR for HPD Interrupt on HDMI cable detection/removal event. c. Add kobject api's to send uevent to user sapce on HPD interrupt. d. Add timer control to take care of debouncing interrupts. e. Support for configuring framebuffer structure on reading EDID information from sink. Change-Id: Ic96ba3fc785d54bb2a882bff509655335d57165c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2a228e7612135c700d75917a69668942d8910d43 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Jun 16 09:59:15 2010 -0700 msm: vidc: 1080p video driver support for 8660 1080p video driver support is added for 8660 Change-Id: I0e2a491dd32d2a8eeee5d65cd70a7fe4fa719678 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit dea68ae99815fcdeecd98cb2cc60d0505957ebce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 20 10:35:42 2010 -0700 msm_fb: display: reduce pixel clock of display panel Reduce the pixel clock rate from 539900000 to 43192000 to decrease bus access bandwidth and power consumption at LCDC mode. Change-Id: If0cc46b70ebb86aad1efe1cbadeed3cdb67cb38d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cb514d96a5d4d66370e74d3ae98e7cbbf339515e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jul 19 14:06:10 2010 -0700 msm_fb: replace BUG_ON with error message replace BUG_ON call with error message to avoid the crash when incorrect color format is passed. CR's fixed: 246713 Change-Id: Ia5b84330bfc71e27cf09921f8def56da5784c0bf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 345475e974a6281be1b95ac5a060b5177291754a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 6 10:53:22 2010 -0700 msm_fb: display: initialize intv to 0 at first MDDI kickoff Initialize intv variable to 0 at first MDDI kcikoff to prevent mddi_kick_interval become huge number which prevent pan_display from working at first mddi kcikoff. CRs-fixed: 245197 Change-Id: I14d90129cf63988a1d63856527107fcffd4092e7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 51c4ae4090b8a20b243056f1b272a5dde307fe42 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 12:17:38 2010 -0700 msm_fb: Deinterlaing in MDP3.1 is enabled Deinterlaing in the MDP3.1 was not enabled earlier causing this functionality not being observed on this platform. CRs-fixed: 246029 Change-Id: I00a9495314f34f610791c55b6492d6caf96f6548 Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4b9e5b18bf2f97f153546a697d5ec7df5ee92d5e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jun 25 12:35:24 2010 -0700 msm_fb: display: enable irq before kick off histogram enable the irq before kick off the histgram process and disable it once histogram is done. when overlay is used on lcdc mode it is disabling irq after overlay is done so we are missing histogram interrupt handling. Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8b9675df4eb7d98a1709e069846a174edee3b9ae Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: setup DTV overlay polarity for low resolutions. clk_set_rate has to be called before clk_enable. H-Sync and V-Sync polarity are active low for low resolutions. Add mdp_tv_clk for HDMI drivers that need this clock (8x60). Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 781c6b0fbe05c56bda8d15359907d9e583231ee7 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 8 10:22:03 2010 -0700 msm_fb: display: remove spi bit-banging in lcdc lcdc panel drivers are using spi bit-banging and causing a GPIO conflit with MSM SPI controller driver.Hence remove the bit-banging and using the MSM SPI controller for SPI transfer. Change-Id: I37abe848ed5f486ba0a8709512a076421fc58299 CRs-fixed: 220233 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit b8edd675c91c8f6f92a6067356cacf01dff95393 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 11:08:34 2010 -0600 msm_fb: Set the default color depth from the kernel config Make the default color depth for the framebuffer configurable via the kernel config. Default is RGB565, but ARGB8888 and RGBA8888 are available. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 78f720650b1c5400baf067c6e766ef753dfa5b4d Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 10:55:09 2010 -0600 msm_fb: Use varinfo information to choose the proper color config Use the position of the transparent portion of the color information in varinfo to determine if we should use RGBA8888 or ARGB8888 when 32bpp is selected. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 410efd5af5b0a8f230e5c98c64eddac9061d493a Author: Naomi Luis <nluis@codeaurora.org> Date: Thu Jul 1 22:19:23 2010 -0700 msm: Return the correct size for tiled formats The tiled format buffers are 8K aligned. Return the 8K aligned buffer size for the tiled color format. Change-Id: I81d04ec1d7f55ee68c361aaa1c515cc4318e906d Signed-off-by: Naomi Luis <nluis@codeaurora.org> commit 450e38300a07cdb77b3ef36a4e61a3f0f835aba0 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Sat Jun 26 20:37:14 2010 -0700 msm-fb: s/w workaround for MDP3.0 ppp h/w lockup Pulling in the changes of s/w workaround added for MDP3.1 to MDP3.0 CRs-fixed: 242307, 244250 Change-Id: I7c5ecdd8c0e02ea6c1fb2ec3261f81d6c1171f3d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit f55b99553dc3ae09afb816e25cf657cff8e2356e Author: Ravi Bandi <rbandi@codeaurora.org> Date: Wed Jun 23 19:08:28 2010 -0700 msm_fb: Set correct video format for different bpp values Video format is not set properly across 16, 18 and 24bpp formats, due to which colors are not displayed properly. Rectified the issue by using appropriate video format descriptors for these panel types. Change-Id: Id79703b51aa3aceb02d080372a5696d41658f67d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4325aa8038ed6631aa49a272c8951ddd042288d7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 23 13:16:47 2010 -0700 msm_fb: Shutdown HDMI clock on dtv off. Disabling HDMI clock while dtv interface is off. Change-Id: Ib060580a79572d646b98687f4577f665ca5fdc0e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ee61d7178de4c8f986ae33ec5813ed34bac0a3e3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jun 14 18:32:01 2010 -0700 msm_fb: Enable Audio settings for ADV7520 HDMI chip Configure ADV7520 HDMI chip for dual channel audio through I2S inerface. Change-Id: I916acfc38fe497b54ce5147a07a700f57b305a4b Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f29603084ab9ae536eccdf741533e39fe6cae746 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 15 11:56:03 2010 -0700 msm: Add framebuffer read and write support in rotator driver Rotator driver can only read or write to PMEM. To read or write to framebuffer, we change MDP driver to provide framebuffer physical address information. This change is required so that we avoid copy of framebuffer in PMEM for rotation. The rotated buffer is then used to push on overlay engine. Change-Id: I17322fa77bb05f36f70ac0c225299614dd607fe9 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 4e2da5926dc4b904dcfa930219c4bc1a1e2f6233 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 17 15:57:43 2010 -0700 msm_fb: display: add HDMI mirror support Allow VG pipe can be shared by both RGB and YUV format (video). YUV format (video) have higher priority than RGB format during overlay play so that RGB format can be preemepted by YUV format during VG pipe sharing. Change-Id: Ie9bf1beb28095e157f5be4a573fc541780a54e09 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5eef0fe4e1eb1150166233425f42b05d307962b4 Author: Kuogee Hsieh khsieh <khsieh@codeaurora.org> Date: Fri Apr 9 16:05:28 2010 -0700 msm_fb: display: enable software vsync to prevent display from tearing Enable software vsync and adjust frequence of MDDI display panel to prevent tearing from happening. Also add vsync can be enabled/disabled from mdp4 debugfs. CRs-fixed: 221821, 227518, 241791 Change-Id: I482980ce1d12b083745e74aad1248a66b33d4cb8 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit b1703457d0b166d30fbea0ee1147cc8bbcf478e6 Author: Derek Kulinski <dkulinsk@codeaurora.org> Date: Wed Jun 2 15:34:26 2010 -0700 msm_fb: proper order of IRQ operations for ST1.5 Ensure interrupt is requested before it's enabled during panel-on processing. Disable the interrupt before adding fb device to avoid panel-on enabling it a second time. Change-Id: I38c16c4d2fd3a2aa1e8ab4589980dd8e753f9ed5 Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org> commit 4c018c787d601ad9beadaf8ada3b2dba8c5f8e82 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 11 11:26:06 2010 -0700 msm_fb: display: fix MDDI NULL function pointer bug Check function pointer before call it during parser received reverse MDDI packets. CRs-fixed: 239194 Change-Id: Ia4d371f4f4d1500b227ee6361dc5b81087e9735c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14abca9a4a199a325690aed620aa0adc659f6d86 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 9 17:27:31 2010 -0700 msm_fb: display: change fb state to FBINFO_STATE_RUNNING In msm_fb_resume, changed the fb state to FBINFO_STATE_RUNNING instead of a magic number 1 (SUSPEND) after resume. In addition, change all the magic numbers to macros in suspend as well. Change-Id: I5a854293a3577522c559fd90a2dbc84a06072097 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 91277807c75b4ed9844441da31d9a49c990c1334 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 4 08:19:58 2010 -0700 msm_fb: display: Add FB_MSM_OVERLAY dependency Add FB_MSM_OVERLAY dependency to FB_MSM_HDMI_ADV7520_PANEL to fix compiler error when FB_MSM_OVERLAY is not defined. CRs-fixed: 240734 Change-Id: I948b2b198f69ada3dfb2eb4903363230a48935aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a54aac47e202993920fae8e9297e6bf59221b765 Author: Ajay Dudani <adudani@codeaurora.org> Date: Wed Jun 2 18:40:14 2010 -0700 msm_fb: Add ST1.5 LCDC driver Change-Id: Ia592bed81e316118f4c301ad59931fb9502ce49e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 2c970e38fe13d77a00323897ac62a15423996329 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Tue Jun 1 13:28:42 2010 -0700 msm_fb: make 8660 backlight work with new pwm api The pwm api changed to use a callback function in the board file and to specify the pwm duty cycle and period in terms of usecs instead on nsecs. Update the 8660 display to work with it. Change-Id: Idfc67a88261ac099c50214d61ac55dbc0311d405 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 8bbb084294c576722b05e5d941528f5cf129bffd Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Wed Apr 14 12:42:37 2010 -0700 msm: display: backlight intensity Update the panel driver to handle backlight intensity calls using pmic's pwm channels. Change-Id: I3c63588e5244748da5461e43f7f0831ddf635c5c Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit d4ac1bbc8a7a10d457f5809728a481656a64da3b Author: Steve Muckle <smuckle@codeaurora.org> Date: Wed May 12 22:43:25 2010 -0700 video: msm: remove suspend_late, resume_early initializations The platform_driver struct does not have suspend_late or resume_early data members. Change-Id: Ice92977de598fd4bad6f607a8b1e1fc97e03b826 Signed-off-by: Steve Muckle <smuckle@codeaurora.org> commit f95c6bd8c07d38466c51d2c245aeaac3aac189d8 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:11:55 2010 -0700 msm_fb: display: Add panel driver for wsvga display Add code for the Samsung's wsvga panel (part number LTS480WS-C01). It has a resolution of 1024 x 600 pixels, runs over an LVDS interface and accepts RGB666 pixel data. Change-Id: I399a0c08257a645fe205d5f3cb766e7dfbf20121 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 404c2879aa60104da586011fc5504163cc5143b4 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:48:49 2010 -0700 msm_fb: display: set mdp core clock rate from the board file Rather than hard-coding core clock's rate, set it to a value passed from the board file. If it isn't set then the mdp core clock was not meant to be set with a rate on that board. Change-Id: Ic7ca1b830a8b1bf4bedb9449e58b7f4b58424019 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3224f712002dbf029fab77d9c848de3a01bde9d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 25 09:17:49 2010 -0700 Revert "msm_fb: display: add zorder check during overlay_set" This reverts commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42. Change-Id: I1ce7311f326a99b738d32055f98879754e5b25b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4fa05a83d4bcc394d536cd2490c3c95e74f5fb11 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 24 09:04:24 2010 -0700 msm_fb: display: retransmit set_backlight pmapp rpc request Re-transmit set_backlight pmapp rpc request in case of rpc failed. Change-Id: I2ed01bd7ec40da313a75d441a438491a13a875a7 CRs-fixed: 236277 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 14:25:57 2010 -0700 msm_fb: display: add zorder check during overlay_set Add zorder check to avoid same zorder using by multiple overlay pipes. CRs-fixed: 232438 Change-Id: Ia6e66aba70f01a9b77ac6f2e1c565cc16496e613 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 795d1b324ee9052b0d4ee96771bc87bf61088fce Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 17:03:53 2010 -0700 msm_fb: lcdc: Add support for clocks on 8660 8660 has different clocks than older platforms. Update lcdc to handle 8660 clocks as well as the older clocks. Change-Id: I0b57a525205af448207a1500e23910e5c13c3738 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3ca6eef9dff1c435fc48d51bbd71edc71f7b0c0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 14 15:05:42 2010 -0700 msm_fb: display: Fix calculating brightness duty level Calculate the brightness duty level based on the maximum brightness level supported by the panel rather than from a constant value. Change-Id: I4c8d371a59e38c084bddeaa827c3982b47bbc7ee Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 347a643f440b0ba370830d54cb85966df18d7023 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Thu May 13 18:23:59 2010 -0700 msm_fb: Fallback to correct clock The tv_src clock should fallback to the TV_ENC clock and not the TV_DAC clock. This was already fixed in the devices.c table but wasn't fixed in the driver. Change-Id: I9dbf17d9123d25142e8123b54b1c5856482b087b Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dc34a27a27d726d98b34046c9fa5175322d794ba Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 10:21:54 2010 -0700 msm_fb: display: initialize op_mode at every overlay play Re-initilize op_mode to have it update with new value according to new overlay play's configuration Change-Id: I7ee2489a93efa72e691746037bdf853d862a023b CRs-fixed: 230612 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-01-11 01:19:01 +01:00
#define DEVCAP_VAL_ADOPTER_ID_H (uint8_t)(SILICON_IMAGE_ADOPTER_ID >> 8)
#define DEVCAP_VAL_ADOPTER_ID_L (uint8_t)(SILICON_IMAGE_ADOPTER_ID & 0xFF)
#define DEVCAP_VAL_VID_LINK_MODE (MHL_DEV_VID_LINK_SUPPRGB444 |\
MHL_DEV_VID_LINK_SUPP_ISLANDS)
msm: fb: Replace with QuIC framebuffer driver This adds support for more recent MSM chips. Including the following commits: commit 5822924ac43b56586fbe0ddb720400624e70e111 Author: Ping Li <quicpingli@codeaurora.org> Date: Fri Nov 30 14:05:43 2012 -0500 msm: display: Add picture adjustment support for SSPP side Add picture adjustment structure input for overlay PP configuration, user can change PA setting via overlay set IOCTL Change-Id: I3b4679991ad4527565809e291fb13a73fbda2181 Signed-off-by: Ping Li <quicpingli@codeaurora.org> commit 486846820740c2cafea0c06442a3440ecb70b4d3 Author: Pawan Kumar <pavaku@codeaurora.org> Date: Fri Dec 21 16:55:24 2012 +0530 msm-fb: v4l2: Add user pointer support using ION for mdp3 target -Add multi-planar user pointer support in msm v4l2 display driver using multiple ION fd's (2 fd's in case of mdp3). -Handle multi-buffer use case using memory offset along with ION fd to calculate physical address. Change-Id: I1352512cbdfb9cf2c9fc20968416d369337e433b Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 5e4ba471fa7b26de394c3836b309c20c4082c19a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Nov 19 19:37:12 2012 -0800 msm_fb: display: Send current timestamp in case of timeout On timeout while waiting for the vsync, send the current timestamp to the userspace. This resolves the infinite wait seen during the bootup as SF will use this time stamp reconfigure the vsync. CRs-Fixed: 420244 Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 14547efa9af6eecb83243148b02cc1e0ea789202 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Dec 12 17:49:04 2012 -0500 msm: mdss: cache panel setting in suspend state Save panel on/off setting in suspend status to be used when resume, return success as a temp workaround. Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit c7966734d6fbdf5e542eb0349939cc02b0082143 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Dec 21 23:12:05 2012 -0500 msm: mdss: power setting protection When mdss is in resume process, other operation needs wait until it is done. Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 86ac956a061a1ea1e2c11214a1adebbe32511c42 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Dec 13 18:57:27 2012 -0500 msm: mdss: Clear performance request data at turning on MDSS needs re-request bus and clock when resuming, clear the cached related data, as they do not reflect the hardware status. Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 4e83b93ca279b21f0ab1e07fdee52ea41f2474f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Dec 2 21:15:47 2012 -0500 msm: mdss: Non-blocking display commit Schedule a workqueue, do the current job in the workqueue handler. Block the second entry if the first one has not finished Display commit ioctl will do what pan_display can do, addtionally has customized setting, such as non-blocking call Change-Id: Iccced7d7540c6a8bb066f58fa245bbff5ed36fcb Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 5295d8001001ceebc6392a42f3055c6c5188958d Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Nov 7 18:33:16 2012 -0500 msm: mdss: sync point support MSMFB_BUFFER_SYNC ioctl is added for hwc to pass in buffer fence, driver creates release fence and return to hwc. Before display update, driver waits for the fence to be signaled. Signal the release fence after update is done. Change-Id: I3d8cd5e8df1f0415832507d19cf629f4c0432164 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 1c374a84fd75e436d6a61c326fb055091b3d51e0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Dec 17 16:29:03 2012 -0800 msm: 8974: add MHL device discovery flag This change stores a static flag for keeping MHL device discovery and makes the driver flexible to function in either one of the modes. It would be very simple to make this dynamically configurable through boot param or module param. Change-Id: If3915c5861e61bc572a9b4e239a6133e5e9a138b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fcc33cdd9c2eccdcdde19e2b09d6eb3b01a783cb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 18 09:40:25 2012 -0800 msm_fb: display: add panel's late_init Some panels need to be initialized after panel is on. Add late_init to support this feature. CRs-fixed: 433011 Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbdfa637adf603082676a428f80f1260d3400b3d Author: Pawan Kumar <pavaku@codeaurora.org> Date: Mon Dec 17 09:47:16 2012 +0530 msm-fb: Fix sysfs node creation in mdp_probe for MDP3 targets -vsync_init null check not required for mdp3 target before creating sysfs node. -Set vsync suspend and resume flags appropriately in mdp_on for mdp3. CRs-Fixed: 393243 Change-Id: I3366df7385ca8e2ae15053c3e58332f8e32ce0cd Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 9f2514f819eced19b0880735d5d62727808ce30c Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:23:11 2012 -0800 mhl: 8974: notify usb about non-mhl sink discovery On cable connect, USB driver triggers MHL's device discovery through an API. This device discovery should inform caller if the device is MHL or USB host mode connection since both hold ID line low. If SII 8334 Tx discovery routine returns a result of non-mhl then MHL driver should notify usb of this result else usb will not be able to proceed further with it's worker functions and state machine. Change-Id: Ie20e0dd517a191ed6df75050042bdcb0ebd01233 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f45159b358add9d3bc955dce2cce5ef62a7a75fd Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:22:08 2012 -0800 msm: 8974: MHL set 3V reg. for the 8334 hs switch Allocate regulator from MHL driver for 3.3V which is required for the high speed switch to function and toggle between usb host mode and mhl mode Change-Id: I87a9db951ff004d0a10caa390723eefddfc0db5e Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 530a5227212b62d05732f4393cf06903b4646c6d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:20:34 2012 -0800 msm: 8974: disable mhl device disc This discovery mechanism puts the device in complete sleep mode (D3) while leaving the device discovery disabled, and wakes up when USB driver calls the device discovery API from D3 mode by resetting the chip. Change-Id: I7db8dd86c54285a4903c582ae35f6c9d4329ec48 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 80822c3dde2e63bcdb0490426b05105252572814 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:18:07 2012 -0800 msm: 8974: Add intermediate power state for MHL MHL has three power states, D3 - low power sleep, D0 - high power MHL state, D2 - intermediate stage which powers up the chip but doesn't activate the MHL/TMDS lines. Change-Id: I9282a32724e0ac4f7c23233f4bfba97f548d7ac9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit affabcd25a6b74ec95350ad36ccec5b522e8dc5d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:15:29 2012 -0800 msm: 8974: Set MHL Tx configuration to USB state All the ID lines, D+/D- lines are configured to USB by default in this change. All the USB interrutps will be routed directly to USB, which will trigger interrupts in the USB driver. All events on ID line are handled by USB, even in the presence of MHL, USB driver triggers the device detection mechanism through established APIs. Change-Id: I7e70965cf46dfa5734918b2e21db5a162c570706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 388c2a9db377945aefa85f06fa31dc8ac0ea9cef Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 14:01:47 2012 -0800 video: msm: Handle timed-out histogram When the histogram collection times out (usually caused by an underrun) the hardware does not trigger a histogram done interrupt. In fact, the histogram hardware returns to its idle state after the next frame starts to draw. Thus, in the case where histogram times out waiting, changing the software state to HIST_IDLE allows histogram collection to continue. Change-Id: Ideb431209067c7d7e5a2bb94a7352ad90dd46e50 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5240a97a72f320b927ffc6230a6f4f1443979acd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 3 15:52:38 2012 -0800 video: msm: Trigger no update notify on suspend Suspend is a special case in the update notify feature in that it is a known state of no upcoming updates. Cause those waiting for a "no update" notification to wake up. Change-Id: Ie415d6c8da36d9871ed1dffad095529a20ebdf88 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c9021777f4efbbe9dcb9293f54a0dc912e87e5fe Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 16:48:18 2012 -0800 video: msm: Initialize Histogram LUT Initialize the Histogram LUT during MDP probe. This is required otherwise the first histogram LUT request shows a brief period of garbled colors. Change-Id: I60b3077883d0f57dfe3987d7b459477a43da09a5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 004d4a2d2bd81fc8e147f0dadec2d8792e176d80 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 12:46:10 2012 -0800 msm: mdss: hdmi: Add support for new HDMI-Audio interface Using this new interface, HDMI-Audio codec driver can retrieve sink's audio capabilities. Based on this supported capabilities and current playback clip, it will pass appropriate audio setup information to HDMI driver for configuration. Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit b554cf695636e15504cdce72cbfe35bf89494c0a Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 27 21:27:38 2012 -0800 msm: 8974: MHL-USB handshake API implementation This change adds the implementation of mhl discovery detection procedure, USB hand-off function. Three APIs are exposed from MHL driver to USB driver: for register/unregistering callbacks from USB and triggering device discovery detection in MHL hardware. By default, all the USB interrupts are directed to the USB hardware which is detected by USB driver and at appropriate points the USB driver triggers the MHL device discovery and uses the results to either hand control to MHL driver or continue with it's own detection mechanism. Change-Id: Ic1e22bc4c446de209f2e72d5dda8b823bfd398c8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5feb9b23208394f5261b330adec2cfb475706c43 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 12 18:18:19 2012 -0800 mdss: hdmi: Use delayed work instead of timer for HDCP reauth Upon detecting HDCP authentication failures, reauthentication attempts should be kicked off after a small delay. Instead of using kernel timers, this is achieved by having the existing HDCP work item as a delayed work. Change-Id: I7d04b33b159c718cd347576d18cffd1b705bb790 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 3aafea1d26621d712790742f2bcc70bf7bf374ab Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Dec 13 17:43:43 2012 -0800 mdss: hdmi: Correct HDMI Tx controller settings for DVI mode When a connected sink is operating in DVI mode, the HDMI Tx controller should also be programmed accordingly to operate in DVI mode. Change-Id: I63176b55be86a0fe73b23880fc1d45f7a2272d32 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0f685f270692aeb54b8eed0df5e37897d77f6c7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 12:52:18 2012 -0800 mdss: hdmi: Fix suspend/resume watchdog crash during HDMI mirroring During device suspend, HDMI driver holds MDSS suspend context until audio is turned off. Continuous polling for audio off results in unnecessary delay in MDSS suspend as well as watchdog crash. To fix this enable/disable MDSS GDSC regulator during HDMI hpd on/off. This will make HDMI independent of MDSS module in terms of register accesses. Also increase the sleep time between consecutive poll reads in order to prevent watchdog crash. CRs-Fixed: 425536 Change-Id: I7969f0ed8bcce4a356ee6a1e29ed2af76dd345ef Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 38e405e9ce2c9723a633ad75d6c498dd178d3e4a Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 11 14:19:04 2012 -0800 msm_fb: display: wait for a vsync time before dtv_off At DTV interface, wait for a vsync time to make sure previous stage_commit had been kicked in before un-stage pipes and turn off timing generator. Otherwise iommu page fault may happen after RGB2 allocated to mixer0 due to RGB2 pipe still hold previous source address. Change-Id: I6b8bb1429b863886601ebb64b7c73771bee86764 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6d260d9645b5032b41d14b8e7d14ec12af24cd1a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Nov 1 18:09:06 2012 -0700 mdss: HDMI: HDCP Implementation Implement HDCP (High-bandwidth Digital Content Protection) feature which is used to encrypt audiovisual content transmitted over the HDMI link. Change-Id: I6ab92585f979d796d1a40c0ff86d4e7363506b6a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f9ef2416165fa7cc4230fd1fad7ecd0cc9c1be3 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 16:30:18 2012 -0800 msm: mdss: Fix porch value assignments based on VESA standard Panel driver's porch value representation is similar to VESA standard but framebuffer API's representation is different. Correct this conversion from one representation to other. Change-Id: I1fdc7e664de99a5ad646beef2e74f7066a00c2e0 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit ad43bed51e95782097e68840673b8abf2d096058 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 16 16:08:00 2012 -0700 msm: mdss: enable border fill setup Border fill setup can be used to unset MDP pipes allocated for framebuffer replacing it with border color fill instead of contents fetched from memory. These pipes can then be used as overlays by userspace apps. Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0d62d721aaa6ea760e4d54076aa782352dca13a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:56:06 2012 -0700 msm: mdss: change smp blocks allocation based on fetch width Currently the ammount of shared memory pool blocks allocated for fetching latency lines is based on the full stride of image. There are cases where only a small part of the image is fetched, smp blocks should be allocated to acommodate the fetched width only, and free some memory to be used by other surfaces. Change-Id: Idaa7fbc583a2c4a5166f9e05010a0ae2ff56747a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d27afb2e7eae9d8049f11094b686c513dbc7eed4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:58:59 2012 -0800 msm: mdss: add timeout when waiting for vsync To avoid any possible freezes while waiting for vsync, add a timeout while waiting for vsync interrupt and report a visible warning. CRs-Fixed: 428821 Change-Id: I328ac05b98741fc77eb424c313a3b3afb3e206d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d691c2352dca906061899dac24bd21fc2ce91e6b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:48:12 2012 -0800 msm: mdss: remove wait for ping pong done for video interfaces Wait for ping pong was used to ensure that hw is idle while programming any double buffered registers, however most registers that really are changing are double buffered. Remove for ping pong done as it's only causing frame drops and some freezes in some cases. CRs-Fixed: 428821, 426136 Change-Id: Iafebebab7faf0efcb1b3f6a8d2723d67a93d5cd9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 26 12:44:26 2012 +0530 msm_fb: hdmi: HDMI suspend resume event handling This change makes sure that we do the proper HDMI ON settings at resume and also send the events to user-space about current status of HPD after resume. CRs-Fixed: 422372 Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 598d1170a005fd7b8b746e3e3d262635047a85b5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Dec 10 17:06:20 2012 -0800 msm: mdss: update bus bw calculations to account for is_fg flag Overlay flag is_fg is used to disabling fetching of buffers for a layer and all previous blending stages. Need to consider this as part of bus bandwidth calculations and only request bandwidth for layers that are going to be fetched by MDP. CRs-Fixed: 425643 Change-Id: Ie964f5e4ac77945ea6f84a47d337591ddfa1721c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d0bf99c8cbbbb43ad5bb1c426efc7d8004f6bf6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 16:37:01 2012 -0800 msm_fb: display: fix frame rate wrong calculation For cmd mode the frame rate calculation result is wrong. Also in mdp driver there are several places to do the same calculation. So fix the wrong calculation and use a single func to do calculation. Change-Id: Iab498fb446a1d9b8295d710ffa82618d2ab6fc07 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 14:04:00 2012 -0800 msm_fb: display: add wfd clk ctrl in pipe_commit mdp_clk_ctrl on is not called when commit is from overlay commit path which can cause mdp hang. mdp_clk_ctrl off should be after mdp overlay2 is done, so schedule a work in overlay2 done isr. Change-Id: I94fd08da27cfda114f5cc0056a5103f0a9b772f6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8a9762e653e6f43fd361b3ccd632a1a78c1ab6fa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Dec 7 20:23:53 2012 -0800 msm_fb: display: add mdp bandwidth runtime calculation Currently mdp bandwidth request logic is based on source image size and number of layers. This logic can not support complicated mdp usecases and it is not power efficient. The logic is improved by calculating mdp bandwidth request at runtime from all pipes and mixers. CRs-fixed: 425823 Change-Id: I63206f00f8d3017a2449f8ac617fce3ba2a4d36c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 474f8d7fdffb8405676455cfbfaebc14d067862e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 10 10:14:49 2012 -0700 msm_fb: display: replace cmds_tx/rx with cmdlist_put/get Both dcs command and mdp pixel stream share dsi link. Dsi link confliction may cause mdp to hang up. cmdlist mechanism is introduced to serialize both dcs commands and mdp pixel stream. This patch replaces legacy cmds_tx/rx with cmdlist_put/get. Change-Id: Idfecd196d6efa281fc2c319be4ee3e76b8d49136 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d43ae7260e1b79b9930036347ce568c176420287 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 18:06:56 2012 -0800 msm: mdss: hdmi: Add support for new resolutions Add support for following new resolutions. * 2560x1600 @ 60Hz (DVI) * 3840x2160 @ 30Hz (HDMI) * 3840x2160 @ 25Hz (HDMI) * 3840x2160 @ 24Hz (HDMI) * 4096x2160 @ 24Hz (HDMI) Change-Id: I14262448fea80615c6c77b4638b0a9815efc3297 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 793bd7b68f7ab5e2899b977293cfb67157493c77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Dec 7 14:25:47 2012 -0800 mdss: hdmi: Correct configuration for DDC ref timer This change updates the (Display Data Channel) DDC reference timer in mdss domain to the optimal value which is calculated based on the correct HDMI application clock frequency. Change-Id: I0b9f32f2fb0f16cf79bca86e270039c8cf90ed94 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 248dda2a1cacae6035fcd926a97fc8849229afce Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Oct 29 11:27:15 2012 -0700 msm_fb: display: Removing extra disable irq in cmds_rx API's Disable IRQ for DSI_CMD_TERM was already called in the isr. Removing the extra call present in the cmds_rx API's. Change-Id: I0000dd3166beb2a3b0c788327e1d7520e0c11a13 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9b697535117c56cd385a0b71411e05e62776e6f5 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:53:35 2012 -0800 msm: mdss: hdmi: Add support for dynamic resolution change Using new panel event, provide facility to check if HDMI can support requested resolution or not. Also if resolution change is requested while HDMI mirroring is ongoing then current mirroring needs to be shutdown and start again. Propogate this message to mdss using new panel event, MDSS_EVENT_CHECK_PARAMS. Change-Id: I87aed1b37b532724b6663509aa020b1008abfdcc Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bc2796befca2fa535952ced7c85f7221e3dac0b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 28 18:41:33 2012 -0800 msm: mdss: support panel resolution changes Allow framebuffer resolution changes to be propagated to panel driver to support different display resolutions. Use a new panel event so that panel driver can take the decision of accepting new params. Change-Id: I04b26cbb4d06a3cbc9c4416fbb7202bb185eee9b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0d7257935376fdc7293a0b9ddf1d2f8056fec201 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:16:03 2012 -0800 msm: mdss: cleanup usage of panel info Panel info is used to communicate between panel, mdp and framebuffer. Currently framebuffer maintains its own copy of panel_info which might cause mismatches on the latest information from panel. Change framebuffer panel_info to be a pointer to information provided by panel driver. Change-Id: Ic7ae27564d98d6b6843d1368481dda0601befccf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit cc13101bd21479dec3a629d93655bcf62462b0ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Dec 3 15:36:14 2012 -0800 msm_fb: display: delete dsi clock control from cmdlist_commit cmdlist_commit perform dsi clock control which turns off dsi clock unexpectly when dsi controller is configured as command mode during booting up. This cause display panel can not be lit up. This patch drop clock control mechanism from cmdlist_commit and move dsi clock control mechanism to caller. Change-Id: I1882ea3ee1c90ac5d76958c986740582929a5e3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 946ca6389b8f8c70b62a2f1ab4d81b475395f7d8 Author: Prasad Sodagudi <psodagud@codeaurora.org> Date: Mon Dec 3 16:57:51 2012 +0530 video: msm: Do not use disable_irq in the spin_lock_irqsave context Both mdp_isr() and mdp_histogram_disable() uses the same spin lock mdp_spin_lock variable. One core waits for disabling mdp_isr after acquiring mdp_spin_lock and other core in mdp_isr() waits for spin lock mdp_spin_lock and dead lock between two cores. Change-Id: I73a10494ab78e92fc88a348aed4f526091b51f89 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> commit 889748cb28feb2d88ee74c7c3ce29409b857ea23 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 19 16:23:58 2012 -0800 msm: mdss: hdmi: Add dimension overflow check for video resolutions MDSS based HDMI Tx controller can output 13bit h_total and v_total compare to 12bit wide from previous generation chipsets. Add overflow check to insure that controller is not programmed for incorrect dimension. Change-Id: I6c3906020da6f4aad3f1fcf8a5633731515a7569 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 554c0755b48b77e463b7ede2a1b74abf41120370 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Dec 4 11:12:04 2012 +0200 msm: mdss: Fix the order of enable/disable edp clock functions Being compatible with the required enable/disable of msm clk sequence. Change-Id: I179685a5bb4c0d7e6f4b84e18f0749b416f5e2ba Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 137dfdf8781f41270dd6ff10242c082940300e75 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:20:49 2012 -0800 msm: mdss: remove pm suspend handler All suspend calls are handled through early suspend, using pm suspend/resume as well can lead to HDMI being resumed before MDSS regulator is enabled, leading to HDMI hang during resume. Remove pm suspend handler completely since it's not needed. CRs-Fixed: 425657 Change-Id: I0b9d072037dfdceef90d24fba50813390191f4e0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 32547051b65943bd1c07c08630528741fdcfdda4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 30 18:00:16 2012 -0800 msm: mdss: fix iommu fault due to incorrect buffer unmap Any buffer that is being fetched by MDP to display on panel should not be unmapped until there is a new buffer to replace it. Ensure multiple buffer updates without a commit to display won't cause displayed buffer to be unmapped. CRs-Fixed: 420561 Change-Id: Ibe720976024d7739c36bd4f05f9f70a061ed1eb9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cda3246cba44c0756c2038f0fea34858e72f8555 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 10:47:46 2012 -0700 msm: mdss: enable display debugging through debugfs Register debugfs nodes to allow dumping and writing of MDP and DSI registers for debugging purposes. Change-Id: I14d9a7f441292eef5564144707184dfa5da75d85 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 63e30558ba162cae303f7ae655b0ab61f4253005 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 9 10:04:20 2012 -0800 msm_fb: display: mdp4 version assigned at board file Currently, mdp version is acquired by reading mdp version register. This patch use mdp version from board file instead of reading from mdp register. Change-Id: If71be4f28caa45beea58789ca1025a338eb64de5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8e389593cd695957834a2de6db769264c0237a9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 15:56:25 2012 -0800 msm_fb: display: add mdp blt mode and switch control Switching mdp blt mode is done in isr or by turning on/off timing generator. Add other options: by polling, always-on or always-off. And add support for external dtv blt mode. CRs-fixed: 390953 Change-Id: I5e9f52fc459a34cc99a0f71c04b8320edd821ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4eb6ce68540cb523348d624b7193518fdd970898 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 16 11:52:15 2012 -0800 msm_fb: display: Do not use ION_IOMMU_UNMAP_DELAYED Since iommu buffer will be un-mapped after two newer commits had passed, there is no need to request iommu driver to further delay un-mapping an iommu buffer. Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d5e1c57b4a6d2d25c5ce04923205073fafa3898 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Oct 30 14:59:26 2012 -0700 msm_fb: HDMI: Cleanup of HDMI switch device notifications HDMI switch device is used to notify userspace components of the availabilty of a connected HDMI sink. These notification should only be sent whenever HDMI cable is connected or disconnected. This patch removes all the redundant notifications. CRs-Fixed: 412575 Change-Id: Ia5e60690a87569fce5d61a9af75d446648443e9b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit f3472aede02906f6e213a5a8459ca4e6f84b17d6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 15:34:44 2012 -0700 msm_fb: HDMI: Turn on HDMI core only for supported resolution Upon receiving the notification of an HDMI cable connection, turn on HDMI core only if the default video resolution is supported by the sink. Otherwise, HDMI core would be turned on at a later time when it is configured with a supported resolution by the userspace. CRs-Fixed: 412575 Change-Id: I67cfb09bafa39646839877a66cd94f193c127a76 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit cdc118275788b10175f34560470d8afedc5255eb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 12 14:56:43 2012 -0800 msm: mdss: replace uevent based hw vsync events with sysfs poll Replace hw vsync ctrl logic with ability to read vsync timestamps through sysfs file when vsync ctrl is enabled from userspace. CRs-Fixed: 407684 Change-Id: I0fb973592090ed9ee81bc3d54f53a18f4c131e0f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit edf70c335df7938a1e181286f8165250491884de Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Oct 26 18:11:23 2012 -0700 msm_fb: HDMI: Add support for HDMI audio switch device node Add support for audio switch node in the HDMI driver that would be used to notify audio userspace components of the availability of an HDMI device. CRs-Fixed: 412575 Change-Id: Idc41caf234810db52af9fcc89d2ed4ecbcaafc3b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ae93bc59e2fc68591b76d3911ed6c29537efe949 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 14:32:41 2012 -0700 msm_fb: HDMI: Cleanup HDMI audio off sequence HDMI core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI core. This change increases the time for which the driver waits for the audio engine to turn off. CRs-Fixed: 412575 Change-Id: Ie11ab6c8140f7289f74da4877c9acf9b8cd4a838 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e3ddd1499da99d52222f6d3dd031901082e8338a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 7 18:27:23 2012 -0800 msm_fb: dtv: Serve device off in a separate thread DTV device should not be powered down until the audio engine has shutdown. This change moves dtv audio off sequence to a separate thread so that framebuffer close system call does not get blocked. CRs-Fixed: 412575 Change-Id: I246a9e58f1367e653913773696510f375abf3d3a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 99a86cc6d78227ff566aefdfd83c195277bde02b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:49:30 2012 -0800 msm: mdss: Add suspend resume support in HDMI Tx controller For primary display panels, usually power off/on during suspend/resume should suffice. But for external display panels like HDMI TVs, there is an additional hw circuitry for hot-plug detect which also needs to be turned off/on based on the state when suspend/resume is initiated. This change adds such support in HDMI Tx driver. CRs-Fixed: 413722 Change-Id: I7640d13c08f86f1ae0ae13cb2d1411f0354ca3fe Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c183e1a69eeac2348a6e2a5ac92aaf1fef0fa828 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 16 18:22:02 2012 +0530 msm_fb: commit mixer stage for WFD during unset Interfaces with Borderfill pipe as base layer needs to be commited during unset which will reset the mixer cfg structure. This is needed because overlay_commit will not call stage commit as there is no buffer queued. Change-Id: Ib3347e52ae437b20d5a85a09777f13aee2672edb Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 36f267e093320a0f3b54887d0091d7d811e76d2a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Nov 20 10:41:54 2012 -0800 msm: mdss: enable secure content display In order to display secure content, secure buffers must be mapped to secured MDP context bank. Split current single IOMMU domain into secure and unsecure domains and check overlay flags to find out if content should be mapped to secure or unsecure domain. Change-Id: I510c253920b03cacf85085cb394f5281143e38e6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f270decc6b4cfd38070e4e867f01f043fbee3ea8 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Oct 12 20:51:47 2012 +0530 msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 17e116a8ba55957248cf799de54997cf249e14c2 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Nov 6 15:28:07 2012 +0530 msm_fb: display: Fix blend configuration for command mode panels For command mode panels, blend registers does not get configured as per the use case. This leads to incorrect blending of layers resulting in lower layers (eg. wallpaper or buttons in video playback) to show above the upper ones, making overall user experience to go bad. In order to resolve the issue, blend registers are now configured properly by as per the use case. CRs-Fixed: 410029 CRs-Fixed: 415553 Change-Id: Ibe7d594e0ad6a6f4d75ed2e59c7382c09b65d624 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b2c1661ac99c7b6821f702c810256dbaafbf7ec8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 22:28:23 2012 -0800 msm: mdss: release rotator sessions when all panels are suspended When all panels are suspended MDP will be shutdown, need to ensure that all rotator sessions are finished and properly closed to avoid access to MDP hw. CRs-Fixed: 409234 Change-Id: Ic1d95365a28c453ec8779d9c482a885857bf6912 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit eac7d2bb7d29f731840e96271268c545d0fe011c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Nov 14 21:53:34 2012 -0800 msm: mdss: hdmi: Replace of_get_gpio usage with of_get_named_gpio HDMI Tx driver parses platform gpio data based on index, using of_get_gpio api. Replace this index based lookup with name based lookup, using of_get_named_gpio api. Change-Id: Ic65aae1583c8c6f852c31fd454ac651fc6c8b907 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0791142a3e45f62ad674de0fff2437e4c58a4681 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:12:43 2012 -0800 msm: mdss: add proper locking during suspend/resume operations Add locking mechanism to properly syncrhonize user space frame updates with suspend/resume operations. This should avoid some cases in which suspend operations will complete while frame update hasn't finished, leading to unwanted behavior. Change-Id: I4b254a6a547320199a6da722ef99563696686a20 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bb08a42611e6149d0950d94126fa1143e53b8e9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 16:51:27 2012 -0800 msm: mdss: replace panel function pointers with single event handler There are many events in MDP that are important to acommodate the needs of different panel drivers, currently these events are propagated with function pointers. However as more use cases come into picture the ammount of events has increased, and not all of these are handled by all panel drivers. In order to provide all this information to panel driver and be able to extend it in future, create a generic way to propagate events from MDP to panel driver through a single event handler. Change-Id: Ide243f08bc4fa966ef9223b0a665cff95b9529db Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d450bd5c223d6dc729b0eff24a0547c8222be0c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 31 15:57:42 2012 -0700 msm: mdss: fix possible deadlock while cleaning buffers Move pipe destroy logic outside of mfd lock to fix lockdep warning regarding pipe unlock logic being called within mfd lock, when mfd lock is usually locked within pipe lock and remove SSPP lock when destroying pipes. This was previously used to protect SMP allocations but these are protected by SMP lock already. Change-Id: I1c47da5d33cb4f1eb687078639adf4c4cc94f33a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit adb3920dd00f1001355e4ebbf451a5b646b3987d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:46:10 2012 -0800 msm: mdss: fix possible null dereference of fb index Rotator data paths don't have a fb device assigned, assuming that it will contains a reference to fd data is incorrect. Add check to avoid NULL pointer dereference. Change-Id: Ib91e96ddc56590f2f681673b162921191e3d86da Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5c06748c7decf51a63015579fa42cf8189727357 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 31 16:26:41 2012 -0700 msm_fb: HDMI: Cleanup HPD software debouncing logic Implement Hot Plug Detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. CRs-Fixed: 412575 Change-Id: Ia2c83f3446d09fe5bf6c6a1c4e6a9eb54ff465d6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9284a2701b6c030184848ba4b37c0b5019f62ed3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 2 20:55:30 2012 +0530 msm_fb: Wifi display changes for commit ioctl This change handles panel updates for WFD panel via overlay_commit interface, along with conglomeration of some common code across pan_update and overlay_commit ioctls Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit e41ba16cdf9d4aa7773fa33ef640ba32f5a17d7d Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Oct 25 16:32:32 2012 -0700 msm: 8974: MHL Driver for SI-8334 Tx The B-family device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I33f6c6f00011b590f9913cdbbe44544472b60982 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fe4abc1141a5620d42832137ad1dad15424b6b41 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 17 19:11:45 2012 +0530 msm_fb: display: Proper pipes solidfill For MPQ/hdmi as primary, solid fill the pipes only during suspend. This change also take care of the solidfill of the pipes unset during overlay and pan display at suspend. CRs-Fixed: 421461 Change-Id: I15096df681cbd94ae3cea63ecbfe915e01b7387f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 765bfd597fdc90610113cc9938c7152658d654ed Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Nov 14 10:41:12 2012 -0800 mam_fb: display: add per stage alpha drop detection Currently, alpha drop detection is done per frame which means multiple blending stages share same alpha drop status whcih does not reflect alpah effect truly on each blending stage. This patch enforce alpha drop detection is doen per blenging stage so that alpha effect applied properly at each blending stage. Change-Id: I90f8f6395c88e665b64ae90e64b65cea1d54b41a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Nov 16 11:36:29 2012 -0800 video: msm: Remove adjustment to MDP revision Remove the modification of mdp_rev during mdp_probe. Not needed since board files now have the correct MDP revision data. CRs-Fixed: 417080 Change-Id: I553cb2a8e8de43b6c7b7976c3eca67d00a3cfe4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ca24bda0148887716f250bbbc5debb2f80fa4331 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Oct 5 22:19:28 2012 +0530 msm_fb : Add timeout while waiting for vsync event Avoid eternal wait for vsync event when client tries to read the corresponding sysfs entry. This will avoid hangs when client tries to read in corner cases where the Timing Generator or the clock or IRQ gets disabled. CRs-fixed: 406752 Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit b6b7c0ef67d6bc2d82e4bbe63a946d3e8b815f69 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri May 18 11:00:11 2012 -0700 msm_fb: display: extend mdp debugfs with force blt enable Enabling/disabling mixer0 or mixer1 blt mode is a critical way to debug display issues, so add debugfs interfaces to force blt mode enabled/disabled with adb shell commands. CRs-fixed: 390953 Change-Id: I96a568f22398867571a796a863c098f749f5618b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bcafbe3fb1b630a844c4776f9bab4c65cd5cefa5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 4 15:55:40 2012 -0700 msm_fb: display: disable external instead primary vsync irq Since DTV is external interface of mdp, it should only control external vsync irq. Change-Id: I5f3a7087c7d4997cd40d4cc4907d8b054e37c6b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3eebb2e33570e32d11a757e493e12a8e79e08d6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 14:21:41 2012 -0800 msm_fb: display: add setting gpio-controlled backlight logic For the panels which backlight is controlled by gpio, add this logic in driver to turn on/off backlight, instead of calling board panel on/off functions, to avoid garbage display due to early backlight turn-on. CRs-fixed: 408728 Change-Id: I6f1b9bd78d96dbf1492e854edd59b05f8dec205f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5f91c9259a62b5dd2226bf46efc42152667b9e19 Author: Mayank Goyal <goyalm@codeaurora.org> Date: Wed Nov 7 16:58:09 2012 +0530 msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation.Add changes to support MDP_Y_CRCB_H1V2, MDP_Y_CBCR_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: Ibd1cb9803b8cf8bede28bc1d9830320dd505f5be Signed-off-by: Mayank Goyal <goyalm@codeaurora.org> commit a3b0e08b5c65b28c81a8a4511ebacd6985793dc5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 13:50:23 2012 -0700 msm: mdss: import venus stride alignment requirements In order to avoid mismatch in stride assumptions between Venus and MDP, import common header file with Venus alignment requirements and configure MDP surface with these. Change-Id: Idf849b3f476eb5e2d60fec190698efd487f035cf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c62976484ec5b681361a563d80fd5a5546287308 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Oct 20 14:08:41 2012 -0700 msm: mdss: disable fetch for all previous stages with is_fg The is_fg flag is used to disable fetch for all previous mixer stages, currently this only to disable fetch for base layer. Modify mixer setup logic to disable fetch for all previous mixer stages. CRs-Fixed: 413254 Change-Id: Ic0f101fe88a3c64db11cf43484f64f0f5e32d0d0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a21de442a3babb554d1a9a54eef2ef0944cbfa4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 9 16:18:07 2012 -0800 msm: mdss: disable overfetch done while scaling While programming pipe, src image size can be programmed when area outside crop rectangle contains valid contents in order to allow MDP hw to do overfetch of pixels while scaling. However for most cases in video playback the area outside the crop rectangle is only padding with invalid pixels used in order to satisfy alignment requirements. Since driver is not aware if padding is being used or not, disable the over fetching along the border to avoid unexpected pixels being displayed. CRs-Fixed: 404918 Change-Id: I145f34bcaef76a88116b6803eeaf4a5ffd19592d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20f0af9200e416d4b2f7949e2ecfd81182a5edc6 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Nov 13 17:34:12 2012 +0200 msm: mdss: fix enable/disable of gpio_panel_en in edp driver gpio_panel_en is always on even though driver is in suspend mode. The fix is setting gpio_panel_en value in edp_on/off function. Change-Id: Ib41681d31788b9a17a032e9b9e8dbe53eb9e4fa9 Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 6db43b58111cfd39eaee0d694c223cbc7461d16c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 15:25:37 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP3 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I18b05b8d2a65d489afc6e3274ec8dc7a5b9a5f9a Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b5292f0df4e06db2272c92d575e255f310793e3c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 13:54:39 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I983731481ea89bb7666be5f2a9f75a1e04fd963f Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 39e3fecb80703313621b22d2a8b5667a816265bf Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Nov 8 13:51:00 2012 -0800 msm: mdss: disable overlay operations while suspended When display is suspended all overlay operations coming from userspace should be ignored to avoid programming MDP when it's completely powered down. Change-Id: If43436915de33f89016ee2c85eb70bd57fdd2118 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b6d7e48e777e99e28dea95cb93debfd9d15d849c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 12:08:27 2012 -0800 msm: mdss: enable dithering for panels with reduced color depth In order to avoid banding caused by using reduced color depth as panel output format, dither can be enabled to produce an image which gives better representation of original image. Change-Id: I88a1be747332070d2b8b00dcbeb7e97936a47092 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6829d179d9ae8f3646a7a7204571ce15d35a997c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 31 17:06:52 2012 -0700 msm_fb: display: add option to switch mdp operating mode Currently, mdp switch operating mode without turning off timing generator. This patch adds option to have mdp switch operating mode (direct out and writeback) with timing generator turned off based on configuration of panel file. CRs-fixed: 405987 Change-Id: I92057757863218222d8647d33d57f6de9b3b3765 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a4567ac320abe5d74b3c7decdbddba4bd8c57463 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Oct 5 11:02:40 2012 -0700 msm_fb: display: skip one vsync event after enabling mdp and vsync clk Both mdp and mdp_vsync clks are disabled for command mode panel when no new frames are being played. When they are re-enabled if new requests come in, the first vsync event which is signaled by read pointer interrupt arrives in a random time due to the sync between mdp and panel, so skip it to maintain correct vsync timing. Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9bc28cf89a1619218fc1193409c4f614d1f826f6 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Nov 5 16:18:53 2012 -0800 msm_fb: display: add config of wb_mux_sel during update To make sure for each writeback play the reg is configured and avoid mdp hang. Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Nov 2 17:30:46 2012 -0700 msm_fb: display: empty pending queue during suspend for wfd Add the logic for wfd writeback interface. It already presents on other display interfaces. Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8befe49ddcd2952cfd60634153dc5caf440acb27 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 18:34:13 2012 -0800 msm: mdss: Add support for disabling HDMI while cable is connected Send disconnect and/or offline event to user-space when user explicitly asks to stop listening to hpd only if HDMI mirroring is going on. Upon receiving this event, user-space will trigger power off and HDMI mirroring will be turned off until user explicitly asks to start listening to HDMI cable connect. CRs-Fixed: 409880 Change-Id: I509a9a7ba04066e571b5f762be4804c7dd39c655 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 84639ef623c0f3301bda4893bae9eaa83454c222 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 14:48:03 2012 -0800 msm: mdss: correctly handle panel power on failure Check panel power on return code and correctly revert any interface initialization if any error occurs. CRs-Fixed: 417959 Change-Id: I4ad644b16efd51e5e8b3be1393c39195687feb8a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 074de641de0fab973a9efd9c3d57498453ef28ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:18:47 2012 -0700 msm: mdss: Serve HDMI Tx power off in a separate context HDMI Tx core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI Tx core. This change moves the power off sequence to a separate thread so that framebuffer close system call does not get blocked. Change-Id: I011c6612ec1b6be047e4adb39c1af48f6a105bed Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 2816e20c94fd5ee23c9784b3dbc3ac690fe1e88d Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:17:27 2012 -0700 msm: mdss: Clean-up hpd debouncing logic of HDMI Tx controller Implement hot-plug detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. Change-Id: I434a223a3d340d5759346e071d5350d412de2c20 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 3ca6a5691a83819c1b8c7123089cb85f5b4a58ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 14:58:28 2012 -0800 msm: mdss: Add error checking for incorrect state during HDMI power on/off HDMI power on should not be permitted if hpd is not initialized. Similarly HDMI power off should be skipped if power is not on. Add proper checking for above state conditions. CRs-Fixed: 417959 Change-Id: I9470c6d818adc403de05c25a7e96c8ab1c8a43fd Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1073b45c0b120f2ebbe1b5034d4088f9294b54af Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Oct 30 18:26:00 2012 -0700 msm_fb: display: fix frame buffer's ref count leak This patch clear MDP_MEMORY_ID_TYPE_FB from pipe's flag so that fput_light() and fget_light() can be applied to frame buffer evenly at end of pipe operation. Otherwise there has kernel unable to handle NULL pointer panic caused by frame buffer's ref count leak. CRs-fixed: 411394 Change-Id: Ib2b72e6277480b5ace23cda554be485d9d477b3d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f4796e811c00082db0414d4ad211aa3fcefd3a9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 08:41:49 2012 -0800 msm: mdss: Fix returning incorrect error number Instead of returning actual error number, current code returns boolean value of error present. Fix this issue by using PTR_RET macro instead of IS_ERR during error check. Change-Id: I61f0e57dd918c98ae4699993fa526e31654bebb3 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c30090ea5c28fce50a7c0ac829b9effd809f41e8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 11 15:30:58 2012 -0700 msm: mdss: add interlace video display support Interlace video contains two frames interleaved within same buffer. Since there is no hw support in MDP5 to display interlace content, support interlace video by taking even fields only for display. Change-Id: I92718d13eb7711d0c4252adf8751384719c862f1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 04d097801cc94a121751c9d5fde2ea458f3ae76f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 3 02:39:20 2012 +0530 msm_fb: hdmi: black out pipes on unset For HDMI as primary case, we need to blackout the pipes when they are unset so that any residue is not visible on the DTV during suspend. Change-Id: I2bf36f1002dd185c26fe6c4291977737daa73ae1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a5611de5f7d754d538706949bfdc9b8aa36fd0f0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:39:52 2012 -0700 msm: mdss: fix bus calculations overflows With higher display resolutions the bus calculations being performed can be very high which may cause overflow and unwanted results. To avoid such situations modify logic to perform calculations in kb and use 64bit data type to call into bus scaling driver. Change-Id: I7b975d750e316c6e79bcdcd54a8194c8ae40c155 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7fb9c21f04a8a87d2bf2e45ad1a5c9cd374f65be Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 11:58:29 2012 -0700 msm: mdss: replace disable irq with no sync to avoid potential deadlock Potential deadlock can happen when disabling irq after receiving vsync complete event in display if at the same time MDSS irq is triggered, at this point disable irq will hold spin lock which irq tries to get and will not release because it's waiting on irq to be disabled. This scenario can be avoided by using disable_irq_nosync instead to avoid locking on irq to be disabled while holding spinlock. CRs-Fixed: 416304 Change-Id: I1e367ac2b5d7b0ed7d1c15efc8d29a6ffa9fea5e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5328e4976369d5b4fc76183720168b58bdffd6c7 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Oct 2 15:03:44 2012 -0700 msm_fb: display: Enable scaling bit while setting x-flip bit To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d8bad5aaad6a19d65ae8d63451044455aceca46a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Aug 20 11:58:42 2012 -0700 msm_fb: Correctly setup splash screen flag in MDP probe The continuous splash screen flag was sometimes not correctly setup during MDP probe causing corrupted grey screen on resets. Crs-fixed: 389531 Change-Id: Id88d8a239ccfd1cbb5ce0f4f3db68756182f5ff9 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6ced23c4d1863316a72d7143a60ccfb547282940 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Oct 25 16:24:54 2012 -0700 msm_fb: display: adjust refx100 parameter to avoid tearing refx100 is used to calculate how many mdp_vsync clocks to complete one line in the panel. This info is used by mdp h/w to sync data transfer between mdp h/w and command mode panel to avoid tearing. CRs-fixed: 379223 Change-Id: I3880a350b77cb8165745ea343b1525e84100a62d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 66744e7a76bfa3f56818bcaa2d430468e50a1922 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 31 13:29:48 2012 -0700 msm_fb: display: force mdp clock off at suspend At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ef5abb017cee4c6bbacb6d064764bda8b4a1a0c5 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Oct 31 20:40:17 2012 +0530 msm_fb: display: Correct dtv pipe black out This change corrects the register values to black out the dtv base pipe. Change-Id: I80fefab3cc6dd006edbb673f41ccfe983af2cc3a Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 19a4f321dca81cbee29c934a9584412614a444c0 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 16:48:18 2012 -0700 msm: mdss: Enable stereo audio through HDMI Tx Add support for Stereo Audio in HDMI Tx driver which sends HDMI stream on/off notifcations to audio userspace using hdmi_audio switch node. Change-Id: I2c8e756adbbe2f9230dfb7735774ee194e32e446 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e2c2859bac8fcf41d39ba9cc614d028f0e1573ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 16:01:15 2012 -0700 msm: mdss: add smp specific lock SSPP lock is shared between pipe allocations and smp block allocations, this can cause possible circular lock dependency since usage is different for these cases: - During pipe allocation SSPP is held when acquiring pipe lock - During SMP allocation pipe lock is held when acquiring SSPP lock For this reason, splitting SSPP lock, and since pipes and smp locks manage separate resources sharing is not needed. Change-Id: I54a0997fddef893b99a4b01d3e3f62382e1e0ecf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ec339e96700b98faa170b06f73678f203c237291 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Oct 29 16:19:03 2012 -0700 msm_fb: display: change the location of wakeup timer call There are two pathes (pan display and overlay commit) to commit display buffer, so change the location of cpu timer wakup call to the common pipe_commit function to make sure cpu get waked up around vsync. Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Change-Id: Idbe6049d740a7e17a6a90e28566f7a9c74e348f2 commit b360fd40a5214595d7e9970431ef83653b76b13e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Oct 27 13:14:11 2012 +0530 Revert "msm_fb: display: suspend-resume on HDMI" This reverts commit 30befc28305440f30770a6545839fe4b55ee2207. Revert early suspend implementation for MPQ. Change-Id: I028a7f0d6997d2d09d718d3b5072466d28a95b59 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5f6d8314b2ad063da8a8ebf71fef8c713f76401b Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:27:55 2012 -0700 msm_fb: display: fix dsi_busy_wait race condition After pipe_commit() released mutex and before kickoff happens, There has possibility that dcs command may start transmitted. This patch add dsi_mdp_busy flag to fix this race condition. Change-Id: I0d9a81cd0719085c91c03386117261ad3bb6b182 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 366ca5c34117fde6329ea81112068d1dc177ff70 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:26:31 2012 -0700 msm_fb: display: add video mode dcs cmdlist support Add video mode dcs command list support. This patch make sure dcs commands committed while dsi video engine is busy so that dcs command will be transmitted at beginning of next BLLP. Change-Id: I11b0214ee10f3b1ef33b1da4c8e577800068cb06 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c405afa88ef5139132795757a7446a7081d92c38 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:23:10 2012 -0700 msm_fb: display: add sysfs and clock control to smart panel This patch allows both vsync enable and disable are controlled by framework. Driver reports vsync event to framework via sysfs. Meanwhile, mdp related clocks are enabled by framework at vsync enabled request and disabled by driver if there is no any display update within specifid vsync period. Change-Id: Ice5be3a6db5930b95bdd2f718d9256bf73936e23 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 64892009d43ca724c5ee1be5f7db6ad1f00cda6c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 25 09:07:58 2012 -0700 msm_fb: display: fix iommu leak during base layer swap Retain RGB1 iommu information during base layer swap so that iommu used by RGB1 can be freed back to pool later. CRs-fixed: 403277 Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bbd754882e8ec1a52ebba237e02ba8c49b00f135 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Oct 25 19:30:33 2012 -0700 msm: mdss: Fix error roll back sequence during core on. When core power enable fails for some reason, current code disables hpd power in the roll back which is unnecessary. Correct this mistake. Change-Id: Ia5ed63edb017ade44950058c9d6071e8eb5d7884 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 693e87a8e357add7444dbad12cb265deaa90d3e2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Oct 2 15:08:56 2012 -0700 msm_fb: display: wake up system before vsync for cmd panel Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 407e03a33eaa0880b87a2a6a7bf43e3516cb2562 Author: Asaf Penso <apenso@codeaurora.org> Date: Thu Oct 25 15:03:21 2012 +0200 msm: mdss: add eDP backlight Add configuration for setting different brightness levels in edp driver. This is done according to lpg channel and period values from devicetree. Change-Id: I4e9074d777102193d7678f7aac565be3a5a551df Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit b640c29b8b3b4a0733924a6e4ad0665d5218a7dc Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 20 14:14:40 2012 -0700 video: msm: Send ETIMEDOUT on update-notify timeout Send the ETIMEDOUT errno when the update-notify wait_for_completion times out. This is required to be able to properly handle the different failure cases in the functions that use the update notify ioctl. Change-Id: I0e46b0b0c89f6b2e5beb3fc0ed18ebbb75dfa434 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a3020ffbd3720f3aaba439b593db5a85dcb50bc0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 22 11:33:23 2012 -0700 video: msm: Wait for latest histogram data Old histogram API introduced behavior that calls to collect histogram data would return a frame's histogram once, and would wait until new data was available if needed. Follow old histogram behavior by waiting when histogram has old/not ready data. Change-Id: Ia1b6b5b7a5b63a570a641b5460eb8e0d72c458c8 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a80d082eeb5ad6a024bea9992d8dc74406c37752 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 15 18:05:14 2012 -0700 video: msm: Ensure histogram is fully enabled before kicking off Histogram hardware needs to have histogram enabled before kicking off histogram collection. Add state variable to track if histogram is ready to collect. Change-Id: I71380e89de1a61f446802f791e917f57d14f10a2 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 6011950da33ac430c1c6b677c25423d07f8e8c95 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 28 12:03:28 2012 -0700 video: msm: MDSS: Add Update Notify Add update notify ioctl to MDSS driver. "Update notify" is able to signal userspace processes when there has been a screen update or if there has been a 22 second period without screen updates. Change-Id: I90cf7f7e6650236186452c1a9f86850731ad785d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0af12fc4577d1dda6a0209d1a35cccaa716721b2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Aug 27 14:52:39 2012 -0700 video: msm: Add backlight scaling for MDSS Add backlight scaling functionality to the MDSS driver (includes the fixes with regards atomicity of backlight scale and level updates). Allow for power saving algorithms to modify the intensity of backlight without introducing race conditions caused by competition for backlight level. Change-Id: I97ae024055ca614648ffe2aeae09cc350d2577ec Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97ea71b93d1148c9127e59ba19a71f67b4808c2e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 27 11:44:15 2012 -0700 msm_fb: display: check pipes queued before enter wait_for_completion Timing generator will not be turned on if there are no pipes queued. Therefore wait_for_completion may never be completed if there have no pipes queued. Change-Id: Iafba086e4ba20b31470c9fd385c4f5c474ecadcf Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0edc1cb98a8af7a7c650c7f690e510e7c01b9b1 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Sep 24 19:52:16 2012 +0530 msm_fb: Enable H/W cursor for External Interface Add H/W cursor support for MPQ uses cases which use external interface. Change-Id: I5d1f71813769c7e86e576888463bceaa7ad37b68 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit c579c8770c6c0a9e823cc4a7d1349ea4e3d99d95 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 17:36:38 2012 -0700 msm: mdss: fix rotator hang for xrgb formats XRGB formats require constant alpha to be setup when writing back to memory. Change-Id: Ie819b88578a85923d1cde7efe54ca0819c59a611 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6ba5f1fb067410d097f973f311bfcc9eded6a1bb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 18 11:21:23 2012 -0700 msm_fb: display: add wait4dmae for hdmi as primary display When hdmi use as primary display, pan_display is used to update screen. This patch adds wait4dmae to pan_display to avoid source tearing on hdmi display. Change-Id: Ied31419590c51e4bc2218ee8dfdc7d5221c996dc Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7ef177524d89ce9bbd84bf0a54c28c335c2a2b14 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 11:00:19 2012 +0200 msm: mdss: add support for different panel formats Some panels have different color format requirement such as RGB666 for EDP Panel. Add logic to detect panel resolution based on panel bpp set by panel driver. Change-Id: I4cad59033b8b4f807c2ed38b00451aab89737bb7 Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b2372aeb5c33f7c49ad3133238b799ba9e60480b Author: Gagan Mac <gmac@codeaurora.org> Date: Mon Aug 20 19:24:32 2012 -0600 msm: msm_bus: Add support for 64-bit bandwidth requests With 8974, bandwidth requests are exceeding integer size. Update ab and ib to ensure values over 4Gbps can be requested. For 64-bit support, there are four changes in this patch: Changes in the bus driver structures and functions to update ab and ib values to uint64. Updates in client drivers to ensure that the bus APIs are called with the right types. Updates to the device-tree. Device-tree nodes don't provide a clean mechanism to read a combination of u32 and u64 variables within the same property name. So, the ab and ib values must be specified in kbps instead of bytes/sec from the device tree. The bus driver function will convert the ab and ib values read from device-tree to Mbps. Change the existing property names to make them consistent with the convention used by the new property name, which abides to the Device Tree convention. Change-Id: Id37407c349a9cea17f6621d3bef2401b856f7b7d CRs-Fixed: 408786 Signed-off-by: Gagan Mac <gmac@codeaurora.org> commit 327a968551e890838f471ce649748d03861465a3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Aug 23 17:08:25 2012 +0530 msm_fb: ADD AVTimer info to the vsync event for DTV interface MPQPlayer requires Avtimer time stamp when every frame is rendered. This change enables sending AVtimer info with every vsync for DTV interface. Change-Id: Ib36c9a152bf3454be984fed765ad268f9435933b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 523d93ac63dc5a0ae9b5c7d24278ca48fbb923d4 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 22:47:03 2012 +0200 msm_fb: mdss: Add EDP physical layer configuration support Add code to configure the enable/disable and PLL settings for the physical layer of EDP. Change-Id: I6e15e41fdd23cc5a4855a3addf85050ade802d8d Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 68b3fc5593916dc6d4b47d2434776c9dd91f77a2 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 21:47:59 2012 +0200 msm_fb: mdss: Add eDP controller driver support eDP controller is one of the output interfaces for MDSS. Add support for eDP host controller driver which runs in Video mode only and eDP related changes for msm_fb panel driver. Change-Id: I0a150f8d712f57bdfaee9051b2893e2910195567 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 4fc9350b124ded06f90c43410c2c0b512681c0db Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 09:03:18 2012 -0700 msm_fb: display: return fail if pipe still staged Pipe is not un-staged from mixer when it is unset. It expects a pan_display() to un-stage it out of mixer. Return fail at overlay_set() if pipe was still stage at mixer. CRs-fixed: 399193, 393979 Change-Id: I562f6e133bb239b30f4f53669dbf1cc5ddf80d02 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4aa5b44e20ba129a98fedff1cc6ea4a9495f0ebe Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use MDP_Y_CBCR_H2V2_VENUS as the output format for writeback For Wifi Display use case, the Venus variant of NV12 is required since the Venus core expects it in this format. Change-Id: I68ded4373212021486bc6b7b89514fdecf05d4da Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 636779a7ddbe69a6f8be39cba9755e352fce39b4 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Oct 12 19:06:16 2012 +0530 msm_fb: hdmi: Proper update of ACR CTRL Register While changing the audio sampling rate, the older data in the control register needs to cleaned before writing in new data to avoid mixed or wrong data writing. CRs-Fixed: 405772 Change-Id: I95d0807ea8cf544e4a0c8caed00de6cd60352efa Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 35c724bf61ef9432cd467152dfeab25e517b50a7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 10 11:51:20 2012 -0700 msm_fb: display: add dtv base layer swap Add dtv base layer swap between border fill pipe and rgb pipe to support hdmi as primary display. Change-Id: I127a301385d5d83e5d06507869132c6e124cc94f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0e53b6627814d52e3cf5604e0793f4780ec4a9c1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Oct 4 20:29:52 2012 +0530 msm_fb: display: Make sysfs read request interruptible Change blocking sysfs read request to be interruptible and protect vsync timestamp value to prevent corruption. Change-Id: I510d84134b0ab70d17729e8c53c91fa926035142 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 97104cc8bf4881f41dfd79e6bdc31383c5ccabfc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Oct 3 17:50:39 2012 -0700 msm_fb: display: extend mutex protection for mdp pan display When mdp commits a buffer to play, functions inside pan display, e.g. mdp4_overlay_mdp_perf_upd are based on the current state of play, so extending mutex to the scope of pan display to avoid race conditions. Change-Id: I2e55567fd21de3738be066a2dee298d8122f12a3 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5b567514a5cebae7b6fdabd0b94c29efa4aef18f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:50:16 2012 -0700 msm: mdss: fix rotator session not being closed correctly User space expects non-negative number as session id, update rotator mask to avoid making rotator session as negative. When rotator is closed, need to recalculate bus/mdp clock numbers. Change-Id: I6c0e3bfa5394fb64b78fb47be1f24462e320916d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6e923f52e81757c6fdb03fe4184f79be7b4068ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:30:03 2012 -0700 msm: mdss: update performance calculations to include border color Current clock and bus scaling calculations consider only source surface pipes to set clock rate and bus scaling factor, however since MDP also generates pixels for border color this area also needs to be considered for final clock and bus scaling factors for data paths that use layer mixer. Change-Id: I9463c01dfd0b7a301797bd036f563e15d5195dbd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 35143f7156a7f651f2cfcc511b2ebbb12b2ceb02 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Sep 13 10:43:15 2012 -0700 msm: mdss: move unstaging of overlay surfaces to display commit Perform cleanup of surfaces destroyed with overlay unset until next display update. This enables a smooth transition in case multiple surfaces are unset before next frame update. CRs-Fixed: 406645 CRs-Fixed: 406553 Change-Id: I843c7f11fc943d8351b7408116101ba20f25d116 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 70236f7a01bcb9278b99f2df7b8acd4d1cd323d2 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:12:14 2012 -0700 msm: mdss: remove display commit during overlay play All display commits happen with pan display in order to have a single sync point when using multiple pipes, and avoid blinks that can happen when updating surfaces out of sync. Exception for this case is writeback where commit is still needed, keep this implementation until this exception is corrected from user space applications. CRs-Fixed: 408105 Change-Id: Ib40c4872f43e6a939c45624677b2ab1f64a3b31e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 944b88e82e9baaaeb52a2ec38298ed2e48c33f1d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:06:21 2012 -0700 msm: mdss: implement commit ioctl for display commit Commit ioctl is used to update contents on display while avoiding console_lock done through framebuffer pan_display path, which causes additional delay on display pipeline leading to flickers on HDMI. Change-Id: Id3522d322ba08b110d540e10214cadfbbb0bcc25 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d74db5fcf24a223570137087aa5632593b315fcc Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 5 09:05:58 2012 -0700 msm_fb: display: wfd with vsync driven frame push To improve performance, hardware vsync event at mdp driver is passed to framework so that both composition and frame update are aligned at vsync event. This patch will upgrade wfd to incorporate vsync driven frame push in consistence with other interfaces. Change-Id: If088826ec387446301f1f6acc311d909edb04163 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f0d08071a4e97c9018b8e8def498e07720201da8 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 18 17:32:15 2012 -0700 msm_fb: display: add checking y direction for alpha drop Alpha is dropped when scaling with non repeat pixel method. Both x and y direction of scaling need to be cehcked for alpha dropped. Change-Id: Iba0df5a85011f179199c13ffdebac911e5c14c3c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6745082aec2b97f07dcfbc49ea7b8b79099f4d13 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Tue Sep 11 18:04:34 2012 +0530 msm_fb: Use background alpha for all destination alpha enable cases Use background alpha for modulation in all the cases where source alpha is not available. CRs-fixed: 366834 Change-Id: I300c04181ee3fa4f305a26a3e17e7eac2572564c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit bd556dc51ccf32a7ddc8d435d31f39e981815f8f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Sep 21 14:11:30 2012 -0700 msm_fb: display: check base layer pipe at irq handler There is a corner case when overlay and dmap interrupts are fired before base layer pipe is allocated. Therefore Check for base layer pipe before performing any operations. Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7d136bef71281855cd224ccc967e4e95286f5356 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 26 13:10:42 2012 -0700 msm_fb: display: add fput_light to frame buffer Frame buffer's (fb0) ref_count need to be balanced. overlay_play() increase fb0's ref_count (fget_light). This patch will decrease fb0's ref_count by calling fput_light after commit. Change-Id: I34ea738bf21d0858b7361ec8e289464a217a1231 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f08f2387cdc5a2d365c33bef1fe2a87b6c5911c3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 4 16:21:33 2012 -0700 msm: mdss: remove pan display no memory warning There are some framebuffer devices that don't allocate any memory such as HDMI or WFD, warning for no memory is not necessary and it just floods kernel log hence removing it. Change-Id: I8f9ba1cda1f55c741b99d462adf74531d73aaeee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a4c377fbf133bd53913d451b478c177c271ab365 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Sep 28 11:13:49 2012 -0700 msm_fb: display: remove background invert alpha option for alpha drop pipe When the blended background pipe has dropped alpha and it is going to be blended with foreground pipe on the next stage, MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is 0xFF, so we need to use this alpha value to show background, instead of its inverted value. Change-Id: I1fe0572f9bb54db6280bcc44117a21b8c0d8b07a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 19:31:33 2012 -0700 msm_fb: display: empty pending queue during suspend Overlay_play() adds a pipe into pending queue and pan_display() will commit those pipes to hardware and empty queue. This patch will make sure queue is empty at suspend so that no unexpected pipes will be commited to hardware by pan_display() at resume. Otherwise, iommu page fault may happen. Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a77eca6cee55531e81e21d83b474563f9c143e77 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 13 13:22:04 2012 -0700 msm_fb: display: add pipe commit ioctl currently, pan display serves as pipe commit. However it may spend long time pending on cosole_lock() which cause flickering on HDMI. Add pipe commit ioctl to allow commit from overlay in addition to pan_display. CRs-fixed: 391564 Change-Id: I163b5d96f727b70b4d5693e9a414b59339818998 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ee79b635fc78d5abe40e3918f2bf6f754f3516da Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 25 17:04:18 2012 -0700 msm: mdss: carve out memory for framebuffer Use carved out memory allocated exclusively for framebuffer instead of using up memory from ion pool. Change-Id: I4b248a21380a3ef737fe2fd8eed6de9747fe47c7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d7a09f0c134c61f3d3dd2239073c3363e4306858 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 2 16:48:16 2012 -0700 msm: mdss: remove play_cnt reset in overlay set play_cnt is used to manage currently displayed buffer, this value is incremental and should be initialized only once for new pipe creation, but overlay set can be called after pipe creation to change params. Remove reset of play_cnt to avoid reset on subsequent overlay set calls. Change-Id: Idef90a6123c4e1a9e8b1ab963bf78330cdd912bf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ac990ba5e32295c9efbffb56b7c659efa6cae6d0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 13:57:51 2012 -0700 msm: mdss: allow dynamic resolution change Modify initialization function to take changes in input paramaters including resolution and format instead of doing a one time initialization. Change-Id: I01c575fd1d957218296e658b3b4b8d72cd138614 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b4b75a59b665c0d1b3aa14a41fd81f754d4f093 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:25:22 2012 -0700 msm: mdss: use half of panel width when using dual pipe MDP layer mixer only supports up to 2048 width, if the panel resolution is greater than this dual mixer needs to be used. Setup each mixer width as half the panel width instead of allocating max width on left mixer and use left over for right mixer to have better load balancing. Change-Id: Ibc01591e2e6d5e5f98e81dfba766493abd9895a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6c6a597e45a2d7daafdfd2c63832cce638334d6f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 24 10:51:13 2012 -0700 msm_fb: display: remove extra dmap irq disable Both irq enable and disable need to be called symmetrically. Remove an extra dmap irq disable call. Change-Id: Ic51003c50431ebe46a9fc540163cda77a1c91797 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b453fc7adc6c02e0f23550c5703bf93f8f6bfea Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 28 15:22:37 2012 -0700 msm: mdss: disable framebuffer memory check when not allocated HDMI and WFD don't allocate any memory for framebuffer, in this case there is no need to check for available framebuffer memory. Change-Id: Id3fc6279e1b2a5d4b96d3b85e29ba6865a4dd38f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 105ef65f2db0be51711a5d3fc293064da0a38e2b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:26:05 2012 -0700 msm: mdss: fix height align for venus format Venus format expects luma height to be aligned to 32. Change-Id: I1ccd5ddb91d1067a68b576891ddf4d73360108ba Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c87b83203c2069c71a732e3164357b02649c12dd Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Sep 28 18:48:15 2012 -0700 msm_fb: mdss: Fix dsi controller reset sequence during dsi initialization Move the dsi_sw_reset from panel ON sequence to controller initialization function. Enable clock lanes and disable controller before doing reset. Change-Id: I570615a931214021360070cd1cfea4ed3b6812d5 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit ed1430f0336a587a63729d2b698f9e23de46c95d Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Sep 12 17:00:27 2012 -0700 msm_fb: HDMI: Remove HDCP Kernelconfig Remove the kernel config parameter for HDCP since enabling or disabling HDCP will now be controlled using a corresponding module parameter. Change-Id: Iae23b8fa66ca75d99423547e77f850f3c86615ee Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 16229f5a1ce7007eb44dc1d43482f85c03e07f57 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Sep 7 16:08:10 2012 -0700 msm_fb: HDMI: Driver changes to support HDCP module parameter This change removes the need to use HDCP feature flags in the HDMI driver and adds the necessary support to configure HDCP feature based on a module parameter. Change-Id: Ie0eacc5b447230927cfdedfcb979c22d60e81981 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d8d660a6011c903fef1d9c1a58ea578e6a58e1ee Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Sep 11 18:10:33 2012 -0700 msm_fb: HDMI: Add module parameter to disable HDCP This change adds a module parameter that can be used to disable HDCP at runtime by specifying hdmi_msm.hdcp=0 on the fastboot command line. Change-Id: Ifad5da9fcb86fb4ed663a5ef2bb14fe4dafd241e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 51d631dd2b8a301828b4780f6496a6fe5490e454 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Sep 18 20:34:16 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP3 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Change-Id: I22cfbd68c8bcbe4a47e94074393f1cbf79920c58 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d473df4fba1417b4d7d429849af2a4243869e55a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Sep 7 00:37:24 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP4 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Also, for smart panel, wait4vsync is removed. Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit a8d45ced76c79333af546ad63ae31972aa00b109 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 18:42:29 2012 -0700 msm: mdss: Enable hpd for HDMI Tx controller Enable hot-plug detect circuit of HDMI Tx controller to sense connect and disconnect events of HDMI cable. Change-Id: I4e5614d32f5c9885f23060d68ad5b6a72a045177 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4f56d21f84a2e2adea6e83b8c75501904feebf7c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 18 15:17:07 2012 -0700 msm: mdss: Fix EDID read failures in HDMI Tx controller DDC data channel is used to read HDMI sink's EDID information. Fix the request length for this read transactions to prevent EDID read failures. Change-Id: I74b2ce344cdd08721a78641a7553c85927a96831 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1e88b6e0ecdb4485d21e94ad3e87c1caabdcde37 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 15:54:25 2012 -0700 msm: mdss: HDMI Tx clock clean-up. Generalize and move HDMI Tx controller's clock access mechanism to mdss_io_util so that other mdss modules can reuse it. Also correct the name of iface clocks. Change-Id: If0ed2c4244a9a0fcdb819f63010555d968a0b036 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4e055b701f5600e391ed5d440b90fb1958924c49 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 14:10:48 2012 -0700 msm: mdss: Debug enhancement for mdss modules Move debug log macros to mdss_io_util so that all mdss modules can use the same mechanism. Change-Id: I960fc394c60b74d694a81ad636b7055a224a2c6f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 60a6b37db0caeb736291f0eccd99baa307d60a86 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 31 18:20:45 2012 -0700 msm: mdss: Provide generic io access mechanism to all mdss modules Generalize and move HDMI Tx controller's io access mechanism to mdss_io_util so that other mdss modules can reuse it. Change-Id: I097af956706dcbf2e9fa1f6b5983a550a462fed1 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e782ceab26e38590cd49a9bb273da1dbf1984ccd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Sep 28 11:49:26 2012 -0700 video: msm: Enable mdp clock for histogram and histLUT Enable the mdp clock for histogram and histogram LUT to ensure that the clock remains enabled when they are being accessed. Change-Id: Ic744f2ee96b64442f23ba19aa1c38552c0dad83a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 61832135cad75ef082a905fedb30d835c85611b5 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 13 17:41:46 2012 +0530 msm_fb: Return pan_display call on Vsync interrupt Till now, the pan_display call returns on DMA_P_DONE interrupt. For command mode panels, the DMA transfer starts only after the DMA engine receives a TE signal from the panel. Hence, return pan_display ioctl on vsync interrupt to improve performance. We still wait if the previous DMA transfer is not finished at the beginning of next pan_display. Change-Id: Ie92bc000a5842aa02a77a08b6bafdc8472bbebbd Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit f6044334ee63fe9553f5cce8aa65c172c88e1175 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Sep 20 16:57:51 2012 +0530 msm_fb: configure LM1 and LM2 CSC coefficients with RGB2YUV for WFD 1) Initialise the LM1 and LM2 coefficients with RGB2YUV as WFD expects these coefficients to be programmed. 2) LM2 is available from MDP ver 4.3, fix conditions accordingly Change-Id: Ifad2be0fb5c3c96fa1515e114097a87d250fd62a Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit ce328861aa1f4fa489e9abfc9d1e02b13af2ba47 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 25 18:52:00 2012 -0700 video: msm_fb: Ensure backlight is scaled atomically Ensure that when backlight scaling ratio or backlight level is being changed that the operation execute atomically. This prevents a backlight level change from being overwritten when it interrupts a backlight scale update. CRs-Fixed: 404017 Change-Id: I708513cfcec558c5d65f21f189dd52331fdf0f4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0f523bdb25b2af4f09e79eb58d3daee3775851d2 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 11:14:03 2012 -0400 msm: display: pp: histogram collection for mdss MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support Only read the histogram data when there is a new display commit Only generate the next histogram collection when there is a display commit Cache the histogram data in order to respond quickly Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit bf5fb4c17c220a91160e48a2ca65e709c0a35511 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Aug 19 14:41:01 2012 -0400 msm: display: pp: gamut mapping support Support gamut mapping via pp ioctl with logical display id. Allow changing processing order with pcc. Change-Id: Ia37afbe40b73c08fd8760bae84307889280368ce Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 7fb85777173a3048765a52fc1ec4a3178c1fb2a9 Author: Ken Zhang <kenz@codeaurora.org> Date: Sat Aug 18 14:51:33 2012 -0400 msm: display: pp: backend dithering support Dithering configuration from PP ioctl with logical display id for mdss. Change-Id: I4c8409b253dc1ab5625f342f45f61246d538691b Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit b9498c688a4a20d707233dda585a96b8e3681666 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 17 14:20:25 2012 -0400 msm: display: pp: enhance hist lut support Support histogram enhancement lut control for logical display for mdss. Change-Id: I915e1f1ca0ba1c53b8ce5b627a8d10cc15ebbf76 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 16e43d6c628bbfb14ba3a7e5024f60b9d216f9f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 22 17:14:19 2012 -0400 msm: display: postprocessing: argc lut support Area reduction gamma correction support for mdss. Support logical display id via PP ioctl for argc setting Change-Id: I8d1dedc016809f73de0605ea68e6a1bfda580648 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 824758e1c1d780014b4d404be9d7f85cb414fb46 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 15 11:02:21 2012 -0400 msm: display postprocessing:igc lut support Inverse gammam correction display support for 8974 Use logical display id via PP ioctl Change-Id: I9f1bec84a401f079690ecfd622a2e5f0f8307ff6 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit ea6a09511a1d812f3b0f836dac9193900ccb9a3d Author: Ken Zhang <kenz@codeaurora.org> Date: Tue Aug 14 15:11:39 2012 -0400 msm: display: pcc configuration Enable 8974 polynomial color correction support Cache the setting via logical display id, config hardware in the next display commit Change-Id: I11e3d2036c2ab8de881d394d53c6098932f810b5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit ad6db3d66cb2f826f4f223898012d7d7aa6ca645 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Sep 26 17:57:34 2012 -0700 msm_fb: mdss: Remove spinlocks for set_rate and clk_enable APIs The clk_set_rate APIs should not be called in atomic context. clk_enable APIs doesn't need to be in atomic context. Add code to remove spinlocks for these clock APIs. Change-Id: If5e543135bda681ee8ddae35ab91288f535a9e9a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit aaacec6420069ba21992ddd39db991b3717d6436 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Sep 20 16:59:10 2012 -0700 msm_fb: Fix display corruption with continuous splash screen feature During boot up, we observe random lines on screen between the splash_screen image and the android animation. MDP clocks were turned off during bootup. Fix this issue by enabling the clocks when this feature is enabled. Add check to see that the video mode engine is not busy before turning off the dsi controller to avoid any underruns. CRs-Fixed: 399634 Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b05e8b1ec779ab5cc94f0847a99baa4d97eb4e10 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 13:16:05 2012 -0700 msm_fb: display: turn vsync irq off at suspend Turn off vsycn irq at suspend to prevent vsync irq firing before vsycn enabled ioctl called at resume. Change-Id: I2428cdeb5cf7008e50f6d8dabfad52416db2fff7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 911b4b702a63fbd241863966cad45909e40e4665 Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed Sep 12 14:42:50 2012 -0700 ion: change ion kernel map function to not take flags argument Buffer flags are going to be specified at allocation time rather than map time. This removes the flags argument from the ion kernel map function. Change-Id: I91589ca7b1ab142bb5ac8e6b0f4c06fa1305f23a Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 7d72bad55a0e03392d81eee77a9a8c9df6b73a9a Author: Hanumant Singh <hanumant@codeaurora.org> Date: Wed Aug 29 18:39:44 2012 -0700 ion: Port heap mask change to ion Heap mask field passes as argument at allocation time to specify ion heap. Change-Id: I8881dfc491dc0f8f70581ad97b35756a6a33dd6d Signed-off-by: Hanumant Singh <hanumant@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 5e0fcdbf8b22bc9637413de9cd0592c159dd4e8f Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Sep 12 11:10:26 2012 +0530 msm_fb: Make Vsync IOCTL during disable sequence as NO WAIT Change to make the vsync IOCTL no wait during the disable sequence. This is to increase the performance. Handle the synchronization of vsync interrupt using state variables in drivers from now. Change-Id: Ia5ec14493f233a95f21d01ea627200a6c278239f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 57e2bed7fdf998d9dcb1a3bea98f43d75c7cf3a9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Sep 24 11:39:29 2012 +0530 msm_fb: display: Add support for vsync driven composition on 7x30 This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time for 7x30. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: I2acb83f871f16c2278dc10cb958580a2826efe70 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3545573720822ce97ec37586f10fdf74a6d4f090 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Sep 24 22:07:47 2012 +0530 msm_fb : display : Block RGB downscale in MDP 4.0 and 4.1 Downscale is not allowed on RGB pipes in MDP 4.0 and 4.1. Hence, fail the OVERLAY_SET ioctl for such configurations. Change-Id: Ia18de77e78b84ec5f10a03fe9b48ef0821222e84 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit b54b6d4974f0a7c42e66502fca3644fe3ae406be Author: Ken Zhang <kenz@codeaurora.org> Date: Mon Aug 13 14:49:52 2012 -0400 msm: display: csc configuration support via overlay Implement overlay pp csc configuration for mdss Reset the play cnt when MSMFB_OVERLAY_SET is called Change-Id: Ice2e3700a275c5375ee4939bd3484b7ee5def898 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 08065c0bd558140a26622f9bb15c8649a8333723 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 15:48:31 2012 -0700 msm: mdss: implement early suspend api Use early suspend API for suspend/resume to allow display more room to turn panel off/on before system goes to suspend mode. Change-Id: I70b8b1055c30b940eda49ebad0db341259e903b4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e977b389d047b630be6178b6f2588dc339498b2d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 16:28:16 2012 -0700 msm: mdss: cleanup suspend/resume logic Remove references to global variable by using driver data to access mdss global data. Change-Id: Icaedf0fffe22b6d375df8f87f555b415101c6628 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1121a7fab5548575f1a30388c5b1b0f5b773eb42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 17 18:52:56 2012 -0700 msm: mdss: fix vsync ctrl logic during suspend/resume Sometimes vsync ctrl ioctl can happen before panel is on after resume, in this case driver needs to remember state of vsync ctrl and apply after resume. Change-Id: Ia583bd9e3a858c5972623eae0512fa27da8452e1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 01b0d13ad1071385bb938ee69d268f799b7de6f5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:26:35 2012 -0700 msm: mdss: fix mdp suspend/resume sequence Free overlays used before panel off sequence to ensure source surface pipes are properly detached from layer mixer. Change-Id: I712bfc1961607e09dcb976e4888db1885de09871 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4a1fb9ce546b946a184601cbeb3a278dd351a0df Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:38:36 2012 -0700 msm_fb: mdss: Fix suspend/resume for panel driver Avoid disabling video mode while sending OFF commands. Add delay between the display reset line toggle mechanism and GPIO display enable API for proper reset of the panel. Modify the PHY regulator control configuration sequence for proper reset of the physical layer. Change-Id: I2c890d52d773faab6020267121ea4557a59bd108 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 37e723cfad97be59d5a28e59220f9dcafe24ce32 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Sep 5 15:43:02 2012 -0700 msm_fb: display: wake up system around vsync To avoid frame drops due to power collapse, wake up cpu right before vsync. Change-Id: I63385eb329ae5e74cbac5256823fd3a213e0a0e1 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 42f4dae926438b40ac3ba1a48f54c1fad31dc125 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 26 22:31:06 2012 +0530 msm_fb: Reduce the display wake up time for NT35510 panel Reduce the display wake up time during resume by reducing the sleep values of the DCS commands during the panel initialization sequence for NT35510 panel. CRs-fixed: 392321 Change-Id: I6b55e48582a97adc451105802f5b2ca826767954 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 7e73b56cb67779bc700938acbb226dd99d361882 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 11:26:57 2012 -0700 msm_fb: display: free base layer pipe at adb stop Base layer pipe need to be freed at adb stop so that same pipe can be allocated at adb start. CRs-fixed: 390644 Change-Id: I948bb27687cfe1c96cc3b071b7bb9bb84b2c52c6 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e5f3b4ff8a4a0d980e02fa38c2b70fec7095e79 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Sep 10 09:40:44 2012 -0700 video: msm: Ensure idle state before enabling histogram Disable interrupt, set state flags to false, cancel histogram collection, and clear the workqueue before attempting to enable the histogram. This guarantees that this is the only configuration of the histogram running. Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 2dd5234c094157bf77781b8646ac9ad114f819b0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 6 12:03:29 2012 -0700 video: msm: Defer histogram reset to workqueue Currently, when an underrun occurs, a reset request is sent to the histogram hardware. This has been observed to cause a hang in the histogram collection cycle. The fix for this hang is to instead rely on the existing checks for histogram validity in the histgram read worker. When the underrun occurs, the histogram is invalidated, which in turn causes the histogram read worker to reset the histogram collection when it attempts to read its contents. Change-Id: I66d33ddedef76fdcb6c4a3d8095c0e8ca695e33d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 9218ac41cc42b55de227d7b967e15395feff89ca Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Sep 17 15:33:10 2012 -0700 msm_fb: MHL: add fwd declarations If MHL feature is enabled from kernel config compiler throws errors. This is due to the re-ordering of the function definition in some of the earlier patches. Need forward declarations of a few functions to fix compilation issues. Change-Id: I486b3d6efc33f6557b5ef301bd7037867bb8c562 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1026832c51cbadeea9a717fa20fb42b6a7c5661f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Aug 29 19:22:57 2012 -0700 video: msm: Dynamically toggle histogram interrupt Make histogram enable/disable functions also enable/disable the histogram "interrupt enabled" bit on the MDP enabled interrupts register. CRs-Fixed: 398556 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Change-Id: I56f811e88cf3fd44ae0a2df8a6e5de32ba9a0c1c commit bc79d49dacc9e416c7f9ea98fcff21eec3050fcc Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Fri Sep 14 14:44:30 2012 -0700 msm: mdss: Return correct error value Return a proper value rather than 0 everytime. Change-Id: I0065a420c65e4800d114be4698618d66de89d105 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 8914c1ca05e90d80432c104a509eab129038de1c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 12 17:32:21 2012 -0700 msm: mdss: increase bus scaling factor to improve performance Fix performance issues seen with different use cases such as HDMI and MDP composition by increasing bus scaling factor used. CRs-Fixed: 398503 Change-Id: I2391f81c0cba1fa7f5849ce55ec89762765d7575 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ad3200279e62eff01fd1bb9136cc9c0d11e10380 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 23 18:26:09 2012 -0700 msm: display: Add DSI clock control for MDP GDHS power collapse Enable DSI clock and regulator before enabling/disabling power collapse for MDP GDHS. Change-Id: I9effb5b4e9ca8033c51085260c8fb9f32c422dd3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Thu Sep 6 10:33:12 2012 -0700 msm: display: include msm-specific ion header All msm_ion clients need to use <linux/msm_ion.h> instead of <linux/ion.h> Change-Id: Id079277f1f5688f08c8dec7f20308315ab46a081 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit d635cad054f3860f8ca13a8cf79f3e46f8892ce6 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 3 15:52:06 2012 +0530 msm_fb: display: Copy splash image to kernel memory The bootloader memory from which the splashscreen is shown gets reclaimed before frame update happens from framework. Hence, copy the splash image to a local buffer as soon as display is initialized. This will ensure proper continuous splashscreen functionality. CRs-Fixed: 378721 Change-Id: I55a7b97eeced56d2f108d34998d58966610c4305 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 77ce0197185ba16c4cf6c2745065f339aa32ef46 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 10 11:27:19 2012 -0400 mdss: display: postprocessing: picture adjustment Support picture adjustment(hue, sat) for 8974 Use logical block id as input. Apply configuration at next display commit. Change-Id: I0e35e50aecdd346ec91373d0c304e21185f28502 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit edd57ca52bd12fa42865557bc5cfcc70cbbb8e6f Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Sep 11 15:29:10 2012 -0700 msm_fb: display: Update mdp clocks based on perf patch MDP clock was not getting updated to the correct values causing underrun issues. Change-Id: I4902ede1a8dda7408384261ca352e1ca1057a69c Crs-Fixed: 395054, 395166 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7c31ee7933fff437acfaa69cf443c81638a495de Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 17:20:36 2012 -0700 msm_fb: display: add wait after overlay kickoff MDP writeback overlay kick off needs to be a blocking call to avoid WFD tearing issues. Change-Id: I03ce16b1e11c458bc8602880f22f1aed536a2e5a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a61ad91ac33d5ec756a39201ed4350f4af55f701 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 30 16:21:32 2012 -0700 msm_fb: display: add blt condition check at video/lcdc off Blt mode may be enabled during system suspend. Need to make sure blt overlay done before turn off video/lcdc timig generator. Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30e707acaba6cac235c86b84f9735ae1aa94b5cb Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Sep 6 16:48:04 2012 -0700 msm: mdss: Move HDMI Tx controller's regulator get to probe Move HDMI Tx controller's regulator get to probe function in order to support deferred probe in case regulator in interest is not available or not successfully probed before HDMI Tx driver. Change-Id: If0a5cf97a86c39fcdf649997c18121cc500f08a8 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Aug 22 15:01:15 2012 +0530 msm_fb: display: Program source address registers correctly Scale filter FIR uses the adjacent pixels as part of the processing. Source address registers should be program such that they point to the first valid pixel so that non-ROI pixels are ignored. This is done by making source x,y offsets to zero and adding the computed offset to source address. CRs-Fixed: 380020 Change-Id: I998fdd46f39dc67f32c422ec209da59d1add2e95 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit f9bc16bf6dcb8beb7d5d6405ee5dc767e6decdff Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Aug 21 15:15:13 2012 +0530 msm_fb : Add option to enable/disable mixer commit Adds support to enable or disable mixer commit during pipe staging operations. Depending on the current activity, this selection can be made. Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 8c13d2615b1c608f941137166efb649353cc0bdb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 25 17:02:52 2012 +0530 msm_fb: Update backlight level on resume after first pan display Use shared workqueue to delay the update of backlight after a first valid frame is displayed on the panel. This avoids any transients being displayed during resume. CRs-fixed: 361002 Change-Id: Ia2c2e39aae62e9ddfebe3a26fb4dbc969d0892c2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c3c52ddda318fcf7e15bd0674c2ba1903fbfa49f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:32:45 2012 -0700 msm_fb: mdss: DSI driver code clean-up Remove mmss_cc base variable. This is no more needed. Create new controller platform data. Move the needed variables as part of the controller pdata structure. Change-Id: Ic5c72911dbfe889e1f8ff6992d438b6631796507 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 00baebf181e4dc29d128a2fd16422333b81a8e43 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: display: Enable IOMMU for MDSS driver Implement all calls to iommu driver from MDSS driver to map all buffers to virtual address space instead of using physical addresses. Change-Id: Ia194bf53dd881e36c702bbe4c024b652ed34df13 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2fa3b134d43a6f9e47542fd25d288ed07205fa66 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 16:02:25 2012 -0700 msm: mdss: expose panel frame rate to user space Some framebuffer clients expect panel frame rate within reserved[4] member of framebuffer info. Change-Id: Ie74950366372af7211ef1c743f26657e89cb7283 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5cf85c06bed6b7bb416093555d347d9eb221f58e Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 19:32:52 2012 -0700 msm: display: fb blend setting via MSMFB_METADATA_SET ioctl MSMFB_METADATA_SET ioctl is added for the fb user to pass in additional infomation rather than using reserved fields. User can set pre-multiplied alpha for the frame buffer via this ioctl, overlay blend setting will take this into account. Change-Id: Ic2f6236d84691fb03174ec479874c6928489ea30 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit cbd2a940d95056c51f6cef0a1641a716c8ed292e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 29 10:46:31 2012 -0700 msm_fb: display: free iommu buffers for WFD Iommu buffers from overlay destinated for WFD (mixer2) are not freed after kickoff. This patch will free those iommu buffers. CRs-fixed: 394270 Change-Id: I6b58b5d1831e7c59c5107641b786730511803557 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b6843a3a56e60e73305c66369f8ad806353e22d Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Wed Aug 1 15:57:52 2012 -0700 msm_fb: display: Add timeout for waiting on update Content Adaptive BackLight userspace algo waits on UPDATE_NOTIFY to get the screen updates. When turning off CABL, this blocking ioctl causes the CABL threads to wait until next screen update, which may take indefinite time. Add timeout value to the wait_for_completion call, to make ioctl call blocking for at most timeout value. CRs-Fixed: 384026 Change-Id: I6715a36020c24ddd09823bd54d4321900429a6b9 Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org> commit f947731692cb9480b53edfb6008a9ab2965fda2a Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Aug 31 03:08:52 2012 -0700 msm-fb: display: double the lvds pixel clock for dual lvds Lower MDP clock causing the underrun issues on dtv boards. To arrive at correct mdp clock pixel clock needs to be doubled for LVDS DUAL lane panel case Change-Id: I202f0d16896f88090a9f8407e067a31cc47eb4ea Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 877932c6538689854e2b6a75ce24c8782fbe1fe0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Sep 7 16:22:31 2012 +0530 msm_fb: Return ioctl on vsync interrupt disable Before the vsync interrupt gets disabled, initialize the completion structure and then disable the interrupt. This enables the ioctl to return successfully in all the cases. Change-Id: I6a7c233f818a773d00497502213d1ecf8fe9dc24 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c5ac568e5050209ec2d2eb63995357cabfd43525 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 19:12:40 2012 +0530 msm_fb: Enable MIPI video mode interface on 8x25 EVB/SKU5 Change to enable MIPI video mode on EVB/SKU5. Initialize the need_wait variable to zero to make sure that during suspend, we wait for MIPI_CMD_DONE interrupt only when the command mode engine is busy. Change-Id: I61a9132a9a9343d136ddc70ce76d8682f9ecf7bc Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit eb868344503ed72b7a7a88913ab16250f934d9a2 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:17:46 2012 -0700 msm: mdss: Add EDID support for HDMI Tx driver Extended Display Identification Data, EDID, provides support to read HDMI sink's various capabilities like resolutions supported, HDCP compliance status, Audio format supported etc. Add support for this in HDMI Tx driver. Change-Id: Id9367a2f64557c385082bbd528afc24b54b98514 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e0a71b9705f4301c39e029f92c7e4c0ca3610f17 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:25:10 2012 -0700 msm: mdss: Add DDC support for HDMI Tx driver Display Data Channel, DDC, is responsible for transmitting EDID and HDCP information between HDMI sink and HDMI Tx controller. Add support for this in HDMI Tx driver. Change-Id: I58d10c61277d36425d89a2270f0ad0495ffd3a1f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 8bb5150587d79db7f60a5336f267666a7bf56bfd Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:14:17 2012 -0700 msm: mdss: Add power on/off support for HDMI TX driver Add support for HDMI panel power on and power off. Open and close of fb device associated with HDMI panel results in HDMI Tx's power on and power off respectively. Change-Id: I9becdffefe681ce104d631e798d196e23dae4995 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0b4ce9984ebbe740103568da1cc2db0d7648c4d9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:03:00 2012 -0700 msm: mdss: Add Hot Plug Detect support in HDMI TX driver Hot-plug-detect (HPD) circuitry is responsible for notifying HDMI sink's connect and disconnect events. Add support for this in HDMI Tx driver. Change-Id: I40fdc64007bffe063ce125ce2e819b06a49d0eb5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit d49fe89aa7eb042947a64f1d5b5f12f54d2c033b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 13:31:29 2012 -0700 msm_fb: display: fix division-by-zero bug Panel v_back_porch could be zero for virtual panels, so the check for zero is added to fix the bug. Change-Id: I6a29f3d8d771092bca2374cc9a1c11dd77ad569e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 108090e77d90ff15da5ef94dd72b7aa6f18b5e94 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 12:38:56 2012 +0530 msm_fb: Change refx100 value for NT35510 panel in command mode Change the refx100 value of NT35510 panel in command mode to bringup PVT command mode panel. Change-Id: I3e9a303a4f203bd7f2ca88f6cd2fe0b1134f8d65 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d6770da3eb24a8d617145526a7f04398bf44b328 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 8 19:35:57 2012 -0700 msm_fb: display: add support of mdp clocks controlled by vsync Mdp related clocks are controlled through vsync enable/disable ioctl from userspace frame work. Crs-fixed: 384482 Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ffe9cf9b1f49bcd8b140cef21c4655d1b69bb1f9 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 15 18:00:05 2012 -0700 msm_fb: display: add wait for overlay0 done Dcs command mode BLT involves both overlay0 done interrupt and dmap done interrupt. A transaction is start at kickoff and end with done interrupt. At some corner cases both overlay0 and dmap transaction need to be completed before kickoff of new transaction. Change-Id: I5a3cc6e8255acf2c61fc627d35f990182d226f63 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ac37f42a6428b4a1a8bc964ea17902ea41772ba4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: improve mdp buffers management Currently buffers are unmapped as soon as it's queued to MDP, however the buffer still belongs to MDP until a new buffer is pushed. Change current buffer managment to track of buffers currently being displayed and properly unmap buffers after a new buffer is received. Change-Id: I6932191fc787f6f5b673edfb690ce1317e283587 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f281368edca05e3171631b17c5767179bd0a77fc Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Aug 27 20:28:38 2012 -0700 msm_fb: MHL: Fix premature register access Until the information about the MHL feature through boot param percolates to the driver via probe we should refrain from accessing the registers or requesting irq. The init and probe functions are cleaned up with all the real initialization such as power, gpio and chip specific settings moving to probe functionality only if mhl is enabled from boot param. Change-Id: I68c0a2848493a7478f3046e439c42f8fb131f000 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e79dde6faab507c51994a8588bebd03dfc5fb57a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 24 16:23:06 2012 +0530 msm_fb: display: Fix blend configuration for MDP4.1 MDP4.1 blend operation registers are not double buffered and take effect as soon as they are configured. Configuring these registers at any place other than between dma and vsync produce flickers as new blend values would get applied to previous mixer configurations. Configure blend operation registers just after dma is over, before vsync. Change-Id: I377c11222f7a0cd77e98e90edec6e2e1dc0c17ca Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit e9d4bc826ca849b873f9e91bda68004aa7d78b25 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 22 10:36:46 2012 -0700 msm_fb: display: add mdp clk rate calculation for low vbp For the panels that have low v_back_porch, if h/w FIR scaling is used, during vbp time, mdp clk should be fast enough to output a line from 4 input lines. MDP rate equation for very small scaling, e.g. 1 or 2 pixels' upscaling or downscaling cannot cover this case, where underruns are seen on those panels. Change-Id: I4f35f98c2c1bc4ef04dfee193427bd3ff674945d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5d3e219fd4e44d67fb122b99745e5e4d4637257e Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Aug 24 17:43:31 2012 +0530 msm_fb: Keep LCDC timing generator enabled during boot up Keep the LCDC timing generator enabled during boot up on MDP 3.03 targets if continuous splash screen feature is enabled. Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5dcea9b4522d3bdc1a0fe38406881b264ce074b8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Aug 28 15:28:12 2012 -0700 msm_fb: display: fix the underrun issue when playing interlaced videos Interlaced videos require higher mdp clk rate and the current code sets mdp clk to max and return. However mdp clk calculation may still give a result higher than max mdp clk, for this case the result is kept and used later to enable blt mode to avoid underrun. Change-Id: I185d0d15e5b79e94561e790e41713cdb405f8bf4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit df6b645836bafcca027bd0820a477e86cf767823 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jul 30 20:12:34 2012 +0530 msm_fb: hdmi: Soft debouncing logic improvements Currently, HPD(Hot Plug Detection, a module used for detecting HDMI cable connection) soft debouncing logic implements around 1 sec mechanism to stabilize HPD event detection. In case of fast HPD connect/disconnect, it is missing a real HPD event. This change implements a new debouncing logic in driver which will make sure the first real HPD event is correctly processed and at the end of debouncing processing, if there is a change in HPD state, the changed state is also processed. This way we always process the change of HPD states. CRs-Fixed: 384513 Change-Id: I02d9814e4a55b7eec11a8e0d134c9ed9b5747422 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 26d04f92047ce213301596f167d84fbc05019f7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Sun Aug 26 00:57:04 2012 -0700 msm: mdss: Correct HDMI interface polarity for different resolutions. For HDMI, hsync and vsync polarity for resolution height greater than or equal to 720 lines is active high. And for resolution height less than 720 lines is active low. Program the these settings correctly for mdp's hdmi interface. Change-Id: I1a8889662f55676c13dfa8b7172bf7bcf7351cf5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c678e139570f7c1c4560c19f284926b6149e7bbf Author: Mayank Chopra <makchopra@codeaurora.org> Date: Sat Mar 3 06:51:20 2012 +0530 msm_fb: display: Add pseudo-planar 422 H1V2 support in the MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation. Add changes to support MDP_Y_CRCB_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: I8083bf44f9e2addf9e8732268147c1c3f6c0e2af Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 3c34bf24b6ba56d4a2633043d8be0c84d0f449f8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Aug 25 18:07:27 2012 +0530 msm_fb: Handle vsync interrupt properly on MDP 3.03 targets Handle enabling/disabling the vsync interrupt and mdp clock enabling/disabling in a better way on MDP 3.03 targets. This will avoid target crashes due to unclocked register access. CRs-fixed: 388751 Change-Id: I5c4a409772464ce7d06869374dcba5ad7e335955 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 330c0bf5f090f05395f0ae64994a6273853aa9e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 14:15:33 2012 -0700 msm: mdss: add color format for venus core Venus output format expects luma and chroma components to be aligned to 32 bytes, add new color format to support this type of input. Change-Id: I1fc9a61a0c8cfa8244460105fdab02d019d31556 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 248948310712bf710ba097a1d1ef8c840f17169f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 19:34:43 2012 -0700 msm: mdss: implement vsync ctrl and events Allow users to enable vsync events to be sent as uevents to userspace applications. This allows applications to listen for and align composition to hardware vsync. Change-Id: Ice480659f8c2adda3b5fe3f2d5bcfb9bf779933c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7e1ec9ab4a865e57372d3536991770f1773af6fb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 24 15:53:35 2012 -0700 msm: mdss: request bus bandwidth before panel on Panel on sequence requires access to bus, make sure bus clock is enabled before panel on by requesting bandwidth for panel commands. Change-Id: I2f92e81b20dba7875a8b1160d14e8fa1895c8f15 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c40f9f9bc1e83ce521759f03b6fd01d9699cd39f Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Aug 13 17:33:26 2012 +0530 msm_fb: Retain CSC values across suspend/resume sequence CSC values pertaining to various H/W blocks are stored in a global structure and will be re-applied during resume sequence. CRs-Fixed: 376159 Change-Id: Ieb151185efd106041e28feedf4fa271ae4ba2666 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 9ed0ef8c7d126938c453aa52c7b69ac869613cc6 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:12:03 2012 -0700 msm: mdss: Add support for HDMI Tx driver This patch adds the HDMI Tx driver in mdss domain. It uses device tree framework to get the platform data and then registers this device as dtv panel to mdss frame buffer domain. Change-Id: I55534919bacea5b044c1da5d44dda8db496e1528 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 907b7e097f61fb5dfeacd23dfddb75b92737b1b2 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Aug 8 18:47:12 2012 -0700 msm_fb: MHL: MSC cmd schedule to prevent overload MSC commands to be sent over the CBUS line need to be scheduled appropriately from the ISR. Reduce delay in any processing within the ISR. Schedule each command over a queue and handle them with a worker thread. Change-Id: I6cbde8ce9e4f8c69b7f0a40bcf12c5d3930d0b8b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f7110b8272c8b46c732f0cb9c9290ca9e7f688c3 Author: Manoj Rao <manojraj@codeaurora.org> Date: Sun Jul 29 22:29:02 2012 -0700 msm_fb: MHL: MSC, RCP/RAP feature implementation MHL implementation of handling CBUS interrupts to enable and handle MSC translation control packets. This change also includes implementation of RCP/RAP protocols with place holders in MHL driver. Change-Id: Icfc31ee1cf71a57cb9b3733d068ea4478b6c4e90 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 83fba4a6a627923fb358fd445a96df5cf9eacbe6 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 16 17:02:02 2012 -0700 msm_fb: display: add mutex on overlay_play to fix iommu page fault An iommu page fault may heppen When a pipe_commit is executed in between of frame dropped and pipe_queue during overlay play. An mutex is necessary to mutual exclusive between pipe_commit and overlay_play. Change-Id: I736e821c6c648a6ebd435303a1906a40e9b75791 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 79e294bf767b12470d08b4300b286403cb40aaa9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 23 19:26:56 2012 -0700 msm: mdss: fix hang when down scaling video to more than half its size When down scaling video more than twice, PCMN filter scaling should be enabled for all components to avoid MDP errors which lead to hang or underrun on screen. Change-Id: I237bc3a16e4916c9270382f55ecae21b46743a5b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e5612f210482d39d41966ebe003bc924f079db2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Aug 27 11:07:32 2012 +0530 msm_fb: hdmi: Correct checksum value This change writes the checksum value to registers after doing all the calculations so that the correct checksum value is transmitted. CRs-Fixed: 388272 Change-Id: Ia0543e458d5a11b148bd29e0d57ae355a051b2a9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bef3d659b9f7538c4a208fe4b29f93d1a9795f76 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Aug 12 09:17:08 2012 -0700 msm_fb: display: alloc/free writeback buffer done at do_blt() To avoid double freeing writeback at end of blt mode, let both alloc and free writeback buffer done at do_blt(). Change-Id: Ida5d24589c19be8f6f655eca6add00badca356b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 580e37bbcb2334315cb9535cd4d1e30147f1142f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Aug 2 17:38:12 2012 -0700 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item HDCP authentication should be kicked off as a scheduled work item so as to ensure that MDP is already configured and frames are being transmitted over the HDMI channel prior to the start of the HDCP authentication procedure. Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 73c7b2f7e9b25a3173aa00a5ea3d9d73484a5cf4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Aug 20 14:49:28 2012 -0700 msm_fb: HDMI: Driver changes to support MHL boot param Add necessary driver changes to support enabling MHL using a boot parameter. The MHL driver will now only be used if it is enabled using the boot parameter. If enabled, the default video resolution and available EDID modes will be set accordingly. Change-Id: I9c07a4bdd07ce1d9120296efb143e987390fa0a2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ea0dcd3f4ad4fd3142bf081795c17d05c42957a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 20 22:21:50 2012 -0700 msm: mdss: refactor overlay parameters validation Some checks done on parameters don't apply for rotation only mode where rotation is not limited by the bounds of panel resolution. Update overlay checks to perform correct validation depending on request type. Change-Id: Ic0cf9863231300f7190dd118b78fa753f77f217f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d2c48e228631fefef2e5a2d9406447358d910f9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 10 22:53:40 2012 -0700 msm: mdss: Add support to make use of interrupt data pointer in an isr Add support to make use of interrupt data pointer during an isr such that mdss panel devices retrieve and use their private data to service an interrupt rather than using global variables. Change-Id: I51a6b1c2814a23b3297556e914ce9601ef266533 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit f502022c101dc1c6d6af35d112be76a88c874a3f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jul 6 18:20:25 2012 -0700 msm: mdss: fix null dereference when using hardware cursor Null dereference kernel panic is seen when using hardware cursor because buffer for cursor is not allocated before using hardware cursor API. Allocate buffer once when API is first called to ensure buffer is available to hold cursor image. Change-Id: I2250c4dd93e54fa4e7122c2465fbaf1deef0fa1e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 15177f038fc05e5de18c437fa8dce63327b42d17 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Aug 14 09:16:37 2012 -0700 msm_fb: display: fix mdp crash during overlay unset Check real_pipe address before refer to it. Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9bfdbf0473204b0267dc86ac4b8cc351194c3ee2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:31:30 2012 -0700 msm_fb: mdss: Add DSI physical layer settings Add support for dsi clocks. Add support for DSI PLL configurations. Add strength, regulator and control settings for the DSI physical layer. Change-Id: I04a0eec869e40b4813cf5187e8eeef63ae2f5a1f Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68b9675c9c5d889e3fcc550fa39fd23ea960ceb0 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:23:11 2012 -0700 msm_fb: mdss: Add support for Backlight control and panel gpios Add code to support the WLED client interface to control backlight levels using led_trigger mechanism. Add support for msm gpio that maps to the lcd_enable line for the panel. Add support for pmic gpio that is mapped to the display reset line. Change-Id: Ie89692f1c0a38d7878271d4a91122d61fbba8c1b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 90e71d1da087b5690eee35e5e88d8faa689c5f8e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 22:57:11 2012 -0700 msm_fb: mdss: Add support for DSI specific regulators Add ldo2, ldo12 and ldo22 regulator support in dsi driver. Change-Id: Ia8e9907e87a293588688e7a47c74fecf155382af Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit d7784e051a508a667a13d431b7d834725cef0379 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Aug 21 19:16:27 2012 -0700 msm_fb: display: Removing clk_set_rate in atomic context clk_set_rate was getting called in an atomic context. This change is needed to comply with Phase 3 clock API's. Change-Id: If7fa9d624b07789803177da55e6c84c3686a2bde Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9cbd41158a2aabc9bc675fd8473bc1ed64251e82 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:29:51 2012 -0700 msm_fb: display: add dcs command list for dsi command mode DSI dcs commands and mdp pixel stream share same dsi link. Add dcs command list to serialize sending dcs command and mdp pixel stream to avoid contention which may cause dsi controller to stall. Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 076901a58037d533840ce6b59c33796a96c2d56f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 10 14:31:37 2012 -0700 msm_fb: display: fix page fault during supend/resume There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d1fff85a0074e6caa8e6136f18644670d76d8f06 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:57:38 2012 -0700 msm: mdss: fix MDP hang when using 2 or more layers Hang is seen when 2 or more overlapping layers are used in MDP, this is caused by problem with VBIF dynamic clock gating. Bypass VBIF dynamic clock gating and force clocks on to avoid MDP hang. Change-Id: I369d036aa059f79c48f3b2feec8ca2b0f49dd301 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 452289427cbf054e7830770333f663ec866ca61d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:19:18 2012 -0700 msm: mdss: add perf settings during hardware initialization Add MDSS initialization sequence, tuning for optimal performance. Change-Id: Icd44abf2707d74bbf29a8d095184067ae3a420d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 21c74c4c8bda9a1d62c052f6b93355de6ce935fa Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Aug 21 21:04:20 2012 -0700 msm: mdss: refactor mdp driver probe Remove references to global variables, remove untested support for board file in favor of device tree. Change-Id: If97536116f5b4ea64ade5938d713572c10415bfe Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 963bdc732baffeb24acc29d6e7e96460bc12ffdc Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:56:24 2012 -0700 msm: mdss: fix irq getting disabled when running concurrent displays Add check to make sure there are no other active interrupts before disabling MDP IRQ to avoid disable of interrupts. Change-Id: Ic2bb9398dfa67d2b210f988de6648d49fd8336ac Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d559ef1c0cfd13d3bef877692babab65a278bba1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jul 12 20:16:14 2012 -0700 msm: mdss: refactor mdss color formats Add missing color formats and reorganize color formats to have better code reuse and make it easy to add new formats if required. Change-Id: Ic7c6bb6f35a9c282d9ef99bd5e1d18b0b8033971 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 114c07229fc6f166e0e14d6f6f5e601e192be8f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 15:47:06 2012 -0700 msm: mdss: use framebuffer line length as base layer stride Adreno graphics core expects framebuffer to be aligned to 32 bytes, this alignment is observed in framebuffer and needs to be used for base layer. If not followed stride corruption can be seen for frames rendered by Adreno GPU. Change-Id: Iea5e729dc4e4613bd7270d7bcf616cff6377109a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ae341d162288d796e0d205897df8d010e059c8d6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 6 11:22:46 2012 -0700 msm: mdss: fix suspend coming to MDP before panel drivers If suspend event is received by MDP before panels, MDP needs to ensure other panels are off before turning MDP clocks off. Remove handlers from framebuffer driver and handle all suspend logic within MDP driver to handle this scenario. Change-Id: Idcda2dd29b28a9993edca78b7e0778985e44b664 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 05bb0b78d6eb80dfe1339f54fa24a4cec7529353 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 8 18:12:43 2012 -0700 msm: mdss: improve clock and bus scaling logic Current clock logic only considers panel pixel clock to calculate mdp clock speed, MDP clock speed should also consider other factors such as surface scaling. Bus scaling should also consider surface scaling factor. Update logic to consider these new factors and perform these performance updates together. Change-Id: If274a7f40f496e1a730e1d0e8d7c35fa4384a832 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a5a987a43f8a24592e0dcdd387dd5ae668f03410 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:46:01 2012 -0700 msm: mdss: allocate framebuffer memory from ion pool When panel size is increased dma_alloc_coherent is not able to find a chunk of contiguous memory big enough to hold framebuffer, this causes framebuffer initialization to fail. Allocate buffer from ion pool which has reserved contiguous memory at earlier stage. Change-Id: Ibf7e3f7fc2c7ad991d69c106bbb6a9dd4c7f0e79 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 67ddb9b38b1793c297ff431ef9f650f355c4abf2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 14 19:00:22 2012 -0700 video: msm: Move histogram disable to before panel off Histogram expects the display to be on while running, thus moving its disable call to before disabling the panel timing generator ensures this assertion. Change-Id: I308b3e0c24f0111fb8549d0a0ae025910d649b75 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41b206d0792724c3ee2e1d881dcaf6025cc200a8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 15:25:44 2012 -0700 msm_fb: display: commit mdp baselayer pipe When in resume or boot time, baselayer pipes need to be committed for mdp to play, otherwize underruns and blue screens are seen. The previous pipe stage up func has this commit which is removed now, so the commit calls have to be added for the cases where base pipe is initialized. Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 496f928dd8cdd2b1b554c379d9336e2e902e0540 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 17:41:34 2012 -0700 msm_fb: display: change implementation of updating mdp_clk and blt mode Currently mdp clk and bw requests are predefined in a 4-entry table passed from the board file, and the logic to decide which level to use is mainly based on source resolution. This patch is intended to address several issues with this approach. One major issue is clk and bandwidth depends on seperate things, and need to be considered seperately. e.g. with mdp composition of multiple pipes, bw request may be high but clk requirement may still be low. The current approach that binds these two things together causes inefficiency of power. Another major issue is that there is no logic to calculate mdp clk requirement of a single pipe based upon panel clk and downscale parameters. Further the worst case of mdp clk should be determined by all pipe usage. Without proper logic, many underrun have been experienced, and blt mode may not be enalbed properly. Also mdp_clk or blt mode update must be on right timing especially between these two pathes: overlay play and pan display. In the situations of performance from high to low or from low to high clk and blt must be handled properly to avoid underruns. In a summary, to support many different panels and targets and complicated mdp pipe usage(mdp composition), mdp driver related to clk and bw needs to be implemented differently. This patch is to seperate clk and bw, and maily to deal with mdp clk and blt. Later increasing granuity of bw will be added. Change-Id: I678fbf86d6997ed7b602ce81cf2e0fff6164d129 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit db0fb308df4830ce3586618c62e77fc157bb9e4d Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 10:25:22 2012 -0700 msm_fb: display: Set timing generator after register flush Timing generator was getting started before the register flush. Stale values were sometimes causing IOMMU page faults on bootup. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Ia671c3603e383af94197a23a8e5e5f32274a9978 commit 36898359d3e8c21b8fa45ce24d3fe472a3813d4b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Aug 11 17:33:04 2012 -0700 msm: mdss: fix incorrect programming of timing generator setting Fix typo in code which is causing incorrect setting of vertical front porch on timing generator settings and incorrect output to panel. Change-Id: I4de61209443fcb284b7d4064a2039b5f546935d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34e216d7db0466fef4b9114ec18cf684275607a3 Author: Lei Zhou <leizhou@codeaurora.org> Date: Wed Jul 25 12:52:13 2012 -0400 msm_fb: display: Correct LVDS bitmap setting In case ASIC 1.1 is used on 8064 platform, LVDS bit mapping misalignment is fixed and no remapping is needed. LVDS bit mapping should comply with VESA format to get correct panel display. Data line #3's bit mapping should be coded in this sequence: DE + VS + HS + .... Change the original codes to go with this sequence. Change-Id: Iaebcfcea9c52207e16bac54ec37dc63e97286ff4 Signed-off-by: Lei Zhou <leizhou@codeaurora.org> commit 8f0326e19752f9b2b083a433621d3581f4e9a9da Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 16:00:03 2012 -0700 msm_fb: display: add dmap waiting before turn off timing generator Wait for dmap done to turn off TG to avoid underruns before base pipe setup and after constant splash during boot time. Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 00c9a911ba43e3ddb4ea6ea1c843dc7101b3b1ab Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:35:16 2012 -0700 msm_fb: display: add stage commit before kickoff to WFD Since stage commit had been splited out of stage up fucnction, it needed to be called to stage pipes into mixer befroe kickoff mixer. Add this function into overlay writeback for WFD. Change-Id: I11e4486d92b89a15e58531033d474b3137b5935a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2a811f2a333ca0507eb98c35831af463f43fb011 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 17 16:54:28 2012 -0700 msm_fb: Display: Fix Dithering issue for rgb565 format Using RGB888 as source format and rgb565 as destination pixel format, will cause image corruption on the display. Fix this issue by setting the destination format as RGB888 in MDP and DSI controller pixel format as RGB565 for DSI specific panels. CRs-Fixed: 377484 Change-Id: If58976ee9cd4825efb39437170e54796fa2213e0 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 3c5ae1f883a8b6a7812d936c5f7e5bb4d0d3142b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Aug 6 19:43:42 2012 +0530 msm_fb: display: Update mdp clock counter for unsuccessful probes If a panel probe does not succeed, call mdp_clk_ctrl to maintain mdp_clk_cnt counter else mismatch in counter results in mdp clock to never go off in cases like suspend-resume. CRs-Fixed: 385560 Change-Id: I4ca54b051af98e823dc7f3ff7b9bcb960532c7e8 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit a28d1bb434e8505630fc5d03383a0ed6d4565885 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jul 29 08:56:58 2012 -0700 msm_fb: display: Add BLT support to dsi command mode panel At run time, mdp BLT (writeback) mode is enabled and disabled base on performance level to avoid mdp underrun. Move BLT enabled/disabled logic to pan display so that enabled/disable is done per commit instead of per queue. Since all panels are shared same logic, dsi video mode and lcdc panel BLT logic have been changed accordingly. Change-Id: I6e04bf0f7bf1c13634e19b18d8ac4368affbc4d8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1c15029f8551ca8f5ffa57973c4eabc471177333 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:19:11 2012 -0700 msm_fb: display: retrieve correct base layer pipe Base layer pipe is cloned and cached at satge array. Retrive the real base layer pipe before used it. Change-Id: I6fc606559684156348a57b500083ed4089fc71b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit df5e3279961b1f43a38ba50f787d785a81ed1e36 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 3 13:47:04 2012 -0700 msm_fb: display: free dtv iommu buffer Free iommu buffer after pipe is committed to hardware. Change-Id: I00506d6fd55d99fec7921c02953fd755a7536d3e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1bb4edf9242b0397975636a4442318713a53b5e6 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Jul 24 13:34:23 2012 -0700 video: msm_fb: Increase display timeout to 2 seconds One second time out for no frame update, as in current implementation, does not allow CABL to reach minimum backlight level possible because histograms dont get generated after one second. So increase time out period to two seconds which seem to be sufficient for complete black to complete white and vice versa transitions. CRs-Fixed: 370804 Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5d7e5b30a98110dd138fddee58bc2a4f3ffdc715 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 9 12:23:53 2012 +0530 msm_fb: Allow MDP hardware init for continuous splashscreen MDP hw init is getting avoided for MDP3.x targets to support continuous splashscreen. This avoids complete initialization of MDP and hence usecases are failing. This change allows the hw init. Change-Id: Ib0304b54bda4a62a20716bde85fe94b2dcfe6824 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5cb07af87572d44d74a2586dfffd1ee537f64941 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 8 16:52:29 2012 -0700 msm_fb: display: clean pipe free or unlock calls A few places have unnecessary mutex unlock calls, and iommu pipe free depends on pipe parameters so move it before pipe is zeroed. Change-Id: I7ef39c66be611907b1b0c38675b15f8bc919d0c0 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b50f747dee6db1d9413fe46cba3d7c42263b21b2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Aug 4 17:04:18 2012 -0700 msm_fb: display: fix fake iommu buffer drop During pipe free, some content of pipe is backed up and then after pipe is zeroed out, the content get restored, in between there should be no actions to change the content since any change will be wiped out by the restore. Change-Id: Ia6da0162d1f9b614682e1fc36edab1db003b42ab Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4a652002fecbd5d984d01fbe2f32515f1a98ba91 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 17:38:07 2012 -0700 msm_fb: display: clear correct pending isr Clear correct pending isr during irq enable/disable to avoid unexpected side effects Change-Id: I5e7afc778cb8d5feda40f359ff2aae6493dc7cd2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 45301d3beb046201b8d4a54a2de274dabf1ebc46 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 2 13:27:49 2012 -0700 msm_fb: display: fix iommu leaking Fixed iommu map buffer dropped after overlay unset by saving origianl iommu list before zero out overlay pipe structure. Change-Id: I498dd4cf62e93f4571883fe20a0298e9fad4ccab Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e2b559d1a1694e10bb2aa47826db24a8baceda6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 7 13:23:23 2012 +0530 msm_fb: hdmi: Give proper buffer size Need to give proper buffer size for snprintf function calls. CRs-Fixed: 378343 Change-Id: Ia4df74c9871b26255572bb3ba226317c3076b5b6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f3b0c231a85ceef488440ab02fba9b15e468faa0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jul 27 20:46:06 2012 +0530 msm_fb: Add support for Vsync driven composition on MDP 3.03 targets Add support for vsync notification to user space using user events. This is to trigger frame composition based on Vsync. Change-Id: Ie94edfcdb5e540dd2f9a4a5df4bc3b7c4eb9041c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c58fcce723e54466b85981bafe7179b717ff2371 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Apr 23 20:39:17 2012 -0700 msm_fb: MDSS: Add DSI driver support for MDSS Add the dsi driver implementation for DSI version 3.0. Use the panel information retrieved from the 'dts' to configure the interface parameters. Add the device tree binding file to specify the basic configuration and panel features. Change-Id: I6a3677401454ad1d2bc29b0b845b0366eb7842b7 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 17182d61f4cfdc990706bcacfb1ab02f631fa154 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Aug 3 11:14:36 2012 +0530 msm_fb: display: vsync support for HDMI as primary When HDMI is primary, dtv is associated with node 0. In this case, DTV vsync and ctrl need to be called for node 0. CRs-Fixed: 383877 Change-Id: I425cddf453dd159259883e71f92c32918ca8e6c7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 378fed12479c91893acbc56124b7d69ab7bd8166 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:40:51 2012 -0700 msm_fb: display: enable sending uevent as default Enable sending vsync uevent as default so that uevent will be sent to usersapce frame work when first request recevied Change-Id: If72248007d68cba8fc814d449b46a58d842544ba Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 68446e5773292eea8a7bb33e7240cf7a67c0194c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 30 15:14:55 2012 -0700 msm_fb: display: add iommu mapping for mdp cursor buffer address The mdp h/w cursor buffer physical address needs to be mapped to an iommu virtual address when iommu domain is enabled. Change-Id: I73b4492fc4d63632117074136e4d908f5089eb93 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit dc5cfefb1bd5a30f8f1a611fca61cc9d7bc7bddc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 12 11:19:20 2012 -0700 msm_fb: display: set pipe src and dst size same in solid fill mode When a mdp pipe is in solid fill mode, the pipe outputs constant color and pipe itself does not fetch data from memory, so pipe src size should not matter. However, when src size is greater than dst size in solid mode which means downscaling, underrun happens. In this situation, setting src size to be same as dst size can remove underrun. CRs-fixed: 368478 Change-Id: Ie3ffc34486129cddcc872fe6e5317873db985b97 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit efb6c143ea951dab6dc72586100999d5b94c1c8d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 26 17:45:57 2012 -0700 msm_fb: display: no early suspend for writeback panel Writeback panel is not real physical panel and no power consumption concern, so it is removed from early suspend registration to avoid open fb2 error during suspend/resume. Change-Id: Ic61f69e069f2da8c73f2b5a13d103a2f20034d20 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 98b3a61592b34d0f39ed2dd00ef56b3ad575e0d2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 16 21:12:33 2012 -0700 msm_fb: display: remove mdp_lut_enable call to avoid hang issue Calling this function is not necessary in mdp overlay2 writeback driver. If called, it causes command mode primary hang. CRs-fixed: 365332 Change-Id: Id7054c3e56224035ec5939d91f8ce152b038e858 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit f15aa8bcd2f3b4333e8f010c8af6be3a16cfb882 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 3 11:52:31 2012 -0700 msm_fb: Increase the pixel clock range for DSI panels Increase the upper limit for the pixel clock that changed with the newer version of the DSI controller. CRs-Fixed: 380003 Change-Id: Ibbeaa478b4d12ae8f350be41f959d53a6ae6c923 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit cc3df57a918118a1b70a43921d0377fb2790fa1b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 18 18:28:42 2012 -0700 Revert "msm_fb: display: Register MDP fault handler with IOMMU driver." This reverts commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b. This enables the IOMMU page fault register dumps from default handler. Change-Id: Icddd2394f5aa337e1a4998247cc4e3201f752e84 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5f3807bcf41ae01b17a4140b010db6ed02899c18 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 4 00:06:20 2012 +0530 msm_fb: Add "Continuous Splash Screen" support for LCDC panel Add changes to support continuous splash screen on 8x25 SKU7 for LCDC panel. Delay the MDP hardware initialisation, keep LCDC timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Ied091b01ad2f26acdff73e3ffe158d844198923c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0a3699b368fd72a86fb293e37a420b9a34dbd5d0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 30 16:17:10 2012 +0530 msm_fb: Add support for "Continuous Splash Screen" on 8x25 EVB Add changes to support continuous splash screen on 8x25 for video and command mode panels. Delay the MDP hardware initialisation, keep video timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Id5e635ca986e66abb3cbf7c5a174f952ea489708 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 14baef8b22dee8e1d5019a9ac9c6e6cdb48fbbe5 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use YCrCb 420 as the output format for writeback Use YCrCb 420 (NV12) as the output format for writeback. For Wifi Display use case, NV12 is required as the encoder requires this as the output format. Change-Id: Ica8851073476b9c05f3b5b41232803c2d71f7a3e Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit dbb6355114354211a5bcc2ba9f120d601d7a4712 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:17:53 2012 -0700 msm: mdss: Return proper msmfb_data back to client For local clients, return the relevant msmfb_data which contains a cookie relevant to the client. Change-Id: I9b845c0cd7fde1bc8c53a5063ba331460d67427d Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 3d36e64838fbd064ad4868e1a3770e27c183f83e Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jun 21 18:23:52 2012 +0530 msm_fb: display: Add pre-multiplied alpha support for MDP4. MDP4 blend logic differs from GPU blend implementation as MDP4 does not differentiate between pre-multiplied alpha layers and non pre-multiplied alpha layers. Check layers for pre-multiplied alpha and change blend logic accordingly. CRs-Fixed: 355755 CRs-Fixed: 361729 Change-Id: Id8253d3888f1ebbadba1b6bbd87e7d98bac22da7 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 5a19b70f2846822228d0ae0ef56d14162812ff9e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 25 11:15:20 2012 -0700 msm_fb: display: Map framebuffer region in Display Write Domain Framebuffer is currently mapped for Display read and rotator source domains. For MDP writeback mode, Display write domain requires framebuffer region and it is mapped at initialization time. CRs-Fixed: 382550 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iba6fd0201a48fe1864bf42e9576f063cd58646fd commit ec5b2ff6857134832d165b8c2db8174c0d0ef4a7 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 20:06:41 2012 -0700 msm: display: use the fb reserved fields same as kernel 3.0 Reserved fields of fb structure used for various use cases in qcom fb driver. Reducing the reserved fields caused lot of side effects and it will change the reserved fields same as kernel 3.0. Change-Id: I7bf82a9b5667cb5c84b54e428bbfcb6869157bd7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 071280769e98128452ce8773e7ac2bc353f0cc93 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 25 17:57:15 2012 -0700 mdss: display: expose panel parameters through framebuffer API Panel porch values and pixel clock can be used to calculate the refresh rate from user space. Assign these values with information from panel driver. Change-Id: I29995d27904e50892d72de5e8c7dd39285f9d421 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34c2b52441d968030b31841eda77a09d73b89b8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jun 28 15:48:10 2012 -0700 mdss: display: allocate buffer from ion when debug writeback enabled Debug writeback is used to output MDSS framebuffer contents to memory to for debugging of MDSS core. Use ion buffer allocation for debug writeback buffer instead of using memory from framebuffer base layer to allow entire framebuffer area to be used for composition. Change-Id: Ia1a91f5f14bed1d29691092142fc94f7a8b6f4d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 686c70adef370bb5b60a116bdf326b2062c946d5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 15 11:28:12 2012 -0700 mdss: display: fix incorrect rotator programming Source format should indicate that source is to be rotated 90 degrees instead of indicating source has been rotated 90 degrees. This is needed for hardware to fetch source in correct order and generate correct 90 degree output image. Change-Id: If8d1e12ef3e7a291e67ec9763f5ca92ec6fa983c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 38506ba57f21ea83fbb8adb6d6818e9f1611377a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 18 10:26:56 2012 -0700 mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bff7356885b596340c9701fd1a6b18b08f8e75a5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Jul 26 10:59:49 2012 -0700 msm_fb: display: free writeback buffer at correct time When mdp pipe is freed at end of video play back, Writeback buffer is freed while mdp still fetchs data from it. This cause system crashed and blue screen shows on screen. This patch will free writeback buffer at correct time. Change-Id: I46a5031c13d86f943d6604713e1841b482dffe96 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 586fd1628cdd10468e0d6496a77a236f18eaf9c7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 14 15:24:16 2012 -0800 msm_fb: display: vsync driven screen update This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: If630a6d94fd38483ee313f575b1a71ed8bd65a52 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe8e81ccadfb4ba621094c924f31f8c230daf63 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 9 17:54:01 2012 -0700 msm_fb: display: Set LVDS Chimei panel frequency to run at 60 fps Modify LVDS Chimei panel pixel clock from 75 MHz to 79.4 MHz and update PLL settings to achieve refresh rate of 60 Hz for better user experience. CRs-Fixed: 375510 Change-Id: Ifb4036c790552b1c43d5a3c817ed05691f86c7f6 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit dfe5751941ef2478c57565f8ebca09623d83a8a4 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Jul 23 12:34:47 2012 -0700 video: msm: Add CSC and QSEED support to Overlay API Add support for CSC and QSEED configuration through MSMFB_OVERLAY_SET and MSMFB_OVERLAY_PLAY ioctls. Provide better integration than previous attempt with the existing Overlay and PostProcessing APIs. CRs-Fixed: 380750 Change-Id: If895391074ef1e7d7a6824d289e1ed9da6a52180 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 3118cb077358e472adb0db8e207a63bd84fd267f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jun 22 18:15:18 2012 -0700 video: msm: Remove old post processing overlay integration Remove old implementation of HSIC and QSEED smoothing/sharpening overlay integration. Need to replace with new implementation that better integrates the existing functions of the two APIs. CRs-Fixed: 380750 Change-Id: Id3469fad16764ed88e74a8da75bb873f726ba366 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 382b00b9a664fa0bd9b8d8bee2dae3f4340d425d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:45:07 2012 -0700 video: msm: Add QSEED Table2 Support Add support for QSEED Table2 reads/writes. Table 2 is a table of coeffients for QSEED Table 1 to offset into. Table 2 is quite large, caution should be taken when writing into it. CRs-Fixed: 380315 Change-Id: I89be18c0047dcf1d9a3bcd538967b2bbe7b4efe1 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fbf467206a4b5d09f51268535364f0a1b462eef6 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:43:39 2012 -0700 video: msm: Add QSEED Table reading support Add support to read the tables of QSEED values. When the values of the QSEED tables are able to be written to, it is beneficial to be able to read what's there as well. CRs-Fixed: 380315 Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 43da18d00abc2a61834b6650a49bf7edcf4f4df0 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Apr 12 15:37:44 2012 -0700 msm_fb: display: switch blt mode on/off without turning off TG Turning off dtv TG may cause blink. MDP requires h/w idle to change blt mode, turning off TG can make sure mdp h/w is idle. If turning off TG is not desired, one way to do is to check busy bits of overlay and dmae and once they are both idle, the mode can be changed. CRs-Fixed: 363717 Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit fccacdf4e72f8b39c3087628aee41bf94652e220 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 12:01:01 2012 +0530 msm_fb: hdmi: Proper switching of switch device Switch device used to tell userspace about HDMI connection needs to be enabled when: 1. HPD connect 2. Authentication successful And disable when: 1. HPD disconnect 2. Authentication failed Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 53156f5794a1eb8625033cabe243bf35bde93d1f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jul 24 10:13:05 2012 -0700 msm_fb: display: add out of range check for display sizes MDP pipe or mixer size registers have 12-bit number, so boundary checks are needed for those parameters. If not, input req sizes could be very large 32 bit unsigned numbers, e.g. 0xffffffff, unsigned operations may have overflow to pass all later checks, causing MDP underruns or hang issues. CRs-fixed: 380469 Change-Id: I096d7022ede21d54266b46a140782ab0348dd54b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6957fa026060675c197e2aad0762065a6aba7e31 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Jul 11 21:08:50 2012 -0700 msm-fb: display: Tearing issue during video playback Tearing was observed while playing 1080p H264 videos in potrait mode. Enabled blt mode check for MIPI command mode panel as well. CRs-Fixed: 369365 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7 commit 62d4a8cb1a5a1a98b3a70988de9ff9e2c1368be6 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jul 17 11:44:25 2012 +0530 msm: HDMI: Re-initialize the scan details for every HPD After disconnecting the phone from TV which doesn't support underscan, and connected to TV which support underscan, underscan is not working due to non re-initialization of scan variables. Re-initialize the underscan variables for every HDP events. CRs-Fixed: 375862 Change-Id: I22b7b8785ec93f9cf226e9b646a851ffb3ceff62 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit df67a26bb4e4eb274ef367ad67b10d1c845ef7f9 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 17 23:54:47 2012 +0530 msm_fb: display: Remove unnecessary dtv_pipe checks In case of PAN display, PAN update function would return without allocating dtv pipe resulting in no HDMI display. This change removes unnecessary checks and enable dtv pipe for PAN display as well. CRs-Fixed: 379625 Change-Id: I533392a1120a21e962fbbbf0c07a89997832406f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 30befc28305440f30770a6545839fe4b55ee2207 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed May 30 11:04:00 2012 +0530 msm_fb: display: suspend-resume on HDMI When HDMI is primary, suspend-resume is not happening. For HDMI as primary case, early suspend and resume can be used. This change implements early suspend and resume for hdmi as primary case. CRs-fixed: 381097 Change-Id: I7b83d07a8b109294f3606c60f58b760836b88685 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6b82d2ba8296e956abcd4c0c2014138390439dee Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 17:23:26 2012 +0530 msm_fb: hdmi: Boot param support for resolution change Boot param support for dynamic resolution change for HDMI as primary case like MPQ. With this change, MPQ can also be configured for different resolutions than the default 1080p@60Hz using boot parameters. CRs-Fixed: 373211 Change-Id: I2c8537724ddd1ece7e81e6022afb9315c5147aa2 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2568be7b453fc06ac0ce2a293021f2309e3ebbfa Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 21:20:58 2012 -0700 msm_fb: display: Configure MDP clock table based on DSI Video pixel clk To avoid display underrun issues, configure the MDP clock table's rate according to DSI Video mode panel's pixel clock frequency by 1.15 times. Change-Id: I9bc864a754c2d51c9d86ece79863820eb72cdae8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 16c8ae2beba81d102bccd130ccf8cca06533cc28 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 21 11:31:15 2012 -0700 msm_fb: MHL: Adding MHL api's for USB interaction. Adding MHL api's for device discovery and registering callback mechanism.USB driver use these API's for synchronization with MHL driver. Change-Id: I0846951302e3b5f5d20d566c92c2f224528ca455 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c8430bd159039340c5a50e6897b256631f5dc7bb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jul 9 12:34:01 2012 +0530 msm_fb: Add histogram support for MPQ 8064 Currently, there is no support for histogram on MPQ 8064. Add support for histogram ioctls to support histogram testing. CRs-fixed: 375580 Change-Id: I24ccf73c6ea6d230da4624ea196cba2d8195f8b2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit bc49e8330d32669aadc012585e3a2bcad0f34b85 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Jul 14 16:18:02 2012 +0530 msm_fb: hdmi: Turn on switch dev when connect to HDMI Audio is not routed to TV after deep sleep and resume. Userspace is dependent on switch device to indentify audio route. When HDMI is turned on, this switch needs to be turned on as well. CRs-Fixed: 377159 Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f0a3914b984c75b66ca7d96a479c08230928e2d1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Mon Jul 9 16:59:35 2012 -0700 msm_fb: Remove control of HDMI PLL regulator The regulators required by the HDMI PLL are now controlled within the clock driver. Remove the explicit control from mdp.c. Change-Id: Ia2975a5a83b77cd9e21fc43cabea754b7b040dd5 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit f0fd8e7323ea0f60539918528a4cfa1edb39b828 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 3 15:08:20 2012 -0700 video: msm: Add user-defined backlight scaling Add method for scaling backlight based off of a user provided ratio and minimum level for the scaling to be applied. Change-Id: I74c2329c842dd9cbbc9eddfff38cd56fd0e939a4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 649ca22aba67cd429025ee026015b6082b38539f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 9 18:19:18 2012 -0700 msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch DMA addresses are configured after Layer Mixer is set to writeback mode. This leads to IOMMU page faults due to incorrect addresses read from DMA. Hence DMA is programmed before Mixer setting. Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3bb47a097c62b71c7f8f2be888a1f73c6cfb8142 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jul 13 11:51:24 2012 -0700 msm_fb: HDMI: Fix for high HDMI sleep current In certain cases, the HPD circuitry is not switched off when the device goes to suspend state, resulting in high sleep current on the HDMI power rail. This patch ensures that the HPD circuitry is always turned off during suspend operation by removing an unnecessary condition check. Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f7f94cef2a64930e1476c09a5a402631bd39d99 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 10 16:08:30 2012 +0530 msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 10bbb7da8663f44fd348d72fef24f08bbc789cd5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jun 3 07:56:23 2012 -0700 msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk Since dsi clock is accessed by both thread and timer context, spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing of dsi clock. Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 97c332da161665e9ec31a222dcd919267889af1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: Id007cf96588f817bcfe8559177abb073a9b00755 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3d297368b8199b07bda815915e94ecb5761561b0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jul 5 17:24:45 2012 +0530 video: msm: Fix corner cases of "read twice" error Fix several cases where histogram's completion structure is completed multiple times which causes the next histogram read to force the histogram software state machine into believing that the histogram is always being read by someone. When the timeout in mdp_do_histogram times out and then soon after the work that was being waited on completes, the next do_histogram call that is processed will not wait (and thus will not have its hist field set to NULL). This will cause all subsequent do_histograms to think that the histogram is currently being read, and will cause the "read twice" message to flood the kernel logs. This error is fixed by always initializing the completion structure before waiting for the histogram to complete. That way if the completion happens after the timeout, instead of causing the error, the completion's internal counter is reset to zero, which prevents the next histogram read from completing without waiting. Change-Id: Ic1bc4b8688cd191d226de1df15d389de09996106 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 18e97cde0f9875c41692139d30bce497df31b8fb Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Jun 22 00:33:51 2012 -0700 msm_fb: MHL: Driver changes for Integrated MHL Power up and GPIO functions have been moved to the driver MHL HPD event also triggers the HDMI HPD event since 8x30 FLUID device doesn't connect HPD line from 8334 to HPD line from MSM HDMI. The pull-up resistance in 8334 has been set to the recommended value so that the interrupts are sent over to MSM-USB driver. Change-Id: Ib8bb462c81706ff2dc027535ef766917bb7da39d Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9d7db4fd399109999f4ec0207651f335920f06db Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 23 18:49:59 2012 -0700 msm_fb: display: Wait for overlay done after DSI Video writeback switch After writeback mode is switched for DSI Video interface, wait for overlay done for prefill frame to avoid unnecessary fetches from previous buffers resulting in page faults. CRs-Fixed: 372389 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617 commit ef95ae33a328426b45f502eeb86f2edc120faf30 Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 50f0f86034c97484081e1bbf4ea36253a21474f2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jun 21 18:53:25 2012 +0530 msm_fb: display: Add ion support for PPP Add support for ion in MDP PPP drivers for accessing source images and destination images. Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a43f44b44ee221df11ad84b8536c1c8d5373cbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jun 28 20:00:42 2012 +0530 msm_fb: Handle multiple histogram reader errors during suspend/resume If a histogram reader waits for completion in the do_histogram ioctl and during this time the device is suspended, the complete for this gets called from mdp_histogram_ctrl_all() in the panel_next_off() sequence. This results in mgmt->hist not set to NULL. The subsequent do_histogram ioctls after device resume fail due to multiple reader failure condition since the histogram irq will be enabled now from the same mdp_histogram_ctrl_all() during panel_next_on() sequence and this by-passes mgmt->hist getting set to NULL that is present in histogram_start() ioctl. Handle this scenario. Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c45b820e3000c1c7f76cc1a3e1efcfaa33b75eba Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jun 27 12:00:44 2012 -0700 Revert "Revert "video: msm: Always queue histogram work"" This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90. commit 2423ba8... will be refered to as commit X Commit X should have been listed as a parent of commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue histogram work & lock histogram calls). commit 56a123b... will be refered to as commit Y Commit Y is composed of 3 commits that were squashed together after they caused errors when only one of them merged into mainline. Commit X was created to revert the first of these 3 commits, and thus resolve the errors. However, when updating commit Y, commit X was omitted as the parent commit. So when commit Y merged as a parent of commit X, commit X reverted part of commit Y. By reverting commit X, this commit restores commit Y. Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit b14ed96f74b1258b1f102831a2b0ccd56f991132 Author: Laura Abbott <lauraa@codeaurora.org> Date: Mon Jan 30 14:18:08 2012 -0800 gpu: ion: Pull in patches for 3.4 Pull in Ion patches for 3.4 upgrade. Inclues the following patches from google: commit 7191e9ba2508ca6f1eaab251cf3f0a2318eebe26 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Jan 30 14:18:08 2012 -0800 ion: Switch map/unmap dma api to sg_tables Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 6f9e56945d4ee3a2621968caa72b135cb07e49c4 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Tue Jan 31 09:40:30 2012 -0800 ion: Add reserve function to ion Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 9ae7e01de1cf03c77054da44d135a7e85863fcb0 Author: KyongHo Cho <pullip.cho@samsung.com> Date: Wed Sep 7 11:27:07 2011 +0900 gpu: ion: several bugfixes and enhancements of ION 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in those virtual address spaces. 3. Makes the return value of ion_alloc() to be explicit Linux error code when it fails to allocate a buffer. 4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and relavant call to ion_buffer_put(). 5. Checks if the task is valid before calling put_task_struct() due to failure on creating a ion client in ion_client_create(). 6. Returns error when buffer allocation requested by userspace is failed. Signed-off-by: KyongHo Cho <pullip.cho@samsung.com> commit 043a61468f395dd6d4fc518299726955e9999c59 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed Feb 1 11:09:46 2012 -0800 ion: Switch ion to use dma-buf Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 0d1259b5f84969bd00811ff9faa1c44cdb9fdbb5 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Apr 30 16:45:38 2012 -0700 gpu: ion: Use alloc_pages instead of vmalloc from the system heap With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit be4a1ee79a89da3ca705aecc2ac92cbeedd032bd Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Thu Apr 26 20:44:10 2012 -0700 gpu: ion: support begin/end and kmap/kunmap dma_buf ops These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 46d71337f9aa84694e4e6cca7f3beb6b033bbf76 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon May 7 16:06:32 2012 -0700 gpu: ion: Allocate the sg_table at creation time rather than dynamically Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 903f6c716db3d4e26952aae9717f81dd5bc9e4ba Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed May 23 12:55:55 2012 -0700 gpu: ion: Get an sg_table from an ion handle This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> The commit also includes fixups needed for MSM specific code. Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 24502cb2cfd176d72cc6884dbeb375c7fb054766 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 25 18:58:45 2012 -0700 msm_fb: display: Enable MDP clock's overlay block during panel on MDP clock's overlay block is enabled during first update after panel on currently. This is now moved to panel on to keep clock enabled right from display on time. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ie201186c1471201874f2eff246486bc4a73b5872 commit 89dd8eb788bc97479a7c7bfbcafc25f1b63ceda0 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Jul 2 17:05:16 2012 -0700 msm_fb: HDMI: Fix lockdep warning Locks must always be taken in the same order to prevent AB-BA scenarios from occuring: ====================================================== [ INFO: possible circular locking dependency detected ] 3.4.0-g55e6e49-00052-g71783d6-dirty #3258 Tainted: G W ------------------------------------------------------- kworker/0:1/15 is trying to acquire lock: (hdmi_msm_state_mutex){+.+...}, at: [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 but task is already holding lock: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (external_common_state_hpd_mutex){+.+...}: [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0341510>] hdmi_msm_hpd_on.clone.0+0x230/0x2c4 [<c07e5dfc>] hdmi_msm_probe+0x378/0x588 [<c03dcc00>] platform_drv_probe+0x18/0x1c [<c03db920>] driver_probe_device+0x148/0x334 [<c03d9f5c>] bus_for_each_drv+0x48/0x84 [<c03db7ac>] device_attach+0x78/0xa4 [<c03daa4c>] bus_probe_device+0x28/0x9c [<c03d97e4>] device_add+0x438/0x5e0 [<c03dd13c>] platform_device_add+0x13c/0x1a0 [<c0d255d8>] hdmi_msm_init+0x218/0x2d0 [<c0008708>] do_one_initcall+0x94/0x168 [<c0d002fc>] kernel_init+0xe4/0x1b8 [<c000f4f8>] kernel_thread_exit+0x0/0x8 -> #0 (hdmi_msm_state_mutex){+.+...}: [<c00cc6b8>] validate_chain+0x944/0x1080 [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 [<c0097420>] process_one_work+0x37c/0x694 [<c0099978>] worker_thread+0x22c/0x3bc [<c009ecdc>] kthread+0x8c/0x9c [<c000f4f8>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); *** DEADLOCK *** 3 locks held by kworker/0:1/15: #0: (hdmi_hdcp){.+.+..}, at: [<c00972b8>] process_one_work+0x214/0x694 #1: ((&hdmi_msm_state->hpd_state_work)){+.+...}, at: [<c00972b8>] process_one_work+0x214/0x694 #2: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 stack backtrace: [<c001521c>] (unwind_backtrace+0x0/0x12c) from [<c00cbb14>] (print_circular_bug+0x288/0x2d4) [<c00cbb14>] (print_circular_bug+0x288/0x2d4) from [<c00cc6b8>] (validate_chain+0x944/0x1080) [<c00cc6b8>] (validate_chain+0x944/0x1080) from [<c00cd744>] (__lock_acquire+0x950/0xa10) [<c00cd744>] (__lock_acquire+0x950/0xa10) from [<c00cd990>] (lock_acquire+0x18c/0x1e8) [<c00cd990>] (lock_acquire+0x18c/0x1e8) from [<c080c248>] (mutex_lock_nested+0x68/0x3c4) [<c080c248>] (mutex_lock_nested+0x68/0x3c4) from [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) from [<c0097420>] (process_one_work+0x37c/0x694) [<c0097420>] (process_one_work+0x37c/0x694) from [<c0099978>] (worker_thread+0x22c/0x3bc) [<c0099978>] (worker_thread+0x22c/0x3bc) from [<c009ecdc>] (kthread+0x8c/0x9c) [<c009ecdc>] (kthread+0x8c/0x9c) from [<c000f4f8>] (kernel_thread_exit+0x0/0x8) Change-Id: I251049edbc97a5fe0e6c67801cf472fdc48722a7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dbbca9b8710704bd0ae37acd40e30b6aba6d1462 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 19:04:08 2012 -0700 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call Attach IOMMU call is currently done from DSI cmd mode DMA update method. Move the attach call to kickoff which enables it from restore and video paths Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf commit 07876121525c631cbf914c8777e01875c293d0ed Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 12:27:49 2012 -0700 msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get() After regulator_get call for HDMI PLL footswitch purpose, set output voltage to 1.8 V to ensure proper state while enabling and disabling regulator. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24 commit 3ac0c174b21293d50773bb8b2bc5ad9ee2aedf23 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 22 18:46:33 2012 -0700 msm_fb: display: Fix Toshiba WSVGA panel porch and timing settings Fix the porch and timing settings for DSI Toshiba WSVGA panel to enable writeback mode switch efficiently. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ib768d13617470f75ae027970c6ca4779d6b5a367 commit 254d6740cfa0a32afe9bb66762199ea5931f53d0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 30 22:12:09 2012 -0700 msm_fb: display: Flush pipe registers before staging for Mixer 0 or 1 For Mixer 2, register flush need not be called. Flushing is done only for pipes on mixer 0 and 1. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I54758f79552790de2ad936703ba6140ac57b76c4 commit 37320fb657169e39aef13afb468ae551481658f4 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Jun 26 14:50:28 2012 -0700 mdss: display: Correct regulator API usage A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit b5085c57a43b2ba6cded7b4adeb646ed3c8ad095 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Jun 20 11:43:54 2012 +0530 msm_fb: display: Increase wait for VSYNC Wait time for VSYNC needs to be increased to accomodate 1080p 24HZ resolution which requires around 41ms. CRs-Fixed: 368521 Change-Id: Ideda24bb83e32a6d5035c6193ef3dfd5e0c947fc Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 4a4f2d591cebc94b179e58cc6418f4598146f3c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 20 18:30:05 2012 -0700 msm: display: Add MDP footswitch regulator control for HDMI PLL Add support for enabling HDMI PLL regulator along with footswitch enable/disable to avoid PLL lock detection failures during suspend/resume Change-Id: I9b161cab50d2b6c39de39b588e326f5ff97cbc65 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9c4743fd7d5e5230b4f05564432bd6d6b51b4a88 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:31:43 2012 +0530 Revert "msm: iommu: Split rotator/mdp iommu domains" This reverts commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a. Change-Id: Ie93cbb23eaa1e35bfbacc53cd18f05b345acea4b Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit fd233093130a8b11519630cf3b38f02491e634a3 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:30:49 2012 +0530 Revert "msm_fb: display: Add DMA and Overlay blt mode address to MDP driver" This reverts commit 5f979254a80b7a844df3d9c1f49e16427f2477cc. Change-Id: I595afa529d96e8378d00e75bd836cfa191ab5135 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef5b150ffa574ec1aac76618e2cfd1d94ee626ba Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 13:08:06 2012 -0700 msm_fb: HDMI: Removing unnecessary HPD detection code. HPD read work is used to detect HPD at bootup which is not required as HPD detection is taken care at bootup by toggling the HPD circuit. So we can safely remove this redundant code. CRs-Fixed: 368865 Change-Id: I8eed00c4f5af2ed2ca37e86da622ab518e5eb887 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2423ba8ae07458ec93efa07d777454f26d1d7c90 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 19 18:09:36 2012 -0700 Revert "video: msm: Always queue histogram work" This reverts commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b. Revert patch that is causing excessive histogram logging. Will merge original patch with fix when issue is resolved and tested. Change-Id: I99b04362f6acd4f75a72e4b3ca52406907971e67 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14c5e7a160faee03393994b064a093019aca9333 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 14:02:58 2012 -0700 mdss: display: Add writeback support for WFD - Implement APIs used to support wifi display (WFD) based on ioctls and functions declared in linux/msm_mdp.h. - Restructure writeback interface file to support custom output formats and take buffers from WFD APIs. Change-Id: I3e6b75bd8b7d73eb20c97899de1891bbd85e9fa4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20684ab9fdf25602872a602d89a3d3eda1b15102 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed May 9 19:16:40 2012 -0700 mdss: display: implement common irq handler for different mdss blocks All of MDSS blocks (mdp, dsi, edp, hdmi) share same irq line. Implement function to manage MDSS irq line with common API with support for irq callback handler for each of block. Also fix incorrect calculation of MDP interface interrupts. Change-Id: I1271f7e1065aac95175b6e92504917264f4043a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2dca5a058c622a7bd0803285b10ec081b8f8e3ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 19:00:54 2012 -0700 mdss: display: add video display interface support Video mode display interface is used by DSI, HDMI and EDP controllers. Implement MDP support in order to setup data path to these controllers. Change-Id: Ibc766a1d10a55bcf64a3ab693db034a378afe4ee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4e584a304cdf03c4ed7cc28a6457ac22e5d4c688 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:25:01 2012 -0700 mdss: display: implement csc matrix programming Implement color conversion matrix programming to support YUV surfaces. Also add dspp initialization stub function. Change-Id: I7ba57eca24e15acffbddf7b81fac6b8a6ce3bba5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1857f06647e420c97f9b0e24bb1b77da710d858a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:57:28 2012 -0700 mdss: display: add rotator interface to mdss driver Add rotator session management support with overlay interface using MDP flag MDSS_MDP_ROT_ONLY. Overlay interface can only support overlay surface or rotator (written back to memory) but not both. Change-Id: Ib2f494683b2e6c2fd8c67818df2b57afb82a3df3 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 96a1e9e9a778f0729b7073f20a0fbd9a63c9ba8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:36:57 2012 -0700 mdss: display: add clock and bus scaling logic MDSS hardware supports different bus bandwidth and clock frequencies depending on the load on the hardware. Add support to driver to calculate the bus bandwidth and clock frequency requirements and activate changes before the load on hardware changes. Change-Id: I9bb5bbc7b3e18fb1a738f527b875506dfa0c5c81 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ef3ac01347acd86ea5a3f7a7b44cbe88bb90221 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 14 18:40:47 2012 -0700 msm: copper: add device nodes and clock information for mdss Copper uses Mobile Display SubSystem, add device tree and clock information to be used in mdss driver. Change-Id: I67397a28168407b3268f4f026f35d69a04062995 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5f979254a80b7a844df3d9c1f49e16427f2477cc Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: I522944b804fe65925df428d6bb312262328a11d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: If3e556171645e8ea02deb12ca543df36233db5f2 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work & lock histogram calls Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). Lock the mdp_histogram_start and mdp_histogram_stop calls with the same lock used currently by mdp_do_histogram to maintain that every do_histogram called between a start and stop will be completed. Add a timeout to do_histogram wait_for_completion so that it will unlock and yield to other histogram calls if it waits for longer than 33 msec. CRs-fixed: 363763 Change-Id: Icc503aed4e60dd01941682003ca3dbc844aed8d9 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41cdae666312bdc248a8e707a2d8f9ca568178cf Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jun 11 17:18:42 2012 +0530 Revert "msm_fb: display: Fix for HDMI bootup issue" This reverts commit a369ce03ca048fb511642ac1cb73c1f652d70c50. The change is no more required as pan_update is not being called and overlay set is now being used instead. Change-Id: I7b25c256ab57e620f319058638371e079642c448 CRs-Fixed: 367233 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d60ac323a1e3e7086ef2d77c866d5ed482d2a4e9 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 31 18:16:31 2012 -0700 video: msm: Resolve post processing memory leaks Allocate memory for post processing only once. Free post processing memory when MDP is removed. CRs-fixed: 366325 Change-Id: I244f4e10a6933e2acaf69a83d8b91ee5f6e27557 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit cc91399843c5ffb5a57d890c0ca835cd7f5a6e8c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 9 14:57:28 2012 +0530 msm_fb: Add backlight support using both GPIO 96 and PWM Add support for backlight control on EVB using both the LCD_BACKLIGHT GPIO and also the PWM approach on 8x25 EVB. Also increase the backlight levels supported on 7x27A from 100 levels to 256 levels. CRs-fixed: 365523 Change-Id: I4806644783cc98e01192a3101bc852487bb3b592 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 691524c2e330592b2561df4c0fb6e7d2a741a924 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 12:44:46 2012 -0700 msm_fb: HDMI: Do not add HPD state timer during probe Currently all HDMI timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HPD timer being fired 5 minutes after boot even though cable is not connected. This change fixes this issue by not starting the HPD timer during probe. Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit df694561ecc3105707af6bf323cd42f988293e3a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jun 5 15:06:21 2012 +0530 msm_fb: display: Fix compilation error for non-HDMI builds HDMI dependent functions need to be guarded under HDMI panel macro to avoid non HDMI builds complilation errors. CRs-Fixed: 366864 Change-Id: Ib2a9f6db4eb511b2a170fcc7ac979f6c41046baf Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3db0ca75238989ad2b5860c48901952bb15483a3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:32:43 2012 -0700 mdss: display: add overlay ioctl apis to mdss driver - Add support for overlay IOCTL APIs defined in linux/msm_mdp.h - Support for ion client buffers and framebuffer memory Change-Id: I0418ecab9aacf826d900f82f179fa20688fc763e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d6d2863519c2351ef790758ed134e012d4563c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 16:52:09 2012 -0700 mdss: display: implement writeback interface for mdss Add writeback interface support, using one page of framebuffer memory for writeback output. Change-Id: I0a44c6907cbc10d97c78642f45dc018dfb2d1750 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e55fa120321f49385973b37f8b258bf78163743b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 15:36:08 2012 -0700 mdss: display: Add Mobile Display SubSystem driver - Implements Linux frame buffer interface to interact with userspace libraries and applications, based on msm_fb frame buffer. - Implement MDP driver which handles MDP core data path setup and hardware blocks programming. - Support for UI through Linux frame buffer FBIOPAN_DISPLAY ioctl. Change-Id: Ib98677b8d81d74283b27dea08a9f1a705c101bce Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 75692782e15de0990247e2d6252fbd26ca849278 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Thu Jun 14 14:56:11 2012 -0700 msm: display: reduce pwm frquency to fix the broswer blank issue screen goes completely blank while loading a webpage at low back light value. reducing the pwm frequency range to fix the issue. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb CRs-fixed: 362987 commit 14db6b404f2b1627791dada77ea303ef970910a6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed May 23 17:22:15 2012 -0700 msm_fb: HDMI: Start HDCP authentication only on device open Currently HDCP authentication is started for a default resolution upon HPD connection event. With this change, HDCP authentication is only triggered after the HDMI interface has been configured for an appropriate resolution following the call to open the HDMI device. CRs-Fixed: 368865 Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 56672d222b15602826d0200a6baee5ca02a450c6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jun 8 15:57:29 2012 +0530 msm_fb: display: HPD rework for cleaner approach Currently HPD is turned on and off with HDMI turn on and off and turned on again after HDMI off so as to detect the cable plugin. With this change, HPD will be turned on when HDMI drvier is initialized and turned off and on with suspend - resume. The HPD handling during HDMI turn on and off has been removed. CRs-Fixed: 368865 Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 7d11c271b2ca399783975d3b6ef3199cd937a2e0 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jun 7 12:25:31 2012 +0530 msm_fb: HDMI: Update HPD logic to address HDMI PLL related issues In the current implementation, the regulators pertaining to the HDMI core are turned off/on as part of the configuration of the HDP circuitry. As a result, the regulator that powers the HDMI PLL is turned off before the HDMI clocks on the PLL are disabled. This might lead to the PLL not getting locked when it is re-enabled. This change turns on and off the regulators and clocks in proper sequence. CRs-Fixed: 360135 CRs-Fixed: 358598 Change-Id: Ie3630b543e78e83dc565edc32239935135ca4ca5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 66c3c2d50b970ee5f2275d89945271677018ddb3 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jun 12 17:46:53 2012 +0530 msm_fb: display: Add support for command mode on 8x25 SKU5 1. Make command mode default on 8x25 SKU5 devices 2. Add command to change panel scan direction to have proper display Change-Id: I9440ed01541a18ddabe2029c37565dda1181ac2f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1c2bee0158437f485c32f6750e8df3314ae9168b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed May 23 11:30:28 2012 -0700 msm_fb: display: detect if timing generator is on when do dma waiting If the timing generator is not on, dma waiting won't return and system crashes. So add TG on detection to avoid the issue. CRs-fixed: 362503 Change-Id: Ic472e7b75be1fd8960e5ac18929181513085212e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). CRs-fixed: 363763 Change-Id: If9e3c13b5e4005f81fd1b5d2664af206b1decf5b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ba2fa104b3d51b24ccceb168b6bae96fcc851080 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri Jun 15 07:43:20 2012 -0700 video: msm: Don't make the framebuffer cached The video framebuffer should not be cached when mapping into the rotator or video domains. Change it. Change-Id: I407c68ac21a030aff801ebfae01d360bb6bf338c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit aadc14e2ef6a6a84681233ba8020b72b38b98819 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Apr 10 15:28:50 2012 -0700 msm_fb: display: change ion memory map for mdp mixer2 writeback One way that mdp mixer2 gets writeback address is to get ion memory fd from userspace, then mdp driver maps this fd in kernel. When mdp iommu domain was not enabled, this maps to a physical address. Now after mdp iommu domain is enabled, the map is changed to an iommu virtual addr. Change-Id: I461a00cc93169de586565834af4fb9a43949cf95 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9acbfb0eb688bac6a35f12b58e2e9c3de4d2d3b8 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 6 10:00:43 2012 -0400 msm_fb: display: add support for frc Frame rate converter(frc) is treated as LVDS 1080p panel Its configuration is based on HDMI 1080p60 mode LVDS dual channel mode will be used Change-Id: Id3a17f107c8398ddb47105d064be2743a150a3b3 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 94fea065072fc6afd61bd7e2c05f0e552dd1e578 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Jun 12 17:52:12 2012 +0300 msm_fb: display: Fix D2L register I2C driver more than once Fix error message seen on kernel log after suspend/resume Change-Id: I908efec9fde6e9de838e28d2c778fa4b3567e4f6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 913cf20260442f1335ec6ad82549bdae65b120c0 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:12:38 2012 -0700 Revert "msm_fb: display: Attach and detach MDP IOMMU on suspend/resume" This reverts commit aaf74ca34581feb8be797a6d8793824e73fecf67. Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: If9ec76cd040b0e834301d3d9ddbbab04b38b7a7e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f6ef081fb7c9d779401b88c00314127333f9df83 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:05:30 2012 -0700 Revert "msm_fb: display: Add MDP IOMMU detach support for DTV" This reverts commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4. Change-Id: Id1d127080040962c1ad33c9d4bca5005415283da Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1ce7e4c2f39c787fa82aa10a5189df7d0c41b3fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 13 14:05:54 2012 -0800 msm_fb: display: Add support for 4 layer MDP composition Add 4 layers composition support to MDP by allowing borderfill pipe to be used as base layer of mdp blending. This releases RGB1 base pipe which can be used as a general purpose pipe. Change-Id:I517485d738e8bb555a263b3ea885d78d5e4f4396 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 12d6b1f102f45566a0d3089d4e5eeb46a328cf00 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jun 4 11:18:11 2012 +0530 msm_fb: Correct the chroma offset calculations for Yamato format In the PPP blit operations, when the source image format is Yamato, there is chroma offset calculations going wrong in the case when a frame is split into parts and blit is done separately. Correct the chroma offset calculations in this case. CRs-fixed: 366908 Change-Id: I867024632fda9f64a569150e0b6389d55614cd3a Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit a382195e358eebc39640ba8e7f2fe7a3d583aaec Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 5 17:06:10 2012 +0530 msm_fb: display: Set the minimal sleep time for DSI PHY Initialisation On 7x27A/8x25, set the minimal sleep time required for DSI PHY hardware to get initialized and for the display to come up. CRs-fixed: 367652 Change-Id: If040a5ac37f694e83b819ecf08fc80f2afb7afaa Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 2fcabf92eea31cad2ec4852dcab563f2c93e4294 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Wed May 30 10:41:11 2012 -0700 msm: Replace idle wakelocks with pm_qos Idle wakelocks are being removed so replace them with pm_qos. Since we don't know every driver's latency requirements we maintain one-to-one compatabilty with the idle wakelock API by replacing the wakelock with a pm_qos request of the correct latency. Once we determine the actual latency requirements of each driver we can replace the latency used with the correct latency for the device. Change-Id: Icc40f1642218e0de8fc2f56eaf9e8f92914d142f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 12:25:31 2012 +0530 msm_fb: display: add writeback mode for mddi on 7x30 Add support for BLT mode in the MDP4.0 overlay architecture while downscaling to more than half of the source dimensions to avoid underrun issues. CRs-Fixed: 313524 Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef9ccdb031e1fc3c80067cfad59fc5c2d9db77be Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue May 15 10:52:00 2012 -0700 msm: display: Change DSI escape clock to byte clock Changing DSI escape clock source from PXO to byte clock to add more flexibility. Change-Id: Ia78093f8b8be6a27c86f3e8db68fa1f4a4d85086 CRs-Fixed: 361022 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit f98c498b5ef8827afb24bad495f4e175f0829807 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu May 31 15:15:29 2012 -0700 msm_fb: display: Wait for external vsync before DTV IOMMU unmap In play wait call for DTV, software waits for overlay1 done before unmapping IOMMU buffers. This is replaced by external vsync wait to avoid page faults. Change-Id: I67d3615121e9eda3a4378553049a41e32860a520 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c0399fc8064b7e09bf41b9213faabc448ea95707 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 11:43:49 2012 +0530 msm_fb: display: Remove chicken bit config during video playback Remove the chicket bit configuration and overlay status check for MDP 4.0 v2.1 hardware version CRs-Fixed: 313524 Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b411a253ea37acbe8cc817bf004ae08d877d9bd1 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed May 16 00:47:38 2012 -0700 msm-fb: display: lm2 writeback support on mpq platfroms lm2 writeback has broken on mpq platfroms as lm1 and lm2 are selecting the same axi writeback path. It adds the support to select the right axi writeback path based the availability of the write master Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 140748fe6442df1cc95dc1a2519ad8db2190b2b3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu May 24 20:44:07 2012 -0700 msm_fb: display: Disable LVDS phy & pll during panel off LVDS phy pll power rail is consuming power in suspend state. Hence phy & pll are disabled during panel off cases on suspend and device release cases. Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ff42a9a426ab9a76d75a29464412807dd72ceb13 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 29 11:03:00 2012 +0530 msm_fb: Check for Histogram NULL while queuing work Don't queue the work if the user hasn't requested for the histogram data CRs-Fixed: 365729 Change-Id: I0b28097fa00f13a836c2ee9d35e8e4557f1c70f0 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit adf8fef78bf5f77f6c378d8889a35844278148e3 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri May 11 14:13:05 2012 -0700 video: msm: Migrate away from subsystem map APIs The subsystem map APIs are no longer the preferred method for mapping into the the IOMMU. Migrate away from those APIs to the newer map_contig_buffer APIs. Change-Id: I29608bd1cf7f9fb8c5584952826b6f3ae56bc3d8 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit a2afa0dbade27d11382e2486c079d20532a5d73c Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed May 23 15:38:50 2012 -0700 msm_fb: Display: Add additional settings to improve DSI signal strength. Modify/add new Physical layer settings for Lane, BIST and PHY strength to improve the rise/fall time of the DSI clock waveform. CRs-Fixed: 364037 Change-Id: Ie2503100eebdf9d4c82d457c187ab8fa903778c6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 493c38628f7288d0c9ef384517b0eda3b76d50a8 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 23 17:18:18 2012 -0700 msm-fb: display: Perf changes for mdp composition Display under-run issues are observed with mdp composition. Fix underrun issues by changing perf level. CRs-Fixed: 354377 Change-Id: I82346e65af173d7592506f1cee7f90f40ee01485 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7a77c7ca07bbcc390967552d0973238ac48b5597 Author: Anitha Anand <anithas@codeaurora.org> Date: Tue Apr 24 15:46:36 2012 -0700 msm_fb : Disable power collapse before VSync to negate wake up latencies. For a 16ms frame period the CPU may go into deep power collapse. Based on the power collapse exit latency for that low power mode, the frame period gets extended by the latency to wake up the CPU at the next VSYNC. This results in a user experience glitch. Adding an hrtimer to wake up the CPU few ms before the Vsync and disabling power collapse compensates for the extra time spent in waking up the CPU out of deep sleep. On timer expiry, set wakelock to veto idle power collapse till the next VSync. The wakelock is released on the next VSYNC occurrence. Change-Id: I3e013cc54c36d3015d6fafa4b9ccd435cb5532ab Signed-off-by: Anitha Anand <anithas@codeaurora.org> commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 15:15:16 2012 -0700 msm_fb: display: Register MDP fault handler with IOMMU driver. MDP fault handler will print minimum information on display related page faults and its registered with the IOMMU driver handler. This is to minimize logging when a series of faults are seen to cause watchdog bark. Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c96bc441e59d6f0439671c85bc41a3507f232e8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 12:31:31 2012 -0700 msm_fb: display: Free staged foreground pipes during suspend During suspend, some foreground pipes might still be staged and have to be removed before disabling timing generator. So, these pipes are staged down and freed before timing generator is switched off. Change-Id: I3f2376cac43464c64cd1c9e2f16f3d801298c25d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 13:24:52 2012 -0700 msm_fb: display: Add MDP IOMMU detach support for DTV IOMMU detach support on suspend is currently meant for DSI Video and LCDC modes. The detach call is moved to early suspend for primary display and external DTV to avoid page faults related to suspend/resume cases. Change-Id: Ia45071c44c20b951a328f39a033bdd83ff77d8f8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6877b7fc326cd18bbf6c83b418005f7cffbffb9c Author: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> Date: Thu May 24 12:30:35 2012 -0700 msm_fb: display: Flush background pipe after solid fill configuration For is_fg support on a foreground pipe, the background pipe is currently set to Solid Fill mode without being flushed. Add flush after enabling Solid Fill on background pipe. CRs-fixed: 352855 Change-Id: I91c4e391c9577a9198d048d2b369369d348efeab Signed-off-by: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> commit 10a9758c95a68e11f27c9f6452ac9b5b978a8ca8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 21 17:32:07 2012 -0700 msm_fb: display: Fix invalid x offset programming for YUV444 fmt Source x offset adjustment is not properly programmed for YUV444 format, it is always programmed as 0. Add support for correct x offset adjustment. Change-Id: I73e87f961bda60670cc764c66be955e48ccf2734 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit aaf74ca34581feb8be797a6d8793824e73fecf67 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 18:37:20 2012 -0700 msm_fb: display: Attach and detach MDP IOMMU on suspend/resume MDP IOMMU is not in a clean state on suspend/resume with page faults seen with video playback after resume. Hence, IOMMU is detached during suspend and attached on every resume call. Change-Id: I906cd7fa79ab67fd69eb1974d06d3521d42bf55b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ef70852238212e6df24584426ad263291df1bf4 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Tue May 1 19:19:40 2012 -0700 video: msm_fb: Wait for dma to finish before terminating If writeback takes too long to finish, after calling _stop() writeback client might deallocate buffers during the DMA causing faults. To prevent this situation, make _stop() a blocking call that waits for the writeback to finish before returning. Change-Id: Ia710095a55d705589a81aa9bc29c41d536c2a42d CRs-Fixed: 351773 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 20c1b5887a5ba7bae742225bfceaa2268e0e7549 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Mar 12 13:58:07 2012 -0700 msm_fb: HDMI: Video Quantization Ranges changed Quantization settings applied based on default range for source format for 480p. If a non-zero value is sent then it must correspond to transmitted video format as per the standard. Setting RGB Quantization values in AVI Infoframe for 480p to default range (0x0). Change-Id: I01fc263c9406fe80a4b3c73628f265bb733ff90c CRs-Fixed: 349246 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 77f82aec5a4785f89cb2ab968dcde1452f3073c6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 09:42:25 2012 -0700 msm_fb: display: Flush MDP registers before staging up any pipe Add flush calls to MDP's pipe and mixer registers before staging up any pipe to a mixer. Change-Id: I36f5aa04634bae43a38e57cd97bd2aafe9631eda Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c9fa6999ad8b2f10ec4e807ee3dae621f8c6d4fe Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sun Apr 29 22:39:48 2012 -0700 msm-fb: display: Reducing the display wake up time 100 msec sleep in phy init delays system wake up. Using usleep instead of msleep to optimize it. Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit aa356f6c4d44965233c79d68bd293a258730d8c1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu May 24 12:25:27 2012 +0530 msm_fb: display: Keep fb1 for MDP version < 4.0.2 For better memory usage, fb1 memory allocation is removed for targets like 8960 which support BF pipe and true mirroring but required for targets like 7x30 and 8660 which still needs fb1 for border fill. CRs-fixed: 364669 Change-Id: Id741223a0107e356b9164b582aa1f901caa21988 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e9658eb364860826d3924b3d45ba74a2a6c2a2e6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue May 15 14:58:55 2012 -0700 msm_fb: display: Rename MDP IOMMU context bank names MDP IOMMU context banks do not correspond to the input processing pipes like RGB and VG. So the context banks are renamed based on port and number. Change-Id: I39a6b1a66226aeaaf48fb3697f90ab55b67a592c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d995a89cd61bb7295f0226420c4752dc0a9a8fe1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 10 12:18:58 2012 +0530 msm_fb: display: Move mipi dsi clock enable before dsi soft reset mipi_dsi_clk_enable() is called after dsi soft reset. Move mipi dsi clock enable before dsi soft reset as per mipi dsi hardware design document. Change-Id: Ie1cfdf53bc74b87b5a0e0679ab26bc513205673d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 8 15:04:27 2012 -0700 msm_fb: display: disable pan display and memory access to fb1 and fb2 The native fb1 and fb2 framebuffer memory is not used and not allocated on the board file. So on the driver side, pan display ioctl or other operations on fb1 or fb2 framebuffer memory is checked and invalidated. CRs-fixed: 357242 Change-Id: I2883926251a0465f69f18c442d5867556a4651bf Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0dc81db9cf48d869987e8fa8ab8914fcec964bda Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue May 15 13:38:45 2012 -0700 video: msm: Avoid waking readers on failed histogram copy Avoid waking up the waiting histogram reader when the current histogram has failed to copy. Additionally, clean up initialization of histogram workqueue (was initialized twice). CRs-Fixed: 361640 Change-Id: I376c0193b8e34aba5b0aef54feb9504f450ffff4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 71cf95bf1100ab5de55bf3858d40996be7dc445e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 7 11:30:52 2012 -0700 video: msm: Check for multiple readers of histogram Check to ensure that only one reader attempts to read one frame's worth of data from a histogram block. Prevent the case where two readers attempt to get data, but end up causing a loop where neither of them do. CRs-Fixed: 361640 Change-Id: I48878d9fe02d96f306894ed9acc47bf41cd9984b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 19e4b71f617e307cacf0be077e08bec5c37df290 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 14 12:01:04 2012 -0700 video: msm: Clear previous histogram data on next startup Clear the pointer to the userspace histogram struct when histogram is started. Previously, when the histogram was stopped while a histogram read was in progress, the pointer was not cleared, causing the next histogram read to think that someone was already using the histogram. CRs-Fixed: 361640 Change-Id: If09017149e98b35c49603372c554aa4c97f2de82 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ee888e34e20ec3bb4c2c385f3967ecaa9e97f49c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 15 16:39:10 2012 -0700 msm_fb: display: add blt mode enable and disable for lvds panel The check for lvds panel is missing, so blt mode can never be enabled for lvds panel. blt mode is critical to avoid underrun issues. Change-Id: I3cd74bcd978a73997df638f10cd2126ba9ab6577 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8f7c96dc7ee42acd71ea962cf0580f0a9480d5af Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 15 12:42:57 2012 +0530 msm_fb: display: Add support for MIPI NT35510 client on SKU5 Panel is 180 degrees rotated on SKU5 devices. This change fixes the 180 rotation on SKU5 devices in video mode. Change-Id: I9c7ff12de9e19534f8df8ebd9215d74ff0e429f3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9f1453ec3eb2b22160d25148a45f1731a23d4c95 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Mon Apr 16 13:25:00 2012 -0700 msm_fb: Increase PWM granularity to 255 levels for 8960 fluid Currently 8960 fluid display panel only supports 100 levels for backlight. Content Adaptive Backlight Control requires 255 levels of backlight for optimal user experience with CABL turned on. CRs-fixed: 342485 Change-Id: I02226a7790f2dd0144c1eb623c8177724e33a715 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit fee56a86ba3582e2985b2f5a0e535743381544ff Author: Pankaj Kumar <pakuma@codeaurora.org> Date: Tue Apr 17 14:26:49 2012 +0530 msm: Add support for 7x25AB MSM 7x25AB is new msm which can go upto 1GHz. Add required cpu checks to add support for this new device. Change-Id: I0be886d471fe0c70b8afd4da87b9991862a8571f Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org> commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54 Author: Siddhartha <agrawals@codeaurora.org> Date: Mon May 7 18:58:56 2012 -0700 msm_fb: display: Update video format on fps change Added check for frame rate change. Corner case if there is no change in xres,yres and pixclock. Change-Id: I0ff5eb65364d2a370e0973da7e84f738bd042a20 CRs-Fixed: 356328 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 514b1c651a33b7b73fb6f654d04355eac5ecb146 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Change-Id: I8d658ddf4f2ccb2ae47015fe411e8c1a5a55e4df Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ca15287e50fe00dd6526fdc166cb526298099fb2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri May 4 12:56:36 2012 -0700 msm_fb: HDMI: Do not add HDCP reauth timer during probe Currently all HDMI/HDCP timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HDCP timer being fired 5 minutes after boot even though reauthentication is not necessary. This change fixes this issue by not starting the HDCP reauth timer during probe. The timer is only started when an authentication failure is detected from an existing valid HDCP session. Change-Id: I0a28437daa2e95d24a02131322305f3b21a6445c CRs-Fixed: 352080 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d4aab1eb15aa7f9452f1e40688732815b39d4182 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu May 3 20:26:56 2012 -0700 msm_fb: Pass device pointers to regulator_get() Passing a device pointer instead of NULL as the first argument to regulator_get() allows the device to be taken into account when finding a matching regulator. Change-Id: Idc9990eff2c6c78fc9fc9a36d638eef4fd1b632a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 275f94daff0211c145526ee6d45bf48454b13afa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 15:46:01 2012 -0700 msm_fb: display: add mdp version info for later mdp h/w fbtest needs to get the correct mdp version number, but now only the version up to mdp4.0 is returned. Add the latest mdp version up to 4.4. Change-Id: If1ff302bb4a02ed13bb4dcabcb933fd5adfbec6d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit cfd004fa326a6dc4c7e80da707248b5bddaa39b8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 7 12:02:41 2012 -0700 msm_fb: display: Flush pipe registers before staging the pipe Flush pipe registers before staging the pipe for the Mixer with pull mode panel interfaces. This fixes the IOMMU page fault/underrun caused by pipe fetching previously unmapped buffers due to missing flush calls CRs-Fixed: 356484 Change-Id: I6bc2e49746a7c3773708796bc1709c75a8afaa4b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit eee66c6ffa18c954fa2583fdda66526f90bad40b Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 28 16:07:08 2012 -0700 msm_fb: Increase backlight granularity from 15 to 255 levels Currently number of backlight levels are set to 15, which causes noticeable flicker when backlight level is changed from CABL functionality in userspace. So to improve visual performance, increase backlight granularity from current 15 levels to 255 levels. This change is for msm8960 & apq8064 liquids which use Chimei panels. CRs-fixed: 342485 Change-Id: I204f881d45fbcd4a419cc8e61c3bcb1f4d520f7e Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 134786b7bbcb3c8b07b4f56b4421842b75e8471a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu May 3 14:44:39 2012 -0700 msm_fb: display: add dtv wait for vsync when in blt mode Currently dtv is waiting for overlay done when in blt mode. When dtv frame rate is low, this return may be too soon. So before dmae finishes updating buffer, the buffer may be overwritten by userspace. Add dtv wait4vsync after overlay done to lock the buffer untill the next vsync to avoid tearing or flicking. Change-Id: Ic57544a5305fdf9081bfeeccd8d364395faaf602 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6f043415300f58c5868e02050b15c8aa21c26342 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri May 4 01:16:06 2012 -0700 msm_fb: display: Correct LVDS Phy mux settings Fix the display color issue in 1.1 chips due to wrong mux settings in LVDS Phy Change-Id: Ia51500e15e0ffb3e4cc056073985cdeed5751652 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 29c5fb0392a1bf36ac385f5e8790999d70f6d2a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 27 13:50:44 2012 -0700 msm_fb: display: Clear background solid fill on closing video pipe Clear background pipe's solid fill setting on closing Video pipe to avoid blink issues in display Change-Id: Iac3c884334f38580fb5c9dbfb260dd6940ef5019 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b2bdae8ee4262a4e1d8e8e7f9c91b80790bdff27 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Apr 6 16:05:05 2012 -0700 msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe dtv_pipe is the base layer pipe for mixer1. Waiting for vsync when staging down this pipe (it happens when we unplug HDMI cable) causes mixer1 under run because at the vsync moment dtv_pipe is disconnected to mixer1. CRs-fixed: 349765 Change-Id: I3a09159c3ae2dfea963e5ad064076f5a9452ec1b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e534683723654af2a904e6dec3a646a2d9542408 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Apr 27 22:27:31 2012 -0700 msm_fb: Correct mdp_iommu array size to avoid scribbling The mdp_iommu array was undersized. This resulted in scribbling of nearby data structures which, through a long series of events, lead to invalid pointer dereferences in the workqueue framework's process_one_work() function on (at least) the 8930 SoC. CRs-Fixed: 357011 Change-Id: Ia8027ba8714bb90b336ee79d43920a7f71a8091b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 59508db9d5cec32ff59c2ff5a689288db2b027d4 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 30 16:30:29 2012 -0700 msm_fb: display: increase mdp upscaling range The old range is x8. Acturally mdp rgb or vg pipes can scale up more than that. The max up to x20 is verified. CRs-fixed: 340747 Change-Id: Ief7ee936e39de2ada87d47b14872bca0c3cf36a7 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b18c9e29486f574bc6353243e1c0116956ba712c Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Fri Apr 13 18:29:34 2012 -0700 msm_fb: Provide support for ARGC and CSC for layer mixer 2 MDP 4.4 supports additional layer mixer (LM2) with ARGC and CSC blocks. Extend existing ARGC and CSC functionality to additional layer mixer (LM2). Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0ae152b929dfc538bbb2c72f01b5f3bf14c3c6bf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 14:17:39 2012 -0700 msm_fb: display: update dtv panel info clk rate dtv panel clk rate is dynamically changed with the HDMI resolution. s/w panel info needs to keep its clk rate updated. CRs-fixed: 355110 Change-Id: I9365d67820158afb2bc520736df9152864a2a962 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e01bb5a4944eea27e87ca00a869105185c13664d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Apr 24 15:14:26 2012 -0700 video: msm: Add QSEED API to MDP_PP IOCTL Add the ability to program the QSEED Table 1 coefficients to the features supported by the MSMFB_MDP_PP IOCTL Doesn't support table2 writes currently, however, the code to write to them is already present. QSEED support is currently only configurable via a tuneable parameter that maps to a small subset of possible QSEED settings. By moving to the MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value requested by userspace. This also allows for future expasion of the QSEED feature by allowing dynamic loading of the table2 coefficients (rather than only configuring them at init). Change-Id: I7394e211169efb0e677391e2c150a6a6b8d0477c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 28ffb9c964d8d303c38f90b6c4bc8bf313356a54 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 11 23:37:15 2012 -0700 msm_fb: display: add dtv_pipe null check before dereferenc it There are chances that a null dtv_pipe pointer is dereferenced and system crashes. One such case is unplug HDMI cable while playing video. So a null check is needed for each dtv_pipe dereference. CRs-fixed: 355238 Change-Id: I1ff57b00169e217fc5ed98574db7fd49b9319d0a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 14648740d17ca1f154222aba29a1f2946609f460 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Mar 30 19:42:12 2012 -0700 msm_fb: MHL Driver for SI-8334 Transmitter The device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I845bc1b30dc799183357224a296215ecc1d44893 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b41048b637d4341e24f8f36b68b127fe600f6a1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 15 10:40:40 2011 -0700 msm_fb: display: add YUV444 interleave format support to mdp Add support for H1V1 interleave (YUV444) to mdp Change-Id: I86b76831ad87dede90ddd8d8f5ae64e51fa28c27 Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6098eee975076350586eb3010edda8b96ac998d5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 19 10:35:01 2012 -0700 msm_fb: display: Unstage video from primary mixer H/W on unset Resolve video playback suspend/resume IOMMU page fault by unstaging video layer on VG pipes from primary mixer H/W during overlay_unset calls immediately at the next vsync boundary CRs-Fixed: 350371 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ia1b2369005db500b5042d3226cf8d43027783fe3 commit 5ff2cb661c0575a45e8cf70384dd6c1d2dc8e7ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Apr 11 10:43:07 2012 -0700 msm_fb: display: switch mdp mode without turning off timing generator MDP need to be in idle state before switching to different mode. Dmap_done interrupt is delivered when the last line of frame is clocked out. Therefore mdp is in idle state during dmap_done ISR. This patch execute mdp mode switching inside dmap_done ISR. Therefore timing generator is not necessary to be turned off since mdp is in idle state already. CRs-fixed: 350154 Change-Id: Ib10557bde90856ffd5284a0a76dddbe92f2abc0e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d94b7d4d0c67a9bcdbb4ab1929ce70f4b6ec7136 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 23 16:02:08 2012 -0700 msm_fb: display: remove mdp writeback2 overlay kickoff waiting Before overlay2 kickoff, there is already a dma busy waiting, so once overlay is kicked off, mdp driver can safely return to userspace. Then if there is another request while ovlay2 is still busy, dma busy can take care of it. Change-Id: Ibb45a8b306a393c8e240fc64b5857e8700afcaba Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 012a8e79ebc3cd375f501a862e7b401b99c53054 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Apr 11 10:41:13 2012 +0530 msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers Many of MDP input formats don't have correct unpack pattern, so image displayed on screen is not in the actual format set. Also,Some rotator output formats differ from input, these mappings used to be handled in userspace, but to avoid issues this is now done in driver. For YCrCb planar inputs chrominance order is dependent on rotator hardware version. Add hardware check to swap Cb and Cr for 7x30 and 8x60 rotators. CRs-fixed: 339114 CRs-fixed: 337040 Change-Id: I55691aa7c9d38e83e4fc63a162ffb23959ba30c1 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 7a62a68bfa68cf9767b9cb6432c05a47e296067b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 14 15:56:13 2012 -0700 msm_fb: HDMI: Compile error when HDMI is disbaled Resolve compilation error when HDMI is disabled through kernel config. Change-Id: Ie89ac666fe4db83294cce07f59f61790b200d463 CRs-Fixed: 341412 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 87dd72e286299134b5783cb90f61e7eaec7d2788 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Apr 16 19:07:36 2012 -0700 msm: display: Clean DSI state on continuous splash disabled cases Reset the DSI clock control, disable controller and PLL to resolve boot issues for DSI command mode for continuous splash feature disabled/unspported cases Change-Id: I1e5e9a9d2d548c518d2620bf6d9e125d5efc8fd4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0769dbd1fabe600bf6a8bd1d563c9e31b8d7c122 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 19 16:54:09 2012 +0530 msm_fb: display: Update clock prepare changes for MIPI DSI Update the clock prepare/unprepare changes for MIPI DSI clocks and update the clock lookup table for ebi_lcdc_clk for MIPI DSI interface. Change-Id: Ic31e2e1b169894e633849573eb54325457080b53 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 60d51beb9dd5db3f1adeb203728b1d7ccdec8e0c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 18 17:18:31 2012 +0530 msm_fb: display: Change panel init command for NT35510 for proper display On NT35510 panel, the display is 180 degree rotated right now for video mode. Change panel init command in the init sequence for Video mode for proper display. Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d16485de65e9e7d611293f5b6174b3a3efa7a3d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 21 16:51:26 2012 -0700 msm_fb: display: Add clk prepare changes to MDP and rotator Use clk_prepare_enable and clk_disable_unprepare instead of clk_enable and clk_disable respectively. CRs-Fixed: 351340 Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0f0000abcba6f99593dab94ca869c3d865a73e29 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 12 10:23:02 2012 +0530 msm: display: Backlight control on 8x25 EVB for qHD panel Add support for backlight control on 8x25 EVB for qHD panel Change-Id: I488786b45b844df776952fed4d23b9a4fb337107 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5479cc16a03c6b791daa5eac8f45018ea873cfc1 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:40:40 2012 -0700 msm_fb: HDMI: Enhance EDID Parser to read supported 3D formats EDID Vendor Specific Data Block (VSDB) contains information regarding all the 3D video formats that are supported by a sink. This change enhances the EDID parser to read this data. Change-Id: I61ca8adbff8f4662e437bab42786149c39ea78da Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8b25b2a0b5910befcf0668dc76294f83dccc080f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Apr 12 14:19:12 2012 -0700 msm_fb: HDMI: Fix EDID parsing logic for multiple data blocks This change fixes a bug in EDID parsing logic when there are more than one data blocks of the same type in the EDID data. With this change, the starting offset used to scan for the next data block, is computed correctly. Change-Id: I5d09fe61be9f7c749197991f54e430ae3aaddbcb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 45ce501383ee71df0072b4e5426f9daa7941636a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 9 11:19:07 2012 -0700 msm_fb: display: add mixer1 writeback buf init call mdp4_init_writeback_buf call is missing for mixer1 interface. And blt_addr should be nulled when dtv interface is initialized, otherwise, mixer1 writeback mode may be false enabled which causes system crashes or garbage display on TV. Change-Id: Idbf5fe90eb50f0a68b434f2c76012c64a38553a4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 7b8b64075ee4b61c15e28f3042672b26674e0b45 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Mar 1 10:58:03 2012 -0800 video: msm: Add Histogram collection framework for MDP blocks Expand the previous histogram collection implementation to support the addition of other MDP blocks that allow for histogram data collection. Support the VG1, VG2, DMA-P, and DMA-S histograms using this new framework (VG pipes only supplying the histogram of luminance). Change-Id: I94088c1f714fa5d91256ae7b0f5548f8a0b81763 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 20582a5cf3fad8e9fda7ded6478ed8a32b376b97 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Apr 11 10:57:22 2012 -0700 video: msm: Remove an ifndef from mdp_isr Remove ifndef so later patch does not require adding more ifndefs. Change-Id: Ia06e844f42086ad76019f66b575ed78a40ebafc4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 5 19:09:40 2012 -0700 video: msm: PCC/GC config register protection PCC/GC configuration registers are shared with other features. This patch makes sure that the other features implementations don't overwrite the existing settings for PCC/GC. CRs-Fixed: 345395 Change-Id: I5467a4c50eae214181d67a7976eee92c0ae26fe5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97e2fcf862d913feff157f536ee14cfc5f3197f7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 10 14:11:22 2012 +0530 msm_fb: hdmi: Disable 1.1_FEATURE Some displays support Enhanced Link Verfications(1.1_FEATURE) which makes HDMI Tx to verify Pj on every 16th frame. Three consecutive Pj mismatch will result in HDCP authentication failure. If 1.1_FEATURE is supported(this can be detected by reading BCAPS), it needs to be enabled by writing into AInfo of display. Default is disbaled. This change sets HDMI Tx core to disable 1.1_FEATURE by default so that we don't see Pj mismatch error unless the feature is enabled. CRs-fixed: 348752 Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b52a25139f7b14bb3b9e052d1af3def2fff5d25d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 10 18:27:23 2012 -0700 msm_fb: display: Fix HDMI as primary issue with continuous splash support Fix HDMI as primary boot failure with continuous splash support by resetting MDP hardware and disabling splash feature flag in board data Avoid flickering issue for HDMI as primary display with composition bypass updates Change-Id: I9620062f10b24072ea23b7e712e24aba533f044b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6b7005caf369caf819c1bc3e29a633893b9ebcc4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 6 18:58:44 2012 -0700 msm_fb: display: Allocate writeback buffers of panel resolution sizes Allocate MDP writeback buffers based on panel resolution size dynamically Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I4a456199a05850f35c204edfa7ae3679036138a9 commit 8c23e070b04aa6160681203bf431db60eb7e2e9a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Mar 14 11:35:49 2012 +0530 msm_fb: display: Enable 32bpp framebuffer format. Enable 32bpp framebuffer format for 7x27a and 8x25. Change-Id: I38deabca45ea849710bd2edb2b6847c5309a0c9e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 2e931122a4bab690ed345730d7733904eb97d5b8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 11 11:05:39 2012 +0530 msm: display: Reset BG_alpha register while alpha blending Reset BG_alpha register when pre-multiplied alpha is not set for a layer during blit request. CRs-fixed: 351158 Change-Id: If103af384d59c3349cb2ef556a497c709d9280a2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1b064f5e1e5a7426fad6ab8ada8e47dbb091937e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Mar 15 18:17:54 2012 -0700 msm: display: Add device pointer with clk_get for retrieving clocks clk_get requires device pointer to return appropriate clocks for display subsystem. Rename the names of display related clocks in the lookup table based on functionality. CRs-Fixed: 336925 Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59e7b0e47eaee57850157361f31c230b3e1c8a8f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Apr 6 15:51:44 2012 -0700 video: msm: Allow PCC/GC to be disabled/select bins Current implementation would not set enable/disable bits to PCC/GC nor be able to select the zero'th bin after selecting the first. Change-Id: I0f52beb8914cdaecbabe913455c00fb9ea6100db Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fff7a7d207a8791a68706bf8fac3838884981204 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:27:19 2012 -0700 msm_fb: HDMI: Enable SPD InfoFrame transmission Sinks use the information in the SPD InfoFrame to get the vendor name and the product information of the source device. This change adds the ability to specify this information and transmit the data as part of the SPD InfoFrame. Change-Id: Iff3db2e21cc30cdcc18787de5fd83c6a0790794e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b64b8dee8c93cb806a906440ef8a4aa72486df75 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 3 23:04:35 2012 +0530 msm_fb: display: Unstage mixer staging on next commit for video use case Unstage of mixer occurs on single vsync. For video playback case on 8660 it is observed that sometime unstage does not complete due to which flicker is seen during unset. Unstage of mixer is now done on next commit only for video use case to avoid flicker. Change-Id: I4939148989d49b3190142f858a40d2cf7617c7ba Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit bea9c06d44800da4c7cbc75e25731a75bd9f84ae Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Apr 9 10:33:48 2012 +0530 Revert "Revert "msm: display: Backlight control on 8x25 EVB"" Enable backlight control on 8x25 EVB for WVGA panel. This reverts commit 75cf6b84b36b054cb7b8074af165cb082112c7d7. CRs-fixed: 339158 Change-Id: Ice8426442c9d82a7316dfd4d812e9f6301a97850 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c55856c548e0cec8b29e415a08a353a0ab1ac4c8 Author: Alhad Purnapatre <alhadp@codeaurora.org> Date: Tue Feb 28 13:24:57 2012 -0800 msm_fb: display: MSM V4l2 video overlay driver Provides a V4L2 device that uses the MDP overlay pipes (on MDP4), or the PPP interface (MDP3) to overlay frames on top of display framebuffer. Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org> Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee commit aabbf2b21c415c226b680df7ee61b565f47d8603 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 7 10:50:19 2012 +0530 msm_fb: hdmi: CEC re-transmission improvements. Adding some improvements to HDMI CEC code flow to reduce the risk of system crash and compliance failure by proper CEC resiters settings and positions in code flow. CRs-fixed: 336541 Change-Id: I8fb3510190e5c4ff83b3785c51bade139f20692c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6fdf4becd5fe50e52d587d35d1ee047385351f83 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 30 18:34:05 2012 -0700 msm_fb: display: Create hdmi_as_primary node for boot parameter case Create hdmi_as_primary node for both boot parameter and compile-time cases when HDMI is set as primary display Change-Id: Ib170637e3792477e46ae0fb6044b298bf8de875c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f0bd4cd4ca4114298fba41f18db9babe0533e075 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Sat Mar 31 14:35:50 2012 -0400 msm_fb: display: Epson ebi2 panel support Support fb with ebi2 only(without mdp) Add Epson ebi2 qvga panel support Change-Id: If61b2c522a102133f98f27b21dcc18d057b7ef25 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 226b429d026195ff93b7de8066d8943b58dc65a5 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:35:31 2012 -0700 msm_fb: HDMI: Enhance EDID parser to read physical address This change adds the support for reading the physical address field in Vendor Specific Data Block (VSDB) of the EDID data of a sink. Change-Id: I435705a7709ea26cff71121a2c37fd630b267ae5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d89c0e7712dd5cf13769b4d0facfecb93028538c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Mar 28 10:17:20 2012 -0700 video: msm: Load correct default values to QSEED at init The previous QSEED Table 1 values are not suitable values (would end up smoothing and sharpening content which can lead to artifacts). The values loaded by this patch are the suggested default values for QSEED since they do not smooth or sharpen most content (bi-cubic filter), but will slightly smooth low frequency components of the image (i.e. helps reduce artifacts that produce sharp edges on content that is supposed to be a constant color; often introduced by some video encoding algorithms). Change-Id: Ic4c0ca4719141bf52123ad239fcca5d3767a2c2b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5066a5f662d0d88ad4c94158fe392bb0fbd61cb4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:29:32 2012 -0700 msm_fb: HDMI: Support VCDB parsing of EDID data This change enhances the EDID parser to read the Video Capability Data Block (VCDB) in order to check whether a sink supports underscan mode. Change-Id: Id4e48db4ff7f54fd72d40a413e2f03b692b662c1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 6e73f0a25171e3e5d2d520da99a02f74c5646592 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 8 17:32:55 2012 -0800 msm: Display: Add support for backlight control on 8930 chipset. Register the PMIC WLED trigger driver to control the backlight level on 8930 chipset. CRs-fixed: 339310 Change-Id: Ia73625cfeaa18f2515c81a4c128f98f9fb5c0b32 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b7c45f42b50b609bb632a0f1f1b2e404af38329a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 3 11:39:39 2012 +0530 msm_fb: display: Enable pre-multiplied alpha for MDP303 For images which are pre-multiplied with alpha, driver support is now added to blend them properly. CRs-fixed: 347803 Change-Id: I859c26c5f52fa0886c106928ef338bd9d0db4462 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 18e249a842a459c14624354f00ef3434d3b6c643 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Tue Feb 21 01:10:56 2012 -0800 msm_fb: lvds: Fix uninitialized variable warnings The compiler doesn't know that there are only two values for mfd->panel_info.bpp. Add an else arm to catch the unknown third value as a BUG() so that we avoid writing initialized variables to registers. Change-Id: I643df7e256cda59a4af73571e1cc5eef610d781f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 2d19103b77ae63fe127304b9c3ceeb1f399c756a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue Feb 28 09:46:31 2012 -0800 msm: Enable all IOMMU's Enable video, camera, display, and rotator IOMMU's so that virtual contigious memory can be used by these devices. Physical contigious carveout regions can be reduced so that more memory is available to the rest of the system when not in use by multimedia. Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 70b866b2ca1d92ee632b5f3eb591d7ae09fab492 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Mar 27 14:50:25 2012 -0700 msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication All HDCP interrupts should be disabled at the beginning of HDCP deauthentication process so that we do not process any redundant HDCP failure interrupts while deauthentication is underway. Change-Id: Ib5149460446b6073122a8249807918d5ad06492c CRs-Fixed: 341921 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 92e58bb7966bbaf8b4c73bf98a5d55dde9980b37 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: flush base layer pipe when solid fill is enabled Need to flush bgpipe with solid fill format to avoid fetching from bg pipe when its contents are not displayed. Also add other missing flushes. CRs-Fixed: 342961 Change-Id: I03e517e02c02d9abc26fd9365e7b67025fa59657 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c0852b7c3a9d08f8d80ad2bb01316f7252f23ced Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: perform data flush for each data path separately Performing data flush on stage commit causes some frame updates to be missed waiting for stage commit, this can lead to old data being overwritten while it's being displayed causing visible corruption. Change flush to happen on each frame update to avoid corruptions. CRs-Fixed: 341597 Change-Id: If91800068d2bfd5a2e43fe3e2a96c457e173763d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d46e8d072e432c19eec0e7a2b04a9b6967906242 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Mar 27 16:22:11 2012 -0700 msm_fb: display: remove #if 0 Cleanup all #if 0s in display driver. Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit aabb74cb030c086ca67f51b3d56deb678d4f040a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Mar 15 14:25:32 2012 +0530 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> commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 2 10:20:48 2012 +0530 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> commit fd0df3ccda02dd1fad680735333bea7ac025abc5 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 30 17:03:51 2012 -0400 msm_fb:display: add display support for mdm platform add setting for no mdp hw case add ebi2 epson qvga panel setting Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 687b109b5f46caf68efde0a1c3a1084a5576a997 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sat Mar 31 15:45:21 2012 +0530 msm_fb : display : Add 60fps support for NT35516 qHD panel This change adds the required support for 60fps using h/w vsync in Command mode on NT35516 DSI Client. Panel Init comamnd has been modified accordingly. Also, since the panel gives 59 to 61 TE signals per second, refx100 has also been modified to indicate the maximum possible refresh rate with this panel. This will ensure smooth operation of DMA Tear Check algorithm. Change-Id: Ib2c03e61509946b7929c3cd21b497a972359fee3 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ff6bfa8e6f2a62ebb19aabd9ed499ee7efa0e006 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 23 17:48:47 2012 -0700 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 commit 3ef84a5ab70bbd65799dbf72b3375b0bc764140d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 22 22:14:41 2012 -0700 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> commit 75cf6b84b36b054cb7b8074af165cb082112c7d7 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 30 15:04:52 2012 +0530 Revert "msm: display: Backlight control on 8x25 EVB" Waiting for the vendor approval/permission letter. This reverts commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd. Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d85b55446992dd36bb9b8ee56f7e95be97278425 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Mar 26 15:59:58 2012 -0700 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> commit 5b5f2188eb7f6c774b435263284f6179cb35c508 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Mar 21 13:43:55 2012 +0530 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> commit 6bc448aefa897a1e08a6c817280809afc189faa7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 14 11:31:52 2012 -0700 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> commit 87260cdaef95054474e97fab85e3fb691f03a035 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 12:00:45 2012 -0700 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> commit 4a9d3382873adb7aecab07345f3d253eefd150cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 19 16:10:42 2012 -0700 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> commit 2aa111c008157070e871aa5788e9c3664935847a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Mar 20 11:58:44 2012 +0530 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> commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Mar 6 18:23:50 2012 +0530 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> commit 14e8c40443d2c2891c232c2becda9073a1a44186 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 5 14:57:09 2012 -0800 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> commit 042cd63a1b7674feaf70e41a44550678ae338bbc Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 19 12:51:37 2012 -0800 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> commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Feb 28 12:24:39 2012 +0530 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> commit a3b168b4d1f6b32f17a3498940cf198fdfba0722 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 11:13:11 2012 -0700 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> commit e350d9bcee496c06f79a6490f108f77ed73f66e3 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 26 08:29:54 2012 -0700 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> commit 28338aebe08832ba8a01c28b290615d60c023128 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 13:31:28 2012 -0700 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> commit 8d3b0fce866e5f05f18a47bc0cd8f60356dbeb23 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Mar 14 20:18:30 2012 -0700 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> commit 88ad8a7be06a86104169cf2739c18c7d4409dde6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 14 14:19:18 2012 +0530 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> commit a1f9df15e005241ecf23069f7d345f9a943c06ef Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Mar 9 19:48:18 2012 +0530 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> commit 56dfb682a5bf274842140716333c791d010e38ef Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 21 16:23:54 2012 +0530 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> commit 16f27dc68e406e181c306cc1fb924dca43fb1080 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Wed Mar 7 17:04:24 2012 -0800 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> commit fa530308e1fa485a39e35ed17879b6ab1e665c37 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 12 15:03:10 2012 -0700 msm_fb: display: Remove base layer for DSI command mode during suspend Remove RGB base layer pipe for DSI command mode during suspend to unstage all pipes in Mixer 0 properly CRs-Fixed: 343233 Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c1fa46367d021fc3e457df2bf5b6331c41ad189 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 7 17:49:09 2012 -0800 msm_fb: Handle flags for updating AR GC lookup table (LUT) In current implementation of area reduced gamma correction (AR-GC) LUT configuration,flags for read/write AR-GC LUT and enable/disable AR-GC LUT functionality are not handled even though the IOCTL accepts these flags as part of arguments. So in current implementation by default updates the AR-GC LUT which may not be expected always. So, handle flags for read/write AR-GC LUT and enable/disable updating area reduced gamma correction (AR GC) functionality Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 225152437092241cb3f6ff5b97896684d856f844 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Mar 1 17:45:52 2012 -0800 msm_fb: Restructure PCC and AR-GC code for clean implementation Current PCC & AR-GC implementation uses macros for base addresses, while other post processing features use mdp_block2base() function. Also, in current implementation check for feature supported for MDP version in device is not performed, currently function which implements AR-GC, is named as mdp4_pgc_cfg() which is bit misnomer. This change uses uniform method for calculating block base using mdp_block2base(). For checking MDP version and feature supported using mdp_pp_block2pcc() and mdp_pp_block2argc() functions. This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to correctly indicate the functionality it implements. Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Mar 12 14:55:04 2012 -0700 msm_fb: display: disable mdp flip when enabling mdp solid fill If both solid fill and flip mode are enabled, MDP underruns. So for any pipe, if solid fill bit is set, flip operation modes including left/right or/and up/done are disabled. CRs-fixed: 334782 Change-Id: I879231d03c6aab6f82d80bde65c9f01c34f1fa6c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 2bd101d5bed1729b317114456360605e86289c15 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 16 11:32:23 2012 +0530 msm_fb: Clean up the fix for error in y-offset check in FB driver There is a failure observed in yres_virtual offset check and every third frame gets skipped without an error message. Due to this high fps is noticed in the test applications. Correct the yres_virtual offset check. Change-Id: Iddce0b75e0a9c466adad6eb5726203ae0586c27b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Mar 12 19:43:41 2012 +0530 msm_fb: display: Change perf level for VGA video Change perf level to 3 from 4 for VGA and less resolution video usecases. This avoids underruns seen with camera/camcorder usecases on 8660 and older platforms. CRs-fixed: 338044 Change-Id: I12fa81f10dc6d02caed44c5b7e6f5732a57bb095 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Mar 15 14:40:11 2012 +0530 msm_fb: hdmi: CEC Message queue flush CEC message queue should be flushed when CEC function is enabled. If there are residue CEC message, they might cause collision at message queue. CRs-fixed: 338811 Change-Id: I6268528417d660fab48818ae67e94e169abbb217 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a950365ed12ab0d66367b06bd1c3236cbcf695a1 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 12 16:17:23 2012 -0700 msm_fb: display: check dtv_pipe before unset it Dtv_pipe is the base layer pipe for HDMI and it is normally populated before overlay_unset() called to free a mdp pipe. However at wireless application, there has possibility that overlay_unset() is called to free a pipe even before dtv_pipe is populated which cause system crashed. Therefore check dtv_pipe before free fore ground pipe. CRs-fixed: 340884 Change-Id: I32b69e937f21646204c7fd7275988ee12e439655 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e5c9f6e5f9fe550e228cc5b34dbde086b151a613 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Feb 22 15:09:07 2012 -0800 msm_fb: display: initialize is_flag variable This local variable needs to have init value, otherwize it is always true, possible for mdp4_overlay_perf_level to return incorrect value. CRs-fixed: 338543 Change-Id: Icbb665773545e866c7f48edaf3ecf11272713d19 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Feb 21 12:00:12 2012 +0530 msm_fb: Clean up of frame buffer 4KB alignment changes Remove redundant code from the 4 KB alignment patch and reduce the overhead of calculation of the hole size by using bitwise operators in its calculation. CRs-fixed: 325134 Change-Id: Ie2e3ea7cbb2a815ae4f50cb97e6c5be1bd72fe27 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 10 08:40:51 2012 -0800 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Change-Id: If5b80d0c3a9b5edd21ae6651321572c2fdcac951 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0507c8cefa525a89df9b9e2a305e2bd7c4f6d7b2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Feb 16 17:16:05 2012 -0800 msm_fb: HDMI: Add support for HDMI on APQ8064 Configure necessary PMIC regulators, GPIO, clocks and parameters related to external display to enable HDMI on APQ8064 target. Change-Id: Ia2741fc13c6a640ebc610461ad4242929383b611 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 5245ec886f6e282b8f3c1b0e3f7aecbfae9ed85a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 2 13:49:53 2012 -0800 msm_fb: display: change pixel sequence on lvds lanes This is a s/w workaround to fix lvds phy h/w bug. On the rising edge of lvds phy clk the phy transimits d0d1..d6 sequence, however, lvds panel from the manufacture expects d6d5d0...d4. So s/w adjusts the sequence on the phy side to meet panel spec. CRs-fixed: 338715 Change-Id: If852ba29954b363911d04cd08d3784ce7d385c2f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 416878307740e2d475511ed0f12ebbd50db8c156 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Feb 22 09:15:28 2012 +0530 msm_fb : display : Add support for NT35516 qHD panel This change adds the drivers for NT35516 DSI Client and Truly qHD panel. Change-Id: Ifb7e02300a8e42d7097845638b77e311e92f69d6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit d37b52404236bf4cadf530a238cafc5d6499d32a Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 9 20:16:21 2012 +0530 msm_fb: Fix error in y-offset check logic in FB driver After 4 KB alignment changes, the frame from 3rd buffer doesn't get updated since during PUT_VSCREEN_INFO ioctl, the driver returns -1 to userspace due to error in logic because the hole size is not considered in calculating the logic for validity of the y-offset. Change fixes this error. Change-Id: Ib151970eacab4df36fb8274be0079bc814e93efe Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fff132dffafe129620475a51c34309b4fff08dce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Mar 7 13:22:30 2012 -0800 msm_fb: HDMI: Enable HDMI on 8930 target Register HDMI device and enable HDMI driver initialization for 8930 target. Change-Id: Ia3d1f0963de079e7af3cd683a498897cd677e97a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit fd3a0274fc30e8f795365e8cd8c90d2b0b3df2d7 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Sep 26 17:29:37 2011 -0700 msm_fb: display: Add MIPI DSI 720P Orise panel driver support Add support to run 720p MIPI DSI Orise panel in both cmd and video modes Change-Id: Iefd5594ba2fafe7797378f3297d169ebbce9b963 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a6f72edcca16dbed1e345fe472df32f08f5548ca Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Mar 2 16:51:57 2012 -0800 msm_fb: Display: Change the VCO frequency range for 8960. The DSI PHY PLL is not stable for VCO frequency between 500 MHz to 600 MHz on 8960. Fix this issue by changing the VCO range from 500 Mhz - 1 GHz range to 600 MHz - 1.2 GHz range. CRs-fixed: 340956 Change-Id: If09ac96455e16c5c2ca219c74e7ee0c758d55851 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 0bb7fe942f5e655d1ac1b10398ccda73ce83550e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 27 16:06:30 2011 -0700 msm_fb: display: Dynamic boot support for HDMI as primary display Move boot parameter to board display file as early_param for proper allocation of PMEM and ION sizes. Change-Id: Icfb163f572e8e010550747ec83787b6da6e86ee2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit beaa9356713db6949eefa32ed329bf87a3461842 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 16:59:26 2012 -0800 msm_fb: display: decrease file->f_count when play Frame buffer's (fb0) f_count needed to be decreased after both overlay play and rotation so that fb0 can be closed and display will be blanked out after system suspended. CRs-fixed: 336254 Change-Id: I966e7b2bb4def0c9c09580be12048933723e2c2e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d19d0d22e03dba3b2b08356bc18ed1b2987e70c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 12:50:37 2012 -0800 msm_fb: display: call mdp_pipe_ctrl() with correct block name Mdp_pipe_ctrl() needs to be called symmetrically within same block name for both ON and OFF operation so that mdp clock will be turned off after OFF operation. CRs-fixed: 338802 Change-Id: Idda450a32c0c897327c17dda70fc05e9fb74d510 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5649bcea56c8aecbf88fb97a2a88d7142f5ca1f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 7 18:23:32 2011 -0800 msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth On HDCP reauthentication, the HDCP link status register does not get cleared unless the HDMI app clock is deasserted and asserted. Stale values in the link status registers can potentially lead to the HDCP HW block getting locked up resulting in a device reset. Change-Id: I4952c64d4087e4303cbc75dbb61f66510b0a0798 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 682888654f146d6c34c76b9db435c9c6fe58eeea Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Jan 18 16:08:55 2012 -0800 msm_fb: display: add overlay1 writeback enable and disable This logic is used to enable mdp overlay1 writeback mode when downscaling in any pipe for mixer1 requires a mdp clk rate more than its max, and disable it when no pipe requires more than max mdp clk rate. CRs-fixed: 330895 Change-Id: I67632fdc2cf4c357753603fee293817bb87581ca Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4c7ccb31068e6b606520722279fc8add740d7578 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Feb 21 12:56:04 2012 +0530 msm_fb: display: Use FIR (QSEED) for upscaling. Low resolution UI is observed on HDTV connected with HDMI. FIR (QSEED) algorithm needs to be used instead of pixel repetition to improve the performance in case the BYPASS composition is not used. CRs-fixed: 332123 Change-Id: Ib4c2b107b4ae1300458cccc7e8066d31aee50a0d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38eac1aef2250181f1a2f9d75529f0961257740b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Feb 28 16:24:06 2012 -0800 msm_fb: display: set max clk level when more than 2 pipes used Correct logic to take all pipes into account and increase clk perf level to max when more than 2 pipes are used. Change-Id: Ibe6594e23a95e72c113b98c8f08b33395677d212 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c246a1bd2edbf1607e5437ee46c0f7a043d6bd5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 20:38:43 2012 -0800 msm_fb: display: perform bus scaling updates when idle Move bus scaling updates to same place where MDP clock is changed which happens when MDP is idle. This allows MDP sufficient time to finish fetching buffers before commiting unstaging changes. Change-Id: Id6e04522928b0f815091e17054fff94e0e111ff1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3e9ca08c34561167db0e7aa7179b224d8e10a1e5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 13 12:14:59 2011 -0800 msm_fb: display: Remove boot parameter parse support Remove boot parameter parse support from framebuffer driver. This is done as a part of moving this to board-display file. Instead of detecting the panel in msm_fb file, the detection is now handled in individual board file. Change-Id: I722cc6964a815bd99b1cf0856ef9c1a4481898d4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b88ffd3484ecddbfe7a24ae9a8438b0d3792d116 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 19:42:44 2012 -0800 msm_fb: display: enable unstage caching for command panel Enable support for caching of overlay unsets for command panel to flickers between frame updates. Change-Id: Ide9a165cfddb33a5cd0756b9cd469b0c3374f2ae Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d60dff3ca61bbdc6881b9aaf34baea570c25fa32 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 14:01:09 2012 -0800 msm_fb: display: wait for vsync staging down in overlay unset Need to wait for vsync so registers are properly flushed when commiting stage down changes in overlay unset Change-Id: I56bfdf56c2a32f109f3d9264c8cc4a086ef2c356 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit acde4b6510b352b97ca1dc7d3386c6696e8f10fb Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Dec 16 15:50:56 2011 -0800 video:msm: Add IGC LUT functionality to PP IOCTL This patch adds the functionality to write to the IGC Look Up Tables (LUTs) in the MDP. Change-Id: I4789820a56748b1a5e33ee4ca979e418170695a3 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 330b4ae84d423bee684af24a2e52b4d81831a37f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Feb 20 19:24:56 2012 -0800 video:msm: Add support for updating Histogram LUT using MDP_PP ioctl This adds the ability to write to the Histogram LUTs in the VG pipes, DMA_P and DMA_S. Change-Id: I548140d01aee5c2fd437aa218a307b4d1364dade Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14b56ad8f78a974de534aa02523624304983acfc Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 22 14:56:21 2012 +0530 msm_fb: hdmi: check for multiple hpd on/off calls HPD on/off may be called from userspace and from kernel asynchronously which may result in system crash or reset. Returning in case HPD is already on/off. Change-Id: Ic6233925e02e6070e3ebc3fa40a87717e7b2ad1e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6cc11c405ae51f50436f48160faf302b8b29d486 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Feb 7 15:25:46 2012 -0800 video:msm: Move histogram reads to workqueue Histogram must be read after each histogram completion in order to clear the histogram registers; this patch reorganizes the histogram code to use a deferred workqueue task to read the histogram registers out of the interrupt context. As well, this re-organizes the histogram start-up to clear, using the same new workqueue, the first histogram that is read because it is often incorrect (too many or too few bins filled). CRs-Fixed: 328214 Change-Id: I4088028fc805113e74b5b763c6458183e75421cf Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff10d072f13a0845fc4e6dc0f82d2f51d9209e6e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Feb 15 15:19:29 2012 -0800 video: msm: Allow Enabling of DMA P Hist LUT Histogram LUT enabling was accidentally disabled by a previous patch. This patch allows it to be enabled again, while not conflicting with the patch that previously disabled it. CRs-Fixed: 336128 Change-Id: I5106999d79b5fdee255e23d31e5bc7de5d59b937 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e063a05cb7b869853ac7968c29acc0891b0d70f9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jan 30 16:26:57 2012 -0800 msm_fb: display: change perf level for 720p landscape video New perf level 3 (128M mdp clk) is used to play 720p landscape video, changed from previous perf level 2 (160M mdp clk), to save power. Change-Id: Ie27de4d2e407513eeb4cfb8fba6dd535a45c1364 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 20bd54d7d64317f2c9e3b1384133a1c550454948 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Wed Feb 22 10:22:36 2012 -0800 msm_fb: HDMI: Create hdmi_as_primary switch node If HDMI is used as primary, rather than external, create a switch node named "hdmi_as_primary". Change-Id: I694a12c1b8d223417090183b9d57913dca4df5be Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit c7a7cc6dc79a6f60b0468efd0fb3964b1ebc7a70 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Dec 15 16:25:45 2011 -0800 msm_fb: Add support for Area Reduced Gamma Correction (AR GC) Provide API for programming Area Reduced Gamma Correction parameters. AR GC is used for adjusting panel gamma behavior for R, G and B channels. Tested using dummy AR-GC data from panel calibration and fbtest Change-Id: I64e9f81510160ffaacb6927de1812dfd2a3e5436 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 85153bdf335804c526746ab8d930087b658f3d50 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Dec 13 13:56:46 2011 -0800 msm_fb: Add support for Polynomial Color Correction (PCC) Add support for programming Polynomial Color Correction (PCC) parameters on MDP. PCC is used for enhancing colors on display panel by programming the display panel calibration parameters Tested using fbtest and dummy calibration data Change-Id: I57dae828365f02d560e932ed0f26aa76c819fd31 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0056791344518f90c5708a5d3233373bb4e4cca6 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 18:27:42 2012 +0200 msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver. The Toshiba bridge has both DSI and I2C interfaces. The DSI interface is used for configuring the bridge registers during setup. However, when video is running via the DSI interface then the I2C interface is used for read/write the Toshiba bridge registers. Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit ac5337bb28f81c29b7449626f442e84742186574 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 03:26:00 2012 +0200 msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps. Fix front porch blanking according to the panel EDID for 60 frames per seconds. Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 91e4135c0f44697891b7ea933a8dacfac375a1e3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Feb 10 18:23:04 2012 +0530 hdmi_msm: Power down PHY register during suspend Add change to power down phy register to save current when device goes to suspend state. CRs-fixed: 333739 Change-Id: I5c1c4202637cc8391d1dba03071a246e4f891307 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5f4b579b68fdc6f50ba20a50e31814a7ec2bc45d Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Dec 7 17:14:10 2011 +0530 msm_fb: Change the sequence of backlight control for Gordon panel During Resume, backlight control settings are getting set before the Gordon panel has been initialized. This change corrects the sequence and ensures that display is proper after resume operation Change-Id: I22a6c857da3cb011404198b94e4347f76292a77e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 25 12:01:28 2012 +0530 msm_fb: Make buffers aligned to 4K page boundary This change makes the frame buffers aligned to the page boundary. Improves GPU performance since accessing the frame buffer from page boundary is faster. CRs-fixed: 325134 Change-Id: I6ce4477f62536a3cd81064e26dc08f2b199e181b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1573599adbb42c606d8b91854c76461b3f212c3e Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. Change-Id: Ia5a2e09372129a4358a46a623e6880095da4f0b4 CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9919b7e5503bc078720337da27a421ec3833e528 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 15:57:39 2012 -0800 msm_fb: display: perform mixer flush on every commit Mixer needs to be flushed on every commit instead of just when mixer cfg changes to flush changes in blending configuration CRs-Fixed: 336655 Change-Id: Ia56380eac1bd9dfb0795d930dc97a85dd30ba8a8 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a369ce03ca048fb511642ac1cb73c1f652d70c50 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jan 20 16:13:43 2012 +0530 msm_fb: display: Fix for HDMI bootup issue If the device is booted up with HDMI cable connected, HDTV would go blank unless the HDMI cable is removed and inserted again. This is happening because the dtv pipe is initialized after HDMI core is initialized. The dtv pipe needs to be allocated at the bootup time when dtv is turned on to syncronize the HDMI core and DTV overlay. CRs-fixed: 331867 Change-Id: I90f6434e8440548391a6846b47bb5539f2e436b7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3b9595f629805408d572892227091cd1b42560fd Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 8 16:36:03 2012 +0530 msm_fb: hdmi: Fix for EDID parser error. For an older TV, which doesn't contain Data Block Collection, the EDID parser was parsing wrong supported video resolutions. As per EDID standard, if EDID block 1 byte 2 is 0x04, it means there is no DBC available in EDID so the supported video resolutions should be read from DTDs of block0 and block1 instead of SVD of DBC. Reading DTDs for supported video resolutions instead of DBC for byte 2 being 0x04 case, fixed the issue. CRs-fixed: 332148 Change-Id: I637b91059952b63029cf4f05f750c340bdfa37a6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 36d8ccd620799d2ad224f22a4c4c34c0256e1d08 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 10 11:53:49 2012 -0800 msm_fb: display: Add DSI Video Toshiba WUXGA(1920x1200) panel support Add DSI Video Toshiba WUXGA(1920x1200) panel support using DSI Toshiba WSVGA bridge chip for controlling panel Change-Id: I36de195a0f86acd5415f2c6a0c4f0cfe050512bb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 23fa9e7a958be09f9d6743cea026a4f56b84a48f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 31 10:31:53 2012 -0800 msm_fb: display: set mdp perf_level to low level after playing video This bug fix sets mdp clk rate back to the rate for UI after playing video to save power. Change-Id: I73a0db158536b27a4a50d25b7737db4327210b8f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3b6551e3642301c92a1c96a70c4905da87b268ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Feb 15 16:11:39 2012 -0800 msm_fb: display: Add supported MIPI panels to LVDS/MIPI detect config Add supported MIPI panels to LVDS/MIPI panel detect config for backward compatibility with old targets Change-Id: I31048cd51c8e8d09e7a16c5f81eb3e6dc9c59259 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 55648fc2ab536294f7d549c822df8f17317b91c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 19 13:43:44 2011 +0530 msm_fb: display: Add mutex during display turn off There is a possibility that suspend operation trigger during a display update. Add mutex to serialize suspend and display update operations Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 13c5b2aa0116ee7859eb9331efd111e535db335d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 12:32:37 2011 +0530 msm_fb: display: protect dma status for video mode panel There is a possibility of race condition between dma update in ioctl context and isr context, hence add spinlock to protect the dma status in video mode type panel for safety in dual core environment. Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7716ef8c6180714d9948ecc008fb82ffef5628d7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Feb 2 19:04:18 2012 +0530 msm_fb: hdmi: Fix for different resolution TV switch hang. On connecting 1080p TV, then connecting 720p TV and then connecting 1080p TV again results in system hang. Hardware is waiting for reading AN in hdcp authentication part1 and then the resolution switch happens, which clears all the registers and we are in lost state. We need to protect the reading of AN bits in link status register and the reset core from muliple access. CRs-fixed: 334143 Change-Id: Ic5399a79a37a4285b1d10998cb1ffb4913c39f51 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d7185f60b02879c6b07293380a505791add19752 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Feb 11 01:36:41 2012 -0800 msm_fb: display: add mixer2 writeback userspace support Apps, e.g. fbtest can access mixer2 writeback functionality in userspace by providing ion writeback buffers. Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1af8a35b8700d507016d6c05488401dbf6af0431 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Feb 9 14:34:23 2012 -0800 msm_fb: display: fix underrun seen due to scaling accuracy When making scale phase step ratio calculation, accuracy is lost when sizes are big since calculation is done in 32 bit and some truncation happens; this leads to underrun in mdp hw since scaling ratio doesn't match the src/dst rectangle. Increase accuracy by performing division again on remainder and appending to lsb of ratio. Change-Id: I6baa69a70a55e402c8924b51cab86afa6d0e9b5c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 57e30678c19f540108d99e81fb03fdaa86105d95 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Jan 30 16:58:12 2012 +0530 msm_fb: display: Featurize pm operations for external display Featurize suspend/resume operation of the external display to resolve compilation error in cases where external display features are not defined. Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit b0d8321014da0ff547e8386d09a6bb3146320834 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Feb 13 13:51:47 2012 +0530 msm_fb: display: Fix for compilation error with HDMI as primary Proper variable is now used to avoid the compilation error. The function where this error is seen is compiled only when the HDMI is configured as PRMIARY. Change-Id: I74a9693ceef49143412101a6a8360d2241f75e91 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ab05f94b75a40fdd70f018a12fef1d8e0b972175 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 9 19:18:45 2012 -0800 msm_fb: display: Add LVDS display & LVDS/DSI panel auto detect support Add LVDS display PHY/PLL configuration and panel backlight support. Enable auto-detect support for LVDS/DSI panels Change-Id: I36a1a3c4cee9e015ae6fd03257bd10efa81450d8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94f25dcbd137d139e31be55c461a95b39f730cbe Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Jan 31 00:18:33 2012 -0800 msm_fb: HDMI: Export interface for setting Audio info frame The Audio InfoFrame contains information that allows for the format of the digital audio streams to be identified more quickly via out-of-band information and, for multi-channel uncompressed audio provides channel allocation information for the sink device's speakers. Currently audio info frame is hard coded to support 2-ch PCM. To Support Multi channel PCM, correct channel allocation information has to be sent to HDMI sink. So export the interface for setting audio info frame to HDMI audio driver. Change-Id: I7d0d5cf9f8792250bfd6e5eb003a8360ccb9707a Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 56499ed9d52ec2adfab9d8d48fa1495698fbbb75 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Feb 9 16:12:00 2012 +0530 msm_fb: Display: Update panel initialization sequence Update the panel initialization sequence to avoid tearing effect on the panel Change-Id: I933ba5cadf1d2620bc571bd3a307494d838c2b38 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 5cef5f4de20c409e8e1ba31bd97aca111677f49d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 11:39:16 2011 +0530 msm_fb: display: add spinlock to protect dma status. During dma transfer to interface host the status of the dma needs to be protected in the smp environment. Change-Id: I02b4f046de7f693bb098343b7345c4aa6ca395bd Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7f4205b6487f81a3c504726263ffeddbc74df833 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Dec 19 12:29:52 2011 +0530 msm_fb: display: Add SMP-safety for PPP Operations Adds protection using spinlock for the variable used in controlling the PPP operations Change-Id: Iba6ef5e32d38668bd110ed23ee9631aa40de79e0 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5978cd2b581df55aa0c23a1478239b2e7bf7942d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 26 11:10:46 2011 +0530 msm_fb: display: remove while loop in mdp ISR As mdp interrupt is enabled on-demand, there is no need to have a while loop to handle interrupts at random time. There is possibility that mdp clock is turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Change-Id: I3716638974d8e24eda4a5146421d026b0ca85b4c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1e6fcce3a2382b6af0c02aaed6bb503ac5d53b5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 16:24:22 2012 -0800 msm_fb: display: fix primary not resuming after suspend when hdmi connected Update bl_updated variable only after succesfully changing backlight, otherwise it can be set on hdmi play which doesn't really update backlight so primary remains blank. Change-Id: Ia08713ff0fbc88a98acd004a909c995fcd5726c6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d3a2993f02636b865bb59b075b12586513c7ba9f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 12:26:39 2012 -0800 msm_fb: display: fix no resume after suspend for cmd mode panels Base layer pipe is updated only on ui kickoff, in bypass mode ui kickoff might not happen and that is why panel won't resume. Perform base layer restore on resume to allow panel to resume. Change-Id: I6031569077731fae0a716175d62fe4c0c85c6c36 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 540124b79dd7b3bc25651935999f6fe422152fa4 Author: Amir Samuelov <amirs@codeaurora.org> Date: Wed Feb 8 18:18:51 2012 +0200 msm_fb: display: Add write permission for 3D barrier file. Allow user space application to write to 3D barrier for control. Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit d9f38b0c3bcb8cb16e5b8d433caea647f9c875a3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Feb 2 18:57:03 2012 +0530 msm_fb : Add support for Yamato format Changes to support Yamato format as a source format. Change-Id: I334fd059d2a06ea2796eb24f4a69fdb4be4e9789 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0cfba7b42b33cc0712d81d3ea917a235b3cd8d7c Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Feb 6 11:02:12 2012 +0200 msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver. Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver. Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 4b3395e1e6441673fb41c8fea58ea3e1422c3590 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jan 28 21:45:03 2012 -0800 msm_fb: display: Read DSI platform's data lane swap for Novatek panel Read DSI platform's data lane swap setting for Novatek panel and set it in panel info for programming internal lane control register Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2664ca29cca2ba9a46b0a992ba4f529e5208bab7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 7 15:31:42 2012 -0800 msm_fb: display: clear mixer blending cache during resume Clear mixer blending cache so that new blending value can be committed during system resume. Change-Id: Ie4e8399cdbbdb2153417c19e7f8019f38a294dd6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 18044ce96c01a440a2ade3711aba776aa1fea64a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Dec 13 23:22:48 2011 +0530 msm_fb: display: Add support for MIPI NT35510 WVGA panel. Adds DSI client and panel driver files to support Command and Video modes with NT35510 client and Truly WVGA panel Change-Id: Ia41bf282d070fa5fc5e0afeb24366a540c7ca9f5 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e6f182a1d4d1e186ae75f3a73cc496d94f983761 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 7 09:14:03 2012 +0200 msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel. Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver. Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9705d1ebd4e39d0428a950589da9f5963d22ab74 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jan 17 15:29:57 2012 -0800 msm_fb: display: increase timeout value to 2 vsync wait_for_completion_timeout() may timeout before overlay1_done interrupt when one vsync timeout is specified. This cause mdp4_overlay_dtv_ wait4_ov_done() to return prematurely which causes a falsely increased FPS. This patch increases the timeout value to 2 vsync to prevent premature timeout. Crs-fixed: 330723 Change-Id: Iac516525f328be01cf81ce3f4e95e5d6a4ab80ca Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit bbcf4477c7e7d8ba7208e179f55bc8e550de08a7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 20 11:35:24 2012 -0800 msm_fb: display: enable MDP interrupts base on panel interface Enable necessary MDP interrupts base on panel to avoid triggering dma_s isr handler. Crs-fixed: 331668 Change-Id: I139a6193338a1b0a7c9cc7869e3ea1b3f9a65c4d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 94c8a2c7f32371057f094cac19aa1bb905e714f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 6 12:35:14 2012 -0800 msm_fb: display: perform staging updates on a single vsync Store all staging updates locally and write to hw on a single vsync only when changes are detected, this allows a smooth transition from using multiple overlays to framebuffer for UI Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9cb0ead92fa1188c99ee9bcdc1148dab17b48a36 Author: Jeff Ohlstein <johlstei@codeaurora.org> Date: Fri Dec 16 13:30:08 2011 -0800 video: msm: change normal operation prints to pr_debug There is no need to print every time an mdp4 overlay pipe is allocated or freed. Change these prints to pr_debugs so they can still be used for debugging if necessary. Change-Id: I91ba245ce54ab8a963539cfdea6d8d92efaf52a4 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> commit 207b565179fe95d9537ad1d8172ba9de91a3fbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 18 21:21:15 2012 +0530 msm_fb : Check the validity of Histogram start/stop ioctls. Histogram start/stop ioctls are called now without checking if the panel is on or not. Add check to validate the ioctl calls in this aspect. CRs-fixed: 327910 Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 62f887ce4c6a52be4a4b846606768c19487742b7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 11 22:56:59 2011 -0700 msm_fb: display: Add LVDS display driver support for Chimei WXGA Add LVDS display driver support for Chimei WXGA LVDS display panel Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba commit 79d05a646f8af2658ad8f0aadb73c47cb277cc95 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Mon Jan 9 15:18:33 2012 -0800 msm_fb: HDMI: Switch device node for HDMI Add switch device node for HDMI on initialization. Final node path will be /devices/virtual/switch/hdmi Set the node state to 1 on HDMI cable connect event, and successful HDCP authentication, if applicable. Set the node state to 0 on HDMI cable disconnect, HPD off events and HDCP authentication failure. Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940 Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit cb6b2e9c9ecb6884f556456b3d1ce4d877570534 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 19 16:05:27 2012 -0800 msm_fb: display: Add external display PM suspend support Remove PM suspend registration from HDMI driver and add it in MSM framebuffer driver Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8562e7893e41969f1fe15839b7020b75401f6d72 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jan 24 18:34:29 2012 -0800 msm_fb: display: Remove HDMI PHY power settings for proper PLL locking Remove HDMI PHY power settings for controlling PHY along with HDMI PLL in clock driver for avoiding random PLL lock detect failures Change-Id: I4016d5711b06785be3dd47782a187196d61445de Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 175d1281a5c1635cffc911dac261efc67d807c9d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 20 16:57:23 2012 -0800 msm_fb: display: Cleanup log messages for ION buffer management Cleanup log messages for ION buffer allocation and de-allocation functions Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5 commit 0bd48279653be46c7b91648e1ae0d93c7131e425 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jan 24 11:59:50 2012 +0530 msm_fb : Check validity of histogram bin collection When CABL is disabled from UI, wait for completion gets killed. Histogram bin collection is invalid in this case. Add checks to handle this scenario. CRs-fixed: 331527 Change-Id: I0c25417672ee44a63011f76f2c998cbef9ae95f5 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fa1de67dbadc084aa9fd6afa5ab4fae335089334 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 5 12:37:59 2011 -0800 video: msm: Adding CSC support for other MDP blocks Adding support for VG1, VG2, DMA_S and Overlay Mixer 1. Change-Id: I95a5832a70fd893970e82dadcec1e11ed608d79c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c7d7aa888a33818f278bdce86fa6c349561e05ea Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Jan 21 17:17:06 2012 +0530 Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3" This reverts commit ff77f57b5bb1cd55bfdd3a14430470829e360822. Patch causes histogram ioctl to fail after there is no UI update for 50 ms. Abl-daemon handles static screen update case in CABL from now. Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 3ab14ddf6e9fa157c292ba7442550628f090b5a5 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jan 20 22:40:52 2012 -0800 msm_fb: display: increase wfd resolution to 720p Wi-fi display can support upto 720p resolution. CRs-Fixed: 332226 Change-Id: Idd4f293d364bb52ff5e85c58a713fc1d36b29c1b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 228895ae217589ca71aa464f7c22bc4cedd06f77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. Change-Id: If5de484fe19dd3e949107d5b0d72f9594ee2e76f CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0da46929eb69a01fa4b1d26a317e8fcc60a024ac Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 15:08:04 2011 -0800 msm_fb: display: add mdp overlay1 writeback This feature is enabled to avoid underrun on the display external interface (HDMI). For example, if 1080p to 720p downscaling is required, and mdp clk rate already is in its max, writeback is the only solution for this situation. Change-Id: I2323272a90730da45601f1d4c7dfc2bf06337b59 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jan 5 10:36:31 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 284fc85908c31b7424cc600083c2499d4188bdfd Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Sat Jan 14 14:45:23 2012 -0800 msm_fb: display: Fix incorrect goto call During the probe for writeback panel, for MDP hardware versions earlier than 4.3 an incorrect goto call un registers the bus scale handle that primary panel uses. This is causing the boot failures because the primary panel turn on sequence triggers the bus scale update request on already unregistered handle. Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit fa559f6cb6c9a75beb48b594f952ccfe213c4234 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 13 16:28:54 2012 -0800 msm_fb: display: fix underrun seen with big src coordinates MDP underrun happens if combination of x + w or y + h exceeds 2048. To handle such use cases add an offset to the source address instead. Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit da2f3cc0003c55cd18d6f052ecb9530fe2acea9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jan 5 15:32:57 2012 -0800 msm_fb: display: perform backlight updates on overlay play Perform pending backlight requests on overlay play to handle cases in which framebuffer updates are not happening to update backlight. Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ff77f57b5bb1cd55bfdd3a14430470829e360822 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jan 13 16:32:31 2012 +0530 msm_fb: Handle static screen update case in CABL for MDP3.0.3 Avoid histogram bin collection and copy during static screen update. Histogram ioctls are also returned early in this case. Change-Id: Id75a2a61e018f683e2ec2d23c0fb78e1c7605a7d Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit daa069f0949391f7b6fa7dcc26d854b790c14906 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:09:24 2011 -0800 video: msm: Adding CSC configuration for DMA P This enables the ability for the MSMFB_MDP_PP ioctl to configure the DMA P CSC registers. Change-Id: I1e18646decdd26641592bbc2a2dc0a4aa74e5f8a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff85b428535a84bc00648e4a097332aeaebd676c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 9 00:07:05 2012 -0800 msm_fb:display: Fix compilation errors when DTV is disabled Change-Id: I33b6426a202b60fe2f3d2fd007e05ce839283c0a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ca82bd65223f61c193fd2600479bd18c09f7b1dc Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Jan 10 15:57:53 2012 -0800 msm_fb: hdmi: Correct logical clock rate for 480p We need to keep the logical pixel clock rate for 480p video resolution to be 27.03 MHz even though the hardware internally only generates 27.027 MHz. Change-Id: Idc653062e0a155e69753a8b58b9abf6106cfb8e0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4f4b108a0931736c2b3d5d0b577f1f557247167c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jan 11 10:02:34 2012 -0800 video:msm: Fix histogram error check logic Current error check logic is incorrect. Starting the histogram should throw an error if the histogram current state (mdp_is_hist_data) is already true. Similarly, stopping the histogram should only throw an error if the histogram current state has already been set to false. In the cases of suspend/resume the mdp_histogram_ctrl calls should only be allowed when the histogram desired state (mdp_is_hist_start) is true. Change-Id: Idef307293a7e4fb70807e9cea53078bf3cc67f15 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 061c8d1b5097067a2348431f26ad193a37ae02c8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 18:37:36 2012 -0800 msm_fb: display: fix underrun seen for some YV12 format input Underruns seen on display because source rectangle width is aligned to 16 before being passed to MDP. Only ystride should be aligned, source rectangle should be passed as received. CRs-Fixed: 329453 Change-Id: Ibb71ad316023d21ebad4c5db37fdc5e5c8acb02b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e1ba2705ea4c9960f4349c57d115f4a79482f3a0 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Wed Dec 21 16:24:52 2011 -0800 msm: wfd: Adds writeback start/stop functionality. Removes register/unregister calls and replaces them with start/stop. No need to pre-register the buffers anymore. Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit e240c2f738e6b3c4bc754442a8da3a351a0d68cf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 3 15:43:29 2012 -0800 msm_fb: display: fix mdp clk rate settings If the video resolution is changed from higher to lower, mdp clk rate cannot be changed before overlay_play. Otherwise, underrun may happen because of a lower mdp clk rate for current higher resolution frames. On the other hand, if the res is changed from lower to higher, mdp clk rate must be changed before overlay_play to avoid underrun. CRs-fixed: 327811 Change-Id: Ieac4d2e1644e5687e3506b37799c56e19a17b991 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bf300479078611dc528cd0e2decc4fdb3c282c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 12:33:13 2012 -0800 msm_fb: display: fix hdmi connection crash on 8660 Crash happens because RGB pipe is not completely setup when initializing the base layer pipe. HDMI crash no longer happens after initializing RGB pipe correctly. Change-Id: Iff2e989db95b86fd81afc7e04d12d3d8f099acd7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 06237550f191c8d218030a231a9fefe0d7bd3f76 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jan 4 16:35:26 2012 -0800 msm_fb: display: Move debug messages to debug statistics Move some debug messages that were shown as errors in display driver to debug statistics to avoid excesive prints in kernel log. CRs-Fixed: 326925 Change-Id: I529586f0e79baf27e2ae17f08fac203ba28bf416 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9add8a944993cb6bf90b12344731bb279fb366c9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Nov 21 12:51:36 2011 -0800 msmfb: display: fix the issue with overlay wait api calling overlay wait api asynchronous to the other overlay apis results in race condition in protection flags. this case is observed with HDMI true mirroring feature. it modifies the protection logic to fix the race condition Change-Id: Ib933055a395c2fc743f018aee96090defde33d37 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ca0aeaa65f7d4c2896e881e20e2b1892e5f96dab Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:08:03 2011 -0800 video:msm: Adding stub for MSMFB_MDP_PP ioctls Basic handling of invalid copy_from_user and op from an invalid range. Change-Id: I788b28d3804e7312ee18310011c75d11287c4c6c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 880f847f5daf4517a4090e62ea1345ed69ff05fc Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Dec 14 03:52:28 2011 -0800 msm-fb: display: ION based allocation for writeback buffers ION based allocation is added for the writeback support for content security. Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 285745f9b9cf52a4f69711a3737ca185e0e699ec Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Dec 29 18:31:46 2011 -0800 msmfb: display: clean up of the writeback buffer variables clean up of the writeback variables to change the write back allocation for ion support Change-Id: I4999e43cb2f7111853e9c4a17852b2d5a351204e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. Change-Id: I526ce7bb5e6894e07040cc409c8a700e4a78a9fd CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 304248c9d5bfa96e965a2a08c134cb5b20aac00a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Dec 29 14:04:27 2011 -0800 msm_fb: display: fix mdp blending logic Handle case where blending downscaled VG pipe with alpha channel since alpha channel will be dropped by MDP hw. Also propagate framebuffer pipe alpha to top layers only if they are opaque to avoid picking up from layers which contain alpha. CRs-Fixed: 326178 Change-Id: I73cfc0716d1f5f8a803a645bdc09b97f909e593d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 276bdaa5717d379e072137f004dd79133058d70d Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:44:53 2011 +0200 video: msm: Update CONFIG_MHL condition Replace generic CONFIG_MHL by a specific define CONFIG_FB_MSM_HDMI_MHL.implemented in Kconfig Change-Id: I3a8393518ca4f3adc1d74a62cb615ca629269af2 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 819b257a51108b3833256804030c522dc7059cb0 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:36:56 2011 +0200 video: msm: Add FB_MSM_HDMI_MHL to Kconfig Add FB_MSM_HDMI_MHL config to enable/disable the HDMI to MHL conversion support Change-Id: I51b58e9ca687e244c5b818a3aefb211e605c8e2a Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit b52368bee31a047be045687253e3805c008bd4e6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Dec 22 12:09:17 2011 -0800 msm_fb:display: Enable Layermixer2 for nv12 writeback enabling the layermixer2 for new MDP hardware so that it can be used to writeback the output in nv12 format for wi-fi display usecase Change-Id: I70322e722d8382102077db2d94a9320c2f2bb175 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit d0de5f990ab738a8b9c67fefc63b67e31d457f89 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 20 13:57:28 2011 +0200 video: msm: Add support for Sii9244 MHL video modes. Currently the HDMI driver reads the video modes of the external panel using EDID and matches those modes with the HDMI TX Core supported modes. If the HDMI signal is routed via the Sii9244 MHL chip, its video modes should be also taken into account. Change-Id: I841071c47dde94d9a91727d5f31b0ec43a957689 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 6a75b86e9f0707f46f0fd161481da25235bd037c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 10:33:39 2011 -0800 msm_fb: display: Add backlight with first pan display after resume Add backlight call with first pan display after resume operation of framebuffer driver CRs-Fixed: 323682 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic27c2c9fe37b622bbd9ab5933ca45626decd53ae commit 48d8f219004677ead97d6a5a0b89b54625c2f15d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 11 18:22:29 2011 -0800 msm_fb: Power saving for enabling HPD feature. Don't initialize HDMI PHY while enabling HPD feature. CRs-Fixed: 310913 Change-Id: Ib18f93dfa848218e0a6a1fdf06944e6696e08bbc Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 402adc6142598abcb2a41a941895003f57f289a5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e88f8f552a6102b8622ca6f88e78f2a244531746 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 19:07:20 2011 -0800 msm_fb: HDMI: Fix Coding Style Warnings This change takes care of all the coding style warnings reported by the checkpatch script. Change-Id: I31506132176f269ce2971dc45ffaf6e8b4b9dab5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Change-Id: I6d21103d049bf22d3a09aeeafab1a50119597d7e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b7b13f07b1b7f3c721752163f8b0279042636a02 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 18 11:20:08 2011 -0800 msm_fb: HDMI_COMPLIANCE: Disable Encryption on NON HDCP builds. HDMI Compliance require non HDCP builds to work on HDCP SURF's. Do not set HDCP flag for NON-HDCP builds, so that encryption enable bit is never set. Change-Id: I6f2df598fe2ed4d9ae3673fcec74b76c30e3c0dd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 910183691eb3d8c06f6344cfd57ae4e30716ff94 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 14:57:43 2011 -0800 msm_fb: display: allocate mdp writeback memory The writeback buffer is already reserved on the board side. This allocation separate writeback buffer from framebuffer. Change-Id: I312be3e0dfcf4c5b611cd06cd68d2baae7e2add8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c174d301d899a3242efc5d30d549c9fde8270b78 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 15:38:26 2011 -0800 msm_fb: display: enable pixel repeat on VG pipe only for alpha upscaling VG pipe doesn't support pixel repeat/drop to avoid alpha channel drop during downscaling. Keep pixel repeat only for upscaling. Change-Id: Id400d0f823bc0054a94330600d5085778a65b936 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b879b66c84b849ea78bcdd2400bacd7e0311561 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Dec 16 16:04:09 2011 -0800 msm_fb: display: Add MDP 4.2 footswitch ctrl at suspend Add MDP 4.2 footswitch ctrl at suspend/resume for non-HDMI cases Change-Id: I1071c0106ffc52c7f337e9f612a6ec9eb4746edd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52e88234977cd598e4902841869207b670f1321b Author: Ajay Dudani <adudani@codeaurora.org> Date: Tue Dec 13 13:33:10 2011 -0800 msm8930: Temporarily disable HDMI by default On some 8930 variant boards, we see a kernel panic on HDMI core power on. Disable HDMI temporarily until this is root caused. Change-Id: Ibfa1d851897c6f38c8f17cde8d3529a373203f1e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 89d519ca92ba2f8c70d595f1950691170c577486 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 17:31:35 2011 -0800 msm_fb: display: Fix DSI cmd mode color swap issue for MDP rev <= 4.1 Fix DSI cmd mode color swap issue for MDP rev <= 4.1 CRs-Fixed: 323479 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic9841f0eb89df7afea7ec1c9486e8cb0e6bbb58d commit 6a601cdc35501835a0b19718329be70f696a34ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 18:16:25 2011 -0800 msm_fb: display: fix mdp underrun on disabling writeback Writeback fallback for mdp underflow can be enabled/disabled dynamically based on parameters; if writeback is disabled while displaying previous frame it can can cause underrun. Disable writeback after programming new frame to avoid underrun. Change-Id: I6c73887043f19596cb3611c83c51c1aeac907ff0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8e3cb69445244c620d5742b8f3cb57c3a8bef5c4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 17:35:51 2011 -0800 msm_fb: HDMI: Remove Audio Packet Ctrl Reg Setup With a recent change we do not set the Audio Packet Control Setup register (offset 0x0020) on HPD connect event. In addition, we should not reset the value of this register whenever HDMI is powered off. CRs-Fixed: 323928 Change-Id: I1ecbb9c87470b5cedc7351198cf73c5d7406ceb6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit db7007f5a6697cd5239f433b010440bf5a5650e7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 14 02:17:58 2011 +0530 msm_fb: hdmi: Add DVI sysfs node For DVI mode, audio should not be routed. This routing happens through HDMI daemon in usespace after confirming the mode from HDMI core. This change gives HDMI daemon a way to determine if the mode is DVI or HDMI, based on that HDMI Daemon can decide on routing the audio. Change-Id: I4afa746d6195b02046305a33a2b6a8b693510ba6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Change-Id: I304bb088ef1147e562fdeb6f7eb02ed570aba627 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 88426ca238a783acf165f8b4e0958cd3cced6cf9 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 13 13:31:41 2011 +0200 video: msm: Add mhl api header file MHL API defines an interface for HDMI driver. The API provides the information of the MHL connection state for HDMI to transmit the MHL supported video format. Change-Id: If19e497b7a238eb0465f9fb13b5586d3b9043360 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit a35b234783de0a3dd4e21d784081d35309592e51 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Thu Dec 1 17:38:01 2011 -0800 msm: wfd: Fix compilation error. Changes function call to match the new API signature. Change-Id: I6b1cadca697c5b7431ee2648a4d34df21b46ce52 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit b240803778c9d2c9788bd33587c9c63edb7d6801 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 10:52:48 2011 -0700 video: msm: Track validity of and synchronize histogram Adding mutex to more thoroughly lock histogram calls; additionally, adding a flag to track histogram data validity. Together they ensure that the histogram is not started, stopped, or read out of order. CRs-Fixed: 310429 Change-Id: I276974811a5e673b05c68b41f5fbff5b178165cb Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 562c58fbf58a55b9dc8cde472361cb8d3cb6a1e5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Dec 8 08:47:33 2011 -0800 Revert "msm_fb: display: decrease mdp_timer_duration" This reverts commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00. Change-Id: I3312c878370ce72a611423085c8cefe42028d21e Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fc6be921eeb73aea9bd625189f225d199908b685 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 4 15:22:39 2011 -0700 msm_fb: display: enable border color fill on external display Enable border color fill feature on external display. This avoids usage of RGB pipe for background border fill and can now be used as overlay layer for UI display. Change-Id: I652ab3ffe2c43260590e4e5a2ffc986340c4a8c0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d2fb0bd826f83b6bc3fc2d0819773f25bd2b049f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:38:14 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Reset DDC control logic upon failure This change toggles the HDCP_DDC_CTRL_0 register to reset the DDC control logic, in effect enabling the DDC controller logic to continue to function after hitting a DDC failure. This is needed to pass HDCP compliance on MSM8960. Change-Id: Ic11a4d4de375aab9b3948cbde7eda5aca7aefbd6 CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit daf5e17901e7519de3bfc5752dbd95093aeb2527 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:34:40 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Disable HDCP interrupts on de-authenticaiton This change disables all the HDCP interrupts upon de-authentication. In addition, we also clear the HDCP AUTH_FAIL_INFO register upon processing the AUTH_FAIL_INT interrupt. This is required for passing HDCP compliance for MSM8960 Change-Id: Iefe544c8c972e4d3b5fa4ccdd513c411d1781b3d CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 34c5f958890c8881e92a05e05ac6f95b5a48eaf1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 13:56:59 2011 -0800 msm_fb: display: cleanup overlay0 writeback funcs and config flags The writeback blt mode is controlled by assignment of blt_base (NULL or not), only the #ifdef in board file is effective. Those flags and funcs on the driver side is cleaned up. Change-Id: Idc9a7fbb5525071bf3cf68e5182bc7f6a5693932 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a12cc95a7e8b5f4882307f0ec7516f62ef8ab21e Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 18:14:50 2011 -0800 msm_fb: Discontinue use of clk_set_min_rate() This proprietary API will soon be removed. Replace use of it with a combination of clk_round_rate() and clk_set_rate() where appropriate. Calls to clk_set_min_rate() with a rate of 0Hz followed immediately by a clk_disable() served no purpose and are removed entirely. Change-Id: I56d680ee36cc6292dcc436eeec7acdc57f3c243a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 2aab6fd9b00955b2e836a873cd5a27bddd2f3644 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 7 07:23:34 2011 +0530 msm_fb: hdmi_msm: No HDMI for 8627 The HDMI driver should not register for 8627 target. Change-Id: I3ef882e76d374eabc15ed5c3121ac7d6f618f616 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e8943499da4389b9f32658f19da0ced6b7ff565f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Nov 1 13:04:10 2011 -0700 msmfb: display: enable the blt mode for bigger line length blt mode is enabled for bigger line length to avoid the underun on qt devices Change-Id: I6055f494034b1e64fbf6fb083442f9513634659c CRs-Fixed: 316327 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 954620c40355894763ea1aeff4646b2adb30a594 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 14:50:48 2011 -0800 msm_fb: [HDMI_COMPLIANCE] HW reset on HDCP reauthentication We need to add a small delay before reading the AN0 and AN1 registers once they are ready, in order to avoid hardware reset. Change-Id: Iba9465ee83dce66ae99ab5885015d977d54c0612 CRs-fixed: 319542 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9a2673aca6aae756ef36b35e981c7c349845edf1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:03:25 2011 -0800 msm_fb: display: fix invalid receving length bug Since expected receiving length need to be divided by 4 evenly, it need to be &= ~0x03 instead of &=0x03. Change-Id: I68912245c6fc499bdb652ed327d60bcf60487d40 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e22c42d680cfa7abedb0b29431bbbd83451f19c1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Nov 30 17:35:51 2011 -0800 msm_fb: display: move the prefill function inside the config flag There is a compilation error if the config flag is not set, so the func has to be moved inside the #ifdef. Change-Id: I6163606c389e8e4767239cf74eb8260fca728728 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ebefc805a139e8222061b32cbf7686d76122de5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 30 09:15:12 2011 -0700 msm_fb: display: decrease mdp_timer_duration mdp_timer_duration decides when both mdp and vsync clocks be turned off after last screen updated. Decrease mdp_timer_duration to 20ms to have clocks be turned off sooner. CRs-fixed: 315271 Change-Id: Icf7f0a64ab38dd5184a12242cfc190efa31016a9 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit edcb9567783846d292410c14fc4b99612ef1caff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:02:50 2011 -0800 msm_fb: display: remove mutex from mipi d2l register read/write Mutex had been acquired at dsi_on() already. Hence no need to acquire same mutex at mipi d2l registers read/write function again. Change-Id: Ie47590771c287a8e7c42aae568c1703a7e9107a4 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fa14cb039938c7a60007b6e5f1c4db2541faa18e Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 19 13:00:16 2011 -0700 msm_fb: HDMI_HDCP Compliance: Fix for test case 1B-01a In the case where there are many downstream receivers connected to a repeater, we need to poll for HDCP_SHA_BLOCK_DONE bit everytime after writing 64 bytes of the KSV fifo. Change-Id: Ic304250a73ad6573c43b4eb910a7eb7eb2b4dee9 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8863118c485d2dff94dfa259a95d069d15994b29 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 28 23:55:53 2011 +0530 msm_fb: hdmi_msm: dynamic sample rate change for non-hdcp Adding support for other modules to dynamically change the sampling rate in HDMI core for audio which is supported by NON-HDCP surf/FFA as well. Change-Id: I2e4f239e43251b2dc5f8529b7c352a94456ad974 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 0948c68fe35913119f2d025168b381e6ca1d2db7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 16:50:43 2011 -0700 msm_fb: display: update mdp statistics Update mdp4 statistic information so that it becomes more useful during debug session. Change-Id: I0b88428bc692c28284f9091e143f0cf10079225d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0fc5d36176b8feaa360bff9c5d46c481cea8a42b Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Nov 16 05:48:33 2011 +0530 msm_fb: hdmi_msm: Add support for audio sample rate change. This patch provides the support for changing the sample rate dynamically. Change-Id: I973e5240e6f545b85ab2872aa0786b2d80ee2d2f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a077d0063dfb8a39a869f56099dd0ffe85301180 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. Change-Id: Iee8d5d019b74edd675b23ac8dd34535766714eb2 CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 6b2d8af94b0fc441eefb65e87a964208783dac3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 16 10:02:01 2011 -0800 msm_fb: display: commit BLT to mdp register during video kickoff BLT (writeback mode) need to be committed to mdp register before kickoff. Normally, UI kickoff will follow immediatly after BLT enabled/disabled. However sometimes video overlay play happen before UI's pan display after BLT enabled/disabled. In this case, video kickoff need to commit BLT to mdp register too. Change-Id: I7b085f516f869009e7fc4b443f7858a61fce5ba3 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 3875379164cd350591eb8a1f4ea06994004a21ce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 18 13:14:08 2011 -0800 msm_fb: HDMI: Support for 576p 4:3 in HDMI Driver The firmware upgrade for the QD 882EA box requries us to have support for 720x576p 4:3 aspect ratio. Until now, we have only supported 720x576p 16:9 aspect ratio. This change adds the appropriate values to the AVI Info-frame lookup table. Change-Id: Ibc1165ab2445977e7b253a20b0d9396e1ae88ce1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4b910f252587e25699eaa4daa5036ab3bfb73c3f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 15 09:43:04 2011 -0800 msm_fb: display: enable mdp chip select controller Enable mdp chip select controller so that CS signal is asserted or de-asserted by MDP according to activities of memory access on both read and write to save power. Change-Id: Ic0acc1c8cbe06c5f3cf25627af209abadeb1350c Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 465c15903f44453a235d7eb9be4b6bde51368370 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:06:15 2011 -0700 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Change-Id: I9ab9bf2b6c02d73e40cd1a28241ffb20cdd69516 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b16b8f13507e9ea078b2f612d74b024a11afd13 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 16:58:21 2011 -0800 msm_fb: Use clk_set_rate() to vote on ebi_clk rates clk_set_rate() and clk_set_min_rate() share a common implementation for ebi_clk, but the clk_set_min_rate() API will soon be eliminated. Remove its use in preparation for this. Change-Id: I5a4a4a2f5e2e0ba4989bc7c1f9423653bec0af0f Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit cb8fbbcbe0630451ba582a0747987c48b2c603f1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 26 13:00:18 2011 -0700 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Change-Id: If723802d9405001baa69f132a143d21c8aa85613 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. Change-Id: Id79795dd4c17c3a75337a4c3818219ba6d87ff25 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d973663b4a2086c7fe1bf0264f16d413673c36c3 Author: Liyuan Li <liyuanl@codeaurora.org> Date: Fri Nov 11 13:47:59 2011 -0800 video: msm: Adding support for MDP4 HSIC controls Adding support for users to adjust Hue, Saturation, Intensity and Contrast of the display. Change-Id: I79cb69c871686ccba115798f635f768b9a50affc Signed-off-by: Liyuan Li <liyuanl@codeaurora.org> commit 4b1bde4cd20b889b3fc49972d3210c5308044ca1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 8 15:26:26 2011 -0800 msm_fb: display: add mutex to dsi_on During resume, backlight dcs commands to client may be issued before dsi_on completed. Add mutex to dsi_on and check dsi state to make sure dsi_on is completed before sending backlight command to panel to avoid conflict on dsi link. Otherwise screen will stay blank if confliction happened. Change-Id: Icfba079b228f02aeb89949befb10cca29bf6d744 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e69bed86ffa5b7cc05545fd986a21ebef5123775 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 17 16:21:42 2011 -0700 msm-fb: display: ion framework support Add support for the ION memory manager to the framebuffer driver Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> commit 6a3a01ae8eca6d615ead5be9ed28720bc0c79dab Author: Deepa Madiregama <dmadireg@codeaurora.org> Date: Fri Oct 28 06:34:17 2011 +0530 msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue LPA_IF dma channel is disabled without checking the per count value. Because of this dma channel is not functional after few iterations of continuous playback. Fix this issue by checking the dma per count value to stop before disabling the LPA_IF dma channel. Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89 Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org> commit 81be67988ef149f601064a9e8e5d91705e636ff5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Change-Id: If2622631a7cd03276ae7fbd8326155d0e9c7b66b Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 27020d1b5db194e11b08dc46dd7b89078895b6eb Author: Vinay Kalia <vkalia@codeaurora.org> Date: Fri Oct 14 17:50:29 2011 -0700 video: msm: Writeback support in mdp for WFD. Adds writeback mode in mdp for wifi-display(WFD). This mode can be used to get the captured frames from mdp. This is added to support wifi-display capture device. Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit 584b96a4a3b0f5842178fb8fd1b1235501cf7ef0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 10:33:30 2011 -0700 msm_fb: display: add no_max_pkt_size flag Add no_max_pkt_size flag to allow toshiba dcs to lvds bridege chip work. Change-Id: Icaed4bc749dec96f12e3e0e78c098294658a2c46 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 4c4c286176e91b24f2399309ce9f379902be58d2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:28:55 2011 -0700 video: msm: Clear and disable histogram interrupt When the histogram is disabled, its interrupt should also be disabled and cleared. Note: only applicable to MDP4.0 onwards as earlier versions of the MDP expect the histogram interrupt to be left enabled after running mdp_histogram_ctrl. CRs-Fixed: 310429 Change-Id: I5a8df4fdcc41520e1ed0af970a8628479a4645a6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e19a2869b3db914e93335746ef80878103d5c0cd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:26:24 2011 -0700 video: msm: Remove redundant code in histogram collection Rewrites start and stop histogram functions to better use the existing mdp_histogram_ctrl function. CRs-Fixed: 310429 Change-Id: Iecc97c1376319021f99dd00eee6fb154bf7a5740 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 13f48ed4a9141772385eb44bd8c1923668ae32df Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 13:44:31 2011 -0700 video: msm: Remove ifdef from mdp_histogram_ctrl Replace the mdp revision specific code with reference to mdp_rev global var. CRs-Fixed: 310429 Change-Id: I09fe3707bc9926af89874966e7d640c5862cffa0 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 7484515be07eebc3a12a087921416f1b373decde Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Oct 11 10:24:32 2011 -0700 video: msm: Block histogram requests with powered down panel This causes MSMFB_HISTOGRAM ioctls to return an error when they are called after the panel has entered a powered down state. CRs-Fixed: 310429 Change-Id: I39c768c62a37ca83df2db2309230971cb6492bab Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 40a43409804073a0442d2a1ea09293c0b95fdab1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Change-Id: If8b6220c26ea8d08857f87f33609b1673238b2ec Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0737d65bb7faf91f3dbf87c32a86c5e7cb9e454e Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Oct 14 02:02:33 2011 -0700 msmfb: display: support for overlay wait ioctl this adds supports for overlay wait ioctl and it allows the userapce start overlay play and HDMI and can call wait later point of the time Change-Id: I8000cc52a497861e0a5fdfe58c0c049219724ab6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit d1b9d7ab0c98fe2bb8d6ab3f6dbd489dd17b3c5a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 14 18:18:51 2011 -0700 msm_fb: display: enable hw cursor for dsi video panel fix hw cursor updates not coming for dsi video panel defining callback during driver setup. CRs-Fixed: 309515 Change-Id: I12586e813c19ff4dbe1e3877eaf14b5a396b273a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit dee95105fdbc21ca2cecad26403e7c6a9942f445 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> commit df021cf202ea5f026c9d8862a06997e43346b2aa Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 20 12:53:27 2011 -0700 msm_fb: display: Fix suspend/resume for HDMI as primary display Fix suspend/resume for HDMI as primary display by setting solid fill for RGB pipe connected to DTV Change-Id: I2f6bf1892137ef40c55e26498c03cfb7a439219b CRs-Fixed: 310198 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d893034f3c7b3bc9435cd0cba78f220349b484ae Author: Taniya Das <tdas@codeaurora.org> Date: Tue Aug 23 18:47:05 2011 +0530 msm_fb: display: Add support for MIPI DSI Truly panel Change-Id: I499f050622e72c9f1daafa251b16ac67c35a7991 Signed-off-by: Taniya Das <tdas@codeaurora.org> commit 959fd6fc48da46199ac1faf8b7d8be18d50af253 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: Id8344af1a1607cbf4a6c01ad35441bbdd4fcbd49 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 4b99172a1df8b1ad2b48343bead39685f294e680 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Change-Id: Ib6fb8f2eab4b1e871a406a3a2d7274fcfdcdd9d1 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 8611e05dc5cb4b3ce155c04ab4e851dff1438582 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Oct 11 17:44:32 2011 +0200 msm_fb: display: Change the backlight PWM freq to 66 KHZ for LiQUID Change the backlight PWM to 66 KHZ, according to the backlight driver HW spec. Change-Id: I67bc02b7863d7e8721841edfb4cfe3a4414a1bab Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit a2c2767ee7fa7e55d9cb30873739dc42311d60f4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 30 17:19:39 2011 -0700 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I62ce418b7f1e887550319081cc4b78fbd564a6f5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5e48f5f6701a3cf0f8c325d252037bb49be67fc1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 23 18:56:59 2011 -0700 msm_fb: display: Fix DSI WSVGA Toshiba panel PLL control settings Fix DSI WSVGA Toshiba panel PLL control settings to avoid over-write on reset values from phy table Change-Id: Ia4b3a4a409a4601a3a2c9132ff66c164f1f8c9fd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7a95a8f6a93bbca3f1664cd12d516041f6d926cf Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Oct 17 15:20:11 2011 +0200 msm_fb: display: Fix dsi read packet size for LiQUID The toshiba DSI-to-LVDS bridge supports only packet size of 4 for reading its registers. The DSI host should avoid changing the bridge packet size. Change-Id: I08a4cb5921c90e9fa07db62e0310fcdb6155f131 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 051489246f2a6a4538e7dad2b985837fa06d567a Author: Praveena Pachipulusu <pveena@codeaurora.org> Date: Mon Oct 17 10:42:36 2011 +0530 msm: Change the permission of 3d barrier sysfs entry Change-Id: I64f7e028701d65d864d9ed30499bf0bfc00c8ab6 CRs-Fixed: 308897 Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org> commit 898f4bd8a9e7027e2fd9e50000e34abb41834e19 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 15 18:25:47 2011 -0700 msm_fb: display: Add support for HDMI as primary Add support for using HDMI as primary. Includes changing number of framebuffers to 2, using RGBA format, enabling HPD by default. Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 09ab565589a8a1409c222ce79b6885aa9e96d33d Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Change-Id: If9797a3b8490ecba05969d546fc70a80c0f76dd0 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Change-Id: I77e660f4b9843991a6948532eea4199b7377a6b9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 10 20:51:31 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Change-Id: I46139c2126b47ac6e1b33135b792ef702cc04446 CRs-fixed: 302409 commit a27bde25b4efd43946c19f1e672554ce0bce63c8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. CRs-fixed: 306936 Change-Id: I0e3776c7ca86f7c4a0f0d090da108599753b9997 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 8717a17a1a5555e53d2f8f8160462417105dda6c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I630cc47be806a8de383648aa80804b4d65210d4d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c430223b113ff533ef34c5acb0de6a6ccc3a1b51 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5a7f32c088bda86c7f0de08d06c8176920b28439 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e17a2ddc109e0691a25c69acd3ee16de354f5a82 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e1ed1ae1d4c6d17ddb2a027ced9524c23e878d72 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c719c541d8ec1c9a036002a80725457aab10e54f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e2833e9f0a24e1f1d3dc1a912977884920bc5487 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 27 13:26:01 2011 -0700 video:msm: Reset histogram when not read Reset the histogram collection if there is no one waiting for it when it is completed. CRs-Fixed: 308367 CRs-Fixed: 305674 Change-Id: I76de44f237f842a1163d8b9f0783bf3457ff1d3d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5a4f1ba19d0172fe3566f3df5bc78844d84c485b Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 1429568ba55646240d551e8f8f9bdd25e4cb249f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aff429ae7d2d1b272d98935907ddfbf43ff4aaeb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d48737e7b42e51a73d8084cc37d7c1b63fcdefc0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a591110794daf54865c88f3f3fcfa8b5b4ab45c2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a7c9891a83bb0dbb6729173b0e7a204f20220849 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 95169f2d316397b15f2666591951c937bdd3de4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a1b240fc59964122076812ea4c2f2ebcda99f4f2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2f19595abd7e55f302f6b50f39ed81a67cdbee6 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit daf1d2101d21f27ed21dbc8e9afe9e82f24083c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 1dcb24860f556c8e60b333ffbfa26f22773560c1 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 83eac3cec4e5957abd90a7a73a645f91d477a603 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c6ecb836e9afb41bc9475b2a4c39dad8888f5e5f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 419051b1b98b5f86ef72a6299ee9d73d039ce09e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 18f63087971116fc2af33f90ed42fd764d8ae7c0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c42862ab0b4149d6264b39d849aaf70b3de7a1fe Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 054dc107f98f31b2941489bd37e647e8be7b34e6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 7a7e46f6c1b48a5e2a3234bf0bb0e0ccfcd90323 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bbf9a472c9484c9e7a0b6ec15995a29afa0dfaeb Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9e4491612de7c7a322d061b85c8d42ee42ea831a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3d4d275bd9442307af9f0ffb36660114e842e529 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5c6cfbf2a4f8e76a0d14e37453c31561bca41019 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 074ee02cd301d9831de59b55d34e2ab5625cc983 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 07d19c35fd414757f4535f721522ed6379286b47 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 668d6d5e3e38f9aa55e78333fb8d200a83f32be8 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b84120b47e318d5144604e7249e0e0bc119e1301 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 21ef2feb1cddfa15f0a88c0838e3c941a84e9c7e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 073f1221221adb52039bc49f79c81e06335f9c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e91203dfd1bb3dda16c712a4accde6b2040e437 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8fef09a792fe01ec564d09a2b0b29d2bfa55fd21 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 33dc7b93d4fd73307bb8f68f8067cbe481c5bbcb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2ca30356bd3e2db7de9df06670ff9ba2f6dfafe4 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 57dcfff1206da4b1f6e3cdbbc63b5c27d57ded24 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bea4783bcd4a65f11a6c5c00995a04dcea72c002 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 3a8b8514533d94af2e9fcb4b215f968f07d14253 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit d5315bd98102b8a2f8e36bbd69b15b679dc43e84 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit e52976fc8742c1734c3fda80735d0dfd21c61826 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 48aef6d5c2dbe622a0c44440809f4860ff7a5770 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0a3249ebfc2d474378fb2a3e49dad2140fd6b042 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 4d3c779eb9d906b381225be5065976703d91872a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 1833754d1f71e8b52e3ac0fcfb4602048763f39c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9452ecb5b57e5bde9b880a2a1ddcd0f210ce9dea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 01d682803053d294ef11da8bef3e88b073c43cc8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 115d7975e66ab3e5f9c03d9660413a940517ddeb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 164fe8a429e39cad3f03d56dfa4dce85ff90a0b3 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 120232e5eed881f12c9d6196f2f5567106c2c98a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48551552f956565389a760cd46fd6db8ad79a044 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3436daeb9f5e1216c827a85252b4c35a6d8380e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3a76ccb3dff876cea6494d777c24c232c5964c4e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ed016bedc8c2af80b10a9d0558b537cf5e396636 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit e7833e230a3843070f4628532e5902442eeed2c4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 58b5555b7d19272e43732364b68e5d7c74b30870 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bb3d48517f5d590cb66cee5b2fe418abf4eb69d1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 492049ec4f59bf04275878a9d16ae20528159636 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e546d48310bbb1b62e56a4f361af923c8814de54 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b91fa71c588a9785f639193c49295b88031971d7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 7b57bb815b5287b0c8ef618459d989475aa2f071 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 405dc3051b06637b6a38aa6b1f4da1660cff37d0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4b8b2fb9d783be26b85381b3618bbe253a75b89 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f74d2edd791b3fddaf147c5e358a8f41463dc1f9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 49a83b2caa9718d35fab9a9fa9ad2d9436040ffd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a411f7e5195777253d4c3c94430787b4f19ea068 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 4aea274b69eeee685d87e159107f0d0eb9b35b70 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d1f8724f0d89d474a283f2ba6f51801d14daaee Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit ebca0c796cb22947a224c1afea9b7950886804e1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 3de11f35c77c7239a51c64254b00e400abaf93f1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9d28c3e809aac17dc2e3f6923e730293ae4aa977 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 759a8cf14ce1c2f0d6551a090fac84ec7f4705f2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Tue Aug 16 17:27:22 2011 -0700 Initial Contribution msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit 39fff5a3899f8d95886ba2e50d70001602b279c0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Change-Id: Id270b97eba6d01583dac3091cce0403a6aa96be7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cb472111d93fa119c52d56c102b90cc3ad2c8030 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Change-Id: Ib64ddaf9d887ac3250b40451fab70d7ca9df081e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b9047132b38c211d4d8a26896ceb4e151bf618a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Change-Id: I32a7c220efd33f748a7b46fb1006e5f0a59dc4dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 91be717084e45121fc1232e8309343c605603928 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Change-Id: I5f5167411ac2e5bbc4287148d22608a7e1f2af35 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d8a25911705d1baef68f3accf2bdcb4327152705 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit a2e6ec896e8d2e10965d6f8df6f0affdf162a489 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: Iff123c6046eb69b5d26e632ad507605774f6562f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5a95ccd976434514d06384c2684c187daf3925ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Change-Id: Ifb4f6d16967cb98a25a253c99a8af2da2a22404d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Change-Id: I1795bb154fcee4813b4a1e5e935ed7c9863cd849 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6e4e76632b3e8e109da4b63fdf653af246dcde1e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Change-Id: I39f263a8e0263aa04274d95fa43e2bd4b5815185 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 46e3767f9ec607dddb2fa6ac8f41a0c0e455a479 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Change-Id: I2f0ab81c2432d7d04fd685f0d104858b8342bd9c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit f076525d4ed93b77ca5a4cad20771e34dd5cbea1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Change-Id: I75d46e16564c4a7d1486f1ac59f79b8b218290c3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 96fbbf3272449febc1a33861af1d275200563965 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Change-Id: Ic007306a019956f565b0336d966cec7fdeefe918 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Change-Id: Ibbdbdaedf4ad5000e3f44d1e80888d68e23ff842 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7ec6eccf30ef970ec47444058f490530ac92600 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Change-Id: I89a8dce29c1ea41894eebdfd3bdb5ad7178aa8ee Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7e65d5e31f62a20ae919e0e70f04d000a353bd52 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Change-Id: I03ae784750eb4763569cf8faca43ecd46f995638 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c2177245161614a0302380d0eca57deae0cb10b5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Change-Id: I2012cc3cd9a69b7d5eadb690fee4faa1857ee059 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Change-Id: I462422e4b0d17013d61e841f66fd155db4b7ea00 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Change-Id: I00ab1fa277a86d721a78ea2d2c9d8139c92e0719 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9955cf6062327857c43947cc7ec78649619c8735 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Change-Id: Ie179e0281bff19ea69ec60fdabcf18190c390660 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7b31a46e449747c2ca79605450f57658c855c756 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel Change-Id: I47a4a55d85f4fe2555628d833220b7e72c69cbf5 CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 313e9c47ee295bff714ca1a535fe6681945d5421 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Change-Id: Ia7054e7f1d05740b765a6c9b88f8f844cb605bbb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Change-Id: I5b4f8e11262c60d286d98c79f0c32e0104a7d57b Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Change-Id: I5c0804854cb33d1fb875bf1f6c52acd0a0e0940c Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a8d17b9e9d8c1f980002994c81c9ae1ff25dca8f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Change-Id: I0ef69645fa08e8c756aa25be95ac5a9d038a3910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c60d7efe10dd5b2824464d3187bb8262ee25d2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Change-Id: Ia81a8d52c6f9a24f8107d62596eed3cdc966e4dd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 9f1bb9925e9d0ea9eb505695601941f48f8aed7e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Change-Id: I754a23592901225f3f52772b7ff4666f5b6d429f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 743f162911247ba260445deb01b5406d0067daf3 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Change-Id: I107af5cc0c1a914c53a22558085123798ca2b5f2 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Change-Id: I056c15de115367a33209c876a0d64cea85a02655 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 446d22d4641f699b741d16ea6086ce570c49dd7c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I7f493f1b850d40156b505cf88da308844ee34b42 commit 4f7e10164fc8f8477a0929cb910a849772620bc9 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Change-Id: I0409909ea6f24db3da6ebf4d92233e45da93c2a4 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9c08f6850dbd998adf7956887060eec599a8f26f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Change-Id: I5cf94a2523c453cf4e82f68f3167c3c2442d9c82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d93d76ca62d758fa6f584a5a6f86ed92b0ea845 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Change-Id: I3ede2a9fa25adc62c85b5514c1bb1600ec7ce460 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ee9289450d530ab1fdec2379859fca5845a7808 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Change-Id: I6f03e957983c4161499a26cfe2f9008a997a04c5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4d8813b4fd6fe7588c411e90a2603b23a772f738 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. Change-Id: I252df99c085bf3e9ada117aa7c08f3a1f3023475 CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c429f0a0d694ee7ef3471c1b5172b050bf17a1f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Change-Id: I8b054f61ae907735064da549e493964176ed3090 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bca2a2055432cdf78380ac070ba0ede9c5893083 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Change-Id: I6a0793ff049017785b75624d30d0fe862e41b210 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 871edcfd5a801feed587b6c7f72aa4e1387d245f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Change-Id: I06c21a6fb480e119ad4ec75e993203124b97f4b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ede104a0244a04ca6fa6ce8fe9fc98008462df9e Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Change-Id: Ic5714dad929cf56505569cba14722a20dee12c15 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 716e97e704c6591f05f5b88743fca7770f0c61cd Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Change-Id: I3c80e4307f84d32b02872e977858fb0adc293b94 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 64b4b03461e39a715b33a2ea1ab97f5b27850535 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. Change-Id: Ie2a0785d490dc92f7f14f64aa3c2e28e6a231202 CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Change-Id: I94ba3457311c58415ba29bccdc2d146891b17897 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Change-Id: I0ce9cf2a7eefd785ad161b10204e56285248661f Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit cfb68532d8d09c54564590fb8eeaa83383004472 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Change-Id: Ie3e020394492fdb0209b7eec2ab2303b4f2a9ebb Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ea9be62c230d982d6122b16b8717131f0df6f215 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Change-Id: I47d68ddb2565be4f3d131061a21c5d921142e933 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 60dc151a43093fad5f68d02323570d5efd58ee4a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Change-Id: I98bd1a4547bb7e310b0df2311aa41ed4115cf8cf Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit e6613b38e178e67f441936e6820c966f553074ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts Change-Id: I032883b9de9e51c6844cc66e3d1945a14ca05e19 CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ddc23bd81a174843ee09fe464e0afafa62bc7126 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Change-Id: I7188e5dac6d4eb2f4ca6a7833c84e1fb1251b1b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset Change-Id: Id2eb0be74e72c8982a2def8e333032174ec1d23c CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 14db758bfd64c473185b369b311e2cca443d01a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Change-Id: I960e441210deaf7edba38b2409954f938160e875 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a41b7a628978951a3d2b58409eaa131a65707f4d Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Change-Id: I37e0cc6394ffa8dce8aa8a4cc5fde61402f44334 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit fb8a7f9d09f3c068fdcdb7e880fd11688db2df95 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I39cdcb78455e07332351b7312ba149aa4f8c2f07 commit aa3c63a48f18740c0f90f2d85218891b0b3899b5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Change-Id: Ide2beb306ed09e4b5478877d2f000eb00f1c317b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Change-Id: I5fc29a314eb6eeb9a88ff7cca5779e95ca954ede Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2920965c1443096f1707888d2fe311cb79dd68dc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Change-Id: Ie55ac18e6b196276023d7f28f291e5410d309217 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6935ec9e55cb488fbbb377cc49697b6d37b254f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Change-Id: I0c30f41a5d46f357110b619ba90d16d95d9576af Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. Change-Id: I1b9e562c257fac563934b5b1477e58e5382b45be CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens Change-Id: I7448525e9f11638c4505e0ce39fa9da05813f5d9 CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bf2d82ddc93d20097fa1021b1c7629b9d9986384 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Change-Id: Ib794b76cc7b9e1a8e9ce53ff9ede57108f0eca88 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38bae35c81f7eee8605d854cda9f3854c3be2051 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Change-Id: I555cf7871da84a91806cb5b1c269e7ed79080009 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Change-Id: Id6fdb3249825405fae058d54772a86145de9d8e8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit bb597c0640d5f87aadec33d29c03eaa0d3718a4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Change-Id: Ie2e3bd1df66b5cb944cd0e28d97227c408cfcaa2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2be87760e94044f23ffefc7a753f9abaf14134ba Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. Change-Id: Ic691103e5d1de894f81d90ff1eb4c1a0f9830ecf CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Change-Id: I0057bb34c6bb90ba3c13861978c5cf71ac620ef2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Change-Id: I23c6ee2a6802baa98af495320f6bee94915ecfa5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Change-Id: I8f6374ed2e27529215a7d66dc32e65e7b4a79983 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1532e778ce5b8c30e8261f2b73bc78819f99ea3d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Change-Id: Ie052e986bf21277685d4f52205d3401a5d85c3bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f711ac25a68e521ce2bbb450d34f46eb76d39a20 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Change-Id: I0ea1d8797ae850fcfd21b8964ee967282b23910e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a34b0bc9e1e66f9e9c6ef6063bf3c858bca2e2f4 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Change-Id: I043abaf33ce6a5f926a3b27551a517e829b30af9 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 917fee282ae07cc98541a54204069bf7955e352d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Change-Id: If2722fc012aa97f0cdb2577589d2e51b82160c24 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3eaa215567715925b93e5d5d60f679de6028d0c1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Change-Id: I34148433f8fd946a9aa664df6ca7782cb02bba2b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 959f5c62d3b83b65567cd8088db9d9d84774273a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Change-Id: Ib7598cb8e4ce16be39d0586c718c0753f50056c6 Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 802cea1a8b7f850495f900b8519df1d4a064c880 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I0898f3eac7ecec85b499b73ff118d846ba32bc3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8cd1e18d1f8fe351e42a0ac5287536cdde7efcd8 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. Change-Id: I0bc92777a172a2ecf26ce34d8882a04165e859a3 CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 03522b71418c110c98c5982b9d28ffc97c9afdba Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Change-Id: Ib8865c8bd3390ac12a2fe1eac158b7e4fcab4bad Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8f43f4bb7d9d56c82aa2a7630116b9f44aa99a62 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jul 7 21:41:10 2011 +0530 msm_fb: display: Enable lcdc for msm7x25a Enable LCDC interface on msm7x25a with dynamic detection between msm7x27a and msm7x25a Change-Id: I935ae65f8ed43b5e524da100d38feba44c3c4a16 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit bd0ef9258776385559fd032134e0a28e9aad8f34 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Change-Id: Ic27d304ec6bff44c29b8d10c622363dbc5fcee75 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic3060030dece7ab531d3630eebf6e4ee7267804f commit fe926e8303dc6da0adf7be76c045ac93a9f8818a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Change-Id: I4a6d78ad939085128d261fdf8c70018fff424b26 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jun 25 15:51:14 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Change-Id: Idd3b9e6562acad96fc0f460f81e64d4483059b9d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0423ef3ca01755267a1f4e157c8ea7e468b145f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: I92bb11888b004a6fbd7af900ccb490cc7f9547e3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c1abee46365a0a8b976877a6ad5f2752f410ed7b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Change-Id: I7a3f274dd5472fa3842a6fda586539e85c7defd9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 16636524b5635644f554435a99553c097b74a605 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 15:12:21 2011 +0530 msm_fb: display: reduce display initialisation command for lcdc Reduce display initialisation commands for lcdc toshiba panel to reduce the time delay to resume. Change-Id: Ib36c2546423d1b7c5c0d0c1531c480b477c2d975 CRs-fixed: 291494 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 4e19f50c3e21f6be4595eab4ffb1d07abfbe8025 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 10:52:46 2011 +0530 msm_fb: display: Configure full resolution update in dsi command mode Partial update is supported only for mddi interface,hence update whole screen for dsi command mode on msm7x2xa. Change-Id: Iecfc8d5edac2f962c3710692ed87abaa90fbe184 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Change-Id: I57ee5704dc3ec2aaa16086727470b4f6dfd9ce9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Change-Id: I380a4727c0485bcdcdbfc9fad43476569f2b78ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. Change-Id: I90b3582fa73040bf66239f5258592a1f08cba0f0 CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit da07df81fe450fb08ec68511bd4ac5004ee96f3d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Change-Id: I2a941fafc92de61df9077cb3bb5bbb78964d1809 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9568223aa6d0fa91fd8f3a042d75e91b1895d494 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 16 18:22:52 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: I380b05d8d9158c49be5bdb9a52e52a114725c22e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 20 18:47:53 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Change-Id: I6d8b766fe316522451eb5e2c548799b17da431be Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f25bec14f4ab386015cd034c59ebdff9f3d266b5 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 28 09:14:27 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about whether the panel supports 3D display or not. Change-Id: I3f8f9d8eb4014a77f9b4f4752858999009ab2407 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7eee7cfb58b63b1e710e20d994b3926b4dd126ae Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 23 20:18:38 2011 -0700 msm_fb: display: Add HDMI PHY settings for 8960 target Add HDMI 28 nm PHY settings for 8960 target and separate 8660 specific HDMI settings Change-Id: I3fe023c28fe0bf3728f7dbba8cb16fd3096985d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 27f99bb784c6e390674373ae980d9fb15194f0dd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 20 17:16:42 2011 -0700 msm_fb: display: Fix suspend/resume for 8960 DSI panel Change-Id: If3716f131b7b5c9d5dc176d3995622355696c5d7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Change-Id: Ieae169e3ece870cac7f2c73922b60789fee11a9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit afc6ae9304f27c240546f15580555913f7e27644 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Change-Id: Ibbc77d3f369d4bf4e1a1311609039764a692d66b Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit 9322f759f8437a816e44aa921a64fcb566defcfb Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I60e4cfee8215139671248506caf0d625a1bec1ec Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 918ecc5201654cc8c1b5bfcaa7ef5ebc32304733 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jun 10 15:05:35 2011 +0530 msm_fb: display: Fill the last frame to NULL while suspend in MDP 3.03 Toshiba panel stores the last frame in its frame memory during suspend. This last frame gets displayed while resuming in quick succession which is not a valid frame to display while coming out of suspend. Hence fill the last frame to null before going to suspend. Change-Id: I605fbed97455298dcd00d884bb9f4b7256078902 CRs-Fixed: 290419 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit fc299bb8066e0325db239bb356c546e57c7ef347 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. CRs-fixed: 287700 Change-Id: I4ced3fa8927fb94e5457957aab274e7d07acdd79 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit 6de2b7363df7ad3bfe02b6752910675c749f910f Author: Vidyakumar Athota <vathot@codeaurora.org> Date: Sat Jun 11 22:52:24 2011 -0700 Revert "msm_fb: display: provide panel refresh rate information" This reverts commit 7b401565d2ab400a3e68e1112c3d601d13a34837. Signed-off-by: Vidyakumar Athota <vathot@codeaurora.org> commit 55e656e68cac78eaa367341df2e693a483a53f84 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Mon Jun 6 14:34:38 2011 -0700 drivers: barriers: Replace dsb() with mb() Replace explicit dsb() calls with mb(). Now that the generic ARM implementation defines mb() to mean (at least) dsb(), it is appropriate to switch back to the generic kernel version of the barriers. This is also needed for correctness on certain targets (such as 7x27) where dsb() is insufficient and other operations (such as outer cache sync or writing to strongly-ordered memory) are required to ensure proper I/O operations ordering. In some cases, remove explicit calls to outer_sync following a barrier since the barrier will now have an explicit outer_sync call. Change-Id: I2c53b8534af9c3cbac4d4d77b322f897a39e7758 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Change-Id: I2593b225353ec3758f18e33ea58fd867b30ec062 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 47c54ff0e010190f0a11e7e2792642d70caa339c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Change-Id: I10dbb23a7f13f472c8de3014115890e689a2b6e9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b35d093b7b22e380ffc9f066a92dc0ef218944b Author: Gregory Bean <gbean@codeaurora.org> Date: Sun Jun 5 11:34:02 2011 -0700 msm_fb: fix forbidden compiler warning. Providing forward declarations of functions and then redeclaring them to be inline later produces forbidden warnings on some versions of the codesourcery compiler, breaking builds. Change-Id: I4a65e1af002f4bc412c30b5c96601f8e650c74d1 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Change-Id: I5657379eb4593eb551127a016393f231f445f423 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 63a81111eb3e7143bf37e125c3abeb94fcc611ac Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I7e98935f0bd4f29c188f46601d8df09c37cd20d7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6a194de79ae35f9785c5a5c63cda330c7dab1a80 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 25 08:44:37 2011 -0700 msm_fb: display: waiting for vsync for UI frame push Add waiting for vsync for UI frame push through pan display. Change-Id: I9be701c6615c139d6d07b16c32039074d5b5a431 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b11c3b46619d3eaee600223859041a51fa0af218 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Change-Id: I620d133941739eb8024cdb6d79227078c3193fac Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit cef59b7b35b714df7b81f9bc2e96b8d49181f95a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Jun 1 15:38:08 2011 +0530 msm_fb: display: support suspend/resume for lcdc toshiba panel Add support for suspend/resume and backlight control for lcdc toshiba panel for msm7x27a Change-Id: I49916776cc532974eed7f858cd7e2fd85b6c8fda Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e8f469582b62d0d76faa4051227228734f226325 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Mon May 30 18:04:44 2011 -0700 msm_fb: display: Tune DSI setting for Toshiba wsvga panel Change-Id: I71df1f019b1604f806af6b7ae7f379edb810a583 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 6a11cb6f4d7bf536d2881512daed6e3324f65b64 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 23 14:17:53 2011 -0700 video:msm: Updating QSEED table2 values This patch updates the table2 QSEED filter values so that they apply visible filtering when using the QSEED smoothing/sharpening API. Change-Id: I4431a02e24f9bcae035898b758e8c462c9c044de Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 589c897daefbcf28e8610226225bd2d8fcddee4e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 28 13:53:07 2011 -0700 video:msm: Initial QSEED sharpening/smoothing API Adds an additional parameter (.dpp.sharp_strength) and reuses flag MDP_SHARPENING to mdp_overlay, to allow for overlay_set to request for sharpening/smoothing. The overlay parameter is designed to range between -127 and 127, with negative values infering smoothing, positive infering sharpening. This range of values is then mapped onto 7 levels for both smoothing and sharpening (i.e. ~ every increase/decrease of 16 aligns with an increased sharpening level). This commit only adds the API for sharpening, a patch that updates the QSEED table2 values is needed for the desired effect to be visible. Change-Id: Ib6522e43bde4f4a54e752258553822e78a95749d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 4298b4f972b395b92ab0346978a9e9e9999c2e9f Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 24 20:10:15 2011 +0530 msm_fb: Display: Add support for DSI Single Lane for 7x25A Add changes to support QVGA resolution and Single lane configuration with DSI on 7x25A Change-Id: I3f33e3b41a860b7339abfb824aac00435606e5a2 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 54aafeb90b88663a423be3459f4c05c38ccafd97 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri May 27 01:16:55 2011 +0530 msm_fb: display: Enable backlight control for mipi dsi on 7x27a Add support for Backlight control on mipi interface for msm7x27a target Change-Id: Id22cba59929eeeaecb6383b273242f12c52535f4 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7b401565d2ab400a3e68e1112c3d601d13a34837 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I738b254bf8d2db0bd79864c0731ad0542f657bf6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c394da5a206ccb6aab93b0a3beba9d38f479d7e3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 25 12:55:58 2011 -0700 msm_fb: display: Fix for the color swap issue for mipi simulator Color swap was wrongly added for mipi simulator panel, which makes colors to invert on simulator. It will disable the color swap at DSI controller. Change-Id: I1f00cdfaaa9e60804045d81581d3a1de059e21c6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Change-Id: I382aab2bf908f0140004a6713c8e77a16f5aa925 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 395c7c1d9c82d56977a611080d305aee0d974372 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ief48dca2b596ac4f2c6fb23a5f20802e8b3ef4d9 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8ad47e5a01f5e95cc0e41c1a4a71317d4d8a9a17 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure. Change-Id: If4546501eae383755d0a5ddd059e166007f64bf7 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 2604c2884489e8c76474249fff6f8d1103503f21 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 23 15:36:47 2011 +0530 msm_fb: display: Add histogram in MDP 3.03 Add histogram functionality in MDP 3.03 required for Content-based Adaptive backlight Change-Id: I24dd8a42c12b2311823fc25b2aca568a8c391b0e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9925e41f075235b620b9d6918f9d00662a60e9d5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: I4247b600e31e7a5f39b44e77a49c174b8c0bd11f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit dcc36cc4b33d1b82b803fe1dbdb904656eef0aa8 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri May 20 13:06:06 2011 +0530 msm-fb: DSI: Add Support for DSI CMD mode on 7x27A Add changes in MDP, DMA-P and Panel Configurations to support DSI Command Mode on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Change-Id: I912866f9072dda690d5e6354a05d74dcb2d2aaa0 commit d567f25ae4afa37f8f7e2fda53bade2099f7ad87 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: I508d250c9193449e6663e13570c2c9fac3b8feca Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit c7163d9a33d86d1001aa4083423c68c07743861c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 16 14:07:15 2011 -0700 msm_fb: display: Reorganize DSI clock and PHY settings code Reorganize DSI clock and PHY layer settings by moving code to different file from base driver Change-Id: I7d02a4cd0f5322b80462e3721d5c8fb4f83d002f Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ae66ded8ca3d1e7184dc04f1c165fae30ba8a203 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Clock changes to MDP driver Adds the mdp_axi_clk, mdp_lut_clk to the MDP driver. they are the new mdp clocks added for MDP4.2 hardware on 8960 Change-Id: Ib936a280e83a414806365836a839b5555f445724 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 46ad60f0cff5c2222ded7a639f337417e59b2375 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. Change-Id: I077d497c2ac9b1dd181f4f4ea874bd2ea4dfede8 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 4217a1dacbde157ce26238904450b091778fe872 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. Change-Id: I76f7246f855d7a3e99de29da7297053c477fbbef CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3700ca00ba19855081822169e144c87aa1d4953f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Change-Id: Ic635065f2bc42cdfb422f440fe65fc01a246e18f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 22cff13e1115962207254980acffac8d20bd9b26 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Change-Id: Iee5ea7287ae8879f961a095327b71a38b8b60f57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cd0bd24a3fffff873821618009389378372fb73e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. Change-Id: I55316d9dc96fa17d275d87e75480a2209b1fa46c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d89efdbbdf521f05a7b9f191e98914b40bc1962d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Change-Id: I630f1df16212d02bd694e086d695067262b6203c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 757e2ea8064b379ecfd02a6fdd36f6f2894066c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Apr 6 11:15:36 2011 -0700 msm_fb: Display: Enable WSVGA Toshiba MIPI DSI video mode panel. Add code to configure and enable MDT61 Toshiba MIPI DSI video mode panel. Add new command set to initialize and configure the new panel. Change-Id: I8c543677f75ade967a77100a7878b9e487dc991b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. Change-Id: I83cf278310a902c263e191b714b550ee29afa5e5 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 8dae3d06d1c41aa2de609056811646ff50e77791 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. Change-Id: I436f1eee110562587223fd1de97821968d494034 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. Change-Id: I3df0dd292ac7d28f9eb6028ee16e5c60180e5c35 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 065b9f72784c2686aca0233e8e510229efd329c4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. Change-Id: I0ee5412dc5801172c00570748fbcc9a9efe04582 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit dfcf3ef2212026dfb53e87f571b294627f34a4a7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If69a6781dfc493125b5f57b937c24d17b4cbbea6 commit f0771a155634cae4052dab0c0c7ae2fc0abc4b56 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 16 12:19:53 2011 +0530 msm_fb: display: Enable suspend/resume for mipi dsi on 7x27a Add changes to configure Soft Reset of DSI Controller. Also, add changes to control the power of the DSI Client. Change-Id: Idb72327da1219c215c36e6b3a94d4a763e071fb5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I450a46cda3f18f1a54cc5e2cd0500c9d54473b7d Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e814b7842af3b7f15047f3f922c1f1648bb2705b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. Change-Id: I77dcf3d91046f4f6f71f4dd5c1aea90bd766e7ef Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ccdb0372092c3a359754897ebec2bb8be37d6a3e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I1e00a561774779703b343e08868f3da633f6dbdd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication Change-Id: Ibb25f7cab29c2c361020cac868b58c298ae74560 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. Change-Id: I98fb0e3b09501aa30a23eb6939102de08665f66f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ce25d616d046ee3db897fe921d300f44553d83c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 12 17:26:39 2011 +0530 msm_fb: display: increase max BL level in panel driver Increase the maximum backlight level for all panel drivers supported by msm 7x27a Change-Id: I534b8e5e3ee296e68e81d4dcdceea70319cbd0da Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 829c88376705c6b58e62dd93e9802ffb905ad49c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. Change-Id: I8a058147f8bd147ee2330d445f27b2ee58e5ef99 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d8df7faccb2ec330eb859179ed0db07313626b7c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Change-Id: I45a92c91dc5c250a91a6c069e0695f72c97a6272 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e80420254616b39d0c350dcadf8f6954394e7647 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Change-Id: I95dd4b8bc654a923730a9e4ecf16499c556201d9 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 15bd60d7b277f7850bbdc814ae1e151c5cea31ba Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 9 18:45:45 2011 +0530 msm_fb: display: turn off dsi ref clk for 7x27a during power off sequence, dsi_ref_clk is not disable and hence TCXO shutdown fails. With this change, dsi_ref_clk is disabled during off. Change-Id: I9424120370a6a6feec98ca228777ecaac9249f30 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3d3439c820a1a0e79f3c3b706556a6ea11b6ee76 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 5 10:48:02 2011 +0530 msm_fb: display: Resolve compilation errors for dsi on 7x27a Change-Id: Id7cc3e3df2c0005f0442e03625567c40797feea3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Change-Id: Ibe731d0c562d46a0c3888704f50b2010ec1769c0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Change-Id: Ic31ca511afe2c44bc045442c807c2b2fc554bb5a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 894c60beca1296b1cc16f948f45ed140a016921f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 2 17:38:17 2011 -0700 msm_fb: display: Configure 8960 serdes settings for DSI host Configure 8960 serdes(Serializer-Deserializer) specific PHY settings for DSI host based on target type in platform data Change-Id: I433e61f13f19a582fe3e21dc6832fcf93046a3f1 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c7711029d933b918a97749af7e31beafef3e0d96 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 3 05:59:44 2011 +0530 msm_fb : display : Correct DSI Byte Clock configuration To configure the DSI Byte clock, clock string ID is different for 7x27A and other platforms. This change handles the difference appropriately. Change-Id: Ib5bad3283287e7d36d428aa4721c87985c112d59 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 64189b417cc545add2f496609ef11df6b491d177 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 13:29:40 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. Change-Id: Ic68a2dc646a2e2693e5eea5d9c81e629a0a84244 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dee181e845c10b3b9a68fff89d965d6b99691c09 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. Change-Id: Ia0f5ff8a55322546dd7d18fca4e1d7b3ad02f8ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 393e367e14977c42f62df3101535712503f1f133 Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I3d567d73d1854d62c86aed95824c39bfd1f20859 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 0b0d5c46c0fd92350be9cd838f621aef566ce7d3 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Apr 26 19:01:21 2011 +0530 msm-fb: Display: Add changes to support Renesas DSI panel on 7x27A Added changes in the DSI client and panel drivers of Renesas Tremolo-M panel to support it on 7x27A Change-Id: Ibacec50454e573a065a3eabfe30e02b22896e44d Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c192a65bed1be0d4d8cd80be809ca59a9fe100ee Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 11:17:56 2011 +0530 msm_fb: Display: Add MIPI DSI support for 7x27A Added changes in the DSI driver to extend support to 7x27A Change-Id: Idd55b0aae9aed653721357ff2c414ce081d6bbbc Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 551c692934c576d7105a0d65b39aca126652ec3a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 12:37:54 2011 +0530 msm_fb: mdp: Add support for DSI Interface in MDP 3.03 Add new interface support (DSI) support for MDP v3.03 Change-Id: Ifc85b8d1f84a91e97ac11c8e62480568096f1845 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5e744543c3f81650a1cea1402c58c01ae6ee421d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Change-Id: Idc788125da12f3c3aae3c2a64292e8ca8580e7c8 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2afd5ab819fe894511ed58fc1262d0452a4c70fd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 21 16:11:20 2011 -0700 msm_fb: display: Disable MDP clock directly during suspend Disable MDP clock directly during suspend bypassing the pipe ctrl workqueue CRs-Fixed: 284441 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic04fe003c51c2081496760531e5c7379fcfd39f7 commit 902ea8d6bcc516f383e3335cd690ef5e384c267f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 25 18:53:29 2011 +0530 msm_fb: display: add initialization of toshiba LCDC panel only on surf Only mipi dsi has support on FFA but not iLCDC. Hence the change to have LCDC panel gets initialised only for surf and not FFA. Change-Id: Ifd6526b0020c004bc413b12939701f1935c16dc3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 565ecc608d46993c4afe6dd15c95942c75f1e932 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 Change-Id: Ife0af10358d3e61112f6f70349262d1bf2105c62 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 801290d61d4426c1504079bbaa702f5439dc96d3 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 12 19:19:17 2011 -0700 msm_fb: display: Add DSI PHY settings for 8960 RUMI Add DSI PHY settings for 8960 RUMI Renesas Command Mode panel Change-Id: I4323413414f89f60e16962887362908458bce400 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a6a1618edcdfa45b8a03dceb768e873ac5cec731 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Apr 21 00:12:44 2011 -0700 msm_fb: display: Mipi driver for 8960 simulator Mipi display panel driver support is added for 8960 simulator. It will control the data flow between dsi controller and the mipi dsi panel. Right now it supports only video mode. Change-Id: I3712907a0e0c07b9ebd7e9fb2678f37a3058d5f3 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 708f3b8c4c8115e9a6543b6cef50288dc94aedfd Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Feb 17 01:13:07 2011 -0800 msm_fb: display: Add support for MIPI DSI Renesas panel Adds basic support for renesas mipi dsi panel driver. It will control the data flow between msm dsi controller and the renesas mipi dsi panel. Change-Id: Ib92a342bfb3d596d99dbcf564c86a684c2d2f8c4 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit c5ac53e3e4aeb1d73587719f639210a1b7610481 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Change-Id: I8970ca2ad9481c4b725b6431309d6153f18b9435 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8825c2547168a36b5fbb30a14add7509e33f9b41 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 20:41:54 2011 -0700 msm_fb: display: Adding the Interrupt in MIPI DSI Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MIPI interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I04ec4b3d1230dd4e5e9be0041db6efdd31045a32 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 994b7d8d34a81ddc9c6fd9bbf8c71791e8f36bd2 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 19:10:53 2011 -0700 msm_fb: display: Adding the Interrupt in MDP Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MDP interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I84d2825dad00fd8b6c4425b290aca070b847e9f5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 75df47a6dc38b5bd08d0c8e2d7595662f9a3ddfe Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 18 20:17:53 2011 +0530 msm_fb: display: Avoid EBI1 clock setting by Display in 7x27a EBI1 clock is already set to a higher rate in 7x27a and hence there is no need for display to set it explicitly. Change-Id: I316f61dd8d345d6b66a070b75c6be804ce9db0a4 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 04a6f98fb77c9749cfa50fa9e5cbfda132fdd28e Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sun Apr 17 03:42:22 2011 +0530 msm_fb: display: Add support for LCDC Toshiba FWVGA panel. Add driver file to support Toshiba FWVGA panel with LCDC interface Change-Id: I15dd2abcfe474ec7737e7915884ea33ea78da689 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0df29adef313157f99c814e86f3a73e7d3c657db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 17:49:59 2011 -0700 msm_fb: display: enable vsycn on mipi novatek panel Enable vsync on mipi dsi novatek comamnd mode panel to prevernt tearing. Change-Id: Ib71a0204e5ef4cc8a0e0b977dd3744fdb74c8af1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 605a44c18620ed364e53d1e4cc0f03fd2f815029 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 Change-Id: I930c3e9869c6bbabfd70203ddbddd15c84fbae92 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 14:59:21 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. Change-Id: If54c4cd125a8504eee4cd468282f4dccabb0398f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4a80d9e8bd74410f4f9a3e636c3c617e8afa7b8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:59:02 2011 -0800 msm_fb: display: provide option to pass chroma pointers seperately provide option to the user space to pass seperate chroma pointers instead of deriving the chroma address based some assumptions. This gives flexibility to derive chroma address that has size alignment restictions for luma. Change-Id: I384ade86993810627655a8a446e6b9316979aca8 CRs-fixed: 274238 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47 Author: Michael Bohan <mbohan@codeaurora.org> Date: Thu Feb 24 12:10:11 2011 -0800 Initial contribution This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.38. Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> commit 1ad6a901db3038e67a58b98ac60cf048deb7d7aa Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> (cherry picked from commit 514b1c651a33b7b73fb6f654d04355eac5ecb146) Change-Id: I15ae4a26a1d1f964b41bb6174e5ea31bc4da8a59 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 837fbaa4e02d07502c8969503ebb936c0c1716a1 Author: Swetha Basineni <sbasin@codeaurora.org> Date: Thu Mar 15 17:08:38 2012 +0530 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63) Conflicts: drivers/video/msm/mipi_dsi.c Change-Id: If7adff01a7fd50177761f015227986a3f93d1e49 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 5fa503114b95e1cd0e4650a543184e36215e2522 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 1573599adbb42c606d8b91854c76461b3f212c3e) Change-Id: I60a2fb051add9973d98c177b58c33445260cb359 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 08c0d505198f988d10f4f55fe30c0448b33a815e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 81be67988ef149f601064a9e8e5d91705e636ff5) Change-Id: Ia0552b3b645389efeaf2b8d3986f5ba10c4d9142 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit e4326532759c3e05741616760bb11e456ba31cff Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 228895ae217589ca71aa464f7c22bc4cedd06f77) Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: I06b2cc1658e49fc5a82f156911726a41a8467bf7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 8b7fbe6ed5f4f38b34c69a82d711438a570304cf Author: Swetha Basineni <sbasin@codeaurora.org> Date: Fri Jan 20 12:43:12 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> (cherry picked from commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980) Conflicts: drivers/video/msm/mdp4_overlay_lcdc.c Change-Id: Ic8a2d59163c807c24ffa54a5b72d5bdd70712301 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b77817fa07694f7fe1bd56d11e1765a66787b4e9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> (cherry picked from commit dee95105fdbc21ca2cecad26403e7c6a9942f445) Change-Id: I43abe64ab53feb09a0494c9f642241e5791ce9a7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 721d78d25c007c5e8ac9474d95f4a952e0a1ba76 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> (cherry picked from commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9) Change-Id: I395c49c3d6308c4ef2b9a7dab41167467be3519d Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9326c60c83647488f2e33d9112b07d70296f5a6f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9) Change-Id: I5069e50dea973895b67e21e60e335818c30fc142 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 184cd5a52d1ab1864f58baaa81aeed091897667e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce) Change-Id: I3f97aadf0a7635bf07b206a3477afd18a23b7b44 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit df013ad8114e7e8391c90df172da0a04609fae65 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 402adc6142598abcb2a41a941895003f57f289a5) Change-Id: I28d6f11b20f123c52d5872f0b550c3c4531356f7 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9882bb2dc947df434befbae40b0d681973a4b5e4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit ebefc805a139e8222061b32cbf7686d76122de5f) Change-Id: I7bc723e53244983b76937deedf3524c642194e62 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 63fcfdde892762d72a7ab15b0628167d584a2ce4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn CRs-Fixed: 311139 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0) Change-Id: I7410e176b0a2e09b87f623bdbfb08927d2525b05 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b18226c8a815117f985eafb06439bd0d692531f4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit a077d0063dfb8a39a869f56099dd0ffe85301180) Change-Id: Ib664232c07d00dad7a2d89875fe2903b8ab1016c Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 1e6428ce9512b074a2a586b403c331690a9813c8 Author: swetha <sbasin@codeaurora.org> Date: Thu Nov 17 19:08:30 2011 +0530 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit cb8fbbcbe0630451ba582a0747987c48b2c603f1) Conflicts: drivers/video/msm/mdp4.h Change-Id: I0f36f65db00884b017a5bad4670794cd65e2c5e5 Signed-off-by: swetha <sbasin@codeaurora.org> commit 5dcef0415fe4312e4fed83c6974780fe163e6523 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. CRs-Fixed: 316345 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f) Change-Id: Iaeb6b9b121d8c9eb4cf2413ddcaf0024b06e0d8b Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 0506478f4ef8b397b3916db47133c4d0cdc05c89 Author: swetha <sbasin@codeaurora.org> Date: Fri Nov 18 11:27:28 2011 +0530 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: Idf36ab257d4bb493c578529d4d8a7f0d68e2b1cb Signed-off-by: swetha <sbasin@codeaurora.org> commit 79d8f3eec036a1f0604bb296048a5c21a34a6a36 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Nov 17 23:54:16 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. Resolve GB HOUSE conflicts, below FR on gb house had conflicts. CRs-Fixed: 319078 Change-Id: Ie93aeb8837151ef98814a4cde463a3be58c6c1fb Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 0a693110809d2a782a137f242f6438cb0e32218b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 16 22:00:05 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I00ccf91c022d6b9962ec0231eb3c8f159a200e40 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c55b00c069de596e0d539314381b1139139c6932 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: I23fb10ea30117e20de654d9516f7d024b99f6c96 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6b5cabad0561eda616f892cb67306dc4231626a9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. CRs-Fixed: 311137 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178) Change-Id: I79a67ebe0a24be65c2f588d06e80e437d850dc16 Signed-off-by: swetha <sbasin@codeaurora.org> commit 1b0fe24150908a0474460c32347e71d1f904008e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 40a43409804073a0442d2a1ea09293c0b95fdab1) Change-Id: I46ab957bb1f6f9289ea62f49c4c012450965cc9a Signed-off-by: swetha <sbasin@codeaurora.org> commit d8b5b8b42652bdf50d9d2f32c9f5df9a683bec0d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 5a95ccd976434514d06384c2684c187daf3925ea) Change-Id: I645e953bcb614f18ee0d0469e7e05a81c90d6027 Signed-off-by: swetha <sbasin@codeaurora.org> commit 8da556479db6a5798cd64278c0a59098bab1b89f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Wed Oct 26 11:19:57 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6) Conflicts: drivers/video/msm/mdp4.h drivers/video/msm/mdp4_dtv.c Change-Id: I5a2bb2982f49d9e3f5fa04addf60d498e8177931 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0716a0cfbaa4b71cd46359b97d0595fa5eb13dd9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 09ab565589a8a1409c222ce79b6885aa9e96d33d) Change-Id: Ieb7db1ec90fb6e57b7e3cbc1929ffb74a1d96d8e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit e2a4d84ae6cea7d8c32186e3d94d66814ad8f5cb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. Change-Id: Ib8c95024dc593794909893bd7daafc68ecb77769 CRs-fixed: 306936 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 5f775050abd5416a04e2999101e98b9206fe8a25 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I096939b519c0e007e69e58d0665408799e7f5e83 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b5b8af371375fad123b3b26a1c8f85bc6b6c72e7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: I5261356f75205eb1d3ec17522779693deed09562 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6fb10dc13bdcbec93462149c90ee11a8f3101118 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb) Change-Id: I85bbb414a9d34981487bee63ebd7b10e76711c89 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 30e1b13055d905f4276d3e9fc9e0a93d9dc1f9f5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit 4b99172a1df8b1ad2b48343bead39685f294e680) Change-Id: Id54327394748cc4a80864967b21caf8a378f37c3 Signed-off-by: swetha <sbasin@codeaurora.org> commit afff1683341cc4ae64ec618a86aecbbf1a1b83ff Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7) Change-Id: Ia3ec88bb19cd2f06fd9784afb2302bce4bbe2858 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f00cb084795b659746359544e2d2c80acf15bd5f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 18 00:37:14 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-fixed: 302409 (cherry picked from commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87) Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: I54afdaacc9b3b96be22ef5c0bd1ca2a2478a8f16 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3c12051aa756e8ad7c9fc40bdff1171d401fea42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 39fff5a3899f8d95886ba2e50d70001602b279c0) Change-Id: I4f81ec5a61e0e12013bb866e41301b95a10c7e45 Signed-off-by: swetha <sbasin@codeaurora.org> commit 7a851968932a82b4b21acae0fe788fc2c48b053c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit cb472111d93fa119c52d56c102b90cc3ad2c8030) Change-Id: Ia4586f17bf7696d422c25be7c6a55c4ebfa403e1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3d3a9c230489cebc3c20eece3639e175923d604c Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee) Change-Id: I9a4355eaec13aca70f9c2890e3eba96fbedf3454 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0f189a55ed89593cf430e850c923369d3acb2e7b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler Change-Id: If0ede3234d0ab844d2d49119873af5160e8a3e70 CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1df2948178c9ff509f28fdd2757119ae0923a494 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Add revision to MDP driver Change-Id: Id86814725955c743df4a0f85548fa64c3656feae Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 96145b95dd0688ed0c83f33d129b4bcd8301ee54 Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 4 12:25:44 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57) Conflicts: drivers/video/msm/mdp4.h Change-Id: If070171b933f4b74d5ce817340ed04be0ccbf270 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 433b95fa866ea12a0acc768ce0378f992c1dd09d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 8ee9289450d530ab1fdec2379859fca5845a7808) Change-Id: I8eb4caee64a67863180dbfb45e7d8062488d493e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit b374b85bad548b148cc232c0045351a5b4d524ad Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32) Change-Id: I478dcd2a98d8825783e710aa751d89b9348f2782 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ad3f14bb1b57a8b3b41ed6559689f414a3d020bf Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 446d22d4641f699b741d16ea6086ce570c49dd7c) Change-Id: I4a7a22c5a0ac32120a7fec0a3fd22a62c8182556 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit cbf8fea88bfcff5134c5843bb46a4ba15ea75353 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> (cherry picked from commit 7b31a46e449747c2ca79605450f57658c855c756) Change-Id: Ib03d80616982f4b6febbf5216b5774780e9fb726 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fedb6a40b997178ad2d142ae1a4209b729320c1c Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d8813b4fd6fe7588c411e90a2603b23a772f738) Change-Id: I82c39cdfa4676293ec9a0c02b5f491ffe4b2e6aa Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 18174612d6683ca96b4f13528af46b1f7949174e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> (cherry picked from commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b) Change-Id: I8e26c37b9a54699315fda2cfcefd1f439945c67d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 776f9a5d02a45e7c580a494bda81cf58e6dc7242 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 743f162911247ba260445deb01b5406d0067daf3) Change-Id: Ic309e3b9311bcf0e47284fd5a13b8344a44d3315 CRs-fixed: 302527 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6676fee7d309ea699e302a8d039b85754acf10e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9c08f6850dbd998adf7956887060eec599a8f26f) Change-Id: Idc020deaee364116facc5db471f6f4e9bde4a09d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit dd5a748949a292fe22bcf7e8e8a4f8d9f8dca7f1 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Aug 31 10:04:28 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 64b4b03461e39a715b33a2ea1ab97f5b27850535) Change-Id: I2ad23f7a384b4f149bd3e4529e1bf5a01de66dd8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit b0db685088e013e1af1378583e9798618b153f94 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 871edcfd5a801feed587b6c7f72aa4e1387d245f) Change-Id: I6c880c61b540e83072cc5ea54b120e630d5c0e04 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3dc8e34c9ccf719f476019a0c2abec9ebd38034b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit e6613b38e178e67f441936e6820c966f553074ec) Change-Id: I5e43c80137900b9c04519e1e052cb54068d0860d Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 69b0f5d57c7470195ee4126ceca6b52e16fc1868 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Mon Aug 22 11:24:32 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 60dc151a43093fad5f68d02323570d5efd58ee4a) Change-Id: Ica2d2026a5ea6ffdba8e53cfd3f40013435db009 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 7049edede74ae3ab929c0ae7261b014bb65d9ee5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c) Change-Id: I3aa9a1ab4984ef7bf7b56e83b69d7eb41355f7e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit db2b5ddcb77b564d0e569e27d7484dcb521f9498 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5) Change-Id: I72ceb2efe73ce6990b352f65cf3f36ddcd94b2b3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 78e1b670c1c6d43f45ddb4d1cd290839dfe8fdb6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit ddc23bd81a174843ee09fe464e0afafa62bc7126) Change-Id: I7e0dd6fdb6ea50a90ed44e0dc7e9b9d8b2f71f38 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 575799be2dc6eae0d576e676a3c335dc9929d672 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0) Change-Id: I3c6a115fc116beb96c0ddd5324359efe992d00a2 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit cde0d4265de0662e2f0b119477381e7f8c10aa77 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> (cherry picked from commit b11c3b46619d3eaee600223859041a51fa0af218) Change-Id: Ia57a4dd092811f1430367ba7285f15b4e37e6247 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ce2e933002ea2b6e044d8c0109e6787b3e4674b5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2920965c1443096f1707888d2fe311cb79dd68dc) Change-Id: I7599dc56b1c3a8bfe4eda7fa1b888cafd86a8df3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ee9a51030967ac3c293675da9e67b438c5467c34 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Aug 5 14:18:30 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3) Change-Id: I71790f25e80641c821a87275b1b37088f6402cfe Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ba5def9929507a7501e95c25cb815043d33655b9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0) Change-Id: Icacbafc93eb831ea681fd6815d6f3ff5055a5394 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6e113b50c4af73ee87e90f7fc103e3f339a00719 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce) Change-Id: I2fb8f17d6b94223ba9c35e429acfe571e80e0ed1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 514b196c41f9e2c978b0d540f7d27a748f0264b7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15) Change-Id: Ie22e272d2356289e0bf286464381e23ea9ef3581 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1bdb7c7482741d74e5bf85a14f5a0dbf3e700511 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83) Change-Id: I55c8d6844ff7eb676c7f8bc76e363a7769b35b23 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ea67ae814ceed3004bed07870545725ddd4aeb6d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit f711ac25a68e521ce2bbb450d34f46eb76d39a20) Change-Id: Iee4d72dc85d4042a6490dc9b4f3c593a0a325d54 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8782b22d00d1211ce80d9093e658d3bba3b1b57f Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374) Change-Id: Ib05a6ee172acf80a77418912da3a4f8a54fb64ce Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 296d3f254c3cd93a9296c80d9a654f86105f7343 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 917fee282ae07cc98541a54204069bf7955e352d) Change-Id: Ie3585ca85d6714e262c3fe724d6b5b5f8c8a26bc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 9afa1e2e91ccb4169ea6a2365b4d98cfe237d0e8 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Thu Jul 14 17:41:05 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> (cherry picked from commit 6caa28428d79953af20f6f65459b9217db260aa2) Change-Id: I6270dc95a85f3958c98bfffd429577dab79f408c Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ebc6dc50dd48e2c7fe6133dfd2873aa29d5bed08 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 13 16:51:06 2011 -0700 msm_fb: display: add spin lock to synchronize mdp irq enabel/disable To improve performance, UI push thread release mutex before blocked at waitting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I165f94e77164fa5091ac4f31a7a73ed0f735c576 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 93b1ca29a4ac08326bdfdf2ec618cd275613d71c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: Ic9d68781d02d6bd66be107c446a706936c70ab64 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e5c60572a13dd16426e7356e544e51d36c8a440e Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jul 12 21:07:32 2011 -0700 Revert "msm_fb: display: release mutex before vsync_push" This reverts commit 78318a7a0357fc96cf4a38c90e38be0848cde0db. Change-Id: Ic2dfc460517927e853dc907fc708287bae8a98f2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c0c86f1e14e98efc85f9866fff89f08d1432095e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit bd0ef9258776385559fd032134e0a28e9aad8f34) Change-Id: I6944f98caeb98bdb963d19596791469bf863e18e Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1ce934cf550c3f647c3eec8ddae54d1fbd891519 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda) Change-Id: Id12bf05976b26611e53fd9ed7d31c912bf6840c8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0ad0f07f95ff9cf373c3ea0053ea540701fd38de Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564) Change-Id: I0b7df64ef83329b769f3200ac4cfda975118b4fc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6f4be7effea2e7d42b209b83a53e29d0e599f24a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit fe926e8303dc6da0adf7be76c045ac93a9f8818a) Change-Id: I4c3e5f63a6d6b54bd0d12b1be609a5f0d1f73874 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 78318a7a0357fc96cf4a38c90e38be0848cde0db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: I4a16e8313399c55d71a2e406e56c0c5d3f8f33e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit eacd237f51c20c08c225b6b817e7a6e109ab0b52 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 6 11:21:01 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948) Change-Id: Iad796bc1dde524b600cd5fd37ac4b85ca6f47b81 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 85200a4e8aabf77e3df2bbb0d50b359ee54ba402 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5) Change-Id: Ib5b4a9d0be4c03eb0d6525ceb1d5cdd04e970a96 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 784b785c7c52ce1d74b1e2ab827f485e9b9cb759 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c) Change-Id: I05abf7a3b52d015a146fdfab82a7106523d39847 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 90e312fd2e0f238cd374aab1c7c88905c22d22ae Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit da07df81fe450fb08ec68511bd4ac5004ee96f3d) Change-Id: I3f8bff425a158592cd572e0c487be41590ceff32 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit d00fd730650f26f690df997c91243d0470b1cc3b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab) Change-Id: Ia2f794da7f0d4717833000b7c657d7fc31987d7a Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 53310ca7798873e4f48c426db8cd2f352cf25d33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 14:41:53 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: Ieaf6595baddcef945ad5606a4bbafa18bbd8033b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 59863dbc83da3fd3a06a8c8be50c28b08c60b9be Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jun 28 10:38:06 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e) Change-Id: I547f00f4500b40777686fc0491500c06b5b4109f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 6a50674d696213efebb93a5d9d109723aa69d758 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Jun 22 23:38:16 2011 -0700 msm: Display: Fix IOCTL ID for 3D ioctl. Add code to have unique ID for 3D Ioctl call. Move Novatek specific changes for 3D to novatek panel file and remove the usage of featurization macro "CONFIG_FB_MSM_MIPI_NOVATEK_3D_PANEL". Change-Id: I01e2ec5cd85d2778fc800fd452ee3b1e6d0602f3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 66c31a935e3d692aba41a8fcd419dab4c8acbd3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738) Change-Id: Ib5993ad1967be2244892fe02325094b4e40c7ec9 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fb47e7b99107e99d4b972d2b3c9f80c7d3b62b07 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> (cherry picked from commit afc6ae9304f27c240546f15580555913f7e27644) Change-Id: Iadc2b2df0f7418fa86c4cc69d35208e8b32d095f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ba5be4afb461abba65cd1f588dca788c0df307b9 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 47c54ff0e010190f0a11e7e2792642d70caa339c) Change-Id: I7061c82f24db6e70845a68d27d82dcded81b4b7f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1fbbeff4b9853054cca7d585596a16ae8bfb78c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: Ic8a96a1c2ef6473b9c95701dcebb19b43ed570e9 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 6a5a125bf8fca8b9dfe3b4cb10a536c148e81c77 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jun 22 11:49:45 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about wheather the panel supports 3D display or not. Change-Id: I1086b8deb2980ffcacae153ba5ac80c680e04eb8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e373013d44b00be5114ae6af212478a728eae68f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 9322f759f8437a816e44aa921a64fcb566defcfb) Change-Id: I658c08b4a0d06ca2c58a06a9dfba1f80ad541c9e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ef8a1203fa188df6f9c905b8dbaf13d640418d9c Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7) Change-Id: Ia7d9249dfcc6c85039304336b3f86b2e3194ec50 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3b6b2347a2b87e96c566d8460c6e697622a759a5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. Change-Id: I74898d7d80e9b4727eb417b0f1d831845d229c73 CRs-fixed: 287700 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit bce29e40828551984b3326f13d210d338edde5b1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1) Change-Id: I9c070246b5099664c62dc665dc27ccd8f69926d5 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 8f6405853a986f8e887d733b93386c705bae6c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I4b5ee7fcaf24b81a830320d1a47a9fe6b5095f7b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4efc6788d96403be44453d9d83ad0598fdf17795 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1) Change-Id: Ia30bbdabec6abdcfc2e17912d9d3506ab56283cd Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 884a69dc1ab07f18d5bec5a6868a7dc8ed0648c4 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Jun 3 14:12:43 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. (cherry picked from commit 64189b417cc545add2f496609ef11df6b491d177) Conflicts: drivers/video/msm/mdp4_overlay.c drivers/video/msm/mdp4_overlay_dsi_cmd.c Change-Id: Ie04cc7322fe7b53058f371941af5ba16c93174d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit a150e2043331160e9b996d1fead53d095ec1578b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 3700ca00ba19855081822169e144c87aa1d4953f) Change-Id: Iba7ef824baf4f95aa0fbb6bfa09446ca589f7648 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 297c5cba4110a4595f5e84082f5970c9a7f225d2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 22cff13e1115962207254980acffac8d20bd9b26) Change-Id: I3c1c3518db28d80e5a5a31bfd5b5740dbba65ada Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0ec06ef1a1ecf52b5408e4c0509bcbe0a70ead3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 18 14:46:20 2011 -0700 msm_fb: display: add memory barrier to mdp Add wmb() to enforce mdp registers are updated before kickoff. Also add dsb() to mdp_pipe_ctrl() to make sure mdp register updates had been finished before shut donw mdp clock. CRs-Fixed: 288084 Change-Id: I056143511cfa7e397983b7465fcebff06ada8a3e Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 52c880d22b6e58f259f02f956357e4b8650102f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 (cherry picked from commit dfcf3ef2212026dfb53e87f571b294627f34a4a7) Change-Id: I0083bab592975576d511ef8f6070d38acc40d117 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0f990641485d3340fb8bacd741eb6ccfcac51186 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 4217a1dacbde157ce26238904450b091778fe872) Change-Id: Ife220d4f0f756aba62e3c30dc7ea52a1e4814ebc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 978d4d142600a38bff5082b0ff2ea23fab5d2f91 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ia4578cc5c35f44c5708d9c4756600490df35ff67 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit d0244c6c479ee348493568556afe49ff9f80f2f0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 14:52:03 2011 -0700 msm_fb: display: remove un-balanced mdp_pipe_ctrl() remove un-balanced mdp_pipe_ctrl() called from both mdp4_overlay0_done_dsi_cmd() and mdp4_dma_p_done_dsi(). Change-Id: Ie47dbe02c7fa5938eef8414a6041b431e55cc986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 89f874aa1fce2e9d4f488a5e37d226e3ecbe7cf2 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: If8db70e22f7b5163fa7a0cfbbdd27d8560f64df1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9e8929676679717bee2f16bad6611bb0b94a7780 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure Change-Id: Ib323dc9ca806b1bab22baa2612e2f470f5c2ecaf Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fc3c8c0bb9e685052b7edc8040167d643c63b3c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: Id08a8d74a0b681dfce6d7635d280e5c31b7acbc3 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 13de0ca3217e379d2c2574b0f6f81ebe3400a13f Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. (cherry picked from commit 46ad60f0cff5c2222ded7a639f337417e59b2375) Change-Id: Ie6e8378aeca07644c69bbfede61d457446c88f5a Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3c809bfc5abd0c13a50ad773268efc1bbe442d8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. (cherry picked from commit cd0bd24a3fffff873821618009389378372fb73e) Change-Id: I700599b4926770dc7602f970a4bd5c30dc457969 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e60b4d1c7ba520319c5ddc60b68b8fbe1a6c72a2 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. (cherry picked from commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97) Change-Id: Ie3fbcb42e8b313a1f0861df324c10e370fdfbb2f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c2a00f21c60eb88ed17e348ae947fdffcf7aedaf Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. (cherry picked from commit 8dae3d06d1c41aa2de609056811646ff50e77791) Change-Id: I793b3aee06cac0bd62158c55ee9233dadf51c873 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fa6ee4594caaa7cf28fd33bcfb8a62165602224e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. (cherry picked from commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0) Change-Id: I0b054dcfb6e98b635cb4d8b6a14f6541d97f3287 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 199f5f94edd7c6c127dd4b402cf7866e641a3396 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff) Change-Id: I96b1d3c3ae55dd427c7270d419bbece05917c590 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 33381e73bfa8c51bf91e04d3e5f6fe0930addb9e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. (cherry picked from commit 065b9f72784c2686aca0233e8e510229efd329c4) Change-Id: Icf3c87bce4102fc1d24931f8dde15478bf71fd19 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 57c3657ebbd5273c1f84f28f460482a68b50c968 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. (cherry picked from commit e814b7842af3b7f15047f3f922c1f1648bb2705b) Change-Id: I524b700973062f51b123f100dc115b5c873d7346 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1fdcac8e3387d1f8435090fae2bffeec3eae6970 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit ccdb0372092c3a359754897ebec2bb8be37d6a3e) Change-Id: I02ee8d0ce604cda993f90158282544afb7490cb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ffe43137a4024e0941417d19fb2e51946c1f4e0d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication (cherry picked from commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd) Change-Id: I82fa0248329d56f0662785b1ff7b35ad94e657d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 73d05af290793eb0da55a556c4bbaa28c9706dd8 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. (cherry picked from commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3) Change-Id: I4ce8dc81a137a3646c9d508d682f3ef05b3bc435 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 645ebc3ec6214d0d9fe32a32fa7e10558c74af6b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. (cherry picked from commit 829c88376705c6b58e62dd93e9802ffb905ad49c) Change-Id: I55d1ee5918b05279abcfe63ab74d172e5e8671b5 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 5208a4caa32f8775a10c1567d2749599a2fb839c Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I6cdd36efe643b0bdaec0436e57a6364076d47239 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit b8b834d4da42df635254a5b656e5579bf9237f73 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 7ff0f5166ed9f2ff4f1a37b8bce2501a2029905e) Change-Id: Ibca9d3a2427f484227a6083b6ef11fbb7555cecc Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 3ad826161f59f6531afa19412f3c8b2f2d0362da Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d89efdbbdf521f05a7b9f191e98914b40bc1962d) Change-Id: Ie5cbe004768986dfd5f53d4cbdec9c28506fac03 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 0cb3d75a60e141d786e68fdb713382620d39e18c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556) Change-Id: I0c3fc7d4ebcaada2732eced5ea84b94f1a2d9a0b Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 66f2c07c8a78044fb26cc853702adfc106c99209 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d8df7faccb2ec330eb859179ed0db07313626b7c) Change-Id: I8c566c3dfa8c638e370aba384b80936a03bee88d Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 231a253c7248971c0a3881ec2fefea45ab20b775 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 11 09:46:07 2011 -0700 msm_fb: display: mdp_pipe_ctrl called symmetrically mdp_pipe_ctrl() only need to be called when write back mode is not enabled at mdp4_overlay0_done_dsi_cmd(). Unsymmetrically mdp_pipe_ctrl() called will cause mdp clocks can not be shut off during suspend. Change-Id: I1783a736c86e5a36a2edfb6b266832e3d691be7b Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 64eaf4972c8dea0368d3a4113d6b19a058fc3b3d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit e80420254616b39d0c350dcadf8f6954394e7647) Change-Id: I84df4bc1ca3b0df34d2fab559cace1ca740f2702 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 1323385de767733a659d397ca487e578315d887a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 (cherry picked from commit 565ecc608d46993c4afe6dd15c95942c75f1e932) Change-Id: I908ffa60cd820a47c49d25b1732f7f0f0f1748b0 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9d7f8859560ac2f3c6f84f35e28f24b33809ccb0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 (cherry picked from commit 605a44c18620ed364e53d1e4cc0f03fd2f815029) Change-Id: Ia1c487a95cc7fba7aee2b8d9dc522296446a7fb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ad6004f89f6972f513b0a71cff515f670db661c7 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed May 11 12:11:41 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. (cherry picked from commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b) Conflicts: drivers/video/msm/mdp.c Change-Id: I88901c3b3640dd1030246de0dbeee3109787bc23 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit aa53b629ae7c52ffaa50934a87a48e2887357d85 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 5e744543c3f81650a1cea1402c58c01ae6ee421d) Change-Id: I0d16f22a98e25b8366b6c3eaf60cd6277f5a76f1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 754ac15b2a298b38873fadc47ec4b89602aa71df Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. This patch also move footswitch out of mdp_pipe_ctrl() and have footswitch always enabled. Change-Id: I8beb66da6afb606da9460f5c8027f298227bf0aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2c5fc636989ba248384240b8f31ff82791790a23 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 6 09:20:08 2011 -0700 msm_fb: display: mipi dsi read function Re-write MIPI DSI read function to allow it to read more than 4 bytes of data from client. Change-Id: I016bb0accfd71526a32f96878e64c439f2e53537 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 58979b79f5ca8211aac7faad413934ee8f09bf8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Feb 25 12:23:06 2011 -0800 msm_fb: Disabling DTV timing Generator after hdmi off. DTV timing Generator should be enable for updating Audio Packet Control(0x0020) and Audio Configuration(0x01D0) register in HDMI core. Need to checks Bit[0] of both registers before doing the HDMI Audio Shutdown. CRs-fixed: 274278,274284 Change-Id: Id15e4bcbddea4a7c0c9926f5420c0b639ab599bb Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9e0698f6708ed4da35b2da7281fb7a5044ba0801 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Mar 23 11:38:42 2011 -0700 msm_fb: display: Configure MDP clock depending on dsi_pclk rate. In MDP 4.1, the MDP core clock should be greater than 1.5 times the dsi_pclk frequency. Add code to set the minimum frequency for MDP core clock depending the MIPI dsi pixel clock frequency. For LCDC panel, add code to set the minimum frequency for MDP core clock to be atleast 1.15 times the pixel clock. CRs-Fixed: 279386 Change-Id: I065bb0eb13c68ee191c8693fe5ca73b3587c1edd Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 70b65dca8d88287a259f88591255f3725a50026d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 31 18:21:47 2011 -0700 msm_fb: Display: Fix MIPI DSI video mode configuration settings Modify the video mode settings according to suggestions from hardware team. Enable High Speed mode during horizontal blanking period. Configure Novatek panel to run at 60 fps in video mode. Change-Id: I9e68f1175caece135ac4074fcc35a907f8006158 CRs-Fixed: 279535 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68848ff4fc21b2dbd068e29ddb391a088eba2137 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Dec 21 13:48:40 2010 -0800 msmfb: msm_hdmi: extract 3D information from EDID Header Extract 3D presnt information from Vendor Specific Data Block from EDID header extension. Change-Id: If5d94382a9c610f7a241a91ef5c61801366d5e9c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 07099e1ef27c0dd6bc6bea859211bb36239d53db Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Fri Mar 11 13:33:23 2011 -0800 msm_fb: display: Remove RGB performance level vector With RGB performance level vector requesting for performance level 1 for all RGB type surfaces, power consumption increases. Performance level 4 is sufficient for single WSVGA size RGB buffer scanning. Remove RGB performance level vector and add check to request performance level 4 for signle WSVGA RGB buffer scanning. Change-Id: Icfb6f00799fc510d23a6f048fc4729471576d00e Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit c85505b79eb8b10c0bba8ed6891ded008588a55c Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Mar 31 12:18:02 2011 -0700 msm_fb: add DTV vsycn push Add DTV vsync push to block on vsync so that overlay play calls can synchronius with UI push. Change-Id: I382c16fda3846f983b00f175619d18d7ddc5e762 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f6b6e3fdee8ed083e609204bbd05d99923104ac Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 30 17:12:36 2011 -0700 msm_fb: display: add a flag to know the rotated source content expose a bit in the flags field so that driver knows whether the source content is rotated, this is used by mdp to deinterlace the content in horizontal direction for landscape video if the video is rotated portrait. CRs-fixed: 281389 Change-Id: I303f6c5f03763b9f68d1f7388839764a69bb428f Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 7c0c2fe5ac873e185dfbad153bbc5d489b0a8906 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 30 13:39:01 2011 -0700 msm_fb: display: turn dsi clocks off when no display update Turn dsi related clocks off after have no any display updates for a second. This is feature for screen static update. Change-Id: Ifa25a6af18c78ec6ee619347f124e5600831e173 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ac5d4ab983a05ec976a391234a74bb9ceae4807 Author: David Ng <dave@codeaurora.org> Date: Fri Apr 1 14:37:50 2011 -0700 video: msm: mdp: Optimize mdp_pipe_ctrl handler Optimize pipe control handler by aborting mdp block power control check within loop earlier. Also, reorder MDP_BLOCK_TYPE enum to move high likelihood enums near the start to optimize value check in a loop. Change-Id: Id656f005863bebf7fc9d4e8543f5161b25a9b5e8 Signed-off-by: David Ng <dave@codeaurora.org> commit 4f5de8242637db49dfd7e96499dc6866dfad084e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 10:36:18 2011 -0700 msm_fb: display: send dcs commands at video mode during booting up Add capability to send dcs command at video mode to initialize display panel during booting up. Change-Id: I826a2045b9b883c207e450c95d76dbf341de026f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5b3193d6655a955ec0dfc6af7583b15dee5053ca Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Mar 18 19:45:13 2011 -0700 video: msm: display: Bandwidth requirement for 3D display Increase Bandwidth requirement for 3D display to avoid the blank display CRs-fixed: 277304 Change-Id: Iaf3ac31b17521320cd2b7b6a5e82a7fa9fe07819 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 869aac9b3eca7661e13147063e15c9996056c5ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 08:59:33 2011 -0800 msm_fb: display: enable/disable DSI irq dynamically Enable/disable DSI irq dynamically so that the power grill can be shutdown. Change-Id: I6f4a4a3f740743804ee720712b4c0f2caa6e20a3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 86bacb945b5317d6600abc7206c9b5ad3a1c2b8d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 16:43:02 2011 -0700 msm_fb: display: check x offset before enable mdp write back mode When destination x offset is not equal to 0 will trigger dsi command mode interface hardware bug. SInce write back mode will introduce bus accessing overhead, only enable mdp write back mode when destination x offset is not equal to 0. This patch also add writeback statistic. Change-Id: Ia97d2c4d8080e8b0ca9f61d3d24fc3f13d106f16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ad9506b0811e31107fcbefe437ac2c5390ddf3f9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 29 18:09:17 2011 -0700 msm_fb: display: Fix MIPI DSI Video suspend/resume issue Fix MIPI DSI Video suspend/resume issue by enabling MDP footswitch during device probing. Change-Id: I3461e4c69f24d09a84bcf9d626a4212e0434be87 CRs-Fixed: 278357 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cd4d51d521d351649ad91695069fac6842052a61 Author: Jilai Wang <jilaiw@codeaurora.org> Date: Tue Mar 15 15:52:52 2011 -0400 adv7520: add hdcp hw support check Add hdcp hw support check since fluid 7x30 p5 devices have hdcp disabled in hardware. This will disable hdcp in software. Change-Id: Icb8afd23f06a97ba549522d8af98c7968c172e1c CRs-Fixed: 272573 Signed-off-by: Jilai Wang <jilaiw@codeaurora.org> commit a9e0558e9f28c19733b3f40d404c26d64d87fe78 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Mar 28 09:13:17 2011 -0700 msm_fb: display: add panel type check before disable tear check Check DSI panel type and only disable tear check logic and free vsync gpio if it was a command mode panel. Change-Id: I7b075d75cbf75d3b20bba3e6a52d1435133c7aa2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e7a0f2d0a1a9cf51bf509cdb3642dd5c20c39da Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 25 15:48:51 2011 -0700 msm_fb: display: do not check dma busy while in video mode DMA busy flag is used for DSI command mode (push mode) to indicate DAM engine is active to prevent double kickoffs.It is not necessary for DSI video mode to check this flag since it is pull mode which has internal timing generator trigger DMA engine on every vsync. Change-Id: I2420b525cffcfda110e25d0295e66fa28bb2e423 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a0a73f93763280b7129314d95c130ea42c8d87a4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 22 11:35:59 2011 -0700 msm_fb: display: use 720p tile dimensions to decide performance level decide the performance level based on the samsung tiled format aligned dimensions for 720p resolution otherwise it will end up using 1080p clocks with overlay when the input video is rotated. Change-Id: I68f71dc2e6a0c74b5324af945d58cf1dd3f1f33b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b73ec6089ff89a43e31c48ca696c264d26294d6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 23 18:08:35 2011 -0700 msm_fb: display: add dynamic enable/disable mdp write back mode Add dynamic mdp4 write back mode enable/disable capability on top of existing mdp4 write back mode implementation to provide software work around for MDP4 hardware bug between DMA_P engine and DSI command egnine. Change-Id: I2de277e2a5b31335907088862279f4a5c7fc60e6 Signed-off-by: Kuogee Hiseh <khsieh@codeaurora.org> commit e924f3c470540de586acdf4cf03bc91c0ea3f653 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 21 16:55:35 2011 -0700 msm_fb: display: Configure MIPI DSI clocks using panel settings Remove hardcoded clock dividers and other clock related settings. Remove support for mxo clock. Add code to generate the clock divider settings using the panel frame rate, format and porch settings. Change-Id: Idfe301d389d5f71d09b36e6957e473bd53be009b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ffa68409df9960b4cb9303bba0fa673dd1c9215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 24 08:33:41 2011 -0700 msm_fb: display: fix mddi overlay interrupt handler MDP4 write back mode provides work around for MIPI DSI command engine hardware bug. But it breaks MDDI overlay interrupt handler accidently. This patch fixs MDDI overlay interrupt handler. Change-Id: I759a26e64202b2bcdf359e76d09f1cbff8343769 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f4a2361bbaad07a9e7eade0e42a1a0d20bd81914 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 11 15:41:04 2011 -0500 msm_fb: display: AUO WVGA LCDC Panel Adding driver for AUO wvga(480x800) 3.61" lcdc panel. Activated for msm8660 Fluid platform revision 3 and up Change-Id: I528894540ed1990b7d0e8ea763fd9c54c70cf276 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit a10db6ff521dd54b213533f4093565bfa1275761 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 9 09:48:12 2011 -0800 msm_fb: display: shut off dsi pll with correct register setting To prevent power from leaking, dsi pll need to be shut off with correct register setting sequence. This patch also fix the timer configuration used for turn dsi related clocks off when no screen update for one second. Change-Id: I33452bc02fb33ef3c780b9f9aa0e840f90f8598d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c3a958f6c0573ba0bce94df40e50c2b5550645fd Author: Wentao Xu <wentaox@codeaurora.org> Date: Fri Mar 18 15:28:37 2011 -0400 msm_fb: display: not to register platform device from AMOLED panel driver The platform device is already registered from board file Change-Id: I469b70af30dffc5a8e5f08516d942f441ff21f89 Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit 79e20ca76f1db3c2861c28681f0e16cb97d3ccc8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 13:45:31 2011 -0800 msm_fb: display: add MDP writeback mode to DSI panel Implement MDP4 writeback mode by using double buffers for dsi comamnd mode panel. Write mode for MDDI has no changed (single buffer). Writeback mode is enabled at boot up. This patch does not provide siwtch between enable and disable of writeback mode. This patch provides software workaround for the hardware bug at the interface between MDP4 and MIPI DSI Command engine. CRs-fixed: 277310 Change-Id: I28d4dab3b05bda02e2def474644ed045776d0241 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a7c0fe5e2f435e45d2ba1ac1be8b310681a3ad18 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Feb 8 17:32:12 2011 -0800 msm_fb: display: Fix LCDC underflow by downscale parameter validation Fix LCDC underflow by downscale parameter validation against mdp clk and panel clk frequency during overlay_set. CRs-Fixed: 271494 CRs-Fixed: 279382 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I363a87777311b66e5acc2c29afe8da6b2287694a commit a225d0e971254d2c49fc8d08537d22875b83f46a Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 16 15:30:01 2011 -0700 msm_fb: display: handle histogram during suspend/resume disable the histogram irq and clear the histogram registers during suspend and re enable them when resume. CRs-fixed: 280419 Change-Id: I54154a89c7a2f92dba8ee9e99943e61279b29c44 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 54afe26ae0f0800584d19aa9495bcbd48c52440d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 16 10:08:43 2011 -0700 msm_fb: tvout: Removing mutex_lock in ISR CRs-Fixed: 278755 Change-Id: I6e5e13edc9048757c87f57f8579776d7ce878bb5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b35b92b71ded97db1d1e2b8fe34c45bfbf5ab6fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Mar 20 12:19:32 2011 -0700 msm_fb: display: synch mdp irq enable/disable Add spin_lock() and spin_unlock() inside mdp_disble_irq_nosync() to synchronize with mdp_enable_irq() to prevent race condition from happenning. Change-Id: Ieb76a5a920d7d92b627108d033e34874c7acdd82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b74ce77d0cebd282fb6b17c959146db9620383f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 15 16:46:52 2011 -0700 msm_fb: display: remove redundant call to disable irq in off function CRs-fixed: 278326 Change-Id: Ib0ffca8862aa34438ae8575ea3b9ed21cf7418f6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit df448ca39305b85fc318c16d067e1cb6ba386a0f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Mar 13 19:41:51 2011 -0700 msm_fb: display: Fix MIPI DSI driver initialization sequence. Change-Id: Ifcb67a166b68db45d6d3b14ba9cc5caa48316ee8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit de64d12d9e0806e630e148d3da7f9d390a92db1a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 4 17:18:18 2011 -0800 msm_fb: display: Remove secure_io to MIPI DSI register access. Only clocks belong to MMSS_CC need to be accessed by using secure_io. Secure IO access for MIPI DSI register region is not required. Use normal io access using readl/writel to MIPI DSI registers. Change-Id: Ifc49b1812efa0fbe82d48bef7f5054064f55043a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 00c6dbec219e11a71bc0c077e53779d97365e5c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Mar 7 13:34:56 2011 -0800 msm_fb: Reading Ro' from correct HDCP port offset Reading RO's from correct port address and offset and start HDCP reauthentication again,in case of authentication failure. CRs-fixed: 275796,276921,277082 Change-Id: I984054384cedbcc96fb8cd68b4d3f533ff33a969 Signed-off-by: Abhishek Kharbanda<akharban@codeaurora.org> commit 715b3fe8316555da278042f6371c3bc9a0dcea05 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Mar 8 18:31:10 2011 -0800 msm_fb: display: Enable secure IO access and fix DSI clock settings. Read back register value is not updated properly for MIPI DSI clocks. Revert back to the older method of configuring the dsi core and dsi pclk settings. Modify clock control block access to enable read/writes using secure IO. CRs-Fixed: 278206 Change-Id: I5d5503d39ddd5d2ae0fa0dbdaa592686ae5e5ffe Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit e3cc2ce88868ee28f9ba4268b75e5a7bd671953a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 8 15:00:36 2011 -0800 msm_fb: display: Log cleanup for LCDC Samsung WSVGA driver Change-Id: Ia0372db34b3c9a74202ef692d9c30c5fd43f6a6b CRs-Fixed: 275930 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d4b31a95cc9477c47fe9b1c5b5c96ddfb075da24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Feb 25 12:09:06 2011 -0800 msm_fb: display: Call pm runtime apis with the correct fb device use the same frame buffer device for all runtime pm apis calls. Change-Id: I2dccf69f6f9ed115fbeceef0636e39bbdfd5c67a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8ae66ceb26dd7baecc85d2b334029903cb7a1bb8 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 8 12:42:21 2010 -0600 msm_fb: display: Samsung AMOLED PenTile panel Adding driver for the Samsung AMS367PE02 3.7" PenTile 480 x 800 16.7M AMOLED panel. Enable LCDC auto detect when MIPI detect is enabled Clear regulator handles after they are released to avoid crashing Change-Id: I6abf705fd19d5baa429fb2a7c47e4299f73c6b67 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d91951d2c7feec7b81b814434848cc28e8a167c0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 17:55:09 2011 -0800 msm_fb: display: Fix dsi command mode compiler error Remove un-necessary dma_busy_comp and vsync_start_y_adjust to fix compiler error. Change-Id: Id56568bb3d4cdbe091dd09584bf6d26183812e1d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 73b51ce75cba3caa4ac511503f46705a356896af Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 15:51:27 2011 -0800 msm_fb: display: add support of sending DCS command at video mode At MIPI video mode, set CMD_MODE_EN bit to enable command mode engine before sending DCS comamnd to client (display panel). Change-Id: I6462eef5c3c378176e8df61d3a5108148cda3047 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5ed1dca7d697327a9ff9dbbae45fb20e73a2c010 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 1 14:47:36 2011 -0800 msm_fb: display: initialize comp struct at pipe_alloc Initialize per pipe comp struct during pipe allocation. Change-Id: I48c919b3b520cfaf12f5b6fa713fde9f5fb866d0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 03dac3988c186dfd125b5f07501e2e3fe3d7b6e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Feb 23 08:54:33 2011 -0800 msm_fb: display: add dsi clocks control Add runtime dsi clock control to turn dsi related clocks off after screen update and turn clocks on before screen update. This patch also provide clcok off debounce mechanism by using kernel timer. CRs-fixed: 276211 Change-Id: I68f4cc48ba4887d2240d96936674eb460618de1e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 74ce95472814e2561ff258668ba6c9febdf54556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 14:46:37 2011 -0800 msm_fb: display: add support of DCS backlight command Add backlight control by using inband DCS set backlight command. Transmit DCS backlight command to client while DMA is not busy. CRs-fixed: 275660 Change-Id: I6954bb6e86d15a8f4076d9bb576667669459725c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2245b9e330cd54ac4e4580a5208da1f61209c340 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:04:47 2011 -0800 msm_fb: display: remove extra bracket to fix compiler error Remove extra bracket to fix secure_writel compiler error. Change-Id: I11ebda03004dd0a7fea648cb32675c8dc456bc47 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 252d99d19002242dfb78b4b1c1ac604787c3d83c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:01:28 2011 -0800 msm_fb: display: check mipi panel mode before enable vsync Checnk mipi dsi panle mode first. Only enable hardware vsync mechanism if it was command mode panel. This patch also remove the unio declaration of lcd_panel_info and lcdc_panel_info of msm_panel_info struct to fix vsync configuration over written panel's porch configuration. Change-Id: I1d0806df04b884e1fb5a596baedd4b5f3630d01a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ab42fa9b082706916123315e5647789b7f01a3d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:55:24 2011 -0800 msm_fb: display: Fix MDDI CRC Error handling condition Fix MDDI CRC Error handling condition to avoid looping of MDDI reads infinitely Change-Id: I4e65b635fc4041213e544f64919a9a6f074b366e CRs-Fixed: 275229 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 38c908beabb5f40225314642d88d09e299806b6e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:53:15 2011 -0800 msm_fb: display: fix a typo in using the correct packing format Change-Id: I0f522ea04ece89c6f387d22634d4d33139f2a631 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4a3fed28675ebf7bacd209a8baea84265dd664c2 Author: Matt Wagantall <mattw@codeaurora.org> Date: Wed Jan 19 15:56:14 2011 -0800 msm: 8x60: Use secure_readl() and secure_writel() for clock registers The application processor is unable to access MSM_MMSS_CLK_CTL_BASE register directly. Secure APIs must be used to read and write all registers in this region. Change-Id: I2906d3b8e28b45ff896a41103fecce9491b5a991 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 57ea567a20d102404287eb09ee2dabeae04093c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 15:06:30 2011 -0800 msm_fb: display: mitigate lcdc interrupts Primary vsync interrupt are always enabled which causes interrupts are generated at every 16 ms. This patch will only enable ingterrupt when has frame push. Change-Id: I062bf19a9b56ef6fea4c4374d8751625bbb86a42 CRs-fixed: 275999 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c315489fbe1a75c52b968c4a237d9f7f4334336f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Feb 7 16:58:43 2011 -0800 msm_fb: display: add chimei panel driver Add Chimei LCDC panel driver. This patch also incorporate backlight control through PWM of gpio-24 (channel 0) of pm8058. Change-Id: I2e00d6ce0f6a9858a56d929c660776fcbfc54732 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 030612a798461326d82d5fab950ca2a071d057a1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 17 18:21:25 2011 -0800 msm_fb: display: Enable S/W Vsync handler only if MDDI clock is enabled Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I3800f7b27f7730cd9e60e37b0f060ede9f79c83e commit ac9fd472e5832a56d20e06654e5a8fd04d3583e9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:16:51 2011 -0800 msm_fb: display: Fix vsync timer deactivation by shutdown flag Fix vsync timer deactivation issue resulting in timer handler run continuously during suspend/resume by using a shutdown flag Change-Id: I71806b491d15b454b1e56f01e78223e26df7062b CRs-Fixed: 274480 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52f6889f672d53e9c80cfde8335fde65e1022fff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 4 16:30:31 2011 -0800 msm_fb: display: add support of mddi MDP_OV_PLAY_NOWAIT Add support of mddi MDP_OV_PLAY_NOWAIT mechansim so that overlay requester can issue multiple frame updates followed by a single DMA kickoff. This patch also remove 10 ms timer from UI kickoff which try to consolidate multiple frame updates into a single kickoff. This is not necessary at NOWAIT implemention since both frame update and kickoff are controlled by requester totally. Change-Id: I901054eba78d946549b05e667dd580a95ee18a87 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e9bfe26bd022597402b9070c41fe89c2040a7227 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 31 10:01:13 2011 -0800 msm_fb: display: add 3D side-by-side to interleave support Add 3D side-by-side to line interleave conversion by introducing MSMFB_OVERLAY_3D ioctl to allow user to change frame buffer's width and height at run time. Change-Id: I5801425a1f03ceedf69522c28780bb200ab63c57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e908e0c469fb2fa7dc7ecb659158d91d082b5d08 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 8 18:05:10 2011 -0800 msm_fb: display: Fix incorrect fail in tvenc_probe feature pm_qos usage correctly with CONFIG_MSM_BUS_SCALING to avoid incorrect fail in probe call. Change-Id: I5677e0d10fef30ef1f41a87e6415782777612d87 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ec2908a70273dec14893222233530f7cf5664a1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 11 16:30:28 2011 -0800 msm_fb: display: Cleanup of Log messages Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Icc911682233d48e3dcae0b78e8aa0138fd3af027 commit d034fc1101365fd5593b8dc1da66da63d8a5f61f Author: Harshad Bhutada <hbhutada@codeaurora.org> Date: Fri Jan 21 19:42:49 2011 +0530 msm_fb: display: add 3 frame buffers support Add triple framebuffer to improve display performance Change-Id: I132c74f11f5ddcee62d12599c85dd615e14235d4 Signed-off-by: Harshad Bhutada <hbhutada@codeaurora.org> commit f5593a5556724456bb71754554e06ce91690108f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Feb 10 09:56:05 2011 -0800 Revert "msm_fb: display: soft reset mixer1 when external under flow occurs" soft reset mixer1 has side affect of blank display on primary intermittently hence revert this commit until the corret software work around is found for mdp pixel shift hardware issue. This reverts commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23. Change-Id: I75e319461e474394cdc35d3f5dbbd2f7502107cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 9ad8eed3ad1e5fcee31bafb36f89fc27c8587335 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Wed Feb 9 14:54:06 2011 -0800 msm_fb: msm_hdmi: turn off hpd on boot-up Ensure hpd is off on boot up, so that the power on hdmi rail will be zero. Change-Id: I80212511d30d58e4f65ee938621ee959e5623a79 CRs-fixed: 274396 Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit 65ec3d97b4df9de23c46f82cf62f1ec32c4d8c51 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Feb 8 10:03:49 2011 -0500 msm_fb: Calculate smem size with correct bpp value Always the bytes per pixel for the framebuffer format to calculate the shared memory length, not the panel. Change-Id: Ief3adced9c8f0265babfde44b9ca5c40af2423e4 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 52a629f3ccc8caf40b2a4796b7287f1bef9b3096 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:57:20 2011 -0800 msm_fb: display: Use solid fill attribute for no fetch in is_fg mode. In is_fg mode, when alpha is 0xff, use solid fill attribute to set no fetch, also set constant color to black for blending. With this FB is not fetched and we could save bus bandwidth. Change-Id: Iff88269c9e00bb7b6277cb4368c3d0efbbfe5257 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit df9278b93dbba60b8cdb8f043d851f21508a8764 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:31:55 2011 -0800 msm_fb: display: Add performance level for RGB buffers To request highest bandwidth on SMI/EBI for RGB/VG pipe, this change adds performance level for RGB buffers. Also, add one more clock level for corresponding perforamnce level. Change-Id: Ifde6d7ee295d8335e2c2dac6de8580a9f6ee5dd5 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 17f4ba96318300509d022d1ef56678aa6e1a9787 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 4 11:59:57 2011 -0800 msm_fb: display: Fix MDDI blackscreen issue by vsync pending flag reset Fix MDDI mode blackscreen issues by resetting vsync pending flag when vsync clock is not enabled. msm_fb suspend routine requires the pending flag to be FALSE to exit. Cleanup vsync timer usage during vsync clk enable/disable. Change-Id: Idb5fcb5f281cbc7cc41db47a63cde35b18c5a1de CRs-Fixed: 271317, 271775 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d11c910649c0d88d432abe0253d9bfd45e924f6a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jan 26 15:54:57 2011 -0800 msm_fb: display: Add cursor support for MDDI primary interface Change-Id: I490d362c2389f1ececb850340fc97cbd64e2b296 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ec31d4b82b67e43cebf9467c1531288b7b36f6ce Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix crashes in MDDI mode during fbtest/boot/suspend Fix register access crashes in MDDI mode during fbtest/boot/suspend operations. This change has been reverted once since MDDI clock was disabled during the execution of mddi_on from a previous pipe_ctrl OFF request. This patch includes enabling MDDI clock in mddi_on directly. Change-Id: Icc302ea312b5dc96b65bdfe5cb65b9f12341f7ef Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a8b2d85d754bd338a05a574006a1a81366898b8a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Jan 30 15:13:39 2011 -0800 msm_fb: display: Fix underrun during suspend/resume There is MDP underrun issue while doing the suspend/resume when the video playback is in the pause state. Fix is added to set the right MDP clock in this case. Change-Id: I8b488cc629766aa2671537bfe3a3b3804966a7aa Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fb7f5cf847e4fe37e2af6c5c1a642f9875320b9e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jan 26 09:24:17 2011 -0800 msm_fb: display: Add dma busy checking at overlay unset Add busy-wait mechanism to ensure mdp dma engine is not busy (not active) before un-staged a mdp pipe. Change-Id: I66982d75b75e114cd9129a341af147a0e6dfdef0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5db13dea0a21124d3e33fdbdc832dd433521a215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 13:46:41 2011 -0800 msm_fb: display: add MIPI Tearing Effect support Add MIPI tearing effect support by connect mdp_vsync gpio (28) to mipi dsi display panel and send set_tear_on command to panel to enable it. CRs-fixed: 267852 Change-Id: I364202c5b4c824ca5be1716619a4bee836618da0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9768b27ab8963102d56f2de38c626c91edef26de Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jan 27 18:30:24 2011 -0800 msm_fb: display : Implement mdp clock scaling support scale mdp clock based on various performance levels to save power Change-Id: Ia682325f4227c083a783cd2fb33e6d54003b944b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b7f5eba092f72a42edeb7fa72502502317c22ba Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 24 16:23:47 2011 -0800 msm_fb: display: do not reinitialize qseed during resume reinitializing qseed tables during resume is causing artifacts on hdmi since they are getting updated while dtv timing generator is active. reinitialization part is already taken care by checking whether mdp hw is reset just before resume hence remove this code. Change-Id: Ic448cafd69e8a4c66b5097d55d8e59acd0985d71 CRs-Fixed: 272138 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 0dff7e9161fdcb5fdde2ec387f1686b9324ab422 Author: Vasantha Kumar <vasant@codeaurora.org> Date: Thu Jan 27 14:59:09 2011 -0800 Revert "msm_fb: display: Fix clock crashes during boot/suspend/resume operations" This reverts commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d. Change-Id: I7a9b89c8a116445aae47ca6b7f128bdf24822ad2 Signed-off-by: Vasantha Kumar <vasant@codeaurora.org> commit ef072d28af4812966be54a33f5b51d785ac1e2bc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 10:57:36 2011 -0800 msm_fb: display: Add MIPI DSI read function Add MIPI DSI manufacture ID read during MIPI DSI initialization. MIPI DSI host issue DCS read and issue BTA to allow client to send DCS long read data back to host. This patch also add MIPI DSI ACK-ERR-STATUS handler at reverse link. Change-Id: I2106df419cd809cc862fcdb37112cfaf3ad811f2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a269fdf061c0946d704eeb4a487b7aaa86aa5dc3 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 26 09:53:01 2011 -0800 msm_fb: display: Fix mdp underflow on hdmi underflow during suspend/resume on hdmi is caused due to incorrect bw requests on primary during overlay_set and requesting bw after enabling lcdc timing generator. Change-Id: I1e6aadee03b7c4c0f678bdd387515dbd07587fb5 CRs-Fixed: 271912 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 5b3a94e9512771acecec016cb1a6d39c2bc71017 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Dec 20 17:18:49 2010 -0800 msm_fb: Migrate to clock rate voting Use the clock api, instead of pm_qos, to vote on the EBI1 rate. The transformation is as follows: pm_qos_add_request() -> clk_get() pm_qos_update_request(*, 0) -> clk_disable() pm_qos_update_request(*, <nonzero>) -> clk_enable() pm_qos_remove_request() -> clk_put() The rate a driver requests is almost always the same and can be set with clk_set_rate() after the clk_get() call. Change-Id: Id7f4d1fef62d9ce1e49f88daae1ca56608d3cd7d Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix clock crashes during boot/suspend/resume operations Change-Id: I80aebe2ad76892f16c27f6d68aaff0a3a4d13a86 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 15ad3e6e356b0cd963e91db6a2eb1d3f7f65726c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 20 18:45:00 2011 -0800 msm_fb: display: Set MDDI clock rate before enabling first time Change-Id: I1beeca0d57ae294d18cb337d5b93285f87215f05 CRs-Fixed: 271561 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit da220e2b85a730c980a30500792b815035bd6dfe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Jan 21 08:10:56 2011 -0800 msm_fb: Add suspend/resume support for ADV7520 Added suspend/resume functions for ADV7520 chip. Change-Id: I2aaeed91615e9be66f9abe79b0502ba53b851a04 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0e38a1c08495abb77a088fe5310d66c885201396 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 13 15:21:53 2010 -0600 msm_fb: enable HPD even when HDMI panel is off - Turn on LDO8 & LDO10 during I2C communication - Turn on LDO8 while HPD and while cable connected - Turn on HDMI_5V_EN during EDID and HDCP - Always listen for HPD IRQ Change-Id: If24d05b3dea81cb73004900ea23ab51e483f1b38 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 98b8a1a579cef545b9700d7838f117ab43518c0e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 24 11:03:26 2010 -0700 msm_fb: display: synchronous with vsync at lcdc frame push When frame push over 60 FPS at LCDC may cause display tearing due to previous frame was over stepped by next frame. This patch allow mdp to hold push thread until next vsync to guarantee the previous had been consumed by overlay engine to avoid tearing. Change-Id: Ic9bc96377649805211baba8e1e2570b18fb26954 CRs-fixed: 270946 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit edca916e571cadbc7f7262b5a537ac3884972320 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 20 12:20:38 2011 -0800 msm_fb:display: Fix section mismatch The mipi_novatek_lcd_probe was being referenced outside of a non __init section. Fix this by placing mipi_novatek_lcd_probe in the section which exists for device intialization code. Change-Id: I4c9dbbbb7ca1368beda8aee59c8bedb60efa8dc6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a11f5f7eea649696e4c12bc057815a615ee201d0 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Jan 17 14:31:16 2011 -0700 msm_fb: msm_hdmi: reset HDMI PHY on resolution change HDMI PHY needs to be reinitialized when panel resolution changes. Change-Id: Ib01be9f51668cb290b61360b3775993d232169bd Signed-off-by: Urs Muff <umuff@codeaurora.org> CRs-fixed: 263676 commit c1ee3af7b4b1580eaf83bfe875df7ff0c44bd6e8 Author: Alan Gerber <agerber@codeaurora.org> Date: Tue Jan 11 18:26:37 2011 -0800 msm_fb: hdmi: Hold idle wakelock when HDMI is enabled In our current implementation, allowing idle power collapse during HDMI output causes underruns/flickering in the HDMI content on some devices. This patch takes an idle wakelock during HDMI output to prevent idle power collapse as a preliminary solution to this issue. CRs-Fixed: 266067 Change-Id: Id91011067b7c808548e6ee3df00e53c4e2aa8013 Signed-off-by: Alan Gerber <agerber@codeaurora.org> commit 7ca0f321d7c0815c1dd13387fcad55266a87c0da Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 13:42:06 2011 -0800 msm_fb: display: Disable Optimal Fetch bit in FETCH_CFG of MDP pipes Change-Id: I58af7a86c7a9b27dcff5573b44534c968cf4fde0 CRs-Fixed: 270136 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ed91ea3ea225adfc3bc7091eac5d22413af0d20f Author: Urs Muff <umuff@codeaurora.org> Date: Fri Jan 14 08:35:59 2011 -0700 msm: board: allow to hide hdmi log entries Reduce kernel log spam. Change-Id: I05a650041e47f5abadccf5cecac303ebf0c1c830 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519c18879d14b3bda62765c66f222afe2ac97cda Author: Wentao Xu <wentaox@codeaurora.org> Date: Mon Jan 17 15:50:33 2011 -0500 msm_fb: display: change sharp panel backlight Kernel pwm_config() parameter has been changed to expect both period and duty_level with unit of micro second. Change sharp panel backlight period and duty_level to have unit of micro second accordingly. Change-Id: I00f3b7f3b45161ba2152f935147e0d5fd22d2a8f Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d42938452d1c005046b00b50d61ccd65a15ae3a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 17:02:05 2011 -0800 msm_fb: display: Fix backlight issues during boot Initialize backlight level to 0 in msm_fb probe to allow the userspace/framework set the required backlight level. Allow backlight settings always in msm_fb_set_backlight call. Change-Id: Ic42b76e6b8886957856683ee0343afd383ef42c8 CRs-Fixed: 270638 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 12 14:38:11 2011 -0800 msm_fb: display: soft reset mixer1 when external under flow occurs This is to avoid the pixel shift on hdmi during under flow. CRs-Fixed: 264718 Change-Id: I4b178dadc3f0f4266da427f584ce10cf0f339d2c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f5c41e7535e347fb0aefcc533d8c3f015baf484d Author: Urs Muff <umuff@codeaurora.org> Date: Thu Jan 13 11:38:57 2011 -0700 msm_fb: msm_hdmi: correct hpd power-on logic error codes are non-zero, logic introduced with hpd feature change e7164df63e7b87b19ee69ddc7f3db74c65b863b6. Change-Id: I178f5bb5a6ce006599322418bb1b6ddf6849bf62 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit b3cd5d6a4ca3c12425c48fd9586500f088653042 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Jan 11 17:30:40 2011 -0800 msm_fb: fill framebuffer with black pixels On MDP with Overlay, on suspend write black pixels to framebuffer to show black screen on HDMI. CRs-fixed: 266993 Change-Id: Ibcd5802059154d6431888a61d6ad4f4c5c11b9bc Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit a739b3bead1308a7c40f0820e72f2031f532832d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Dec 15 12:20:15 2010 -0800 msm_fb: display: Disable/enable MDP/MDDI/Vsync clocks based on frame update Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic5cbac3efdcd87ab3b44a5c2866fefcab09ab07a commit 002d6e11806ada7ac8cde6d05f15b69138cbfa4d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Dec 15 14:30:36 2010 -0800 msmfb: msm_hdmi: Turning off HDMI PHY on power off Change-Id: I9f2d39076df35963dff3d4608c182f0ee6d9abb6 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 655c7961d9bce8ccceab635343c4157584e409d9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Dec 3 12:31:27 2010 -0800 msm_fb: display: Fix for the pixel shift issue with VG pipe MDDI kick off is added to make sure the VG pipe is disconnected from the mixer while switching it across the mixers Change-Id: I708b37b1d9e60e19acc25d5ca2b3589bc7ae04ed Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-Fixed: 256671 commit 7f4053846ddb619a4a23b7bebbf814eef0773ca2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Dec 15 12:53:59 2010 -0800 msm_fb: Display: Enable two lane video mode for Novatek MIPI panel Add configuration changes for Novatek panel to operate in two lane video mode. Tune the panel settings to improve fps. Change-Id: I151018b39429af747ecdc991748bdb17aa7c2051 CRs-Fixed: 266737 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c7677581e46b2fb42de29ad2c709e814a232f34f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:55:12 2010 -0800 msm_fb: display: add sync between UI and video for MIPI panel Change-Id: I5b505c07c42d80ce5e42a0b27a70076ccfb71233 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit fb3b75f1c2eb222113b531c482ee9fe936b4eae4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Dec 13 09:43:09 2010 -0800 msm_fb: display: fix bpp of MDDI BLT mode At MDDI BLT mode, the output format of overlay engine is RGB565. Therefore set bpp to 2 instead of 3 accordingly. Change-Id: Ibc321a6c9817b972652797966571b35ddd941c5c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 227aa0adacf9f947af8d16c633e1d3afa33f650b Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 14 17:04:50 2010 -0800 msm_fb: display: Fix registering multiple bus scale clients Do not register bus scale client if it is already register in the earlier probe call. Change-Id: Icc14898ce28e9507540ce2419c3f41accf3af651 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f58ceb6b3442958cbb2866fe115a33926b1b5bfc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Dec 8 08:30:38 2010 -0800 msm_fb: display: add support of DE_INTERLACE_ODD The de-interlace is default as even line reference. Add support of odd line reference. CRs-fixed: 260959 Change-Id: I637c79c2f5236fc38116693b50c69415e41ebdda Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbc4b8738bdca502c2cccbcfe1ee0c1755488ca5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:25:33 2010 -0800 msm_fb: display: fix MDDI compiler error Add CONFIG_FB_MSM_MDDI compiler option to not to compile MDDI code under 8660 platform. Change-Id: Ia905636bbe6800996fcf9eb24f1487e28cfc9c97 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4334af8abf1ec212df6778a7405de0d3070abd6d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 13:53:14 2010 -0800 msm_fb: Display: Add two lane command mode support for Novatek panel. Add code to change the clock configurations for MIPI DSI to support two lane command mode for novatek panel. Add code to turn off of the novatek display when the device goes into suspend mode. By default, command mode for novatek panel is configured for two lane. CRs-fixed: 264213 Change-Id: I98df05199a1680375ab4c0274418d1730b052f6a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a809819d9d5d0b59f2c2eee0534bc68048b09016 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 30 15:40:46 2010 -0800 msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6ac2d1a19bcfce5c9c60eb4d063bce4eac924515 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 15:19:42 2010 -0800 msm_fb: display: Remove backlight control from blank/unblank Change-Id: I3f1b1958423c2970f72bfa71f2ac5615055687f5 CRs-fixed: 265531 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c75292d6e2a31323236482442148bacc57ae1d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 12:36:36 2010 -0800 msm_fb: display: Fix MDDI video leak during suspend/resume Fix MDDI video leak during suspend/resume by waiting on overlay_restore to complete before switching off MDDI and panel driver CRs-fixed: 265531 Change-Id: I8c3f15800aade087145e50fbd053e817a51a903a Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 25953d224b91e2cf230ae845d5db0f374818bcfa Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 17:07:54 2010 -0800 msm_fb: display: Fix suspend mode for MIPI panel Add code to turn off of the MIPI DSI module when the device goes into suspend state. Change-Id: I243e77c37d4332f5c67794a3922f24355cb8273b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c98ad9e172386b9a53ed7f01658837b596e86e05 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 7 18:42:38 2010 -0800 msm_fb: Fix detection of MDP4.1 core reset The MDP status register cannot be used to reliably detect a reset of the MDP core since some of its bits come from peripheral interfaces external to the MDP core. These bits may not be reset along with the core. Instead, use the MDP_SW_SCRATCHPAD_REG register to store a flag indicating that hardware initialization has been completed. This register will be reset to 0x0 whenever the MDP core is reset. MDP_SW_SCRATCHPAD_REG is only available on MDP4.1, not MDP4.0. CRs-fixed: 266140 Change-Id: I7ceccc1cfb22a8cd9355aa6cc39b82cf3729936e Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8abbc4bc0ccfcfda27895a889091f6a21af3674b Author: Philip Elcan <pelcan@codeaurora.org> Date: Fri Dec 3 12:07:28 2010 -0500 msm_fb: Make smem size a multiple of page size drm_gem throws a BUG if smem isn't a multiple of the page size Change-Id: Iaa1a96bb259238f6e5850a7012aa5408c4a44e41 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 0d841d87f7ec8b59ff009af94c379e5a7b674bd1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 7 08:36:18 2010 -0800 msm_fb: display: set MASTER4 bits to icrease MDDI throughput There has DMA_P buffer hardware bug which cause MDDI throughput is much lower than noraml. This bug had been fix at revision 2.1. However MASTER4 of MDP_AXI_RDMASTER_CONFIG need to be set to correct value to increase throughput. Change-Id: Idee0c388f6ca4c0953bba86d6ef6c2132c298802 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 071243a12712d740c33fc632431b43381dcb848f Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Dec 1 13:39:16 2010 -0500 msm_fb: hdmi_msm: Fix compile with HDCP disabled Can't compile without HDCP enabled. Need some ifdefs around some unused code when HDCP is disabled. Change-Id: I9682febae5ec4d766fdb62c51180d8295f111646 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit e7164df63e7b87b19ee69ddc7f3db74c65b863b6 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 19:48:12 2010 -0800 msm_fb: msm_hdmi: enable HPD on request only Enable HPD sense only when panel power is on or when sysfs/hpd is turned on. Change-Id: Ibbd45d2c673aeea08660a0087cbec8b82e497584 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ecdbbed83e693269918ca9d0e7f94b0fb15d9d30 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 11 13:29:58 2010 -0800 msm_fb: display: add planar support Add support of Planar (Y-CB-CR/Y-CR-CB) source format. Change-Id: I0bed22156fc6c327c48d94764d8283ec9491b85b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1dbf239b10fa4255770704e5957340cd118582eb Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Thu Nov 18 19:37:07 2010 -0500 msm: mdp: Fix MDP underruns on 8660 To avoid MDP underruns, hardware cursor updates should be made in sync with the dma completion interrupt. Change-Id: If6b4922e2087c8a3f4c8354d173019f76cdaa519 Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 2d55c0bd07cafc12c7ed23a38433e2944de04b6f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Dec 1 15:07:26 2010 -0800 msm_fb: display: do not do mdp clk scaling turning on/off dtv or lcdc during clock scaling has side affect of showing blank on hdmi. Change-Id: I4ab5dabef12ecbcee014bee21ffe695b2d74646a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c7701ba49d17276c20dd4c7e4375844fc568f5cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 22 18:27:53 2010 -0800 msm_fb: display: Support to reduce power for non QuickLogic clients Change-Id: Ica37e9748c280bfe12f2c220f5dc585eac608e4f CRs-fixed: 264628 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59bd6d8480c4cb529f80069a2a575ac0b5e4f7a9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 17 10:49:46 2010 -0800 msm_fb: display: Fix invalid image errors in PPP stress test Fix invalid image errors in PPP stress test by fixing the internal blit regions that are split from the original blit region Change-Id: I73a9f424459fb0c4f0ceebc4fddf89d20c4bc744 CRs-fixed: 263764 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94d57fd66777b0387e50d4c39a241f097a3558b4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 18:28:10 2010 -0800 msm_fb: display: Fix USB OTG None mode flicker for 8x50a_st1x Change-Id: Ib8f2ca21cb29e7de3a2f12e4de434eef4549de93 CRs-fixed: 259149 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5ac62b6a6fbfcd5506bf83e83d0b52337649e602 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 25 09:42:08 2010 -0800 msm_fb: display: do not re-fresh primary display for external interface Do not re-fresh primary display when external display interface, such as HDMI and ATV, issue unset operation. Change-Id: I0d8865361c5377dfae7bec5cdc10e80eb7caf968 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 434f989b4b52133c7a204b9c72e06321e53bf48e Author: Urs Muff <umuff@codeaurora.org> Date: Wed Nov 24 08:57:25 2010 -0700 msm-fb: msm-hdmi: reinitialize HDMI core on HPD Ensure HDMI core is properly initialized after each HPD event. CRs-fixed: 262669 Change-Id: If96a9e0c0fb7c785c640254247adaac4b5fb8a77 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d0e8d669e6e1a9aa3924621b57b6bc314a75f895 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:43:01 2010 -0800 msm_fb: display: reinitialize the mdp hardware during resume turning off the mdp footswitch during suspend doesn't retain any mdp hardware registers that are initialized one time in mdp_probe since it turns off the mdp power rail. Hence reinitialize the mdp hardware during resume only when the mdp status is not active. Change-Id: I95c6b04be26ddbb6fd6f8346b9f44eacab698f59 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2d5b134c38b47c5f5d5aae81a60a59555ca2a9f0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:39:22 2010 -0800 msm_fb: display: remove redundant turn off mdp footswitch. mdp footswitch is already turn off during mdp clk_disable in mdp_pipe_ctrl function hence removing the redundant call. Change-Id: Id0e6178210b836703618137e4c877f1e7036277a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e4eb02a22a66ae82af4638a03ffde2b87878269a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Oct 9 11:33:32 2010 -0700 msm_fb: display: Add new pipe alloction to support 3D Modifiy pipe allocation algorithm to to support many applications including 3D. Change-Id: I3688ab44bd86b6eedf94bd7cb904e7b6fac4f89b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f773d073fa24a571b299034aeeb01a4c464a0390 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 16:41:04 2010 -0800 msm_fb: display: Set QuickLogic panel to MDDI Type 1 mode Change-Id: I32dcb588c4a583474f9c57fcda06e902ab94247c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit aba3918a084d9a914ce7cddfd2acbd1e4dad8c1e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 8 18:11:20 2010 -0800 msm_fb: display: Fix SPI read API for Quicklogic panel Fix SPI read API for Quicklogic panel with configuration of TLEN and TX0 registers Change-Id: I6728322e562f525c9a5cee1afa73bb47f173418e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e69f641acbe060badb10a354bfbf46076f8ad7e7 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:20:01 2010 -0400 msm_fb: Add VGA resolution to 8660 FFA panel On 8660, the LCDC panel and VGA display are on the same bus, so specify the maximum VGA mode as the secondary mode in the panel definition and the Samsung WSGA panel settings for the primary. This will allow userspace to change the resolution when using VGA mode. Change-Id: Ia805ce6477cf9b300a1f969679f2012980d14a61 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit be482dd056b5ff02c8a3f98d60875e7f80fe0aec Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Nov 9 16:57:21 2010 -0800 defconfig: Add configuration macros for MIPI DSI display Interface. Add configuration macros for Toshiba and Novatek MIPI panels. Add macros for both command and video mode. Disable MIPI panels and enable SAMSUNG display by default. Change-Id: Id2a9dca3a2467e588ffdad1ec9d149ca6a4d4d76 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 85e5df5ed487db598f06bd37436629ea2b637b49 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 08:37:11 2010 -0800 msm_fb: display: add control of dsi_s_pclk There has problem at dynamic clock gating hardware which may cause glitch of dsi_s_plck. Move dsi_s_pclk control to dsi driver. Change-Id: I466eebb0309b82ad83c54bed0840cd42d1f1b4ff Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3661713ece532d5b50fd0fa1ab415058736fd0ce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 3 09:19:57 2010 -0700 msm_fb: display Add Novatek video/cmd panel support Incorporated both video/command mode panel configuation to mipi_host_init to support both video/command. Change-Id: I51555e9065038607765de54e98c36128aa611d8f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2c8a3a62f8f9bdb45a606764edfb0efd25a7c24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Nov 15 10:49:41 2010 -0800 msm_fb: display: Fix command block power on/off sequence. Command block is not power off in all return paths that prevents mdp clocks to turn off when display is off. Change-Id: I4aecc8be8e25780a5e45d304dc2982df40433a4f CRs-fixed: 262107 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 667560bf45d30464fb82ccec0bce9a09653eec4c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 1 15:49:47 2010 -0700 msm_fb: display: add mipi panel and cmd mode support Add mipi dsi per panel control configuration along with mipi dsi command mode configuration. This patch also including supports of video mode suspend/resume. CRs-fixed: 259499 Change-Id: I6be8f8edb342874c1d90ce06df094157f320ffa1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 547f7aca18653ef13bf05da91c23c4a1b607fcfe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Nov 12 10:59:39 2010 -0800 msm_fb: display: add auto detection for dmas dmap switching Add auto-detection mechanism base on the mdp_hw_revision to enable/disable MDP switching between dmas and dmap. Change-Id: If9dbae23886c94ef52350614c1f27c568ff79ca4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5e8f857b0ececc25dbc5dbbc9967d2d80e40f90 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Nov 10 10:22:56 2010 -0800 msm_fb: Add support for AHB master and slave clocks. Enabling AHB bus master and slave clocks in driver to avoid glitching by dynamic clock gating hardware. Change-Id: I66facbc85374f30c28c4b93890fd29bb88559d88 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c7ab3f03de38180c7081b48fd29fce8caaef735c Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Nov 17 09:05:08 2010 -0800 msm_fb: Fix section mismatch of prism_probe prism_probe was being reference outside of an __init section. Fix this by placing prism_probe in the section which is the place for device initialization code. Change-Id: I4272e2bf283a8f2a59ecabf6287683b32f6601c1 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 249a736ee2ee7fd206cad6cf5a99a643ef78246f Author: Laura Abbott <lauraa@codeaurora.org> Date: Tue Nov 16 16:32:22 2010 -0800 msm_fb: Fix section mismatch of lcdc_panel_probe The lcdc_panel_probe function was being reference outside of an __init section. This fixes the problem by placing the function in the section. Change-Id: Iec1f60d98249802f9c9aff795b085bc0518c26ee Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit abf906b0506d2c38faf0deaafd3e1c26e9b52a99 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 18:31:52 2010 -0800 msm_fb: make HDCP enabled on all panels. Try to read DDC with different alignments for different panel for HDCP protocol communication. Change-Id: Icfb51764f42497375df4c58d0977105c8f6b757f CRs-Fixed: 261508 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7b0d8cbfa4f86a197bd88d99063df8fca1a23b32 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:02:39 2010 -0800 msm_fb: Fix section mismatch of hdmi_msm_probe The function hdmi_msm_probe was being reference outside of an __init section. Fixes the problem by placing hdmi_msm_probe in the section. Change-Id: I4dcfcbeaefde7e71ef9f18140dd64648b46891bd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 96c1a7422faeff26cbd70629ba1fbd838b988f50 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:53:23 2010 -0800 msm_fb: Fix section mismatch of samsung_probe The function samsung_probe was being reference outside of an __init section. Fixes the problem by placing samsung_probe in the section. Change-Id: I39de06c0692ddf963d2d11f069ff5dd0d8714d43 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 3f466d9a313a64af18e036d002d1738fc23c29fe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:47:19 2010 -0800 msm_fb: Fix section mismatch of mipi_toshiba_lcd_probe The function mipi_toshiba_lcd_probe was being reference outside of an __init section. Fixes the problem by placing mipi_toshiba_lcd_probe in the section. Change-Id: I9f0f2b1e0ed65edf9adbcf1dfb9a424aa379b7ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 596c4c2dafbb59ade4616387fe1531efaf738a4b Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:51:22 2010 -0700 msm_fb: Fix section mismatch of toshiba_probe The function toshiba_probe was being reference outside of an __init section. This fixes the problem by placing toshiba_probe in the section. Change-Id: I2d992ff67abf4f34ccb3c91f1b438df9fe7f0295 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 03b098b26bcb79921b55399dcf82a38e9770b560 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:53:50 2010 -0700 msm_fb: Fix section mismatch of sharp_probe The function sharp_probe was being reference outside of an __init section. This problem is fixed by placing sharp_probe in the section. Change-Id: I3d45fa65f34a91f9d28aaa812832a9e6d778a55f Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit f1fd48f9199f7695d7475a02e0ddfe489f49274e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:32:23 2010 -0700 msm_fb: Fix section mismatch of mddi_orise_probe The mddi_orise_probe function was being reference in a section outside of __init. This fixes the problem by calling platform_driver_probe instead of platform_driver_register since the driver is not hotplugable. Change-Id: Ic79081dea2775354dc9695747e91a6f96cbb6b23 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 23ad01dfe9d9bad23138e41c65ae7744235d2b90 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:38:24 2010 -0700 msm_fb: Fix mddi_quickvx_lcd_probe mismatch The mddi_quickvx_lcd_probe function was being reference outside of an __init section. This fixes the problem by marking the function as existing in the section, which is for device initialization code. Change-Id: I31dc111643915860a0ce9644c888240e611758db Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 5b1d692a8deae3fc06d1855bd84dfe18958d9e21 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:48:58 2010 -0700 msm_fb: Fix section mismatch of gordon_probe The function gordon_probe was being reference outside of an __init section. This is fixed by placing gordon_probe in the section. Change-Id: I11f58d7157a4bdf00fe0cc631fac9b24f6a12e49 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 8e8a8451d6b82a28b1606be1d54d60cd8df40500 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 19:13:27 2010 -0800 msm_fb: Bound checking variable "count" Put upper limit bound check on "count" variable to avoid acknowledging corrupted values from user space. CRs-Fixed: 262787 Change-Id: I31517a486803871be2e304747aabfc3d4f230c86 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit de90534498bde43541e7a8bf59ac640124b3e72c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 10:37:44 2010 -0800 msm_fb: display: add synchronous between DMA_P and DMA_S. Change the execution order from update --> wait for completion --> kickoff to wait for completion --> update --> kickoff to prevent un-necessary flicking. Also remove piggy-back kickoff mechanism to prevent frames from being dropped. Change-Id: I25cd4ced51d2f5cc72d9b83e938a93d92d6f5ed2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d2d3ec7c1cf9b0969d0b8f13955688063d1335c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Nov 11 10:19:05 2010 -0800 msm_fb: display: Kick off histogram when primary underflows When underflow occurs MDP clears all the histogram registers and driver need to kick off the histogram if it start before. Change-Id: Ib15e4084da5d9d170484e9e1b6d260d17035a864 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 82f8fe684610a3cfb65f3195912d3c0e870fcecb Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 18:41:43 2010 -0800 msm_fb: properly handles return value of sys_lseek handle error condition of negative return value of sys_lseek, to avoid allocting large chunk of memory through kmalloc. CRs-Fixed: 262768 Change-Id: Ide303f955de30c05fe56e9f528508b8bb6e027ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7ef97f597ece29145a252c95f3707961377d9d30 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 10 19:19:42 2010 -0800 msm_fb: display: Fix data size in MDDI host register reverse read Fix data size in memcpy in MDDI host register reverse read path Change-Id: Ia75bac5576898a510937cb0f6bc10304b7015314 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3e44b7399750352bd375a2d41a919fe4d737f437 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:18:24 2010 -0400 msm_fb: Allow panels to specify a second mode This allows for panels that support more than one mode to specify the maximum configuration. The framebuffer size is now based on the larger of the primary and alternate modes. The alternate mode is also used to check parameters when userspace is requesting a change to the framebuffer configuration. Change-Id: Icf644b0fb5e54fc95f45ea8c5ed97f6243cb886c Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 9a2a724813bada5684f6bf9eeef4ba1b13db315d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Nov 7 15:23:49 2010 -0800 msm_fb: display: Implement bus scaling for TV encoder Add usage of bus scale apis to scale bus bandwidth for TVOUT. Change-Id: Id0d9a147c3d24c94b1351656b6c8938c3db10706 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e9736b53a5642d93abb3631ea572d11f25c40b6f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Nov 6 23:29:55 2010 -0700 msm_fb: display: Implement bus scaling for dtv Request bus bandwidth for both SMI and EBI while using DTV/HDMI. This needs to be optimized once the bus scale api is integrated. Change-Id: I71162923ae8a11e7737c702b5f7b2078b995426e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 12b28ba64a3fce1b9c97432b0f54027c4436d3f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 16:34:23 2010 -0700 msm_fb: display: Implement mdp bus scaling Add the usage of bus scale apis to scale bus bandwidth based on the performance level to save power. Code assumes that FB is EBI and overlay is from SMI this need to be changed to find the correct buffer source whether EBI or SMI at runtime. Change-Id: I9936fef798379ce4698840f951dbf301430055dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2f6cc1402dc448174721be73c2d48a8f12a8e347 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Oct 22 19:04:46 2010 -0700 msm_fb: display: Add MDDI Type 1 Forward Link Skew calibration support Change-Id: I344403d67a9361b626eb67bd3c9e8ad5f21660e5 CRs-Fixed: 246784 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a179efda6e7588b3e3f56b8819c21b16647741f7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 1 10:18:10 2010 -0700 msm_fb: Fix hdmi driver for enabling/disabling HDCP Fix for enabling/disabling HDCP feature from kernel config. Change-Id: Icd7f76f263780212064833084d967ab10f001b70 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c1f05d2d08eec5e95b47088a6de5c6f560d6a7a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Oct 20 16:01:50 2010 -0700 msm_fb: Added support for premultiplied alpha. CRs-fixed: 258209 Change-Id: I891a81d76030b66e0133a689b695bb39af923b98 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 997d3c514075eb1246552aa313dd6964de36e6fa Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:43:27 2010 -0600 msm-fb: msm-hdmi: adding additional DDC request options Some panels succeed with 128bytes/page read for EDID, and some panels will fail. This will try 128/64/32/16 bytes per page in succession. Change-Id: Ibef7af8f6da57d2ecc12ed26ba5f2acb13fe4f1f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 8e230203d3a85e610bc4ec23993dcff8660474d2 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 16:45:47 2010 -0600 msm-fb: msm-hdmi: fix 3d info packet Use GENERIC0_LINE=1 for GEN_PKT_CTRL according to spec (bit 16). Add Top-and-Bottom mode as new 3D-mode. Use no Generic0-Line for none-3D mode, which fixes the VT issue. Change-Id: Ib1a6621bc4364fe3c56d3e26869894f52010c855 CRs-fixed: 261085 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3d480fcff95309472e8256829b5bde8f962565d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 25 17:56:55 2010 -0700 msm_fb: display: Handle Zero MDDI Reverse packet count error Change-Id: Ib4699b17524abff43cadda36856fa7995060b3b8 CRs-fixed: 260745 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 70b380c25316d37edc1da15cc3765b07dee175c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 26 15:50:22 2010 -0700 msm_fb: display: synchronize dma_s kick off with dma_p During switch back from dma_p to dma_s, check dma->busy flag and wait for dma_p's completion before kick off dma_s if dma->busy was set. CRs-fixed: 260626 Change-Id: Id22b65b410ddb3e5f9faca0b8423f0e74ee6ccbe Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aea07835e1659c9be68ff074b8f37654eb921799 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:45:46 2010 -0600 msm-fb: msm-hdmi: remove HDMI audio teardown from HPD event Leave HDMI audio running, so that audio-flinger can switch away from HDMI before tearing down the HDMI audio setup. Change-Id: I4090c8771143e50f9202e9e8c5902f5ce893c74a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 957bbadab433ec4a4f24830dcdd38bd30394eaf4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 11 12:09:21 2010 -0700 msm_fb: display: Add MDDI multiple data read/write support Change-Id: If34dcfb0ffca650f00d5cc897fc79ff42ad939bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 258225 commit 27c0c5d6471e1af1adaae6394717701f5f0949db Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:19:50 2010 -0700 msm_fb: display: Add new ioctls for histogram. Add MSMFB_HISTOGRAM_START and MSMFB_HISTOGRAM_STOP ioctls to reduce the blocking time for histogram generation from two frames update time to one frame update time.These two ioctls help to start the MDP histogram generation process for the next frame in the isr itself just after reading the histogram bins for the previous frame. Change-Id: I8adfe2314284703ea1f51a8bb76c586f553d065c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c6536fd7aa0b92270175f4bfc03a57428a75412f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 20 10:49:19 2010 -0600 msm_fb: msm_hdmi: HDCP support for 1.4 panel Ensure to retry HDCP when failing during phase I, II, or III. Change-Id: I60a1523a5ccca70cc660d5211f23f53e75827e0f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 164a5b01b3708c4c0e688ef93d628ef884a85aad Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 15 10:43:18 2010 -0600 msm_fb: msm_hdmi: handle EDID on different panel This HDMI sink does not allow to read the second EDID page in one shot, and does fail to read just 5 bytes. Changing to 32 bytes reads solves this issue. Change-Id: I36e65da1e5e67bf9b5a0bc00c0c8c1e8d67bae8f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit da8794fcb39dd8fb3a7daf994f693e1b06474047 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Oct 21 14:44:23 2010 -0700 msm_fb: Change Packet Memory map I2C default address Changed default I2C address for Packet Memory map to avoid address conflict with BMA150 accelerometer. CRs-fixed: 215783 Change-Id: I22f76f0b888cdb377bd91e00b54bd4ad8c46d4f2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c438f987bde833284286fb2e5434036c8def7c9f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 12:07:21 2010 -0600 msm_fb: msm_hdmi: add debugfs entries Adding debugfs API to debug HDMI registers. Change-Id: If0fd415c53cf49fcaa0d38387eeef33dc14fcbc7 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fffb24688cfd3560ecca5b8d162427c21467ecd1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 15:49:07 2010 -0700 msm_fb: display: Correct Initlogo filename Correct Initlogo filename accessed from display driver CRs-fixed: 257109 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I95e5ff1f473e3c0a73a7a693c1965ad6e7653ee5 commit 05ca25d7023b90920ca241058e5b3266846b833b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:46:50 2010 -0600 msm_fb: msm_hdmi: add HDCP status to AUTH_FAIL error log Add log entry detail for diagnostic of HDCP failures. Change-Id: I0f5520346952f85562e872795dde114247d5aae4 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 2c3fcdb2978ef1902717ab48c74214fa857346e8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:13:34 2010 -0700 msm_fb: display: enable runtime clock scaling for mdp_clk scale the mdp_clk based on various performance levels. increase mdp core clk to 192Mhz for lcdc/dtv when playing 720p video since 122Mhz is not sufficient. CRs-Fixed: 254222 Change-Id: I9454cfc324c74e99a2fe6d44dd58ae5d575b60cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 166854ea7e67749badf61ab7df82e833f7fbfc50 Author: Laura Abbott <lauraa@codeaurora.org> Date: Thu Oct 14 15:25:15 2010 -0700 msm: video: Fix section mismatch The function tvout_probe is referenced outside of the __init section. This fixes the problem by placing tvout_probe in the section. Change-Id: I14ae9a028f32d1b0de65c99d8eea740a929721e9 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit d4a6fbcb997b2800587eb5263c9dfc44d3843e66 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 14 19:10:13 2010 -0700 msm_fb: display: Fix screen split issue in suspend/resume Change-Id: Ic5ccffaa12e0e546750d65e604326a4a39281f51 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 253026 commit d5d9778a48d988002f87359973193749a924f3dc Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Oct 1 11:08:54 2010 -0700 msm_fb: display: change the pixel clk to 30720000 Changing the pixel clk back to 30720000 because the maximum pixel clk supported by panel is 30Mhz.Since making it higher clk is causing display corruption issue while playing some 720p video clips where mdp clk is not sufficient to push data even though mdp is running at maximum clk it supports. Change-Id: I7d68d8728fdc7c30c6ba9549eaffef748d1147df CRs-Fixed: 254222 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 414f630f8f60ede6a0d5982d7e41dd4fa9948a08 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Oct 18 14:42:09 2010 -0600 msm_fb: adv7520 hdmi: sysfs hdcp integration Use the external_common API to signal HDCP availability to the user-space. Change-Id: Ia5e8f51620ae29c84cf5dd8e16c81d3746b82228 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1ab44dda69fe0e7ee3995260ff06b0cdcc430746 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:27:47 2010 -0700 msm_fb: Fix section mismatch The mddi_sharp_probe function was being reference outside of an __init section. This fixes the mismatch by marking mddi_sharp_probe as __devinit, which is the section for device initialization code. Change-Id: I3c1103a956279e75db3bc9025186b260f901325d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 74213166390c1d70147bdf601892881ad8103c06 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Oct 15 22:47:09 2010 -0700 msm_fb: display: reset client_status_cnt to fix MDDI RTD Failure Reset client_status_cnt to 0 during system resume to make sure host does not send RTD cmd to mddi client before mddi client be powered up. CRs-fixed: 260405 Change-Id: I90194791521dd192ba1d7260ffcd2241c07b8221 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b57dd4b598f6e8a3f42d56927dc4ffc371bbc9e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:23:44 2010 -0700 msm_fb: Fix section mismatch The mddi_toshiba_lcd_probe was being referenced outside of a non __init section. Fix this by placing mddi_toshiba_lcd_probe in the section which exists for device intialization code. Change-Id: I1a43bc7fa61541b9be5e7aeed701071e2c756007 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 4611e9a0b0b7ce7f7f884ff28029500c5da281ec Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Sep 22 09:58:36 2010 -0400 msm_fb: Make lcdc use resolution from fb driver The lcdc overlay uses the fixed panel resolution. However, it should use the variable resolution passed to the fb driver in fb_var_screeninfo. Change-Id: I77818af8722be715b5281c00b5e6e752389e3dba Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 302e36a9907723d9b48d37297072b64ac078cd76 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 12 19:59:42 2010 -0700 msm_fb: display: Add dynamic MIPI panel detection support Change-Id: Ie1281a353c15c7d7575eb1b591d325382d61c303 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 75f34ead5e0489b5cae23339e0fe57dd7bb51ee4 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:43:51 2010 -0600 msm_fb: common_hdmi: add support for audio EDID packets Add parsing for Audio related EDID packets to the HDMI common package. Change-Id: I55ff5adba4382a30fb4a686cca63bdeabd21e77d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit c5c8c4cb8c7e9c7f0a48634f8b2965ccce2c4570 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Oct 13 15:40:54 2010 -0700 msm_fb: display: fix MDDI compiler error on 8660 Since msm8660 does not have MDDI, MDDI ISR handler need to be excluded for 8660 platform. Change-Id: I0bcc5e413e299cfdbf91fc5275388ba4e42ff1de Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e8aa64ba20b7939c4fa86aecec4101af9c248a04 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 23 10:02:42 2010 -0700 msm_fb: display: add panel info to mdp4_isr Since new panels such as dtv, atv, mipi video are added into system, They need to be handled diffferently at mdp4 isr. Change-Id: I25d720df12a0aaf0b3984683e283aebe7cd843b7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5c1074bff79decc6b1a52aa8db2cff198b288eaf Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 17 18:59:52 2010 -0700 msm_fb: Enable/disable MDP core power rail as needed On newer SoC like 8x60, power to the MDP hardware must be turned off and on explicity. Introduce use of 'regulator' APIs to turn on and off power with the clocks. Calls are introduced to both the MDP and LCD drivers so that MDP is now powered off unless both MDP and LCDC are idle. Previous SoC that automatically turned power on and off as part of clk_enable() and clk_disable() calls are still supported. The MDP and LCDC drivers now assume that if the calls to regulator_get() are unsuccessful, then the rail will be controlled automatically. Change-Id: Ica87d8ca439130cdd6d2df04801de76a888fbdc9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 63c1090c30f76a955d4a894f619a30c309101d61 Author: Michael Burr <mburr@codeaurora.org> Date: Mon Oct 11 10:14:50 2010 -0700 msm_fb: display: Fix framebuffer format used for MIPI devices Select the MSMFB_DEFAULT_TYPE framebuffer format instead of the 16bpp MDP_RGB_565 format. CRs-Fixed: 259512 Change-Id: I13ad0f3920baf286d9be994378c4e0538dbdbe9d Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 179e0ae68264329d3887d4d076623afd84e73171 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Oct 7 16:09:07 2010 -0700 msm_fb: display: re-program qseed table At msm8660 FFA, the qseed table corrupted during suspend. Therefore display garbled at both camera/camcorder preview and video playback after resumed. Re-program qseed table to fix this problem. This is temporary work around solution. Change-Id: I8d716f706f4926855ed008f5012bc2f5853161f3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3424827245f23f9423ac7671ecb40d9b6c5ce0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 13:35:29 2010 -0700 msm_fb: display: base on is_fg flag to apply alpha effects Change-Id: Ifdf7d9f247a3619c2d710367e63ca368c1762ba8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 82506520a0631fbc25bee646f410f8ca920d89ab Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 22:21:17 2010 -0700 msm: video: Fix warning in switch_3d The entry for switch_3d does not return a value, and no result is expected when called. Change the type and function to void to avoid a compiler warning. Change-Id: Ice08a08735a6d058e09a079cbe63fdc9681d66f5 Signed-off-by: David Brown <davidb@codeaurora.org> commit 80726b692d586d1d7d10d75db1966128f468f27a Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 14:56:56 2010 -0700 msm_fb: Warning fixes Eliminite some unused variables. Change-Id: Ia8d6d1edb99eb67bf60cc183a87482d5871a129a Signed-off-by: David Brown <davidb@codeaurora.org> commit a0f19d22dd7698cfd851c1ce75259c277d7b03bb Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Oct 7 11:23:19 2010 -0600 msm: video: fix for sending tv-out cable detect event Fix to send cable detect event only when connection state changes. Change-Id: If14f32b72f22f30dcb6ad869c5be69817ebc0996 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e91fcab88f81f3e8304f2040a684658816436018 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 15:32:27 2010 -0700 msm_fb: display: cursor update align with dma completion To avoid under run during cursor update, it is necessary to synchronous cursor update with dma completion. Change-Id: Ib2e6e18c88adacfe1b5235d42affa69ead5a3a11 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 07240c18f405c0a9a7c071635b5507072a2d2566 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 5 10:22:45 2010 -0600 msm_fb: msm_hdmi: change EXT_INTERFACE prefix to HDMI allow DEV_DBG to use a more specific prefix. Change-Id: I00b484f8f7f218ff6cfa1c6b17d4f6454da32519 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe019f3c4070a1945b8ba4d44943576ced22cc33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 5 08:22:49 2010 -0700 msm_fb: display: fix MDDI_LD_PARAM_SEL for DMA_P During DAM_P and DMA_S dynamic switch, the DMA_P's MDDI_LD_PARAM_SEL was over written by DMA_S. CRs-fixed: 256428 Change-Id: I79f96e8c3e5e61e0fc328fd7f83c2c6e60b50869 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aeb5596d9be836ab19e75d4db4ada457b26ec64c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 4 14:33:03 2010 -0700 msm_fb: display fix compiler warning message Change-Id: Ibf3609b882a99b9cbac33f6557bc633a6931a59a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e662af7106510eddc6f6144df0afd54704fff1c2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 1 17:32:16 2010 -0700 msm_fb: display: Add QuickLogic MDDI panel driver Change-Id: I2829ea3c91cbb658544a46fc1de5343a9883637b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9f1dcfb0004a4ebfbe6a4241895b40650a03a5b0 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Fri Oct 1 10:00:17 2010 -0600 msm: video: support for tv-out on 8660 Added support for tv-out on 8660. Cable detect is interrupt driven on 8660 & polling driven on 7630. Change-Id: Icdc6e8ae512ddcb91b766fdff2583e8157bc868c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 07cefc8f36b8d8f1827358e6000e8691697586f4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Sep 21 18:56:33 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: I0603f3a351a92b576a78370d3f974926e0441920 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2af9f6215c3ff34eb01d1c1032cbb026c2ae6dfa Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Sep 30 11:19:14 2010 -0700 msm_fb: display: Add error check for source and dest rectangles return error if source and destination rectangle parameters set by the client are invalid. Change-Id: I8c93e84005655a62b8f4f441cc6055d3d1af46d0 CRs-Fixed: 254320 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 870cbe2b5127a8cf5615249cc2c9aeff95283ded Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 30 16:21:36 2010 -0700 msm_fb: display: Enable H/W Vsync in DMA_P for MDDI type 2 panel Enable H/W Vsync in DMA_P for MDDI type 2 panel to avoid tearing issue Change-Id: Ifd0ad38f9c98b430c2c3c3fd01df8343684f5394 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255990 commit a38e51d5349c52705dd3baab850c1ba65988bee7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 28 13:15:16 2010 -0700 msm_fb: display: check power status before restore screen Always check current power status before restore last screen. CRs-fixed: 256126 Change-Id: If5b46683b7c112b32955bd0475a4cbe898f3ea9c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit de437f1260ebca32dadcf01fd15e8a8ea7b6085c Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 1 10:52:08 2010 -0600 msm_fb: hdmi_msm: fix CONFIG_SUSPEND undefined case Since 'pm_suspended' is not defined when CONFIG_SUSPEND is not defined, the guards have to be conditional as well. Change-Id: I6c8fe29999e8c18ee2d247ca87b0162e8dd8c18b Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4ae1f467dc6576fa4dfe0f60b14f047b78c0a275 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Oct 1 19:43:04 2010 -0700 msm_fb: display: Fix MIPI DCS Short Write, 1 Param packets The parameter byte of DTYPE_DCS_WRITE1 packets was being written into the wrong byte of the packet header. Change-Id: I6bf00d6cc287f8b6f88a9c332bf94db5f119bc89 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit aabef1e74db50ce5342171daf0119c2cee77ddb8 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 28 16:01:42 2010 -0600 msm_fb: msm_hdmi: support 3D Side-by-side mode Adding support to send 3D mode over HDMI. To turn 3D on write 1 into /sys/class/graphics/fbx/format_3d. This can be done during actual playback, switching in real-time. Change-Id: If933332b84ecbbe6b75fd896b3acf804216a6abf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe5ce8d4bbcd99721b6e914a863b85cbe1f888c1 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Sep 29 19:37:14 2010 -0700 msm_fb:display: kickoff DMA when there is no update for video When video overlay is used DMA is kicked off only when there is a video update. This prevents the UI bar update if the video is smaller than audio. CRs-Fixed: 255766 Change-Id: I19c54ee051ddeca3e89a183f878b5c2bb2f60461 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 61802d15a50c90f7ba01d308503f4d67c520914b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 29 14:22:32 2010 -0600 msm_fb: msm_hdmi: protect worker/isr from NULL pointer When probe fails HDMI_BASE can be NULL. Change-Id: I90d185e338df4fee9f37a62c1005c3b83f2619d5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 9391f66a1674cb0de65a91275bb355772c68c8fc Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Wed Sep 29 15:53:04 2010 -0600 msm: video: support for switching TV encoder mode using ioctl Use reserved[3] field of struct fb_var_screeninfo to switch mode. Change-Id: I5f027612410f26e1e9d440235c4d1924b490fd9c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit d7801961dc00f7c57f948296307610c35f541a75 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 27 15:38:01 2010 -0600 msm_fb: adv7520: fix audio mute after HDCP error Use Av-mute during HDCP negotiations, but turn off Av-mute after HDCP success or error. Change-Id: I82ef4e67e45c38f38f1fdd28b19028ab63a0d092 CRs-Fixed: 257430, 257702 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 770f7448a6ae89d0e20aa1f5724dc7283c3cc69c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Sep 18 16:42:20 2010 -0700 msm_fb: display: remove early suspend/resume from mipi This patch contains: 1) remove early suspend/resume from mipi 2) add pm_qos to mipi 3) register MDP4_PANEL_DSI_VIDEO Change-Id: I563fbae57dca0042355637e3f0da2fd3fbbd3b6d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 39e957faae7f1d0d0fbd3dec411f751a72fad64d Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 24 14:46:24 2010 -0600 msm_fb: msm_hdmi: guard against double suspend calls Suspend / Resume can only be handled once, and independent entry points are now guarded against failing while in suspend. Change-Id: Ie964db014354f4b649e153ac2d6077d17f18db85 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0a70e5f17ca65e8449a53585c89959e375e5bc69 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 21 11:25:30 2010 -0700 msm_fb: display: upscaling ratio to include 8 MDP4 support scaling range from 1/4 to 8 included. CRs_fixed: 255497 Change-Id: Ib3f846a71f126c7c36a72059e463027898bad7f5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aa117d04153ab8eda2a53bc60f1ed80a8caaa777 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 17 09:59:24 2010 -0700 msm_fb: display: add MDDI compiler option Add MDDI compiler option to prevent compiler error for 8660 platform since 8660 does not have MDDI interface. Change-Id: I6ecd990906667dd38fc6d50b94c1c0a00b9ba726 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a23179efe8a5b7f99c67eb046cec4f99601ab5a0 Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Fri Sep 24 01:40:40 2010 -0400 msm: mdp: enable framebuffer caching on 8660v1 for chromeos Enables FB caching on 8660v1 for chromeos. Xserver decides the caching policy. Change-Id: Id97a47c511270312614264b353b60c98f9cf96ac Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 45ec8d7a220095ef6e0ca6bf3240288a979a1d33 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 23:54:35 2010 -0600 msm_fb: msm_hdmi: completely reinitialize core after HPD Turn HDMI Engine off, init PHY, init video, init audio, turn HDMI Engine on, init HDCP (if available) after each HPD online event, and after a panel-on event while connected. Change-Id: I4f12d91885a6195c6fee1d09458183d615ac10ad Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3a154cdb742e479b0939107297465ec45c92318f Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 21 10:10:56 2010 -0600 msm_fb: msm_hdmi: move audio init to panel on Since the panel resolution may change, the audio needs to be initialized once the panel resolution is set. Also handle the case when panel is on but cable is disconnected. Change-Id: I857de36c4d42f9e2df14205cf498f02a049c3357 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 92df7eef80e028adfeb30445c6cbf66b1fbe830e Author: Neil Leeder <nleeder@codeaurora.org> Date: Tue Sep 21 17:54:34 2010 -0400 msm_fb: add qrdc lcd panel support Change-Id: Id8f57b99300075d4b4a0f7a53b222c8f9614b2ef Signed-off-by: Neil Leeder <nleeder@codeaurora.org> commit 33b773e2dbf0a973c0bfa187123271388b44be9a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 15 16:37:50 2010 -0700 msm_fb: display: perform down scaling check base on mdp revision MDP4 of Halcyon V1 has down scaling limition. The limition had been fixed at V2 and V2.1. Change-Id: I62ca1e62178fc1b69ce80aaa38d1e65cf242ba7f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 65dd5e92304aa362582c72def459c04141a171c9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 18:36:21 2010 -0700 msm_fb: display: Add common Debugfs support for all MDP versions Change-Id: Ifd57e1d9072444678d5d325ebaee1aecbb788a43 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 569245db188004bf6f76fc2fc25de7fc9b833840 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Sep 14 17:29:57 2010 -0400 msm_fb: Add toggle for VGA on 8x60 FFA Add sysfs entry to allow for toggling the external VGA out on/off on 8x60 FFA. Change-Id: Idb42de126daf0c4a8def9f85e80d55a586130591 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 34a939d02afa388b911070b3b872f6f12cfabbc2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 13:08:24 2010 -0600 msm: video: cable detect feature for tv-out Cable detect feature for tv-out. Interrupt-driven when external display is on. Polling-driven when external display is off. Change-Id: I41e9005c61d65657b9db54531306bd664d839cde Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 3f5bd44db5ebf8d27fefb386e81dc00bc0b2c20d Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Sep 15 17:30:12 2010 -0700 msm: Use VG pipe for all the userspace requests RGB pipe might be allocated when userspace requests comes. Use RGB pipe only for kernel requests. Change-Id: Ibb5dbd8f57f1d5bd656b719ddaac9b5d973df8eb Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 46e08cd2287d3f56715d6e6ca8f7e3d166fd0eaa Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 10:27:45 2010 -0600 msm_fb: msm_hdmi: Use mutex for synchronization The ISR and worker function (queued by the timer) both access the state variable. Rather than disabling the irq from the worker function which may not guarantee exclusive access to the state, use a mutex. Change-Id: If6aded298f6f40bbe374b4436fb43117c2501b8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0181e48defeac5f43304f78e32f3e08e4fb42e9b Author: Urs Muff <umuff@codeaurora.org> Date: Sun Sep 19 00:38:34 2010 -0600 msm_fb: msm_hdmi: turn on HPD on probe HPD needs to be armed outside of panel-power so that proper HPD events can be sent to the user-side Change-Id: I50c4c23617c9ae8905678250276169d0b688a90a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 515a37dfae03a50b16cc72c0a58952075e9e6f4a Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 12:52:02 2010 -0600 msm_fb: msm_hdmi: use regulators on demand Turn off regulators during suspend, and use board API to turn 5V HDMI and HDMI Core VDD on/off. Change-Id: I9c8736f81d212d80ad76440b5fd7bebf781f8bc5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 15556a05cdf0bee96e55df4e09415c02c364beb6 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Fri Sep 3 16:28:59 2010 -0700 msm_fb: Round lcdc rate all the time We need to round the rate before calling clk_set_rate() on 7x30 since local clock control clocks expect an exact rate when called with clk_set_rate(). Round the rate all the time to make sure we never fail to set the rate appropriately. Change-Id: I4aeaa70df728a614fe54ec7fb06bdf974ffafdc6 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit e3530ce520cb0622d58a0f9f8958199f16f80cd5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:36:58 2010 -0700 msm_fb: HDCP feature support on 7x30 Read EDID,set HDCP start bit,set internal keys bit, wait for BKSV interrupts,read BKSV keys against revocation list,shut down A/V transmission on HDMI interface on getting HDCP controller error interrupt. Change-Id: I5cf518598f2ccde8327757e5da39f5b8de46b765 CRs-Fixed: 254800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 8ed64a02c290b0cfa5071a31a4073fd2e5516309 Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 17 12:12:49 2010 -0600 msm_fb: hdmi: fix sysfs entry creation sysfs entries are attached to the fbx returned Change-Id: Iada960f1688564185b9de42ec7b9213018b8ec0a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 207a747004c6ead4c7fe7b9d3dca789744eabf19 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Sep 16 13:01:33 2010 -0600 msm: video: featurize external interface code for hdmi and tv-out Featurized HDMI specific code to use appropriate methods and sysfs attributes. Change-Id: I9b67ec23a6c3debfc6e65e9776d05e059c3e3cd2 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 36b51586aa3958f1f70687f0dc4315e86ee00e86 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 16 11:10:19 2010 -0700 msm_fb: display: Disable MDP DMA dithering Disable MDP DMA dithering to avoid double dither effect after PPP dither Change-Id: Ib218e6670deb2b9c0cc9cc18371495f75e66dbeb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cb25ff4fb1b15a0b2cc036fab46588213936acde Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:56:53 2010 -0700 msm_fb: display: turn mdp clock on/off during histogram Change-Id: I83b602ec4a01fde0b5531df7fa4b1f66295d69b8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b8ff10a55a733c83f9f9ab4eb4f308bd75c16be Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 15 11:17:59 2010 -0700 msm_fb: display: Don't flush img buffers unless it is cached There is now a bit in mdp_blit_req.flags to indicate if the input image buffer is not cached, in which case there's no reason to flush it for DMA. The upper framework (eg. SurfaceFlinger) should set this flag accordingly to avoid unnecessary cache flushes. Also removed the destination cache flush since the composition engine doesn't read back the framebuffer directly. Change-Id: I1916c6a51c335eb0bdc0c765319b603deca82f92 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 80225245ec846957a19d3c5cf97ef8e67ed0b0b8 Author: Michael Burr <mburr@codeaurora.org> Date: Thu Sep 2 16:55:27 2010 -0700 msm_fb: display: Add early_suspend element for mipi dsi Add a struct early_suspend element for MIPI DSI's use in the msm_fb_data_type struct for when HAS_EARLYSUSPEND is configured. Change-Id: I39357a9ef992881201a8a9f735b91dc6674de4aa Signed-off-by: Michael Burr <mburr@codeaurora.org> commit e0d8a781a00c43726baa32864925fa04f373e534 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 21:57:35 2010 -0600 msm: video: rename hdmi common code for reuse with tv-out Rename hdmi common as external common so that it could be reused with TV out Change-Id: I110fb77df6db097f9f60d1845b692fda5b9a1b42 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit b7c94c54bd67f784d5f109de6a6700fae40d2810 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:38:32 2010 -0700 msm_fb: display: Correct pixel clock frequency for LCDC Prism Pixel clock is set to correct value to achieve 60 FPS Change-Id: Ibcdbc6780a4fed6a81020edcc43cf6a6a605a43c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 251463 commit 4c5175576868064d48651819d0bbdc473b7ab49b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jul 31 11:40:02 2010 -0700 msm_fb: display: Add MDP4 BLT mode support Add BLT mode support to have overlay output to an intermedium buffer before dma to display panel. Change-Id: I14c6fd383d8d498e56620389c6a5a69768b5bffd Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c55ad5731465eb43c781b6d880e9bfe791ec4041 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:06:29 2010 -0700 msm_fb: display: fix op_mode over written bug Fix op_mode of overlay over written bug which cause some settings never executed. Add deinterlace enable bit of op_mode. Also correct DMA_E fetch configure address. CRs-fixed: 252617, 252845 Change-Id: I65ea5a2e718e7d34b7400394a20dbcd7d4891533 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8cbfe60ddfb5306f13267f1fecb866c04f0c6df Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 8 11:25:32 2010 -0700 msm_fb: display: Implement Forward Link Skew Calibration Packet Change-Id: I59d6e2f9cdc44cc702fd244356959931c30e616d CRs-Fixed: 246784 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit f5eeb754e03385d1b3e89b055626effca2bb1eee Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 11:42:51 2010 -0600 msm: video: Set clock rate in TV encoder driver Set clock rate of tv_src_clk to 27MHz and correct clock dependencies. Change-Id: Id7ffdc2de039f1ccc68f464e184409774e1dbb15 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit a0cede5868c6da21bdbb15ffc29e8bd734fbe18e Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: hdmi: power control entry points create required entry points to control the different use cases for the HDMI driver, so that the power footprint can be optimized. Change-Id: Ied0551077a33c63f1f6e250a12259fbcd30aff38 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 38dbe553fc35d1d3c0d1c2c2b5749101ea139768 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: adding sysfs entries in probe moving up sysfs entry creation from panel power-on to probe, so that user-space daemon can read the cable state before panel power is first turned on, and so that the driver can send uevents during initial panel power off phase. Change-Id: I43388c37dfbf048bd0c14130b807446cb6eaacdf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4d8d83fb198a309f1c99494d5863d68c673e1b1a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 16:47:48 2010 -0700 msm_fb: display: Enable EMDH PCLK Change-Id: I2a674dfec9c140e49250cb644126812d069fbb4c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255313 commit 74a75835cef8cde911a560fb5aff13756e30d7d9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:15:10 2010 -0700 msm_fb: display: Enable BG Tile fetching HW workaround only for MDP2.2 Change-Id: I483fe5182302293d0f967b99ce49de2109247858 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 249932 commit 4661621e735ac029293c6872bd7d342a351247cc Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:29:59 2010 -0700 msm_fb : Set proper FPGA setting for 8x55 platform Enable proper FPGA Settings for HDMI interface on 8x55 SURF platform too. Change-Id: I5da9539c008f05c32a9f7cea6b6af56d2305570c CRs-Fixed: 254427,250608 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 95079ae135cecb86a88e620f92de766c89ec0006 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 13 09:08:48 2010 -0700 msm_fb: display: add pm_qos to MDDI Use PM_QOS to request basic axi bus bandwidth for MDDI. Change-Id: I858706d224c7037d036e8c2e96649da4c9540bc4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Wed Sep 8 18:01:18 2010 -0700 Initial contribution. This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.35. Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit cd238df6940e8f3515c43e34e00ff825a4a8f9c7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:17:24 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: Ia11784f64216e58564b65da4935fca8f26ff5d2b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0bb93216c642f90e9be8904150943342b16f5b43 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 13:57:03 2010 -0700 driver: runtime pm annotation for drivers/video/msm/mdp4_dtv.c Change-Id: I1bacecbdec9e62dca1be99ab4fb8a593562d2cba Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 6c2231402b3d7a671939e8910589bc2b895e1a25 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 21:49:22 2010 -0600 msm_fb: fix dynamic resolution switching for 7x30 27.03MHz is not yet supported on 7x30, so we need to force using 27MHz instead, if clk_set_rate for 27.03MHz fails. Change-Id: I874d242b42e3e3b85d3370e1e277dea8db9e1d4d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1266c58750bd52a48be70514dd150975e1684180 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Aug 27 16:07:57 2010 -0700 msm_fb: display: select MXO or PXO for DSI PLL clk-ref dynamically A future hardware design will not have a 27MHz MXO crystal, but will have a 27MHz PXO crystal. Detect when PXO should be used instead of MXO and set the DSI PLL clk-ref appropriately. Change-Id: I4ae91435aad99ac34fdfb7540b49b901cea96fc4 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 625cb21cd30bafc1e7ac7dd0e45c5cfd244060d6 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Tue Aug 31 11:34:54 2010 +0530 Revert "mdp: Add support for MDP composition for QSD8650A target." This reverts commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2. Change-Id: Ia9e7d03d405cd9ec62dffa620081e52d4607c3b2 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 6aea65b1cabafdf0c37b4c3d1cb3e8f309117d3a Author: Philip Elcan <pelcan@codeaurora.org> Date: Mon Aug 30 15:00:09 2010 -0400 msm_fb: Add sysfs entry for panel type Add an entry in /sys/class/graphics/fbX so a userspace app can know what type of panel is behind the framebuffer device. For example, X will know if it is an HDMI panel and do any extra steps required for setup. Change-Id: I951041a0613502be1fbfaca3d7ed8b5a10fec3d8 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 444aa5a8324427cc42f7d757ad8eef42b22838c2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 11:37:40 2010 -0600 msm: video: sysfs support for TV out driver and replace old files TV out driver with sysfs support for switching video modes. Merged files for better management of sysfs attributes for TV out Change-Id: I3f71e8f92a3e420762190824265ad4209bd3f42d Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit f91289987a77d8d86199feb34c802dd86c7ce922 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Aug 26 07:47:17 2010 -0700 msm_fb: Add feature support for HDCP protocol. HDCP is designed to protect the transmission of Audiovisual Content between an HDCP Transmitter and an HDCP Receiver.Enable support for HDCP encryption in ADV7520 HDMI chip. Change-Id: I9704f64b9b0df169a0370ff8c5a6e96d8b4ac4b4 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0ef61e3116045dfd3af2d44598b90aa527551a58 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 22:55:16 2010 -0600 msm_fb: add kernel logs for ioctl failures fbtest was causing unidentified ioctl failures; this is helping identifying the cause for those failures Change-Id: Ic3980b2ee27b423f2936a468ef66f725a89fe8df Signed-off-by: Urs Muff <umuff@codeaurora.org> commit dec207bf6bd3c32c1965b07bd53ab7143c058741 Author: Mansi Patel <mansip@codeaurora.org> Date: Thu Jul 22 13:22:44 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HDCP Adding HDCP support Change-Id: I6f6f9a6cd3f3b0ed62973095a5abb91c9fb69583 Signed-off-by: Mansi Patel <mansip@codeaurora.org> commit 815a8e7bf3d8a1064ca2168a29bf98defb604ec2 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 25 02:31:22 2010 -0600 msm_fb: use hdmi common for sysfs entry creation Use the common HDMI functionality for the sysfs API. Change-Id: If42a4408469d262b72884b29fc69da42b8799c8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d7762c1f8c9dce3f410b0db65e78d459549b15cf Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 24 22:16:02 2010 -0600 msm_fb: using hdmi_common to parse EDID make use of common HDMI code to parse the EDID data Change-Id: I312942975067ae1bbfb10958d84e0f1ac2234142 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit e28154c9723ee7d232e7a9aab42a4d24b3390c3d Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 10:01:42 2010 -0600 msm: video: HDMI common code Move common HDMI code into hdmi_common.c so that it can be reused by 7x30 and other HDMI drivers. Change-Id: I41ecc78f9e68e8f80b3ce8da41eb27244e5b101d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4796e2b9f8c47659dca75d3eecd9e4068c5c5403 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 26 10:49:03 2010 -0700 Revert "msm_fb: display: fix mixer stage range out of bound bug" This reverts commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c. Change-Id: Ifc0a3be36b6b1e5c6db4e9c3b7c20671dbe95f71 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f876295641716521afe4b95d35465cde68ddeed Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:40:00 2010 -0700 msm_fb: display: Do not power on DTV at probe which will result in having no power on I2C for 7x30 until panel power on is call. Change-Id: Ifd50d9065432ad3a58764798405d04bdd9128700 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Thu Aug 26 20:08:37 2010 +0530 mdp: Add support for MDP composition for QSD8650A target. CRs-Fixed: 251979 Change-Id: Iba8281ea47b37a024bdd6239835909a90cb2a203 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 01ab957732bb79793d2ec4e7d0da02638a6dc6f9 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 15:07:39 2010 -0600 msm: video: TV encoder kernel driver: Clock fixes Proper error checks while enabling/disabling TV encoder clocks Change-Id: I13d9bec38968bf619f9b6258e4037faa3bb2df1a Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 0d41b4f23142deca25cb6d56a75944ab27ada063 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 14:34:05 2010 -0600 msm: video: ATV support for dynamic mode switching Turn tv encoder on before configuring overlay pipe to get correct resolution for the mode. Change-Id: I77f96633ce91df4658500e2cb7e7679ad0dbdeda Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e519e09063f60200d1397263c02845c639267972 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Aug 6 09:39:22 2010 -0700 msm_fb: display: reduce the delay during power off Do not have to wait for 100ms during power off 16ms is sufficient on 60Hz display. Change-Id: I06fe266de7f3848d2ad43f5837f95dd99c660329 CRs-fixed: 231755 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 6a2e3fc2cc64ae4e1b8ad30614271bd0f4e840bf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 7 15:09:53 2010 -0700 msm_fb: display: Add mipi dsi display panel support Add mipi dsi both video and command mode display support by adding mipi dsi host, mipi dsi client and display panel drivers. Change-Id: I67d6d6881993c021706f07d96b02902c9393f7d9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 730c676384f227032873f5066d78929d3baffdf5 Author: Urs Muff <umuff@codeaurora.org> Date: Sat Jul 24 01:45:52 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HPD Adding HPD and EDID support Supporting dynamic mode switching Change-Id: I95b7488ceffab919f76300f358ca6cdd15820b4a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519f339af23717cf871a12bf2458dba8c07647c9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 13:49:08 2010 -0700 msm_fb: HDMI should be powered ON by user space on HDP detection HDMI/DTV clocks should be enable only when HDMI cable event is detected, to save power. Also resolves the bootup issue with HDMI cable connected. CRs-fixed: 248533,249902 Change-Id: I13d8b2bcb1f17f2d6982636f749fef1e6b26e800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 150e5e7964e7fe4b8e77fe79c6770f6bcf28f239 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Aug 14 14:36:13 2010 -0700 msm_fb: display: reset vsync_handler_pending flag during suspend At both mddi_toshiba_lcd_off/mddi_sharp_lcd_off function call mddi_toshiba_vsync_handler/mddi_sharp_vsync_handler to set vsync_handler_pendign flag to false to avoid suspend process stuck at busy loop and never get out of it at msm_fb_suspend_sub(). This problem prevent resume process from happenning so display stay blank. This also contributes to "MDDI RTD failuer" problem since MDDI was power off and MDDI link is shut donw between MDDI host and client. CRs-fixed: 248624, 244906 Change-Id: I7ab0dc6420d80cda19ad43a4dd2ddbe7318bd698 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a469172a1c5884996d7d4cb66ebf6a8d0dda8d18 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 16:56:10 2010 -0700 msm_fb: Put last frame as black on suspend Put black frame as last frame on suspend on both HDMI panel and primary panel. Change-Id: I1620292c0abe0c81df1acfeffec54a5824175446 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 5455b12c4d410da95dd8a90f9934d494c122bd2c Author: Gopikrishnaiah Anandan <gopikr@codeaurora.org> Date: Mon Aug 9 18:52:09 2010 -0700 msm: vidc: Move 720p video driver into msm folder. Moved the 720p driver files from drivers/misc/vidc to drivers/video/msm/vidc Change-Id: I27cfd2e9258a95e9190ce0fec37fad2265fba8eb Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org> commit 9a72e92e095d14fffc8a31c3b9b1a7747057e253 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 17:10:14 2010 -0700 video: runtime pm annotation for drivers/video/msm/tvenc.c Change-Id: Ic9f6d859fdfc24d08ac27bc2d99898aba4e4bbcd Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 003b979f5e1e519a35b5697d1bf4bd423c4f6582 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:33:55 2010 -0700 video: runtime_pm annotation for drivers/video/msm/mdp.c Change-Id: Ic1531c6d31739a7d81de205692506f272888602d Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 93aba6dccc134cc2b14a0c3c8f18f0f0bc800902 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:20:12 2010 -0700 video: pm_runtime annotation for drivers/video/msm/ebi2_lcd.c Change-Id: I730e13dae48e04a5cc9b11586bd4526378b41e84 Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 17 09:55:18 2010 -0700 msm_fb: display: fix mixer stage range out of bound bug CRs-fixed: 251191 Change-Id: Ied2d51729e78dad6519d00e66e0cbf0d46920599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14d3db274a3eacea5878dd31e7e10927020d230f Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Tue Aug 3 17:40:00 2010 -0700 msm_fb: annotating msm_fb for runtime PM Change-Id: Id1b7ed4f8373b4431e33c8854d71658ebaab68fe Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 5fc970fd24f1d90a2fa371bf7eaf5780c3e310e9 Author: Gregory Bean <gbean@codeaurora.org> Date: Wed Aug 11 15:35:35 2010 -0700 msm: change GPIO_CFG enums to reflect .35 naming. Change the GPIO_CFG enumeration prefix from GPIO_ to GPIO_CFG_ in anticipation of the backport of the msmgpio driver from Google's 2.6.35-wip branch, where the symbols have had their names changed. Change-Id: Ie818d28f86f4c6c92aa052ddb9f594b81f067df0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit d2ebe7626ebab06648f9697515179e11e2c404c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 3 15:20:34 2010 -0700 msm_fb: display: remove DMA_PACK_TIGHT from mdp3.0 and above Change-Id: I853620cca00408b7e8da268e5066bc1393063b3d CRs-fixed: 245392 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2053340fb119a09a105ea110b37d9ae4b5fb08a6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 15 13:03:12 2010 -0700 msm_fb: display: create barrier when writing qseed tables workaround the 1K Boundary AXI Interleave operations from Scorpion that can potentially corrupt the QSEED table. Change-Id: Ia61076cbdb99b95aeb12a9ce4af7fcc12bc9d761 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 51edd49793e8567604efcc7d26376634af27288d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jul 14 10:08:04 2010 -0700 msm_fb: No Suspend/Resume function for DTV interface DTV interface connected device should not go into suspend/resume state for power savings to acheive continous audio playback functionality. CR's fixed: 244994 Change-Id: I69b46e5dc6c96a7138ff57ddaa545d5ba73e00c2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9d6106c7fa05809d972b95dc1834159aec0afeb4 Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 13:54:33 2010 -0700 mddi: annotating mddi for runtime PM Change-Id: I154695f4f9718464830e67e051b9e30f40dc0206 Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 42e1283c5f7d5928097e1d1b349ee8876d322c3d Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 14:06:08 2010 -0700 mddi_ext: annotating mddi_ext for runtime PM Change-Id: I5d53a2bb76e6ad535b55f60320593c7316c23dea Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 2768c4933148c64f318b7411ca3fd95bfc97ae9c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Aug 3 17:06:44 2010 -0700 msm_fb: display: correct pixel clock frequency pixel clk is set to correct value to get 60 fps Change-Id: I77fa24d148be1e1cb8f6b4874ebdd822a766b588 CRs-fixed: 248848 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c5cdaaa58e7b1bd6da45f4ab14caf749a9dc21cf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 30 16:04:45 2010 -0700 msm_fb: display: make TV_OUT is not set by default Make TV_OUT configure is not set at default configure setting to avoid confliction with DTV. Change-Id: I95b51f38ea9fcb3178639a161822880fe370059f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e29c212a71773a732f019b3d73b3c7a8d39dd4ce Author: Michael Burr <mburr@codeaurora.org> Date: Wed Jul 28 11:18:53 2010 -0700 msm_fb: display: cleaned up mdp_blit() to be MDP3.02 clean For MDP30 the tile processing is different and thus we do a different check. Also, 7x27 does NOT have MN scaling and overhang issues in the height so no height splits are required. ONLY split in the width for MDP30. CRs-fixed: 247272 Change-Id: I7bdc7832914eaa80d668fd00851272f162a0e0e9 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 1a9a814f18cdee2ff2b07b18222d5b6f6a0438ef Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver. Setup PHY and TX Core, and adding FB_MSM device. Handle Power on/off events by the controlling panel. HDMI Audio support (2 channel, 48kHz) HDMI SWI debug support (enabled by default until feature complete) MDP-DTV debug support (needs to be enabled) Change-Id: I74cdfe1489f8a981efa7b415f6f7ee0507643fe1 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 86b810f046b0d76146d46ae720dbbdc18fee4d5c Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 15:16:38 2010 -0700 msm_fb: MDP4 Analog TV support Add an RGB pipe as base layer to blend with a VG pipe to carry Analog TV YUV format and put it to tv encoder through dma_e dma engine. CRs-fixed: 241816 Change-Id: I847a7eeafe6f4b1b9977e144374eb3c1a6a2498a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e67ca29a62cac202adbf092efc28e76357d65a69 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jul 26 19:03:27 2010 -0700 msm_fb: Write proper FPGA value to avoid conflict with UART Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI driver to avoid conflict with UART GPIO's selection. CR's fixed: 241467 Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f6d4b96e080e6e3eebcc1f1b2a43e7535f62d377 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:33:45 2010 -0600 msmfb: Allow MDP4 overlays to use GEM objects Expand the MDP4 overlay structures to allow the user to pass in a GEM handle as a source for the overlay display memory. The GEM handle and flags will trigger the driver to query buffer information from KGSL rather then from PMEM. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 0f3a4677bdbb48e2df64de250b789a02167717a9 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:29:58 2010 -0600 msmfb: Allow MDP operations to use GEM handles Expand the MDP structures to allow a GEM handle to be passed in as an option for MDP blit operations. Rather then pulling the buffer information from PMEM, the GEM flags prompt the driver to query the information from KGSL. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 624e9899b6a4362218d5cdd073642fe367552bae Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Jul 20 16:41:23 2010 -0700 msm_fb: Added HPD and EDID feature support in HDMI driver a. Set Interrupt Mask register for catching HPD interrupt. b. Add ISR for HPD Interrupt on HDMI cable detection/removal event. c. Add kobject api's to send uevent to user sapce on HPD interrupt. d. Add timer control to take care of debouncing interrupts. e. Support for configuring framebuffer structure on reading EDID information from sink. Change-Id: Ic96ba3fc785d54bb2a882bff509655335d57165c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2a228e7612135c700d75917a69668942d8910d43 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Jun 16 09:59:15 2010 -0700 msm: vidc: 1080p video driver support for 8660 1080p video driver support is added for 8660 Change-Id: I0e2a491dd32d2a8eeee5d65cd70a7fe4fa719678 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit dea68ae99815fcdeecd98cb2cc60d0505957ebce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 20 10:35:42 2010 -0700 msm_fb: display: reduce pixel clock of display panel Reduce the pixel clock rate from 539900000 to 43192000 to decrease bus access bandwidth and power consumption at LCDC mode. Change-Id: If0cc46b70ebb86aad1efe1cbadeed3cdb67cb38d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cb514d96a5d4d66370e74d3ae98e7cbbf339515e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jul 19 14:06:10 2010 -0700 msm_fb: replace BUG_ON with error message replace BUG_ON call with error message to avoid the crash when incorrect color format is passed. CR's fixed: 246713 Change-Id: Ia5b84330bfc71e27cf09921f8def56da5784c0bf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 345475e974a6281be1b95ac5a060b5177291754a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 6 10:53:22 2010 -0700 msm_fb: display: initialize intv to 0 at first MDDI kickoff Initialize intv variable to 0 at first MDDI kcikoff to prevent mddi_kick_interval become huge number which prevent pan_display from working at first mddi kcikoff. CRs-fixed: 245197 Change-Id: I14d90129cf63988a1d63856527107fcffd4092e7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 51c4ae4090b8a20b243056f1b272a5dde307fe42 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 12:17:38 2010 -0700 msm_fb: Deinterlaing in MDP3.1 is enabled Deinterlaing in the MDP3.1 was not enabled earlier causing this functionality not being observed on this platform. CRs-fixed: 246029 Change-Id: I00a9495314f34f610791c55b6492d6caf96f6548 Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4b9e5b18bf2f97f153546a697d5ec7df5ee92d5e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jun 25 12:35:24 2010 -0700 msm_fb: display: enable irq before kick off histogram enable the irq before kick off the histgram process and disable it once histogram is done. when overlay is used on lcdc mode it is disabling irq after overlay is done so we are missing histogram interrupt handling. Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8b9675df4eb7d98a1709e069846a174edee3b9ae Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: setup DTV overlay polarity for low resolutions. clk_set_rate has to be called before clk_enable. H-Sync and V-Sync polarity are active low for low resolutions. Add mdp_tv_clk for HDMI drivers that need this clock (8x60). Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 781c6b0fbe05c56bda8d15359907d9e583231ee7 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 8 10:22:03 2010 -0700 msm_fb: display: remove spi bit-banging in lcdc lcdc panel drivers are using spi bit-banging and causing a GPIO conflit with MSM SPI controller driver.Hence remove the bit-banging and using the MSM SPI controller for SPI transfer. Change-Id: I37abe848ed5f486ba0a8709512a076421fc58299 CRs-fixed: 220233 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit b8edd675c91c8f6f92a6067356cacf01dff95393 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 11:08:34 2010 -0600 msm_fb: Set the default color depth from the kernel config Make the default color depth for the framebuffer configurable via the kernel config. Default is RGB565, but ARGB8888 and RGBA8888 are available. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 78f720650b1c5400baf067c6e766ef753dfa5b4d Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 10:55:09 2010 -0600 msm_fb: Use varinfo information to choose the proper color config Use the position of the transparent portion of the color information in varinfo to determine if we should use RGBA8888 or ARGB8888 when 32bpp is selected. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 410efd5af5b0a8f230e5c98c64eddac9061d493a Author: Naomi Luis <nluis@codeaurora.org> Date: Thu Jul 1 22:19:23 2010 -0700 msm: Return the correct size for tiled formats The tiled format buffers are 8K aligned. Return the 8K aligned buffer size for the tiled color format. Change-Id: I81d04ec1d7f55ee68c361aaa1c515cc4318e906d Signed-off-by: Naomi Luis <nluis@codeaurora.org> commit 450e38300a07cdb77b3ef36a4e61a3f0f835aba0 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Sat Jun 26 20:37:14 2010 -0700 msm-fb: s/w workaround for MDP3.0 ppp h/w lockup Pulling in the changes of s/w workaround added for MDP3.1 to MDP3.0 CRs-fixed: 242307, 244250 Change-Id: I7c5ecdd8c0e02ea6c1fb2ec3261f81d6c1171f3d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit f55b99553dc3ae09afb816e25cf657cff8e2356e Author: Ravi Bandi <rbandi@codeaurora.org> Date: Wed Jun 23 19:08:28 2010 -0700 msm_fb: Set correct video format for different bpp values Video format is not set properly across 16, 18 and 24bpp formats, due to which colors are not displayed properly. Rectified the issue by using appropriate video format descriptors for these panel types. Change-Id: Id79703b51aa3aceb02d080372a5696d41658f67d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4325aa8038ed6631aa49a272c8951ddd042288d7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 23 13:16:47 2010 -0700 msm_fb: Shutdown HDMI clock on dtv off. Disabling HDMI clock while dtv interface is off. Change-Id: Ib060580a79572d646b98687f4577f665ca5fdc0e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ee61d7178de4c8f986ae33ec5813ed34bac0a3e3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jun 14 18:32:01 2010 -0700 msm_fb: Enable Audio settings for ADV7520 HDMI chip Configure ADV7520 HDMI chip for dual channel audio through I2S inerface. Change-Id: I916acfc38fe497b54ce5147a07a700f57b305a4b Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f29603084ab9ae536eccdf741533e39fe6cae746 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 15 11:56:03 2010 -0700 msm: Add framebuffer read and write support in rotator driver Rotator driver can only read or write to PMEM. To read or write to framebuffer, we change MDP driver to provide framebuffer physical address information. This change is required so that we avoid copy of framebuffer in PMEM for rotation. The rotated buffer is then used to push on overlay engine. Change-Id: I17322fa77bb05f36f70ac0c225299614dd607fe9 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 4e2da5926dc4b904dcfa930219c4bc1a1e2f6233 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 17 15:57:43 2010 -0700 msm_fb: display: add HDMI mirror support Allow VG pipe can be shared by both RGB and YUV format (video). YUV format (video) have higher priority than RGB format during overlay play so that RGB format can be preemepted by YUV format during VG pipe sharing. Change-Id: Ie9bf1beb28095e157f5be4a573fc541780a54e09 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5eef0fe4e1eb1150166233425f42b05d307962b4 Author: Kuogee Hsieh khsieh <khsieh@codeaurora.org> Date: Fri Apr 9 16:05:28 2010 -0700 msm_fb: display: enable software vsync to prevent display from tearing Enable software vsync and adjust frequence of MDDI display panel to prevent tearing from happening. Also add vsync can be enabled/disabled from mdp4 debugfs. CRs-fixed: 221821, 227518, 241791 Change-Id: I482980ce1d12b083745e74aad1248a66b33d4cb8 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit b1703457d0b166d30fbea0ee1147cc8bbcf478e6 Author: Derek Kulinski <dkulinsk@codeaurora.org> Date: Wed Jun 2 15:34:26 2010 -0700 msm_fb: proper order of IRQ operations for ST1.5 Ensure interrupt is requested before it's enabled during panel-on processing. Disable the interrupt before adding fb device to avoid panel-on enabling it a second time. Change-Id: I38c16c4d2fd3a2aa1e8ab4589980dd8e753f9ed5 Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org> commit 4c018c787d601ad9beadaf8ada3b2dba8c5f8e82 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 11 11:26:06 2010 -0700 msm_fb: display: fix MDDI NULL function pointer bug Check function pointer before call it during parser received reverse MDDI packets. CRs-fixed: 239194 Change-Id: Ia4d371f4f4d1500b227ee6361dc5b81087e9735c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14abca9a4a199a325690aed620aa0adc659f6d86 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 9 17:27:31 2010 -0700 msm_fb: display: change fb state to FBINFO_STATE_RUNNING In msm_fb_resume, changed the fb state to FBINFO_STATE_RUNNING instead of a magic number 1 (SUSPEND) after resume. In addition, change all the magic numbers to macros in suspend as well. Change-Id: I5a854293a3577522c559fd90a2dbc84a06072097 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 91277807c75b4ed9844441da31d9a49c990c1334 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 4 08:19:58 2010 -0700 msm_fb: display: Add FB_MSM_OVERLAY dependency Add FB_MSM_OVERLAY dependency to FB_MSM_HDMI_ADV7520_PANEL to fix compiler error when FB_MSM_OVERLAY is not defined. CRs-fixed: 240734 Change-Id: I948b2b198f69ada3dfb2eb4903363230a48935aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a54aac47e202993920fae8e9297e6bf59221b765 Author: Ajay Dudani <adudani@codeaurora.org> Date: Wed Jun 2 18:40:14 2010 -0700 msm_fb: Add ST1.5 LCDC driver Change-Id: Ia592bed81e316118f4c301ad59931fb9502ce49e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 2c970e38fe13d77a00323897ac62a15423996329 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Tue Jun 1 13:28:42 2010 -0700 msm_fb: make 8660 backlight work with new pwm api The pwm api changed to use a callback function in the board file and to specify the pwm duty cycle and period in terms of usecs instead on nsecs. Update the 8660 display to work with it. Change-Id: Idfc67a88261ac099c50214d61ac55dbc0311d405 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 8bbb084294c576722b05e5d941528f5cf129bffd Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Wed Apr 14 12:42:37 2010 -0700 msm: display: backlight intensity Update the panel driver to handle backlight intensity calls using pmic's pwm channels. Change-Id: I3c63588e5244748da5461e43f7f0831ddf635c5c Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit d4ac1bbc8a7a10d457f5809728a481656a64da3b Author: Steve Muckle <smuckle@codeaurora.org> Date: Wed May 12 22:43:25 2010 -0700 video: msm: remove suspend_late, resume_early initializations The platform_driver struct does not have suspend_late or resume_early data members. Change-Id: Ice92977de598fd4bad6f607a8b1e1fc97e03b826 Signed-off-by: Steve Muckle <smuckle@codeaurora.org> commit f95c6bd8c07d38466c51d2c245aeaac3aac189d8 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:11:55 2010 -0700 msm_fb: display: Add panel driver for wsvga display Add code for the Samsung's wsvga panel (part number LTS480WS-C01). It has a resolution of 1024 x 600 pixels, runs over an LVDS interface and accepts RGB666 pixel data. Change-Id: I399a0c08257a645fe205d5f3cb766e7dfbf20121 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 404c2879aa60104da586011fc5504163cc5143b4 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:48:49 2010 -0700 msm_fb: display: set mdp core clock rate from the board file Rather than hard-coding core clock's rate, set it to a value passed from the board file. If it isn't set then the mdp core clock was not meant to be set with a rate on that board. Change-Id: Ic7ca1b830a8b1bf4bedb9449e58b7f4b58424019 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3224f712002dbf029fab77d9c848de3a01bde9d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 25 09:17:49 2010 -0700 Revert "msm_fb: display: add zorder check during overlay_set" This reverts commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42. Change-Id: I1ce7311f326a99b738d32055f98879754e5b25b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4fa05a83d4bcc394d536cd2490c3c95e74f5fb11 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 24 09:04:24 2010 -0700 msm_fb: display: retransmit set_backlight pmapp rpc request Re-transmit set_backlight pmapp rpc request in case of rpc failed. Change-Id: I2ed01bd7ec40da313a75d441a438491a13a875a7 CRs-fixed: 236277 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 14:25:57 2010 -0700 msm_fb: display: add zorder check during overlay_set Add zorder check to avoid same zorder using by multiple overlay pipes. CRs-fixed: 232438 Change-Id: Ia6e66aba70f01a9b77ac6f2e1c565cc16496e613 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 795d1b324ee9052b0d4ee96771bc87bf61088fce Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 17:03:53 2010 -0700 msm_fb: lcdc: Add support for clocks on 8660 8660 has different clocks than older platforms. Update lcdc to handle 8660 clocks as well as the older clocks. Change-Id: I0b57a525205af448207a1500e23910e5c13c3738 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3ca6eef9dff1c435fc48d51bbd71edc71f7b0c0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 14 15:05:42 2010 -0700 msm_fb: display: Fix calculating brightness duty level Calculate the brightness duty level based on the maximum brightness level supported by the panel rather than from a constant value. Change-Id: I4c8d371a59e38c084bddeaa827c3982b47bbc7ee Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 347a643f440b0ba370830d54cb85966df18d7023 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Thu May 13 18:23:59 2010 -0700 msm_fb: Fallback to correct clock The tv_src clock should fallback to the TV_ENC clock and not the TV_DAC clock. This was already fixed in the devices.c table but wasn't fixed in the driver. Change-Id: I9dbf17d9123d25142e8123b54b1c5856482b087b Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dc34a27a27d726d98b34046c9fa5175322d794ba Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 10:21:54 2010 -0700 msm_fb: display: initialize op_mode at every overlay play Re-initilize op_mode to have it update with new value according to new overlay play's configuration Change-Id: I7ee2489a93efa72e691746037bdf853d862a023b CRs-fixed: 230612 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-01-11 01:19:01 +01:00
#define DEVCAP_VAL_AUD_LINK_MODE MHL_DEV_AUD_LINK_2CH
#define DEVCAP_VAL_VIDEO_TYPE 0
#define DEVCAP_VAL_LOG_DEV_MAP MHL_LOGICAL_DEVICE_MAP
#define DEVCAP_VAL_BANDWIDTH 0
#define DEVCAP_VAL_FEATURE_FLAG (MHL_FEATURE_RCP_SUPPORT |\
MHL_FEATURE_RAP_SUPPORT | MHL_FEATURE_SP_SUPPORT)
msm: fb: Replace with QuIC framebuffer driver This adds support for more recent MSM chips. Including the following commits: commit 5822924ac43b56586fbe0ddb720400624e70e111 Author: Ping Li <quicpingli@codeaurora.org> Date: Fri Nov 30 14:05:43 2012 -0500 msm: display: Add picture adjustment support for SSPP side Add picture adjustment structure input for overlay PP configuration, user can change PA setting via overlay set IOCTL Change-Id: I3b4679991ad4527565809e291fb13a73fbda2181 Signed-off-by: Ping Li <quicpingli@codeaurora.org> commit 486846820740c2cafea0c06442a3440ecb70b4d3 Author: Pawan Kumar <pavaku@codeaurora.org> Date: Fri Dec 21 16:55:24 2012 +0530 msm-fb: v4l2: Add user pointer support using ION for mdp3 target -Add multi-planar user pointer support in msm v4l2 display driver using multiple ION fd's (2 fd's in case of mdp3). -Handle multi-buffer use case using memory offset along with ION fd to calculate physical address. Change-Id: I1352512cbdfb9cf2c9fc20968416d369337e433b Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 5e4ba471fa7b26de394c3836b309c20c4082c19a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Nov 19 19:37:12 2012 -0800 msm_fb: display: Send current timestamp in case of timeout On timeout while waiting for the vsync, send the current timestamp to the userspace. This resolves the infinite wait seen during the bootup as SF will use this time stamp reconfigure the vsync. CRs-Fixed: 420244 Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 14547efa9af6eecb83243148b02cc1e0ea789202 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Dec 12 17:49:04 2012 -0500 msm: mdss: cache panel setting in suspend state Save panel on/off setting in suspend status to be used when resume, return success as a temp workaround. Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit c7966734d6fbdf5e542eb0349939cc02b0082143 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Dec 21 23:12:05 2012 -0500 msm: mdss: power setting protection When mdss is in resume process, other operation needs wait until it is done. Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 86ac956a061a1ea1e2c11214a1adebbe32511c42 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Dec 13 18:57:27 2012 -0500 msm: mdss: Clear performance request data at turning on MDSS needs re-request bus and clock when resuming, clear the cached related data, as they do not reflect the hardware status. Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 4e83b93ca279b21f0ab1e07fdee52ea41f2474f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Dec 2 21:15:47 2012 -0500 msm: mdss: Non-blocking display commit Schedule a workqueue, do the current job in the workqueue handler. Block the second entry if the first one has not finished Display commit ioctl will do what pan_display can do, addtionally has customized setting, such as non-blocking call Change-Id: Iccced7d7540c6a8bb066f58fa245bbff5ed36fcb Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 5295d8001001ceebc6392a42f3055c6c5188958d Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Nov 7 18:33:16 2012 -0500 msm: mdss: sync point support MSMFB_BUFFER_SYNC ioctl is added for hwc to pass in buffer fence, driver creates release fence and return to hwc. Before display update, driver waits for the fence to be signaled. Signal the release fence after update is done. Change-Id: I3d8cd5e8df1f0415832507d19cf629f4c0432164 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 1c374a84fd75e436d6a61c326fb055091b3d51e0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Dec 17 16:29:03 2012 -0800 msm: 8974: add MHL device discovery flag This change stores a static flag for keeping MHL device discovery and makes the driver flexible to function in either one of the modes. It would be very simple to make this dynamically configurable through boot param or module param. Change-Id: If3915c5861e61bc572a9b4e239a6133e5e9a138b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fcc33cdd9c2eccdcdde19e2b09d6eb3b01a783cb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 18 09:40:25 2012 -0800 msm_fb: display: add panel's late_init Some panels need to be initialized after panel is on. Add late_init to support this feature. CRs-fixed: 433011 Change-Id: I73c623d1fe52363f070af79ce4bf7774cd84689e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbdfa637adf603082676a428f80f1260d3400b3d Author: Pawan Kumar <pavaku@codeaurora.org> Date: Mon Dec 17 09:47:16 2012 +0530 msm-fb: Fix sysfs node creation in mdp_probe for MDP3 targets -vsync_init null check not required for mdp3 target before creating sysfs node. -Set vsync suspend and resume flags appropriately in mdp_on for mdp3. CRs-Fixed: 393243 Change-Id: I3366df7385ca8e2ae15053c3e58332f8e32ce0cd Signed-off-by: Pawan Kumar <pavaku@codeaurora.org> commit 9f2514f819eced19b0880735d5d62727808ce30c Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:23:11 2012 -0800 mhl: 8974: notify usb about non-mhl sink discovery On cable connect, USB driver triggers MHL's device discovery through an API. This device discovery should inform caller if the device is MHL or USB host mode connection since both hold ID line low. If SII 8334 Tx discovery routine returns a result of non-mhl then MHL driver should notify usb of this result else usb will not be able to proceed further with it's worker functions and state machine. Change-Id: Ie20e0dd517a191ed6df75050042bdcb0ebd01233 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f45159b358add9d3bc955dce2cce5ef62a7a75fd Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:22:08 2012 -0800 msm: 8974: MHL set 3V reg. for the 8334 hs switch Allocate regulator from MHL driver for 3.3V which is required for the high speed switch to function and toggle between usb host mode and mhl mode Change-Id: I87a9db951ff004d0a10caa390723eefddfc0db5e Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 530a5227212b62d05732f4393cf06903b4646c6d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:20:34 2012 -0800 msm: 8974: disable mhl device disc This discovery mechanism puts the device in complete sleep mode (D3) while leaving the device discovery disabled, and wakes up when USB driver calls the device discovery API from D3 mode by resetting the chip. Change-Id: I7db8dd86c54285a4903c582ae35f6c9d4329ec48 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 80822c3dde2e63bcdb0490426b05105252572814 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:18:07 2012 -0800 msm: 8974: Add intermediate power state for MHL MHL has three power states, D3 - low power sleep, D0 - high power MHL state, D2 - intermediate stage which powers up the chip but doesn't activate the MHL/TMDS lines. Change-Id: I9282a32724e0ac4f7c23233f4bfba97f548d7ac9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit affabcd25a6b74ec95350ad36ccec5b522e8dc5d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 28 15:15:29 2012 -0800 msm: 8974: Set MHL Tx configuration to USB state All the ID lines, D+/D- lines are configured to USB by default in this change. All the USB interrutps will be routed directly to USB, which will trigger interrupts in the USB driver. All events on ID line are handled by USB, even in the presence of MHL, USB driver triggers the device detection mechanism through established APIs. Change-Id: I7e70965cf46dfa5734918b2e21db5a162c570706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 388c2a9db377945aefa85f06fa31dc8ac0ea9cef Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 14:01:47 2012 -0800 video: msm: Handle timed-out histogram When the histogram collection times out (usually caused by an underrun) the hardware does not trigger a histogram done interrupt. In fact, the histogram hardware returns to its idle state after the next frame starts to draw. Thus, in the case where histogram times out waiting, changing the software state to HIST_IDLE allows histogram collection to continue. Change-Id: Ideb431209067c7d7e5a2bb94a7352ad90dd46e50 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5240a97a72f320b927ffc6230a6f4f1443979acd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 3 15:52:38 2012 -0800 video: msm: Trigger no update notify on suspend Suspend is a special case in the update notify feature in that it is a known state of no upcoming updates. Cause those waiting for a "no update" notification to wake up. Change-Id: Ie415d6c8da36d9871ed1dffad095529a20ebdf88 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c9021777f4efbbe9dcb9293f54a0dc912e87e5fe Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 10 16:48:18 2012 -0800 video: msm: Initialize Histogram LUT Initialize the Histogram LUT during MDP probe. This is required otherwise the first histogram LUT request shows a brief period of garbled colors. Change-Id: I60b3077883d0f57dfe3987d7b459477a43da09a5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 004d4a2d2bd81fc8e147f0dadec2d8792e176d80 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 12:46:10 2012 -0800 msm: mdss: hdmi: Add support for new HDMI-Audio interface Using this new interface, HDMI-Audio codec driver can retrieve sink's audio capabilities. Based on this supported capabilities and current playback clip, it will pass appropriate audio setup information to HDMI driver for configuration. Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit b554cf695636e15504cdce72cbfe35bf89494c0a Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 27 21:27:38 2012 -0800 msm: 8974: MHL-USB handshake API implementation This change adds the implementation of mhl discovery detection procedure, USB hand-off function. Three APIs are exposed from MHL driver to USB driver: for register/unregistering callbacks from USB and triggering device discovery detection in MHL hardware. By default, all the USB interrupts are directed to the USB hardware which is detected by USB driver and at appropriate points the USB driver triggers the MHL device discovery and uses the results to either hand control to MHL driver or continue with it's own detection mechanism. Change-Id: Ic1e22bc4c446de209f2e72d5dda8b823bfd398c8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5feb9b23208394f5261b330adec2cfb475706c43 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 12 18:18:19 2012 -0800 mdss: hdmi: Use delayed work instead of timer for HDCP reauth Upon detecting HDCP authentication failures, reauthentication attempts should be kicked off after a small delay. Instead of using kernel timers, this is achieved by having the existing HDCP work item as a delayed work. Change-Id: I7d04b33b159c718cd347576d18cffd1b705bb790 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 3aafea1d26621d712790742f2bcc70bf7bf374ab Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Dec 13 17:43:43 2012 -0800 mdss: hdmi: Correct HDMI Tx controller settings for DVI mode When a connected sink is operating in DVI mode, the HDMI Tx controller should also be programmed accordingly to operate in DVI mode. Change-Id: I63176b55be86a0fe73b23880fc1d45f7a2272d32 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0f685f270692aeb54b8eed0df5e37897d77f6c7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 12:52:18 2012 -0800 mdss: hdmi: Fix suspend/resume watchdog crash during HDMI mirroring During device suspend, HDMI driver holds MDSS suspend context until audio is turned off. Continuous polling for audio off results in unnecessary delay in MDSS suspend as well as watchdog crash. To fix this enable/disable MDSS GDSC regulator during HDMI hpd on/off. This will make HDMI independent of MDSS module in terms of register accesses. Also increase the sleep time between consecutive poll reads in order to prevent watchdog crash. CRs-Fixed: 425536 Change-Id: I7969f0ed8bcce4a356ee6a1e29ed2af76dd345ef Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 38e405e9ce2c9723a633ad75d6c498dd178d3e4a Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Dec 11 14:19:04 2012 -0800 msm_fb: display: wait for a vsync time before dtv_off At DTV interface, wait for a vsync time to make sure previous stage_commit had been kicked in before un-stage pipes and turn off timing generator. Otherwise iommu page fault may happen after RGB2 allocated to mixer0 due to RGB2 pipe still hold previous source address. Change-Id: I6b8bb1429b863886601ebb64b7c73771bee86764 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6d260d9645b5032b41d14b8e7d14ec12af24cd1a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Nov 1 18:09:06 2012 -0700 mdss: HDMI: HDCP Implementation Implement HDCP (High-bandwidth Digital Content Protection) feature which is used to encrypt audiovisual content transmitted over the HDMI link. Change-Id: I6ab92585f979d796d1a40c0ff86d4e7363506b6a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f9ef2416165fa7cc4230fd1fad7ecd0cc9c1be3 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Dec 12 16:30:18 2012 -0800 msm: mdss: Fix porch value assignments based on VESA standard Panel driver's porch value representation is similar to VESA standard but framebuffer API's representation is different. Correct this conversion from one representation to other. Change-Id: I1fdc7e664de99a5ad646beef2e74f7066a00c2e0 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit ad43bed51e95782097e68840673b8abf2d096058 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 16 16:08:00 2012 -0700 msm: mdss: enable border fill setup Border fill setup can be used to unset MDP pipes allocated for framebuffer replacing it with border color fill instead of contents fetched from memory. These pipes can then be used as overlays by userspace apps. Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0d62d721aaa6ea760e4d54076aa782352dca13a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:56:06 2012 -0700 msm: mdss: change smp blocks allocation based on fetch width Currently the ammount of shared memory pool blocks allocated for fetching latency lines is based on the full stride of image. There are cases where only a small part of the image is fetched, smp blocks should be allocated to acommodate the fetched width only, and free some memory to be used by other surfaces. Change-Id: Idaa7fbc583a2c4a5166f9e05010a0ae2ff56747a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d27afb2e7eae9d8049f11094b686c513dbc7eed4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:58:59 2012 -0800 msm: mdss: add timeout when waiting for vsync To avoid any possible freezes while waiting for vsync, add a timeout while waiting for vsync interrupt and report a visible warning. CRs-Fixed: 428821 Change-Id: I328ac05b98741fc77eb424c313a3b3afb3e206d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d691c2352dca906061899dac24bd21fc2ce91e6b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 11 22:48:12 2012 -0800 msm: mdss: remove wait for ping pong done for video interfaces Wait for ping pong was used to ensure that hw is idle while programming any double buffered registers, however most registers that really are changing are double buffered. Remove for ping pong done as it's only causing frame drops and some freezes in some cases. CRs-Fixed: 428821, 426136 Change-Id: Iafebebab7faf0efcb1b3f6a8d2723d67a93d5cd9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 26 12:44:26 2012 +0530 msm_fb: hdmi: HDMI suspend resume event handling This change makes sure that we do the proper HDMI ON settings at resume and also send the events to user-space about current status of HPD after resume. CRs-Fixed: 422372 Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 598d1170a005fd7b8b746e3e3d262635047a85b5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Dec 10 17:06:20 2012 -0800 msm: mdss: update bus bw calculations to account for is_fg flag Overlay flag is_fg is used to disabling fetching of buffers for a layer and all previous blending stages. Need to consider this as part of bus bandwidth calculations and only request bandwidth for layers that are going to be fetched by MDP. CRs-Fixed: 425643 Change-Id: Ie964f5e4ac77945ea6f84a47d337591ddfa1721c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d0bf99c8cbbbb43ad5bb1c426efc7d8004f6bf6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 16:37:01 2012 -0800 msm_fb: display: fix frame rate wrong calculation For cmd mode the frame rate calculation result is wrong. Also in mdp driver there are several places to do the same calculation. So fix the wrong calculation and use a single func to do calculation. Change-Id: Iab498fb446a1d9b8295d710ffa82618d2ab6fc07 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Dec 10 14:04:00 2012 -0800 msm_fb: display: add wfd clk ctrl in pipe_commit mdp_clk_ctrl on is not called when commit is from overlay commit path which can cause mdp hang. mdp_clk_ctrl off should be after mdp overlay2 is done, so schedule a work in overlay2 done isr. Change-Id: I94fd08da27cfda114f5cc0056a5103f0a9b772f6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8a9762e653e6f43fd361b3ccd632a1a78c1ab6fa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Dec 7 20:23:53 2012 -0800 msm_fb: display: add mdp bandwidth runtime calculation Currently mdp bandwidth request logic is based on source image size and number of layers. This logic can not support complicated mdp usecases and it is not power efficient. The logic is improved by calculating mdp bandwidth request at runtime from all pipes and mixers. CRs-fixed: 425823 Change-Id: I63206f00f8d3017a2449f8ac617fce3ba2a4d36c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 474f8d7fdffb8405676455cfbfaebc14d067862e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 10 10:14:49 2012 -0700 msm_fb: display: replace cmds_tx/rx with cmdlist_put/get Both dcs command and mdp pixel stream share dsi link. Dsi link confliction may cause mdp to hang up. cmdlist mechanism is introduced to serialize both dcs commands and mdp pixel stream. This patch replaces legacy cmds_tx/rx with cmdlist_put/get. Change-Id: Idfecd196d6efa281fc2c319be4ee3e76b8d49136 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d43ae7260e1b79b9930036347ce568c176420287 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Nov 15 18:06:56 2012 -0800 msm: mdss: hdmi: Add support for new resolutions Add support for following new resolutions. * 2560x1600 @ 60Hz (DVI) * 3840x2160 @ 30Hz (HDMI) * 3840x2160 @ 25Hz (HDMI) * 3840x2160 @ 24Hz (HDMI) * 4096x2160 @ 24Hz (HDMI) Change-Id: I14262448fea80615c6c77b4638b0a9815efc3297 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 793bd7b68f7ab5e2899b977293cfb67157493c77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Dec 7 14:25:47 2012 -0800 mdss: hdmi: Correct configuration for DDC ref timer This change updates the (Display Data Channel) DDC reference timer in mdss domain to the optimal value which is calculated based on the correct HDMI application clock frequency. Change-Id: I0b9f32f2fb0f16cf79bca86e270039c8cf90ed94 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 248dda2a1cacae6035fcd926a97fc8849229afce Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Oct 29 11:27:15 2012 -0700 msm_fb: display: Removing extra disable irq in cmds_rx API's Disable IRQ for DSI_CMD_TERM was already called in the isr. Removing the extra call present in the cmds_rx API's. Change-Id: I0000dd3166beb2a3b0c788327e1d7520e0c11a13 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9b697535117c56cd385a0b71411e05e62776e6f5 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:53:35 2012 -0800 msm: mdss: hdmi: Add support for dynamic resolution change Using new panel event, provide facility to check if HDMI can support requested resolution or not. Also if resolution change is requested while HDMI mirroring is ongoing then current mirroring needs to be shutdown and start again. Propogate this message to mdss using new panel event, MDSS_EVENT_CHECK_PARAMS. Change-Id: I87aed1b37b532724b6663509aa020b1008abfdcc Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bc2796befca2fa535952ced7c85f7221e3dac0b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 28 18:41:33 2012 -0800 msm: mdss: support panel resolution changes Allow framebuffer resolution changes to be propagated to panel driver to support different display resolutions. Use a new panel event so that panel driver can take the decision of accepting new params. Change-Id: I04b26cbb4d06a3cbc9c4416fbb7202bb185eee9b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0d7257935376fdc7293a0b9ddf1d2f8056fec201 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:16:03 2012 -0800 msm: mdss: cleanup usage of panel info Panel info is used to communicate between panel, mdp and framebuffer. Currently framebuffer maintains its own copy of panel_info which might cause mismatches on the latest information from panel. Change framebuffer panel_info to be a pointer to information provided by panel driver. Change-Id: Ic7ae27564d98d6b6843d1368481dda0601befccf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit cc13101bd21479dec3a629d93655bcf62462b0ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Dec 3 15:36:14 2012 -0800 msm_fb: display: delete dsi clock control from cmdlist_commit cmdlist_commit perform dsi clock control which turns off dsi clock unexpectly when dsi controller is configured as command mode during booting up. This cause display panel can not be lit up. This patch drop clock control mechanism from cmdlist_commit and move dsi clock control mechanism to caller. Change-Id: I1882ea3ee1c90ac5d76958c986740582929a5e3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 946ca6389b8f8c70b62a2f1ab4d81b475395f7d8 Author: Prasad Sodagudi <psodagud@codeaurora.org> Date: Mon Dec 3 16:57:51 2012 +0530 video: msm: Do not use disable_irq in the spin_lock_irqsave context Both mdp_isr() and mdp_histogram_disable() uses the same spin lock mdp_spin_lock variable. One core waits for disabling mdp_isr after acquiring mdp_spin_lock and other core in mdp_isr() waits for spin lock mdp_spin_lock and dead lock between two cores. Change-Id: I73a10494ab78e92fc88a348aed4f526091b51f89 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> commit 889748cb28feb2d88ee74c7c3ce29409b857ea23 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 19 16:23:58 2012 -0800 msm: mdss: hdmi: Add dimension overflow check for video resolutions MDSS based HDMI Tx controller can output 13bit h_total and v_total compare to 12bit wide from previous generation chipsets. Add overflow check to insure that controller is not programmed for incorrect dimension. Change-Id: I6c3906020da6f4aad3f1fcf8a5633731515a7569 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 554c0755b48b77e463b7ede2a1b74abf41120370 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Dec 4 11:12:04 2012 +0200 msm: mdss: Fix the order of enable/disable edp clock functions Being compatible with the required enable/disable of msm clk sequence. Change-Id: I179685a5bb4c0d7e6f4b84e18f0749b416f5e2ba Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 137dfdf8781f41270dd6ff10242c082940300e75 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 17:20:49 2012 -0800 msm: mdss: remove pm suspend handler All suspend calls are handled through early suspend, using pm suspend/resume as well can lead to HDMI being resumed before MDSS regulator is enabled, leading to HDMI hang during resume. Remove pm suspend handler completely since it's not needed. CRs-Fixed: 425657 Change-Id: I0b9d072037dfdceef90d24fba50813390191f4e0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 32547051b65943bd1c07c08630528741fdcfdda4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 30 18:00:16 2012 -0800 msm: mdss: fix iommu fault due to incorrect buffer unmap Any buffer that is being fetched by MDP to display on panel should not be unmapped until there is a new buffer to replace it. Ensure multiple buffer updates without a commit to display won't cause displayed buffer to be unmapped. CRs-Fixed: 420561 Change-Id: Ibe720976024d7739c36bd4f05f9f70a061ed1eb9 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cda3246cba44c0756c2038f0fea34858e72f8555 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 10:47:46 2012 -0700 msm: mdss: enable display debugging through debugfs Register debugfs nodes to allow dumping and writing of MDP and DSI registers for debugging purposes. Change-Id: I14d9a7f441292eef5564144707184dfa5da75d85 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 63e30558ba162cae303f7ae655b0ab61f4253005 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 9 10:04:20 2012 -0800 msm_fb: display: mdp4 version assigned at board file Currently, mdp version is acquired by reading mdp version register. This patch use mdp version from board file instead of reading from mdp register. Change-Id: If71be4f28caa45beea58789ca1025a338eb64de5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8e389593cd695957834a2de6db769264c0237a9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 15:56:25 2012 -0800 msm_fb: display: add mdp blt mode and switch control Switching mdp blt mode is done in isr or by turning on/off timing generator. Add other options: by polling, always-on or always-off. And add support for external dtv blt mode. CRs-fixed: 390953 Change-Id: I5e9f52fc459a34cc99a0f71c04b8320edd821ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4eb6ce68540cb523348d624b7193518fdd970898 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Nov 16 11:52:15 2012 -0800 msm_fb: display: Do not use ION_IOMMU_UNMAP_DELAYED Since iommu buffer will be un-mapped after two newer commits had passed, there is no need to request iommu driver to further delay un-mapping an iommu buffer. Change-Id: I8cf8d406cf509908035d12c9a04f0add12f3c7c7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d5e1c57b4a6d2d25c5ce04923205073fafa3898 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Oct 30 14:59:26 2012 -0700 msm_fb: HDMI: Cleanup of HDMI switch device notifications HDMI switch device is used to notify userspace components of the availabilty of a connected HDMI sink. These notification should only be sent whenever HDMI cable is connected or disconnected. This patch removes all the redundant notifications. CRs-Fixed: 412575 Change-Id: Ia5e60690a87569fce5d61a9af75d446648443e9b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit f3472aede02906f6e213a5a8459ca4e6f84b17d6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 15:34:44 2012 -0700 msm_fb: HDMI: Turn on HDMI core only for supported resolution Upon receiving the notification of an HDMI cable connection, turn on HDMI core only if the default video resolution is supported by the sink. Otherwise, HDMI core would be turned on at a later time when it is configured with a supported resolution by the userspace. CRs-Fixed: 412575 Change-Id: I67cfb09bafa39646839877a66cd94f193c127a76 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit cdc118275788b10175f34560470d8afedc5255eb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 12 14:56:43 2012 -0800 msm: mdss: replace uevent based hw vsync events with sysfs poll Replace hw vsync ctrl logic with ability to read vsync timestamps through sysfs file when vsync ctrl is enabled from userspace. CRs-Fixed: 407684 Change-Id: I0fb973592090ed9ee81bc3d54f53a18f4c131e0f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit edf70c335df7938a1e181286f8165250491884de Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Oct 26 18:11:23 2012 -0700 msm_fb: HDMI: Add support for HDMI audio switch device node Add support for audio switch node in the HDMI driver that would be used to notify audio userspace components of the availability of an HDMI device. CRs-Fixed: 412575 Change-Id: Idc41caf234810db52af9fcc89d2ed4ecbcaafc3b Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ae93bc59e2fc68591b76d3911ed6c29537efe949 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 2 14:32:41 2012 -0700 msm_fb: HDMI: Cleanup HDMI audio off sequence HDMI core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI core. This change increases the time for which the driver waits for the audio engine to turn off. CRs-Fixed: 412575 Change-Id: Ie11ab6c8140f7289f74da4877c9acf9b8cd4a838 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e3ddd1499da99d52222f6d3dd031901082e8338a Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 7 18:27:23 2012 -0800 msm_fb: dtv: Serve device off in a separate thread DTV device should not be powered down until the audio engine has shutdown. This change moves dtv audio off sequence to a separate thread so that framebuffer close system call does not get blocked. CRs-Fixed: 412575 Change-Id: I246a9e58f1367e653913773696510f375abf3d3a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 99a86cc6d78227ff566aefdfd83c195277bde02b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 9 22:49:30 2012 -0800 msm: mdss: Add suspend resume support in HDMI Tx controller For primary display panels, usually power off/on during suspend/resume should suffice. But for external display panels like HDMI TVs, there is an additional hw circuitry for hot-plug detect which also needs to be turned off/on based on the state when suspend/resume is initiated. This change adds such support in HDMI Tx driver. CRs-Fixed: 413722 Change-Id: I7640d13c08f86f1ae0ae13cb2d1411f0354ca3fe Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c183e1a69eeac2348a6e2a5ac92aaf1fef0fa828 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 16 18:22:02 2012 +0530 msm_fb: commit mixer stage for WFD during unset Interfaces with Borderfill pipe as base layer needs to be commited during unset which will reset the mixer cfg structure. This is needed because overlay_commit will not call stage commit as there is no buffer queued. Change-Id: Ib3347e52ae437b20d5a85a09777f13aee2672edb Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 36f267e093320a0f3b54887d0091d7d811e76d2a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Nov 20 10:41:54 2012 -0800 msm: mdss: enable secure content display In order to display secure content, secure buffers must be mapped to secured MDP context bank. Split current single IOMMU domain into secure and unsecure domains and check overlay flags to find out if content should be mapped to secure or unsecure domain. Change-Id: I510c253920b03cacf85085cb394f5281143e38e6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f270decc6b4cfd38070e4e867f01f043fbee3ea8 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Oct 12 20:51:47 2012 +0530 msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 17e116a8ba55957248cf799de54997cf249e14c2 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Nov 6 15:28:07 2012 +0530 msm_fb: display: Fix blend configuration for command mode panels For command mode panels, blend registers does not get configured as per the use case. This leads to incorrect blending of layers resulting in lower layers (eg. wallpaper or buttons in video playback) to show above the upper ones, making overall user experience to go bad. In order to resolve the issue, blend registers are now configured properly by as per the use case. CRs-Fixed: 410029 CRs-Fixed: 415553 Change-Id: Ibe7d594e0ad6a6f4d75ed2e59c7382c09b65d624 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b2c1661ac99c7b6821f702c810256dbaafbf7ec8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 22:28:23 2012 -0800 msm: mdss: release rotator sessions when all panels are suspended When all panels are suspended MDP will be shutdown, need to ensure that all rotator sessions are finished and properly closed to avoid access to MDP hw. CRs-Fixed: 409234 Change-Id: Ic1d95365a28c453ec8779d9c482a885857bf6912 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit eac7d2bb7d29f731840e96271268c545d0fe011c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Nov 14 21:53:34 2012 -0800 msm: mdss: hdmi: Replace of_get_gpio usage with of_get_named_gpio HDMI Tx driver parses platform gpio data based on index, using of_get_gpio api. Replace this index based lookup with name based lookup, using of_get_named_gpio api. Change-Id: Ic65aae1583c8c6f852c31fd454ac651fc6c8b907 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0791142a3e45f62ad674de0fff2437e4c58a4681 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:12:43 2012 -0800 msm: mdss: add proper locking during suspend/resume operations Add locking mechanism to properly syncrhonize user space frame updates with suspend/resume operations. This should avoid some cases in which suspend operations will complete while frame update hasn't finished, leading to unwanted behavior. Change-Id: I4b254a6a547320199a6da722ef99563696686a20 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bb08a42611e6149d0950d94126fa1143e53b8e9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 16:51:27 2012 -0800 msm: mdss: replace panel function pointers with single event handler There are many events in MDP that are important to acommodate the needs of different panel drivers, currently these events are propagated with function pointers. However as more use cases come into picture the ammount of events has increased, and not all of these are handled by all panel drivers. In order to provide all this information to panel driver and be able to extend it in future, create a generic way to propagate events from MDP to panel driver through a single event handler. Change-Id: Ide243f08bc4fa966ef9223b0a665cff95b9529db Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d450bd5c223d6dc729b0eff24a0547c8222be0c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 31 15:57:42 2012 -0700 msm: mdss: fix possible deadlock while cleaning buffers Move pipe destroy logic outside of mfd lock to fix lockdep warning regarding pipe unlock logic being called within mfd lock, when mfd lock is usually locked within pipe lock and remove SSPP lock when destroying pipes. This was previously used to protect SMP allocations but these are protected by SMP lock already. Change-Id: I1c47da5d33cb4f1eb687078639adf4c4cc94f33a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit adb3920dd00f1001355e4ebbf451a5b646b3987d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Nov 14 21:46:10 2012 -0800 msm: mdss: fix possible null dereference of fb index Rotator data paths don't have a fb device assigned, assuming that it will contains a reference to fd data is incorrect. Add check to avoid NULL pointer dereference. Change-Id: Ib91e96ddc56590f2f681673b162921191e3d86da Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5c06748c7decf51a63015579fa42cf8189727357 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 31 16:26:41 2012 -0700 msm_fb: HDMI: Cleanup HPD software debouncing logic Implement Hot Plug Detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. CRs-Fixed: 412575 Change-Id: Ia2c83f3446d09fe5bf6c6a1c4e6a9eb54ff465d6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9284a2701b6c030184848ba4b37c0b5019f62ed3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Fri Nov 2 20:55:30 2012 +0530 msm_fb: Wifi display changes for commit ioctl This change handles panel updates for WFD panel via overlay_commit interface, along with conglomeration of some common code across pan_update and overlay_commit ioctls Change-Id: I092180a4f2be801cd5b9008e99d0b712d089746b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit e41ba16cdf9d4aa7773fa33ef640ba32f5a17d7d Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Oct 25 16:32:32 2012 -0700 msm: 8974: MHL Driver for SI-8334 Tx The B-family device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I33f6c6f00011b590f9913cdbbe44544472b60982 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit fe4abc1141a5620d42832137ad1dad15424b6b41 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 17 19:11:45 2012 +0530 msm_fb: display: Proper pipes solidfill For MPQ/hdmi as primary, solid fill the pipes only during suspend. This change also take care of the solidfill of the pipes unset during overlay and pan display at suspend. CRs-Fixed: 421461 Change-Id: I15096df681cbd94ae3cea63ecbfe915e01b7387f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 765bfd597fdc90610113cc9938c7152658d654ed Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Nov 14 10:41:12 2012 -0800 mam_fb: display: add per stage alpha drop detection Currently, alpha drop detection is done per frame which means multiple blending stages share same alpha drop status whcih does not reflect alpah effect truly on each blending stage. This patch enforce alpha drop detection is doen per blenging stage so that alpha effect applied properly at each blending stage. Change-Id: I90f8f6395c88e665b64ae90e64b65cea1d54b41a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bfdabc012c3a91e893fc9ee8473d25ca12dccf5d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Nov 16 11:36:29 2012 -0800 video: msm: Remove adjustment to MDP revision Remove the modification of mdp_rev during mdp_probe. Not needed since board files now have the correct MDP revision data. CRs-Fixed: 417080 Change-Id: I553cb2a8e8de43b6c7b7976c3eca67d00a3cfe4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ca24bda0148887716f250bbbc5debb2f80fa4331 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Oct 5 22:19:28 2012 +0530 msm_fb : Add timeout while waiting for vsync event Avoid eternal wait for vsync event when client tries to read the corresponding sysfs entry. This will avoid hangs when client tries to read in corner cases where the Timing Generator or the clock or IRQ gets disabled. CRs-fixed: 406752 Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit b6b7c0ef67d6bc2d82e4bbe63a946d3e8b815f69 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri May 18 11:00:11 2012 -0700 msm_fb: display: extend mdp debugfs with force blt enable Enabling/disabling mixer0 or mixer1 blt mode is a critical way to debug display issues, so add debugfs interfaces to force blt mode enabled/disabled with adb shell commands. CRs-fixed: 390953 Change-Id: I96a568f22398867571a796a863c098f749f5618b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bcafbe3fb1b630a844c4776f9bab4c65cd5cefa5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 4 15:55:40 2012 -0700 msm_fb: display: disable external instead primary vsync irq Since DTV is external interface of mdp, it should only control external vsync irq. Change-Id: I5f3a7087c7d4997cd40d4cc4907d8b054e37c6b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3eebb2e33570e32d11a757e493e12a8e79e08d6f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Nov 8 14:21:41 2012 -0800 msm_fb: display: add setting gpio-controlled backlight logic For the panels which backlight is controlled by gpio, add this logic in driver to turn on/off backlight, instead of calling board panel on/off functions, to avoid garbage display due to early backlight turn-on. CRs-fixed: 408728 Change-Id: I6f1b9bd78d96dbf1492e854edd59b05f8dec205f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5f91c9259a62b5dd2226bf46efc42152667b9e19 Author: Mayank Goyal <goyalm@codeaurora.org> Date: Wed Nov 7 16:58:09 2012 +0530 msm: rotator: Add pseudo-planar 422 H1V2 dst format for MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation.Add changes to support MDP_Y_CRCB_H1V2, MDP_Y_CBCR_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: Ibd1cb9803b8cf8bede28bc1d9830320dd505f5be Signed-off-by: Mayank Goyal <goyalm@codeaurora.org> commit a3b0e08b5c65b28c81a8a4511ebacd6985793dc5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 13:50:23 2012 -0700 msm: mdss: import venus stride alignment requirements In order to avoid mismatch in stride assumptions between Venus and MDP, import common header file with Venus alignment requirements and configure MDP surface with these. Change-Id: Idf849b3f476eb5e2d60fec190698efd487f035cf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c62976484ec5b681361a563d80fd5a5546287308 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Oct 20 14:08:41 2012 -0700 msm: mdss: disable fetch for all previous stages with is_fg The is_fg flag is used to disable fetch for all previous mixer stages, currently this only to disable fetch for base layer. Modify mixer setup logic to disable fetch for all previous mixer stages. CRs-Fixed: 413254 Change-Id: Ic0f101fe88a3c64db11cf43484f64f0f5e32d0d0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a21de442a3babb554d1a9a54eef2ef0944cbfa4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Nov 9 16:18:07 2012 -0800 msm: mdss: disable overfetch done while scaling While programming pipe, src image size can be programmed when area outside crop rectangle contains valid contents in order to allow MDP hw to do overfetch of pixels while scaling. However for most cases in video playback the area outside the crop rectangle is only padding with invalid pixels used in order to satisfy alignment requirements. Since driver is not aware if padding is being used or not, disable the over fetching along the border to avoid unexpected pixels being displayed. CRs-Fixed: 404918 Change-Id: I145f34bcaef76a88116b6803eeaf4a5ffd19592d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20f0af9200e416d4b2f7949e2ecfd81182a5edc6 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Nov 13 17:34:12 2012 +0200 msm: mdss: fix enable/disable of gpio_panel_en in edp driver gpio_panel_en is always on even though driver is in suspend mode. The fix is setting gpio_panel_en value in edp_on/off function. Change-Id: Ib41681d31788b9a17a032e9b9e8dbe53eb9e4fa9 Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 6db43b58111cfd39eaee0d694c223cbc7461d16c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 15:25:37 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP3 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I18b05b8d2a65d489afc6e3274ec8dc7a5b9a5f9a Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b5292f0df4e06db2272c92d575e255f310793e3c Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Nov 2 13:54:39 2012 +0530 msm_fb: display: Create sysfs entries in mdp_probe for MDP4 targets vsync sysfs entries should be created in mdp_probe instead of creating in panel on. This avoids waiting for the first event control in framework Change-Id: I983731481ea89bb7666be5f2a9f75a1e04fd963f Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 39e3fecb80703313621b22d2a8b5667a816265bf Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Nov 8 13:51:00 2012 -0800 msm: mdss: disable overlay operations while suspended When display is suspended all overlay operations coming from userspace should be ignored to avoid programming MDP when it's completely powered down. Change-Id: If43436915de33f89016ee2c85eb70bd57fdd2118 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b6d7e48e777e99e28dea95cb93debfd9d15d849c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 12:08:27 2012 -0800 msm: mdss: enable dithering for panels with reduced color depth In order to avoid banding caused by using reduced color depth as panel output format, dither can be enabled to produce an image which gives better representation of original image. Change-Id: I88a1be747332070d2b8b00dcbeb7e97936a47092 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6829d179d9ae8f3646a7a7204571ce15d35a997c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 31 17:06:52 2012 -0700 msm_fb: display: add option to switch mdp operating mode Currently, mdp switch operating mode without turning off timing generator. This patch adds option to have mdp switch operating mode (direct out and writeback) with timing generator turned off based on configuration of panel file. CRs-fixed: 405987 Change-Id: I92057757863218222d8647d33d57f6de9b3b3765 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a4567ac320abe5d74b3c7decdbddba4bd8c57463 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Oct 5 11:02:40 2012 -0700 msm_fb: display: skip one vsync event after enabling mdp and vsync clk Both mdp and mdp_vsync clks are disabled for command mode panel when no new frames are being played. When they are re-enabled if new requests come in, the first vsync event which is signaled by read pointer interrupt arrives in a random time due to the sync between mdp and panel, so skip it to maintain correct vsync timing. Change-Id: I683b765e4a16d3d152b9270f5982234b94921f1e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9bc28cf89a1619218fc1193409c4f614d1f826f6 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Nov 5 16:18:53 2012 -0800 msm_fb: display: add config of wb_mux_sel during update To make sure for each writeback play the reg is configured and avoid mdp hang. Change-Id: I29bdc31f27accca84e7add126c1c1e3c8a78fa15 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ec8922ceea49cfd2e13a3c1ddab9f51e2f13394f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Nov 2 17:30:46 2012 -0700 msm_fb: display: empty pending queue during suspend for wfd Add the logic for wfd writeback interface. It already presents on other display interfaces. Change-Id: I389be77ec18041e260d0e71940586e86f1841ff8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8befe49ddcd2952cfd60634153dc5caf440acb27 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 18:34:13 2012 -0800 msm: mdss: Add support for disabling HDMI while cable is connected Send disconnect and/or offline event to user-space when user explicitly asks to stop listening to hpd only if HDMI mirroring is going on. Upon receiving this event, user-space will trigger power off and HDMI mirroring will be turned off until user explicitly asks to start listening to HDMI cable connect. CRs-Fixed: 409880 Change-Id: I509a9a7ba04066e571b5f762be4804c7dd39c655 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 84639ef623c0f3301bda4893bae9eaa83454c222 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Nov 5 14:48:03 2012 -0800 msm: mdss: correctly handle panel power on failure Check panel power on return code and correctly revert any interface initialization if any error occurs. CRs-Fixed: 417959 Change-Id: I4ad644b16efd51e5e8b3be1393c39195687feb8a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 074de641de0fab973a9efd9c3d57498453ef28ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:18:47 2012 -0700 msm: mdss: Serve HDMI Tx power off in a separate context HDMI Tx core should not be powered down until the audio engine has shutdown transmitting packets to the HDMI Tx core. This change moves the power off sequence to a separate thread so that framebuffer close system call does not get blocked. Change-Id: I011c6612ec1b6be047e4adb39c1af48f6a105bed Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 2816e20c94fd5ee23c9784b3dbc3ac690fe1e88d Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Nov 2 20:17:27 2012 -0700 msm: mdss: Clean-up hpd debouncing logic of HDMI Tx controller Implement hot-plug detect (HPD) software debouncing by disabling the HPD interrupt until we finish processing a previous HPD interrupt. Change-Id: I434a223a3d340d5759346e071d5350d412de2c20 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 3ca6a5691a83819c1b8c7123089cb85f5b4a58ef Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 14:58:28 2012 -0800 msm: mdss: Add error checking for incorrect state during HDMI power on/off HDMI power on should not be permitted if hpd is not initialized. Similarly HDMI power off should be skipped if power is not on. Add proper checking for above state conditions. CRs-Fixed: 417959 Change-Id: I9470c6d818adc403de05c25a7e96c8ab1c8a43fd Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1073b45c0b120f2ebbe1b5034d4088f9294b54af Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Oct 30 18:26:00 2012 -0700 msm_fb: display: fix frame buffer's ref count leak This patch clear MDP_MEMORY_ID_TYPE_FB from pipe's flag so that fput_light() and fget_light() can be applied to frame buffer evenly at end of pipe operation. Otherwise there has kernel unable to handle NULL pointer panic caused by frame buffer's ref count leak. CRs-fixed: 411394 Change-Id: Ib2b72e6277480b5ace23cda554be485d9d477b3d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f4796e811c00082db0414d4ad211aa3fcefd3a9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Nov 5 08:41:49 2012 -0800 msm: mdss: Fix returning incorrect error number Instead of returning actual error number, current code returns boolean value of error present. Fix this issue by using PTR_RET macro instead of IS_ERR during error check. Change-Id: I61f0e57dd918c98ae4699993fa526e31654bebb3 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c30090ea5c28fce50a7c0ac829b9effd809f41e8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 11 15:30:58 2012 -0700 msm: mdss: add interlace video display support Interlace video contains two frames interleaved within same buffer. Since there is no hw support in MDP5 to display interlace content, support interlace video by taking even fields only for display. Change-Id: I92718d13eb7711d0c4252adf8751384719c862f1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 04d097801cc94a121751c9d5fde2ea458f3ae76f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Nov 3 02:39:20 2012 +0530 msm_fb: hdmi: black out pipes on unset For HDMI as primary case, we need to blackout the pipes when they are unset so that any residue is not visible on the DTV during suspend. Change-Id: I2bf36f1002dd185c26fe6c4291977737daa73ae1 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a5611de5f7d754d538706949bfdc9b8aa36fd0f0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 13:39:52 2012 -0700 msm: mdss: fix bus calculations overflows With higher display resolutions the bus calculations being performed can be very high which may cause overflow and unwanted results. To avoid such situations modify logic to perform calculations in kb and use 64bit data type to call into bus scaling driver. Change-Id: I7b975d750e316c6e79bcdcd54a8194c8ae40c155 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7fb9c21f04a8a87d2bf2e45ad1a5c9cd374f65be Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 19 11:58:29 2012 -0700 msm: mdss: replace disable irq with no sync to avoid potential deadlock Potential deadlock can happen when disabling irq after receiving vsync complete event in display if at the same time MDSS irq is triggered, at this point disable irq will hold spin lock which irq tries to get and will not release because it's waiting on irq to be disabled. This scenario can be avoided by using disable_irq_nosync instead to avoid locking on irq to be disabled while holding spinlock. CRs-Fixed: 416304 Change-Id: I1e367ac2b5d7b0ed7d1c15efc8d29a6ffa9fea5e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5328e4976369d5b4fc76183720168b58bdffd6c7 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Oct 2 15:03:44 2012 -0700 msm_fb: display: Enable scaling bit while setting x-flip bit To enable left-right flip x-scaling bit should be set for MDP 4.2 and above versions. This fixes the issue when RGB layer pipes are not properly rotated. Change-Id: I0afae4aecde39ce3ac4dcbefc0bda93510e7d18a Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d8bad5aaad6a19d65ae8d63451044455aceca46a Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Mon Aug 20 11:58:42 2012 -0700 msm_fb: Correctly setup splash screen flag in MDP probe The continuous splash screen flag was sometimes not correctly setup during MDP probe causing corrupted grey screen on resets. Crs-fixed: 389531 Change-Id: Id88d8a239ccfd1cbb5ce0f4f3db68756182f5ff9 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6ced23c4d1863316a72d7143a60ccfb547282940 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Oct 25 16:24:54 2012 -0700 msm_fb: display: adjust refx100 parameter to avoid tearing refx100 is used to calculate how many mdp_vsync clocks to complete one line in the panel. This info is used by mdp h/w to sync data transfer between mdp h/w and command mode panel to avoid tearing. CRs-fixed: 379223 Change-Id: I3880a350b77cb8165745ea343b1525e84100a62d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 66744e7a76bfa3f56818bcaa2d430468e50a1922 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 31 13:29:48 2012 -0700 msm_fb: display: force mdp clock off at suspend At suspend, turn off mdp related clocks off if clocks are not turned off by vsync disable request. Change-Id: I0949b00b9ee0aee05b9b553ac7318b647052d94d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ef5abb017cee4c6bbacb6d064764bda8b4a1a0c5 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Oct 31 20:40:17 2012 +0530 msm_fb: display: Correct dtv pipe black out This change corrects the register values to black out the dtv base pipe. Change-Id: I80fefab3cc6dd006edbb673f41ccfe983af2cc3a Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 19a4f321dca81cbee29c934a9584412614a444c0 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 16:48:18 2012 -0700 msm: mdss: Enable stereo audio through HDMI Tx Add support for Stereo Audio in HDMI Tx driver which sends HDMI stream on/off notifcations to audio userspace using hdmi_audio switch node. Change-Id: I2c8e756adbbe2f9230dfb7735774ee194e32e446 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e2c2859bac8fcf41d39ba9cc614d028f0e1573ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 30 16:01:15 2012 -0700 msm: mdss: add smp specific lock SSPP lock is shared between pipe allocations and smp block allocations, this can cause possible circular lock dependency since usage is different for these cases: - During pipe allocation SSPP is held when acquiring pipe lock - During SMP allocation pipe lock is held when acquiring SSPP lock For this reason, splitting SSPP lock, and since pipes and smp locks manage separate resources sharing is not needed. Change-Id: I54a0997fddef893b99a4b01d3e3f62382e1e0ecf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ec339e96700b98faa170b06f73678f203c237291 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Oct 29 16:19:03 2012 -0700 msm_fb: display: change the location of wakeup timer call There are two pathes (pan display and overlay commit) to commit display buffer, so change the location of cpu timer wakup call to the common pipe_commit function to make sure cpu get waked up around vsync. Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Change-Id: Idbe6049d740a7e17a6a90e28566f7a9c74e348f2 commit b360fd40a5214595d7e9970431ef83653b76b13e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Oct 27 13:14:11 2012 +0530 Revert "msm_fb: display: suspend-resume on HDMI" This reverts commit 30befc28305440f30770a6545839fe4b55ee2207. Revert early suspend implementation for MPQ. Change-Id: I028a7f0d6997d2d09d718d3b5072466d28a95b59 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5f6d8314b2ad063da8a8ebf71fef8c713f76401b Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:27:55 2012 -0700 msm_fb: display: fix dsi_busy_wait race condition After pipe_commit() released mutex and before kickoff happens, There has possibility that dcs command may start transmitted. This patch add dsi_mdp_busy flag to fix this race condition. Change-Id: I0d9a81cd0719085c91c03386117261ad3bb6b182 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 366ca5c34117fde6329ea81112068d1dc177ff70 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:26:31 2012 -0700 msm_fb: display: add video mode dcs cmdlist support Add video mode dcs command list support. This patch make sure dcs commands committed while dsi video engine is busy so that dcs command will be transmitted at beginning of next BLLP. Change-Id: I11b0214ee10f3b1ef33b1da4c8e577800068cb06 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c405afa88ef5139132795757a7446a7081d92c38 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Oct 13 17:23:10 2012 -0700 msm_fb: display: add sysfs and clock control to smart panel This patch allows both vsync enable and disable are controlled by framework. Driver reports vsync event to framework via sysfs. Meanwhile, mdp related clocks are enabled by framework at vsync enabled request and disabled by driver if there is no any display update within specifid vsync period. Change-Id: Ice5be3a6db5930b95bdd2f718d9256bf73936e23 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 64892009d43ca724c5ee1be5f7db6ad1f00cda6c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 25 09:07:58 2012 -0700 msm_fb: display: fix iommu leak during base layer swap Retain RGB1 iommu information during base layer swap so that iommu used by RGB1 can be freed back to pool later. CRs-fixed: 403277 Change-Id: Ibed85179284743dc8a9d1434f0c81626b0567e16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bbd754882e8ec1a52ebba237e02ba8c49b00f135 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Oct 25 19:30:33 2012 -0700 msm: mdss: Fix error roll back sequence during core on. When core power enable fails for some reason, current code disables hpd power in the roll back which is unnecessary. Correct this mistake. Change-Id: Ia5ed63edb017ade44950058c9d6071e8eb5d7884 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 693e87a8e357add7444dbad12cb265deaa90d3e2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Oct 2 15:08:56 2012 -0700 msm_fb: display: wake up system before vsync for cmd panel Add this feature for cmd mode panel. The feature is to avoid frame drops due to power collapse and it is already present for other display interfaces. Change-Id: Ic68f41cd59931294b592577475ed7480459f2cf8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 407e03a33eaa0880b87a2a6a7bf43e3516cb2562 Author: Asaf Penso <apenso@codeaurora.org> Date: Thu Oct 25 15:03:21 2012 +0200 msm: mdss: add eDP backlight Add configuration for setting different brightness levels in edp driver. This is done according to lpg channel and period values from devicetree. Change-Id: I4e9074d777102193d7678f7aac565be3a5a551df Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit b640c29b8b3b4a0733924a6e4ad0665d5218a7dc Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 20 14:14:40 2012 -0700 video: msm: Send ETIMEDOUT on update-notify timeout Send the ETIMEDOUT errno when the update-notify wait_for_completion times out. This is required to be able to properly handle the different failure cases in the functions that use the update notify ioctl. Change-Id: I0e46b0b0c89f6b2e5beb3fc0ed18ebbb75dfa434 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a3020ffbd3720f3aaba439b593db5a85dcb50bc0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 22 11:33:23 2012 -0700 video: msm: Wait for latest histogram data Old histogram API introduced behavior that calls to collect histogram data would return a frame's histogram once, and would wait until new data was available if needed. Follow old histogram behavior by waiting when histogram has old/not ready data. Change-Id: Ia1b6b5b7a5b63a570a641b5460eb8e0d72c458c8 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit a80d082eeb5ad6a024bea9992d8dc74406c37752 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Oct 15 18:05:14 2012 -0700 video: msm: Ensure histogram is fully enabled before kicking off Histogram hardware needs to have histogram enabled before kicking off histogram collection. Add state variable to track if histogram is ready to collect. Change-Id: I71380e89de1a61f446802f791e917f57d14f10a2 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 6011950da33ac430c1c6b677c25423d07f8e8c95 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 28 12:03:28 2012 -0700 video: msm: MDSS: Add Update Notify Add update notify ioctl to MDSS driver. "Update notify" is able to signal userspace processes when there has been a screen update or if there has been a 22 second period without screen updates. Change-Id: I90cf7f7e6650236186452c1a9f86850731ad785d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0af12fc4577d1dda6a0209d1a35cccaa716721b2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Aug 27 14:52:39 2012 -0700 video: msm: Add backlight scaling for MDSS Add backlight scaling functionality to the MDSS driver (includes the fixes with regards atomicity of backlight scale and level updates). Allow for power saving algorithms to modify the intensity of backlight without introducing race conditions caused by competition for backlight level. Change-Id: I97ae024055ca614648ffe2aeae09cc350d2577ec Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97ea71b93d1148c9127e59ba19a71f67b4808c2e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 27 11:44:15 2012 -0700 msm_fb: display: check pipes queued before enter wait_for_completion Timing generator will not be turned on if there are no pipes queued. Therefore wait_for_completion may never be completed if there have no pipes queued. Change-Id: Iafba086e4ba20b31470c9fd385c4f5c474ecadcf Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0edc1cb98a8af7a7c650c7f690e510e7c01b9b1 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Sep 24 19:52:16 2012 +0530 msm_fb: Enable H/W cursor for External Interface Add H/W cursor support for MPQ uses cases which use external interface. Change-Id: I5d1f71813769c7e86e576888463bceaa7ad37b68 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit c579c8770c6c0a9e823cc4a7d1349ea4e3d99d95 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 24 17:36:38 2012 -0700 msm: mdss: fix rotator hang for xrgb formats XRGB formats require constant alpha to be setup when writing back to memory. Change-Id: Ie819b88578a85923d1cde7efe54ca0819c59a611 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6ba5f1fb067410d097f973f311bfcc9eded6a1bb Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Oct 18 11:21:23 2012 -0700 msm_fb: display: add wait4dmae for hdmi as primary display When hdmi use as primary display, pan_display is used to update screen. This patch adds wait4dmae to pan_display to avoid source tearing on hdmi display. Change-Id: Ied31419590c51e4bc2218ee8dfdc7d5221c996dc Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7ef177524d89ce9bbd84bf0a54c28c335c2a2b14 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 11:00:19 2012 +0200 msm: mdss: add support for different panel formats Some panels have different color format requirement such as RGB666 for EDP Panel. Add logic to detect panel resolution based on panel bpp set by panel driver. Change-Id: I4cad59033b8b4f807c2ed38b00451aab89737bb7 Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit b2372aeb5c33f7c49ad3133238b799ba9e60480b Author: Gagan Mac <gmac@codeaurora.org> Date: Mon Aug 20 19:24:32 2012 -0600 msm: msm_bus: Add support for 64-bit bandwidth requests With 8974, bandwidth requests are exceeding integer size. Update ab and ib to ensure values over 4Gbps can be requested. For 64-bit support, there are four changes in this patch: Changes in the bus driver structures and functions to update ab and ib values to uint64. Updates in client drivers to ensure that the bus APIs are called with the right types. Updates to the device-tree. Device-tree nodes don't provide a clean mechanism to read a combination of u32 and u64 variables within the same property name. So, the ab and ib values must be specified in kbps instead of bytes/sec from the device tree. The bus driver function will convert the ab and ib values read from device-tree to Mbps. Change the existing property names to make them consistent with the convention used by the new property name, which abides to the Device Tree convention. Change-Id: Id37407c349a9cea17f6621d3bef2401b856f7b7d CRs-Fixed: 408786 Signed-off-by: Gagan Mac <gmac@codeaurora.org> commit 327a968551e890838f471ce649748d03861465a3 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Aug 23 17:08:25 2012 +0530 msm_fb: ADD AVTimer info to the vsync event for DTV interface MPQPlayer requires Avtimer time stamp when every frame is rendered. This change enables sending AVtimer info with every vsync for DTV interface. Change-Id: Ib36c9a152bf3454be984fed765ad268f9435933b Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 523d93ac63dc5a0ae9b5c7d24278ca48fbb923d4 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 22:47:03 2012 +0200 msm_fb: mdss: Add EDP physical layer configuration support Add code to configure the enable/disable and PLL settings for the physical layer of EDP. Change-Id: I6e15e41fdd23cc5a4855a3addf85050ade802d8d Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> commit 68b3fc5593916dc6d4b47d2434776c9dd91f77a2 Author: Asaf Penso <apenso@codeaurora.org> Date: Tue Oct 16 21:47:59 2012 +0200 msm_fb: mdss: Add eDP controller driver support eDP controller is one of the output interfaces for MDSS. Add support for eDP host controller driver which runs in Video mode only and eDP related changes for msm_fb panel driver. Change-Id: I0a150f8d712f57bdfaee9051b2893e2910195567 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Asaf Penso <apenso@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 4fc9350b124ded06f90c43410c2c0b512681c0db Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 09:03:18 2012 -0700 msm_fb: display: return fail if pipe still staged Pipe is not un-staged from mixer when it is unset. It expects a pan_display() to un-stage it out of mixer. Return fail at overlay_set() if pipe was still stage at mixer. CRs-fixed: 399193, 393979 Change-Id: I562f6e133bb239b30f4f53669dbf1cc5ddf80d02 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4aa5b44e20ba129a98fedff1cc6ea4a9495f0ebe Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use MDP_Y_CBCR_H2V2_VENUS as the output format for writeback For Wifi Display use case, the Venus variant of NV12 is required since the Venus core expects it in this format. Change-Id: I68ded4373212021486bc6b7b89514fdecf05d4da Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 636779a7ddbe69a6f8be39cba9755e352fce39b4 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Oct 12 19:06:16 2012 +0530 msm_fb: hdmi: Proper update of ACR CTRL Register While changing the audio sampling rate, the older data in the control register needs to cleaned before writing in new data to avoid mixed or wrong data writing. CRs-Fixed: 405772 Change-Id: I95d0807ea8cf544e4a0c8caed00de6cd60352efa Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 35c724bf61ef9432cd467152dfeab25e517b50a7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Oct 10 11:51:20 2012 -0700 msm_fb: display: add dtv base layer swap Add dtv base layer swap between border fill pipe and rgb pipe to support hdmi as primary display. Change-Id: I127a301385d5d83e5d06507869132c6e124cc94f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0e53b6627814d52e3cf5604e0793f4780ec4a9c1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Oct 4 20:29:52 2012 +0530 msm_fb: display: Make sysfs read request interruptible Change blocking sysfs read request to be interruptible and protect vsync timestamp value to prevent corruption. Change-Id: I510d84134b0ab70d17729e8c53c91fa926035142 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 97104cc8bf4881f41dfd79e6bdc31383c5ccabfc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Oct 3 17:50:39 2012 -0700 msm_fb: display: extend mutex protection for mdp pan display When mdp commits a buffer to play, functions inside pan display, e.g. mdp4_overlay_mdp_perf_upd are based on the current state of play, so extending mutex to the scope of pan display to avoid race conditions. Change-Id: I2e55567fd21de3738be066a2dee298d8122f12a3 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5b567514a5cebae7b6fdabd0b94c29efa4aef18f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:50:16 2012 -0700 msm: mdss: fix rotator session not being closed correctly User space expects non-negative number as session id, update rotator mask to avoid making rotator session as negative. When rotator is closed, need to recalculate bus/mdp clock numbers. Change-Id: I6c0e3bfa5394fb64b78fb47be1f24462e320916d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6e923f52e81757c6fdb03fe4184f79be7b4068ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:30:03 2012 -0700 msm: mdss: update performance calculations to include border color Current clock and bus scaling calculations consider only source surface pipes to set clock rate and bus scaling factor, however since MDP also generates pixels for border color this area also needs to be considered for final clock and bus scaling factors for data paths that use layer mixer. Change-Id: I9463c01dfd0b7a301797bd036f563e15d5195dbd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 35143f7156a7f651f2cfcc511b2ebbb12b2ceb02 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Sep 13 10:43:15 2012 -0700 msm: mdss: move unstaging of overlay surfaces to display commit Perform cleanup of surfaces destroyed with overlay unset until next display update. This enables a smooth transition in case multiple surfaces are unset before next frame update. CRs-Fixed: 406645 CRs-Fixed: 406553 Change-Id: I843c7f11fc943d8351b7408116101ba20f25d116 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 70236f7a01bcb9278b99f2df7b8acd4d1cd323d2 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:12:14 2012 -0700 msm: mdss: remove display commit during overlay play All display commits happen with pan display in order to have a single sync point when using multiple pipes, and avoid blinks that can happen when updating surfaces out of sync. Exception for this case is writeback where commit is still needed, keep this implementation until this exception is corrected from user space applications. CRs-Fixed: 408105 Change-Id: Ib40c4872f43e6a939c45624677b2ab1f64a3b31e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 944b88e82e9baaaeb52a2ec38298ed2e48c33f1d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 9 20:06:21 2012 -0700 msm: mdss: implement commit ioctl for display commit Commit ioctl is used to update contents on display while avoiding console_lock done through framebuffer pan_display path, which causes additional delay on display pipeline leading to flickers on HDMI. Change-Id: Id3522d322ba08b110d540e10214cadfbbb0bcc25 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d74db5fcf24a223570137087aa5632593b315fcc Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 5 09:05:58 2012 -0700 msm_fb: display: wfd with vsync driven frame push To improve performance, hardware vsync event at mdp driver is passed to framework so that both composition and frame update are aligned at vsync event. This patch will upgrade wfd to incorporate vsync driven frame push in consistence with other interfaces. Change-Id: If088826ec387446301f1f6acc311d909edb04163 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f0d08071a4e97c9018b8e8def498e07720201da8 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 18 17:32:15 2012 -0700 msm_fb: display: add checking y direction for alpha drop Alpha is dropped when scaling with non repeat pixel method. Both x and y direction of scaling need to be cehcked for alpha dropped. Change-Id: Iba0df5a85011f179199c13ffdebac911e5c14c3c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6745082aec2b97f07dcfbc49ea7b8b79099f4d13 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Tue Sep 11 18:04:34 2012 +0530 msm_fb: Use background alpha for all destination alpha enable cases Use background alpha for modulation in all the cases where source alpha is not available. CRs-fixed: 366834 Change-Id: I300c04181ee3fa4f305a26a3e17e7eac2572564c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit bd556dc51ccf32a7ddc8d435d31f39e981815f8f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Sep 21 14:11:30 2012 -0700 msm_fb: display: check base layer pipe at irq handler There is a corner case when overlay and dmap interrupts are fired before base layer pipe is allocated. Therefore Check for base layer pipe before performing any operations. Change-Id: Ib188d575044f5479672503508042c8c1e9c759c4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 7d136bef71281855cd224ccc967e4e95286f5356 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 26 13:10:42 2012 -0700 msm_fb: display: add fput_light to frame buffer Frame buffer's (fb0) ref_count need to be balanced. overlay_play() increase fb0's ref_count (fget_light). This patch will decrease fb0's ref_count by calling fput_light after commit. Change-Id: I34ea738bf21d0858b7361ec8e289464a217a1231 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f08f2387cdc5a2d365c33bef1fe2a87b6c5911c3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Oct 4 16:21:33 2012 -0700 msm: mdss: remove pan display no memory warning There are some framebuffer devices that don't allocate any memory such as HDMI or WFD, warning for no memory is not necessary and it just floods kernel log hence removing it. Change-Id: I8f9ba1cda1f55c741b99d462adf74531d73aaeee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a4c377fbf133bd53913d451b478c177c271ab365 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Sep 28 11:13:49 2012 -0700 msm_fb: display: remove background invert alpha option for alpha drop pipe When the blended background pipe has dropped alpha and it is going to be blended with foreground pipe on the next stage, MDP4_BLEND_BG_ALPHA_FG_CONST is taken. Foreground alpha constant is 0xFF, so we need to use this alpha value to show background, instead of its inverted value. Change-Id: I1fe0572f9bb54db6280bcc44117a21b8c0d8b07a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1ecd40f19ec16f6f5a8025ae49102b281fe016de Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 19:31:33 2012 -0700 msm_fb: display: empty pending queue during suspend Overlay_play() adds a pipe into pending queue and pan_display() will commit those pipes to hardware and empty queue. This patch will make sure queue is empty at suspend so that no unexpected pipes will be commited to hardware by pan_display() at resume. Otherwise, iommu page fault may happen. Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a77eca6cee55531e81e21d83b474563f9c143e77 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Sep 13 13:22:04 2012 -0700 msm_fb: display: add pipe commit ioctl currently, pan display serves as pipe commit. However it may spend long time pending on cosole_lock() which cause flickering on HDMI. Add pipe commit ioctl to allow commit from overlay in addition to pan_display. CRs-fixed: 391564 Change-Id: I163b5d96f727b70b4d5693e9a414b59339818998 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ee79b635fc78d5abe40e3918f2bf6f754f3516da Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 25 17:04:18 2012 -0700 msm: mdss: carve out memory for framebuffer Use carved out memory allocated exclusively for framebuffer instead of using up memory from ion pool. Change-Id: I4b248a21380a3ef737fe2fd8eed6de9747fe47c7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d7a09f0c134c61f3d3dd2239073c3363e4306858 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 2 16:48:16 2012 -0700 msm: mdss: remove play_cnt reset in overlay set play_cnt is used to manage currently displayed buffer, this value is incremental and should be initialized only once for new pipe creation, but overlay set can be called after pipe creation to change params. Remove reset of play_cnt to avoid reset on subsequent overlay set calls. Change-Id: Idef90a6123c4e1a9e8b1ab963bf78330cdd912bf Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ac990ba5e32295c9efbffb56b7c659efa6cae6d0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 13:57:51 2012 -0700 msm: mdss: allow dynamic resolution change Modify initialization function to take changes in input paramaters including resolution and format instead of doing a one time initialization. Change-Id: I01c575fd1d957218296e658b3b4b8d72cd138614 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b4b75a59b665c0d1b3aa14a41fd81f754d4f093 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:25:22 2012 -0700 msm: mdss: use half of panel width when using dual pipe MDP layer mixer only supports up to 2048 width, if the panel resolution is greater than this dual mixer needs to be used. Setup each mixer width as half the panel width instead of allocating max width on left mixer and use left over for right mixer to have better load balancing. Change-Id: Ibc01591e2e6d5e5f98e81dfba766493abd9895a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6c6a597e45a2d7daafdfd2c63832cce638334d6f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Sep 24 10:51:13 2012 -0700 msm_fb: display: remove extra dmap irq disable Both irq enable and disable need to be called symmetrically. Remove an extra dmap irq disable call. Change-Id: Ic51003c50431ebe46a9fc540163cda77a1c91797 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b453fc7adc6c02e0f23550c5703bf93f8f6bfea Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 28 15:22:37 2012 -0700 msm: mdss: disable framebuffer memory check when not allocated HDMI and WFD don't allocate any memory for framebuffer, in this case there is no need to check for available framebuffer memory. Change-Id: Id3fc6279e1b2a5d4b96d3b85e29ba6865a4dd38f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 105ef65f2db0be51711a5d3fc293064da0a38e2b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Oct 1 18:26:05 2012 -0700 msm: mdss: fix height align for venus format Venus format expects luma height to be aligned to 32. Change-Id: I1ccd5ddb91d1067a68b576891ddf4d73360108ba Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c87b83203c2069c71a732e3164357b02649c12dd Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Sep 28 18:48:15 2012 -0700 msm_fb: mdss: Fix dsi controller reset sequence during dsi initialization Move the dsi_sw_reset from panel ON sequence to controller initialization function. Enable clock lanes and disable controller before doing reset. Change-Id: I570615a931214021360070cd1cfea4ed3b6812d5 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit ed1430f0336a587a63729d2b698f9e23de46c95d Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Sep 12 17:00:27 2012 -0700 msm_fb: HDMI: Remove HDCP Kernelconfig Remove the kernel config parameter for HDCP since enabling or disabling HDCP will now be controlled using a corresponding module parameter. Change-Id: Iae23b8fa66ca75d99423547e77f850f3c86615ee Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 16229f5a1ce7007eb44dc1d43482f85c03e07f57 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Sep 7 16:08:10 2012 -0700 msm_fb: HDMI: Driver changes to support HDCP module parameter This change removes the need to use HDCP feature flags in the HDMI driver and adds the necessary support to configure HDCP feature based on a module parameter. Change-Id: Ie0eacc5b447230927cfdedfcb979c22d60e81981 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d8d660a6011c903fef1d9c1a58ea578e6a58e1ee Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Sep 11 18:10:33 2012 -0700 msm_fb: HDMI: Add module parameter to disable HDCP This change adds a module parameter that can be used to disable HDCP at runtime by specifying hdmi_msm.hdcp=0 on the fastboot command line. Change-Id: Ifad5da9fcb86fb4ed663a5ef2bb14fe4dafd241e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 51d631dd2b8a301828b4780f6496a6fe5490e454 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Sep 18 20:34:16 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP3 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Change-Id: I22cfbd68c8bcbe4a47e94074393f1cbf79920c58 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit d473df4fba1417b4d7d429849af2a4243869e55a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Fri Sep 7 00:37:24 2012 +0530 msm_fb: display: Send vsync events using sysfs for MDP4 targets Replace sending of vsync timestamp using uevents with sysfs entry as uevent result in increase in power numbers due to broadcast in nature. Also, for smart panel, wait4vsync is removed. Change-Id: I5219e85b837b8bab9d00a9f40c1048d2a2355194 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit a8d45ced76c79333af546ad63ae31972aa00b109 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 18:42:29 2012 -0700 msm: mdss: Enable hpd for HDMI Tx controller Enable hot-plug detect circuit of HDMI Tx controller to sense connect and disconnect events of HDMI cable. Change-Id: I4e5614d32f5c9885f23060d68ad5b6a72a045177 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4f56d21f84a2e2adea6e83b8c75501904feebf7c Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 18 15:17:07 2012 -0700 msm: mdss: Fix EDID read failures in HDMI Tx controller DDC data channel is used to read HDMI sink's EDID information. Fix the request length for this read transactions to prevent EDID read failures. Change-Id: I74b2ce344cdd08721a78641a7553c85927a96831 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 1e88b6e0ecdb4485d21e94ad3e87c1caabdcde37 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Sep 10 15:54:25 2012 -0700 msm: mdss: HDMI Tx clock clean-up. Generalize and move HDMI Tx controller's clock access mechanism to mdss_io_util so that other mdss modules can reuse it. Also correct the name of iface clocks. Change-Id: If0ed2c4244a9a0fcdb819f63010555d968a0b036 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 4e055b701f5600e391ed5d440b90fb1958924c49 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Tue Sep 25 14:10:48 2012 -0700 msm: mdss: Debug enhancement for mdss modules Move debug log macros to mdss_io_util so that all mdss modules can use the same mechanism. Change-Id: I960fc394c60b74d694a81ad636b7055a224a2c6f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 60a6b37db0caeb736291f0eccd99baa307d60a86 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 31 18:20:45 2012 -0700 msm: mdss: Provide generic io access mechanism to all mdss modules Generalize and move HDMI Tx controller's io access mechanism to mdss_io_util so that other mdss modules can reuse it. Change-Id: I097af956706dcbf2e9fa1f6b5983a550a462fed1 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e782ceab26e38590cd49a9bb273da1dbf1984ccd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Sep 28 11:49:26 2012 -0700 video: msm: Enable mdp clock for histogram and histLUT Enable the mdp clock for histogram and histogram LUT to ensure that the clock remains enabled when they are being accessed. Change-Id: Ic744f2ee96b64442f23ba19aa1c38552c0dad83a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 61832135cad75ef082a905fedb30d835c85611b5 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 13 17:41:46 2012 +0530 msm_fb: Return pan_display call on Vsync interrupt Till now, the pan_display call returns on DMA_P_DONE interrupt. For command mode panels, the DMA transfer starts only after the DMA engine receives a TE signal from the panel. Hence, return pan_display ioctl on vsync interrupt to improve performance. We still wait if the previous DMA transfer is not finished at the beginning of next pan_display. Change-Id: Ie92bc000a5842aa02a77a08b6bafdc8472bbebbd Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit f6044334ee63fe9553f5cce8aa65c172c88e1175 Author: Kalyan Thota <kalyant@codeaurora.org> Date: Thu Sep 20 16:57:51 2012 +0530 msm_fb: configure LM1 and LM2 CSC coefficients with RGB2YUV for WFD 1) Initialise the LM1 and LM2 coefficients with RGB2YUV as WFD expects these coefficients to be programmed. 2) LM2 is available from MDP ver 4.3, fix conditions accordingly Change-Id: Ifad2be0fb5c3c96fa1515e114097a87d250fd62a Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit ce328861aa1f4fa489e9abfc9d1e02b13af2ba47 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 25 18:52:00 2012 -0700 video: msm_fb: Ensure backlight is scaled atomically Ensure that when backlight scaling ratio or backlight level is being changed that the operation execute atomically. This prevents a backlight level change from being overwritten when it interrupts a backlight scale update. CRs-Fixed: 404017 Change-Id: I708513cfcec558c5d65f21f189dd52331fdf0f4f Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 0f523bdb25b2af4f09e79eb58d3daee3775851d2 Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 11:14:03 2012 -0400 msm: display: pp: histogram collection for mdss MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support Only read the histogram data when there is a new display commit Only generate the next histogram collection when there is a display commit Cache the histogram data in order to respond quickly Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit bf5fb4c17c220a91160e48a2ca65e709c0a35511 Author: Ken Zhang <kenz@codeaurora.org> Date: Sun Aug 19 14:41:01 2012 -0400 msm: display: pp: gamut mapping support Support gamut mapping via pp ioctl with logical display id. Allow changing processing order with pcc. Change-Id: Ia37afbe40b73c08fd8760bae84307889280368ce Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 7fb85777173a3048765a52fc1ec4a3178c1fb2a9 Author: Ken Zhang <kenz@codeaurora.org> Date: Sat Aug 18 14:51:33 2012 -0400 msm: display: pp: backend dithering support Dithering configuration from PP ioctl with logical display id for mdss. Change-Id: I4c8409b253dc1ab5625f342f45f61246d538691b Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit b9498c688a4a20d707233dda585a96b8e3681666 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 17 14:20:25 2012 -0400 msm: display: pp: enhance hist lut support Support histogram enhancement lut control for logical display for mdss. Change-Id: I915e1f1ca0ba1c53b8ce5b627a8d10cc15ebbf76 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 16e43d6c628bbfb14ba3a7e5024f60b9d216f9f4 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 22 17:14:19 2012 -0400 msm: display: postprocessing: argc lut support Area reduction gamma correction support for mdss. Support logical display id via PP ioctl for argc setting Change-Id: I8d1dedc016809f73de0605ea68e6a1bfda580648 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 824758e1c1d780014b4d404be9d7f85cb414fb46 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Aug 15 11:02:21 2012 -0400 msm: display postprocessing:igc lut support Inverse gammam correction display support for 8974 Use logical display id via PP ioctl Change-Id: I9f1bec84a401f079690ecfd622a2e5f0f8307ff6 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit ea6a09511a1d812f3b0f836dac9193900ccb9a3d Author: Ken Zhang <kenz@codeaurora.org> Date: Tue Aug 14 15:11:39 2012 -0400 msm: display: pcc configuration Enable 8974 polynomial color correction support Cache the setting via logical display id, config hardware in the next display commit Change-Id: I11e3d2036c2ab8de881d394d53c6098932f810b5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit ad6db3d66cb2f826f4f223898012d7d7aa6ca645 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Sep 26 17:57:34 2012 -0700 msm_fb: mdss: Remove spinlocks for set_rate and clk_enable APIs The clk_set_rate APIs should not be called in atomic context. clk_enable APIs doesn't need to be in atomic context. Add code to remove spinlocks for these clock APIs. Change-Id: If5e543135bda681ee8ddae35ab91288f535a9e9a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit aaacec6420069ba21992ddd39db991b3717d6436 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Sep 20 16:59:10 2012 -0700 msm_fb: Fix display corruption with continuous splash screen feature During boot up, we observe random lines on screen between the splash_screen image and the android animation. MDP clocks were turned off during bootup. Fix this issue by enabling the clocks when this feature is enabled. Add check to see that the video mode engine is not busy before turning off the dsi controller to avoid any underruns. CRs-Fixed: 399634 Change-Id: I8fdb50fa848362a548b8cdd53ee1817346b57716 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b05e8b1ec779ab5cc94f0847a99baa4d97eb4e10 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Sep 25 13:16:05 2012 -0700 msm_fb: display: turn vsync irq off at suspend Turn off vsycn irq at suspend to prevent vsync irq firing before vsycn enabled ioctl called at resume. Change-Id: I2428cdeb5cf7008e50f6d8dabfad52416db2fff7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 911b4b702a63fbd241863966cad45909e40e4665 Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Wed Sep 12 14:42:50 2012 -0700 ion: change ion kernel map function to not take flags argument Buffer flags are going to be specified at allocation time rather than map time. This removes the flags argument from the ion kernel map function. Change-Id: I91589ca7b1ab142bb5ac8e6b0f4c06fa1305f23a Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 7d72bad55a0e03392d81eee77a9a8c9df6b73a9a Author: Hanumant Singh <hanumant@codeaurora.org> Date: Wed Aug 29 18:39:44 2012 -0700 ion: Port heap mask change to ion Heap mask field passes as argument at allocation time to specify ion heap. Change-Id: I8881dfc491dc0f8f70581ad97b35756a6a33dd6d Signed-off-by: Hanumant Singh <hanumant@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit 5e0fcdbf8b22bc9637413de9cd0592c159dd4e8f Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Sep 12 11:10:26 2012 +0530 msm_fb: Make Vsync IOCTL during disable sequence as NO WAIT Change to make the vsync IOCTL no wait during the disable sequence. This is to increase the performance. Handle the synchronization of vsync interrupt using state variables in drivers from now. Change-Id: Ia5ec14493f233a95f21d01ea627200a6c278239f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 57e2bed7fdf998d9dcb1a3bea98f43d75c7cf3a9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Sep 24 11:39:29 2012 +0530 msm_fb: display: Add support for vsync driven composition on 7x30 This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time for 7x30. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: I2acb83f871f16c2278dc10cb958580a2826efe70 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3545573720822ce97ec37586f10fdf74a6d4f090 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Sep 24 22:07:47 2012 +0530 msm_fb : display : Block RGB downscale in MDP 4.0 and 4.1 Downscale is not allowed on RGB pipes in MDP 4.0 and 4.1. Hence, fail the OVERLAY_SET ioctl for such configurations. Change-Id: Ia18de77e78b84ec5f10a03fe9b48ef0821222e84 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit b54b6d4974f0a7c42e66502fca3644fe3ae406be Author: Ken Zhang <kenz@codeaurora.org> Date: Mon Aug 13 14:49:52 2012 -0400 msm: display: csc configuration support via overlay Implement overlay pp csc configuration for mdss Reset the play cnt when MSMFB_OVERLAY_SET is called Change-Id: Ice2e3700a275c5375ee4939bd3484b7ee5def898 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 08065c0bd558140a26622f9bb15c8649a8333723 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 15:48:31 2012 -0700 msm: mdss: implement early suspend api Use early suspend API for suspend/resume to allow display more room to turn panel off/on before system goes to suspend mode. Change-Id: I70b8b1055c30b940eda49ebad0db341259e903b4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e977b389d047b630be6178b6f2588dc339498b2d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Sep 21 16:28:16 2012 -0700 msm: mdss: cleanup suspend/resume logic Remove references to global variable by using driver data to access mdss global data. Change-Id: Icaedf0fffe22b6d375df8f87f555b415101c6628 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1121a7fab5548575f1a30388c5b1b0f5b773eb42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 17 18:52:56 2012 -0700 msm: mdss: fix vsync ctrl logic during suspend/resume Sometimes vsync ctrl ioctl can happen before panel is on after resume, in this case driver needs to remember state of vsync ctrl and apply after resume. Change-Id: Ia583bd9e3a858c5972623eae0512fa27da8452e1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 01b0d13ad1071385bb938ee69d268f799b7de6f5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Sep 11 18:26:35 2012 -0700 msm: mdss: fix mdp suspend/resume sequence Free overlays used before panel off sequence to ensure source surface pipes are properly detached from layer mixer. Change-Id: I712bfc1961607e09dcb976e4888db1885de09871 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4a1fb9ce546b946a184601cbeb3a278dd351a0df Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:38:36 2012 -0700 msm_fb: mdss: Fix suspend/resume for panel driver Avoid disabling video mode while sending OFF commands. Add delay between the display reset line toggle mechanism and GPIO display enable API for proper reset of the panel. Modify the PHY regulator control configuration sequence for proper reset of the physical layer. Change-Id: I2c890d52d773faab6020267121ea4557a59bd108 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 37e723cfad97be59d5a28e59220f9dcafe24ce32 Author: Ken Zhang <kenz@codeaurora.org> Date: Wed Sep 5 15:43:02 2012 -0700 msm_fb: display: wake up system around vsync To avoid frame drops due to power collapse, wake up cpu right before vsync. Change-Id: I63385eb329ae5e74cbac5256823fd3a213e0a0e1 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 42f4dae926438b40ac3ba1a48f54c1fad31dc125 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 26 22:31:06 2012 +0530 msm_fb: Reduce the display wake up time for NT35510 panel Reduce the display wake up time during resume by reducing the sleep values of the DCS commands during the panel initialization sequence for NT35510 panel. CRs-fixed: 392321 Change-Id: I6b55e48582a97adc451105802f5b2ca826767954 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 7e73b56cb67779bc700938acbb226dd99d361882 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Sep 12 11:26:57 2012 -0700 msm_fb: display: free base layer pipe at adb stop Base layer pipe need to be freed at adb stop so that same pipe can be allocated at adb start. CRs-fixed: 390644 Change-Id: I948bb27687cfe1c96cc3b071b7bb9bb84b2c52c6 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e5f3b4ff8a4a0d980e02fa38c2b70fec7095e79 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Sep 10 09:40:44 2012 -0700 video: msm: Ensure idle state before enabling histogram Disable interrupt, set state flags to false, cancel histogram collection, and clear the workqueue before attempting to enable the histogram. This guarantees that this is the only configuration of the histogram running. Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 2dd5234c094157bf77781b8646ac9ad114f819b0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Sep 6 12:03:29 2012 -0700 video: msm: Defer histogram reset to workqueue Currently, when an underrun occurs, a reset request is sent to the histogram hardware. This has been observed to cause a hang in the histogram collection cycle. The fix for this hang is to instead rely on the existing checks for histogram validity in the histgram read worker. When the underrun occurs, the histogram is invalidated, which in turn causes the histogram read worker to reset the histogram collection when it attempts to read its contents. Change-Id: I66d33ddedef76fdcb6c4a3d8095c0e8ca695e33d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 9218ac41cc42b55de227d7b967e15395feff89ca Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Sep 17 15:33:10 2012 -0700 msm_fb: MHL: add fwd declarations If MHL feature is enabled from kernel config compiler throws errors. This is due to the re-ordering of the function definition in some of the earlier patches. Need forward declarations of a few functions to fix compilation issues. Change-Id: I486b3d6efc33f6557b5ef301bd7037867bb8c562 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1026832c51cbadeea9a717fa20fb42b6a7c5661f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Aug 29 19:22:57 2012 -0700 video: msm: Dynamically toggle histogram interrupt Make histogram enable/disable functions also enable/disable the histogram "interrupt enabled" bit on the MDP enabled interrupts register. CRs-Fixed: 398556 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Change-Id: I56f811e88cf3fd44ae0a2df8a6e5de32ba9a0c1c commit bc79d49dacc9e416c7f9ea98fcff21eec3050fcc Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Fri Sep 14 14:44:30 2012 -0700 msm: mdss: Return correct error value Return a proper value rather than 0 everytime. Change-Id: I0065a420c65e4800d114be4698618d66de89d105 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 8914c1ca05e90d80432c104a509eab129038de1c Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 12 17:32:21 2012 -0700 msm: mdss: increase bus scaling factor to improve performance Fix performance issues seen with different use cases such as HDMI and MDP composition by increasing bus scaling factor used. CRs-Fixed: 398503 Change-Id: I2391f81c0cba1fa7f5849ce55ec89762765d7575 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ad3200279e62eff01fd1bb9136cc9c0d11e10380 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 23 18:26:09 2012 -0700 msm: display: Add DSI clock control for MDP GDHS power collapse Enable DSI clock and regulator before enabling/disabling power collapse for MDP GDHS. Change-Id: I9effb5b4e9ca8033c51085260c8fb9f32c422dd3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 6c7b2d322826aaf12b7682079cadb8ac9179fbce Author: Mitchel Humpherys <mitchelh@codeaurora.org> Date: Thu Sep 6 10:33:12 2012 -0700 msm: display: include msm-specific ion header All msm_ion clients need to use <linux/msm_ion.h> instead of <linux/ion.h> Change-Id: Id079277f1f5688f08c8dec7f20308315ab46a081 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org> commit d635cad054f3860f8ca13a8cf79f3e46f8892ce6 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 3 15:52:06 2012 +0530 msm_fb: display: Copy splash image to kernel memory The bootloader memory from which the splashscreen is shown gets reclaimed before frame update happens from framework. Hence, copy the splash image to a local buffer as soon as display is initialized. This will ensure proper continuous splashscreen functionality. CRs-Fixed: 378721 Change-Id: I55a7b97eeced56d2f108d34998d58966610c4305 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 77ce0197185ba16c4cf6c2745065f339aa32ef46 Author: Ken Zhang <kenz@codeaurora.org> Date: Fri Aug 10 11:27:19 2012 -0400 mdss: display: postprocessing: picture adjustment Support picture adjustment(hue, sat) for 8974 Use logical block id as input. Apply configuration at next display commit. Change-Id: I0e35e50aecdd346ec91373d0c304e21185f28502 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit edd57ca52bd12fa42865557bc5cfcc70cbbb8e6f Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Sep 11 15:29:10 2012 -0700 msm_fb: display: Update mdp clocks based on perf patch MDP clock was not getting updated to the correct values causing underrun issues. Change-Id: I4902ede1a8dda7408384261ca352e1ca1057a69c Crs-Fixed: 395054, 395166 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7c31ee7933fff437acfaa69cf443c81638a495de Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 17:20:36 2012 -0700 msm_fb: display: add wait after overlay kickoff MDP writeback overlay kick off needs to be a blocking call to avoid WFD tearing issues. Change-Id: I03ce16b1e11c458bc8602880f22f1aed536a2e5a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a61ad91ac33d5ec756a39201ed4350f4af55f701 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 30 16:21:32 2012 -0700 msm_fb: display: add blt condition check at video/lcdc off Blt mode may be enabled during system suspend. Need to make sure blt overlay done before turn off video/lcdc timig generator. Change-Id: Iad54ee544499213bb7c9cfe60d00919f819aacb1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30e707acaba6cac235c86b84f9735ae1aa94b5cb Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Thu Sep 6 16:48:04 2012 -0700 msm: mdss: Move HDMI Tx controller's regulator get to probe Move HDMI Tx controller's regulator get to probe function in order to support deferred probe in case regulator in interest is not available or not successfully probed before HDMI Tx driver. Change-Id: If0a5cf97a86c39fcdf649997c18121cc500f08a8 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 7bcecf0a6a6864accfa1318e33e85ad2cc23f535 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Aug 22 15:01:15 2012 +0530 msm_fb: display: Program source address registers correctly Scale filter FIR uses the adjacent pixels as part of the processing. Source address registers should be program such that they point to the first valid pixel so that non-ROI pixels are ignored. This is done by making source x,y offsets to zero and adding the computed offset to source address. CRs-Fixed: 380020 Change-Id: I998fdd46f39dc67f32c422ec209da59d1add2e95 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit f9bc16bf6dcb8beb7d5d6405ee5dc767e6decdff Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Aug 21 15:15:13 2012 +0530 msm_fb : Add option to enable/disable mixer commit Adds support to enable or disable mixer commit during pipe staging operations. Depending on the current activity, this selection can be made. Change-Id: Ia2f5dbab58f73ef4de90abf7f278332d8d73df46 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 8c13d2615b1c608f941137166efb649353cc0bdb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 25 17:02:52 2012 +0530 msm_fb: Update backlight level on resume after first pan display Use shared workqueue to delay the update of backlight after a first valid frame is displayed on the panel. This avoids any transients being displayed during resume. CRs-fixed: 361002 Change-Id: Ia2c2e39aae62e9ddfebe3a26fb4dbc969d0892c2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c3c52ddda318fcf7e15bd0674c2ba1903fbfa49f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 24 21:32:45 2012 -0700 msm_fb: mdss: DSI driver code clean-up Remove mmss_cc base variable. This is no more needed. Create new controller platform data. Move the needed variables as part of the controller pdata structure. Change-Id: Ic5c72911dbfe889e1f8ff6992d438b6631796507 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 00baebf181e4dc29d128a2fd16422333b81a8e43 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: display: Enable IOMMU for MDSS driver Implement all calls to iommu driver from MDSS driver to map all buffers to virtual address space instead of using physical addresses. Change-Id: Ia194bf53dd881e36c702bbe4c024b652ed34df13 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2fa3b134d43a6f9e47542fd25d288ed07205fa66 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 16:02:25 2012 -0700 msm: mdss: expose panel frame rate to user space Some framebuffer clients expect panel frame rate within reserved[4] member of framebuffer info. Change-Id: Ie74950366372af7211ef1c743f26657e89cb7283 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5cf85c06bed6b7bb416093555d347d9eb221f58e Author: Ken Zhang <kenz@codeaurora.org> Date: Thu Aug 23 19:32:52 2012 -0700 msm: display: fb blend setting via MSMFB_METADATA_SET ioctl MSMFB_METADATA_SET ioctl is added for the fb user to pass in additional infomation rather than using reserved fields. User can set pre-multiplied alpha for the frame buffer via this ioctl, overlay blend setting will take this into account. Change-Id: Ic2f6236d84691fb03174ec479874c6928489ea30 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit cbd2a940d95056c51f6cef0a1641a716c8ed292e Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 29 10:46:31 2012 -0700 msm_fb: display: free iommu buffers for WFD Iommu buffers from overlay destinated for WFD (mixer2) are not freed after kickoff. This patch will free those iommu buffers. CRs-fixed: 394270 Change-Id: I6b58b5d1831e7c59c5107641b786730511803557 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b6843a3a56e60e73305c66369f8ad806353e22d Author: Kinjal Bhavsar <kbhavsar@codeaurora.org> Date: Wed Aug 1 15:57:52 2012 -0700 msm_fb: display: Add timeout for waiting on update Content Adaptive BackLight userspace algo waits on UPDATE_NOTIFY to get the screen updates. When turning off CABL, this blocking ioctl causes the CABL threads to wait until next screen update, which may take indefinite time. Add timeout value to the wait_for_completion call, to make ioctl call blocking for at most timeout value. CRs-Fixed: 384026 Change-Id: I6715a36020c24ddd09823bd54d4321900429a6b9 Signed-off-by: Kinjal Bhavsar <kbhavsar@codeaurora.org> commit f947731692cb9480b53edfb6008a9ab2965fda2a Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Aug 31 03:08:52 2012 -0700 msm-fb: display: double the lvds pixel clock for dual lvds Lower MDP clock causing the underrun issues on dtv boards. To arrive at correct mdp clock pixel clock needs to be doubled for LVDS DUAL lane panel case Change-Id: I202f0d16896f88090a9f8407e067a31cc47eb4ea Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 877932c6538689854e2b6a75ce24c8782fbe1fe0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Sep 7 16:22:31 2012 +0530 msm_fb: Return ioctl on vsync interrupt disable Before the vsync interrupt gets disabled, initialize the completion structure and then disable the interrupt. This enables the ioctl to return successfully in all the cases. Change-Id: I6a7c233f818a773d00497502213d1ecf8fe9dc24 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c5ac568e5050209ec2d2eb63995357cabfd43525 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 19:12:40 2012 +0530 msm_fb: Enable MIPI video mode interface on 8x25 EVB/SKU5 Change to enable MIPI video mode on EVB/SKU5. Initialize the need_wait variable to zero to make sure that during suspend, we wait for MIPI_CMD_DONE interrupt only when the command mode engine is busy. Change-Id: I61a9132a9a9343d136ddc70ce76d8682f9ecf7bc Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit eb868344503ed72b7a7a88913ab16250f934d9a2 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:17:46 2012 -0700 msm: mdss: Add EDID support for HDMI Tx driver Extended Display Identification Data, EDID, provides support to read HDMI sink's various capabilities like resolutions supported, HDCP compliance status, Audio format supported etc. Add support for this in HDMI Tx driver. Change-Id: Id9367a2f64557c385082bbd528afc24b54b98514 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit e0a71b9705f4301c39e029f92c7e4c0ca3610f17 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:25:10 2012 -0700 msm: mdss: Add DDC support for HDMI Tx driver Display Data Channel, DDC, is responsible for transmitting EDID and HDCP information between HDMI sink and HDMI Tx controller. Add support for this in HDMI Tx driver. Change-Id: I58d10c61277d36425d89a2270f0ad0495ffd3a1f Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 8bb5150587d79db7f60a5336f267666a7bf56bfd Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:14:17 2012 -0700 msm: mdss: Add power on/off support for HDMI TX driver Add support for HDMI panel power on and power off. Open and close of fb device associated with HDMI panel results in HDMI Tx's power on and power off respectively. Change-Id: I9becdffefe681ce104d631e798d196e23dae4995 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 0b4ce9984ebbe740103568da1cc2db0d7648c4d9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Mon Aug 13 17:03:00 2012 -0700 msm: mdss: Add Hot Plug Detect support in HDMI TX driver Hot-plug-detect (HPD) circuitry is responsible for notifying HDMI sink's connect and disconnect events. Add support for this in HDMI Tx driver. Change-Id: I40fdc64007bffe063ce125ce2e819b06a49d0eb5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit d49fe89aa7eb042947a64f1d5b5f12f54d2c033b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Sep 4 13:31:29 2012 -0700 msm_fb: display: fix division-by-zero bug Panel v_back_porch could be zero for virtual panels, so the check for zero is added to fix the bug. Change-Id: I6a29f3d8d771092bca2374cc9a1c11dd77ad569e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 108090e77d90ff15da5ef94dd72b7aa6f18b5e94 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Sep 6 12:38:56 2012 +0530 msm_fb: Change refx100 value for NT35510 panel in command mode Change the refx100 value of NT35510 panel in command mode to bringup PVT command mode panel. Change-Id: I3e9a303a4f203bd7f2ca88f6cd2fe0b1134f8d65 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d6770da3eb24a8d617145526a7f04398bf44b328 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 8 19:35:57 2012 -0700 msm_fb: display: add support of mdp clocks controlled by vsync Mdp related clocks are controlled through vsync enable/disable ioctl from userspace frame work. Crs-fixed: 384482 Change-Id: I5999ad17955e0f862f64036a6390016ff3a6782f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ffe9cf9b1f49bcd8b140cef21c4655d1b69bb1f9 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 15 18:00:05 2012 -0700 msm_fb: display: add wait for overlay0 done Dcs command mode BLT involves both overlay0 done interrupt and dmap done interrupt. A transaction is start at kickoff and end with done interrupt. At some corner cases both overlay0 and dmap transaction need to be completed before kickoff of new transaction. Change-Id: I5a3cc6e8255acf2c61fc627d35f990182d226f63 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ac37f42a6428b4a1a8bc964ea17902ea41772ba4 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 3 10:23:20 2012 -0700 msm: mdss: improve mdp buffers management Currently buffers are unmapped as soon as it's queued to MDP, however the buffer still belongs to MDP until a new buffer is pushed. Change current buffer managment to track of buffers currently being displayed and properly unmap buffers after a new buffer is received. Change-Id: I6932191fc787f6f5b673edfb690ce1317e283587 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit f281368edca05e3171631b17c5767179bd0a77fc Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Aug 27 20:28:38 2012 -0700 msm_fb: MHL: Fix premature register access Until the information about the MHL feature through boot param percolates to the driver via probe we should refrain from accessing the registers or requesting irq. The init and probe functions are cleaned up with all the real initialization such as power, gpio and chip specific settings moving to probe functionality only if mhl is enabled from boot param. Change-Id: I68c0a2848493a7478f3046e439c42f8fb131f000 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e79dde6faab507c51994a8588bebd03dfc5fb57a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri Aug 24 16:23:06 2012 +0530 msm_fb: display: Fix blend configuration for MDP4.1 MDP4.1 blend operation registers are not double buffered and take effect as soon as they are configured. Configuring these registers at any place other than between dma and vsync produce flickers as new blend values would get applied to previous mixer configurations. Configure blend operation registers just after dma is over, before vsync. Change-Id: I377c11222f7a0cd77e98e90edec6e2e1dc0c17ca Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit e9d4bc826ca849b873f9e91bda68004aa7d78b25 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 22 10:36:46 2012 -0700 msm_fb: display: add mdp clk rate calculation for low vbp For the panels that have low v_back_porch, if h/w FIR scaling is used, during vbp time, mdp clk should be fast enough to output a line from 4 input lines. MDP rate equation for very small scaling, e.g. 1 or 2 pixels' upscaling or downscaling cannot cover this case, where underruns are seen on those panels. Change-Id: I4f35f98c2c1bc4ef04dfee193427bd3ff674945d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 5d3e219fd4e44d67fb122b99745e5e4d4637257e Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Aug 24 17:43:31 2012 +0530 msm_fb: Keep LCDC timing generator enabled during boot up Keep the LCDC timing generator enabled during boot up on MDP 3.03 targets if continuous splash screen feature is enabled. Change-Id: I64276550f28e1f316c420f9cb158f7b8e938b8ea Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5dcea9b4522d3bdc1a0fe38406881b264ce074b8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Aug 28 15:28:12 2012 -0700 msm_fb: display: fix the underrun issue when playing interlaced videos Interlaced videos require higher mdp clk rate and the current code sets mdp clk to max and return. However mdp clk calculation may still give a result higher than max mdp clk, for this case the result is kept and used later to enable blt mode to avoid underrun. Change-Id: I185d0d15e5b79e94561e790e41713cdb405f8bf4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit df6b645836bafcca027bd0820a477e86cf767823 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jul 30 20:12:34 2012 +0530 msm_fb: hdmi: Soft debouncing logic improvements Currently, HPD(Hot Plug Detection, a module used for detecting HDMI cable connection) soft debouncing logic implements around 1 sec mechanism to stabilize HPD event detection. In case of fast HPD connect/disconnect, it is missing a real HPD event. This change implements a new debouncing logic in driver which will make sure the first real HPD event is correctly processed and at the end of debouncing processing, if there is a change in HPD state, the changed state is also processed. This way we always process the change of HPD states. CRs-Fixed: 384513 Change-Id: I02d9814e4a55b7eec11a8e0d134c9ed9b5747422 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 26d04f92047ce213301596f167d84fbc05019f7b Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Sun Aug 26 00:57:04 2012 -0700 msm: mdss: Correct HDMI interface polarity for different resolutions. For HDMI, hsync and vsync polarity for resolution height greater than or equal to 720 lines is active high. And for resolution height less than 720 lines is active low. Program the these settings correctly for mdp's hdmi interface. Change-Id: I1a8889662f55676c13dfa8b7172bf7bcf7351cf5 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit c678e139570f7c1c4560c19f284926b6149e7bbf Author: Mayank Chopra <makchopra@codeaurora.org> Date: Sat Mar 3 06:51:20 2012 +0530 msm_fb: display: Add pseudo-planar 422 H1V2 support in the MDP4 Rotator outputs pseudo-planar 422 H1V2 for interleaved inputs on 90 degree rotation. Add changes to support MDP_Y_CRCB_H1V2 in MDP4. CRs-Fixed: 371303 Change-Id: I8083bf44f9e2addf9e8732268147c1c3f6c0e2af Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 3c34bf24b6ba56d4a2633043d8be0c84d0f449f8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Aug 25 18:07:27 2012 +0530 msm_fb: Handle vsync interrupt properly on MDP 3.03 targets Handle enabling/disabling the vsync interrupt and mdp clock enabling/disabling in a better way on MDP 3.03 targets. This will avoid target crashes due to unclocked register access. CRs-fixed: 388751 Change-Id: I5c4a409772464ce7d06869374dcba5ad7e335955 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 330c0bf5f090f05395f0ae64994a6273853aa9e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 14:15:33 2012 -0700 msm: mdss: add color format for venus core Venus output format expects luma and chroma components to be aligned to 32 bytes, add new color format to support this type of input. Change-Id: I1fc9a61a0c8cfa8244460105fdab02d019d31556 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 248948310712bf710ba097a1d1ef8c840f17169f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 22 19:34:43 2012 -0700 msm: mdss: implement vsync ctrl and events Allow users to enable vsync events to be sent as uevents to userspace applications. This allows applications to listen for and align composition to hardware vsync. Change-Id: Ice480659f8c2adda3b5fe3f2d5bcfb9bf779933c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7e1ec9ab4a865e57372d3536991770f1773af6fb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Aug 24 15:53:35 2012 -0700 msm: mdss: request bus bandwidth before panel on Panel on sequence requires access to bus, make sure bus clock is enabled before panel on by requesting bandwidth for panel commands. Change-Id: I2f92e81b20dba7875a8b1160d14e8fa1895c8f15 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c40f9f9bc1e83ce521759f03b6fd01d9699cd39f Author: Kalyan Thota <kalyant@codeaurora.org> Date: Mon Aug 13 17:33:26 2012 +0530 msm_fb: Retain CSC values across suspend/resume sequence CSC values pertaining to various H/W blocks are stored in a global structure and will be re-applied during resume sequence. CRs-Fixed: 376159 Change-Id: Ieb151185efd106041e28feedf4fa271ae4ba2666 Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> commit 9ed0ef8c7d126938c453aa52c7b69ac869613cc6 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Wed Aug 22 05:12:03 2012 -0700 msm: mdss: Add support for HDMI Tx driver This patch adds the HDMI Tx driver in mdss domain. It uses device tree framework to get the platform data and then registers this device as dtv panel to mdss frame buffer domain. Change-Id: I55534919bacea5b044c1da5d44dda8db496e1528 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit 907b7e097f61fb5dfeacd23dfddb75b92737b1b2 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Aug 8 18:47:12 2012 -0700 msm_fb: MHL: MSC cmd schedule to prevent overload MSC commands to be sent over the CBUS line need to be scheduled appropriately from the ISR. Reduce delay in any processing within the ISR. Schedule each command over a queue and handle them with a worker thread. Change-Id: I6cbde8ce9e4f8c69b7f0a40bcf12c5d3930d0b8b Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit f7110b8272c8b46c732f0cb9c9290ca9e7f688c3 Author: Manoj Rao <manojraj@codeaurora.org> Date: Sun Jul 29 22:29:02 2012 -0700 msm_fb: MHL: MSC, RCP/RAP feature implementation MHL implementation of handling CBUS interrupts to enable and handle MSC translation control packets. This change also includes implementation of RCP/RAP protocols with place holders in MHL driver. Change-Id: Icfc31ee1cf71a57cb9b3733d068ea4478b6c4e90 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 83fba4a6a627923fb358fd445a96df5cf9eacbe6 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 16 17:02:02 2012 -0700 msm_fb: display: add mutex on overlay_play to fix iommu page fault An iommu page fault may heppen When a pipe_commit is executed in between of frame dropped and pipe_queue during overlay play. An mutex is necessary to mutual exclusive between pipe_commit and overlay_play. Change-Id: I736e821c6c648a6ebd435303a1906a40e9b75791 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 79e294bf767b12470d08b4300b286403cb40aaa9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 23 19:26:56 2012 -0700 msm: mdss: fix hang when down scaling video to more than half its size When down scaling video more than twice, PCMN filter scaling should be enabled for all components to avoid MDP errors which lead to hang or underrun on screen. Change-Id: I237bc3a16e4916c9270382f55ecae21b46743a5b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e5612f210482d39d41966ebe003bc924f079db2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Aug 27 11:07:32 2012 +0530 msm_fb: hdmi: Correct checksum value This change writes the checksum value to registers after doing all the calculations so that the correct checksum value is transmitted. CRs-Fixed: 388272 Change-Id: Ia0543e458d5a11b148bd29e0d57ae355a051b2a9 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bef3d659b9f7538c4a208fe4b29f93d1a9795f76 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Aug 12 09:17:08 2012 -0700 msm_fb: display: alloc/free writeback buffer done at do_blt() To avoid double freeing writeback at end of blt mode, let both alloc and free writeback buffer done at do_blt(). Change-Id: Ida5d24589c19be8f6f655eca6add00badca356b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 580e37bbcb2334315cb9535cd4d1e30147f1142f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Aug 2 17:38:12 2012 -0700 msm_fb: HDMI: HDCP: Start HDCP authentication as a work item HDCP authentication should be kicked off as a scheduled work item so as to ensure that MDP is already configured and frames are being transmitted over the HDMI channel prior to the start of the HDCP authentication procedure. Change-Id: I27cab44babfc24d91a318b0641674f85910cc33f Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 73c7b2f7e9b25a3173aa00a5ea3d9d73484a5cf4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Aug 20 14:49:28 2012 -0700 msm_fb: HDMI: Driver changes to support MHL boot param Add necessary driver changes to support enabling MHL using a boot parameter. The MHL driver will now only be used if it is enabled using the boot parameter. If enabled, the default video resolution and available EDID modes will be set accordingly. Change-Id: I9c07a4bdd07ce1d9120296efb143e987390fa0a2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit ea0dcd3f4ad4fd3142bf081795c17d05c42957a7 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 20 22:21:50 2012 -0700 msm: mdss: refactor overlay parameters validation Some checks done on parameters don't apply for rotation only mode where rotation is not limited by the bounds of panel resolution. Update overlay checks to perform correct validation depending on request type. Change-Id: Ic0cf9863231300f7190dd118b78fa753f77f217f Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9d2c48e228631fefef2e5a2d9406447358d910f9 Author: Ujwal Patel <ujwalp@codeaurora.org> Date: Fri Aug 10 22:53:40 2012 -0700 msm: mdss: Add support to make use of interrupt data pointer in an isr Add support to make use of interrupt data pointer during an isr such that mdss panel devices retrieve and use their private data to service an interrupt rather than using global variables. Change-Id: I51a6b1c2814a23b3297556e914ce9601ef266533 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> commit f502022c101dc1c6d6af35d112be76a88c874a3f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jul 6 18:20:25 2012 -0700 msm: mdss: fix null dereference when using hardware cursor Null dereference kernel panic is seen when using hardware cursor because buffer for cursor is not allocated before using hardware cursor API. Allocate buffer once when API is first called to ensure buffer is available to hold cursor image. Change-Id: I2250c4dd93e54fa4e7122c2465fbaf1deef0fa1e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 15177f038fc05e5de18c437fa8dce63327b42d17 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Aug 14 09:16:37 2012 -0700 msm_fb: display: fix mdp crash during overlay unset Check real_pipe address before refer to it. Change-Id: I2f8c6fa6f8e657801dc676f7d9887e7eb0f10e73 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9bfdbf0473204b0267dc86ac4b8cc351194c3ee2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:31:30 2012 -0700 msm_fb: mdss: Add DSI physical layer settings Add support for dsi clocks. Add support for DSI PLL configurations. Add strength, regulator and control settings for the DSI physical layer. Change-Id: I04a0eec869e40b4813cf5187e8eeef63ae2f5a1f Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68b9675c9c5d889e3fcc550fa39fd23ea960ceb0 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 23:23:11 2012 -0700 msm_fb: mdss: Add support for Backlight control and panel gpios Add code to support the WLED client interface to control backlight levels using led_trigger mechanism. Add support for msm gpio that maps to the lcd_enable line for the panel. Add support for pmic gpio that is mapped to the display reset line. Change-Id: Ie89692f1c0a38d7878271d4a91122d61fbba8c1b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 90e71d1da087b5690eee35e5e88d8faa689c5f8e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Aug 13 22:57:11 2012 -0700 msm_fb: mdss: Add support for DSI specific regulators Add ldo2, ldo12 and ldo22 regulator support in dsi driver. Change-Id: Ia8e9907e87a293588688e7a47c74fecf155382af Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit d7784e051a508a667a13d431b7d834725cef0379 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue Aug 21 19:16:27 2012 -0700 msm_fb: display: Removing clk_set_rate in atomic context clk_set_rate was getting called in an atomic context. This change is needed to comply with Phase 3 clock API's. Change-Id: If7fa9d624b07789803177da55e6c84c3686a2bde Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 9cbd41158a2aabc9bc675fd8473bc1ed64251e82 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:29:51 2012 -0700 msm_fb: display: add dcs command list for dsi command mode DSI dcs commands and mdp pixel stream share same dsi link. Add dcs command list to serialize sending dcs command and mdp pixel stream to avoid contention which may cause dsi controller to stall. Change-Id: Ie0e687f45be479d2137eb7b56b8d32040fba2044 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 076901a58037d533840ce6b59c33796a96c2d56f Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 10 14:31:37 2012 -0700 msm_fb: display: fix page fault during supend/resume There has VG1 pipe commit (pan display) happen after system suspended. This left VG1 still staged up at mdp mixer. Once timing generator is enabled at resume, VG1 pipe start fetching contents from address 0 since VG1 has not yet be configured. This cause page fault. This patch has sanity check at system suspend to make sure no any pipe stage up at mixer after suspend. Change-Id: Idcf974ceb4afe2a3ec55b9603b700fa497f84045 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d1fff85a0074e6caa8e6136f18644670d76d8f06 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:57:38 2012 -0700 msm: mdss: fix MDP hang when using 2 or more layers Hang is seen when 2 or more overlapping layers are used in MDP, this is caused by problem with VBIF dynamic clock gating. Bypass VBIF dynamic clock gating and force clocks on to avoid MDP hang. Change-Id: I369d036aa059f79c48f3b2feec8ca2b0f49dd301 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 452289427cbf054e7830770333f663ec866ca61d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:19:18 2012 -0700 msm: mdss: add perf settings during hardware initialization Add MDSS initialization sequence, tuning for optimal performance. Change-Id: Icd44abf2707d74bbf29a8d095184067ae3a420d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 21c74c4c8bda9a1d62c052f6b93355de6ce935fa Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Aug 21 21:04:20 2012 -0700 msm: mdss: refactor mdp driver probe Remove references to global variables, remove untested support for board file in favor of device tree. Change-Id: If97536116f5b4ea64ade5938d713572c10415bfe Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 963bdc732baffeb24acc29d6e7e96460bc12ffdc Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 16 20:56:24 2012 -0700 msm: mdss: fix irq getting disabled when running concurrent displays Add check to make sure there are no other active interrupts before disabling MDP IRQ to avoid disable of interrupts. Change-Id: Ic2bb9398dfa67d2b210f988de6648d49fd8336ac Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d559ef1c0cfd13d3bef877692babab65a278bba1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jul 12 20:16:14 2012 -0700 msm: mdss: refactor mdss color formats Add missing color formats and reorganize color formats to have better code reuse and make it easy to add new formats if required. Change-Id: Ic7c6bb6f35a9c282d9ef99bd5e1d18b0b8033971 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 114c07229fc6f166e0e14d6f6f5e601e192be8f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Aug 15 15:47:06 2012 -0700 msm: mdss: use framebuffer line length as base layer stride Adreno graphics core expects framebuffer to be aligned to 32 bytes, this alignment is observed in framebuffer and needs to be used for base layer. If not followed stride corruption can be seen for frames rendered by Adreno GPU. Change-Id: Iea5e729dc4e4613bd7270d7bcf616cff6377109a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ae341d162288d796e0d205897df8d010e059c8d6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 6 11:22:46 2012 -0700 msm: mdss: fix suspend coming to MDP before panel drivers If suspend event is received by MDP before panels, MDP needs to ensure other panels are off before turning MDP clocks off. Remove handlers from framebuffer driver and handle all suspend logic within MDP driver to handle this scenario. Change-Id: Idcda2dd29b28a9993edca78b7e0778985e44b664 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 05bb0b78d6eb80dfe1339f54fa24a4cec7529353 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 8 18:12:43 2012 -0700 msm: mdss: improve clock and bus scaling logic Current clock logic only considers panel pixel clock to calculate mdp clock speed, MDP clock speed should also consider other factors such as surface scaling. Bus scaling should also consider surface scaling factor. Update logic to consider these new factors and perform these performance updates together. Change-Id: If274a7f40f496e1a730e1d0e8d7c35fa4384a832 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a5a987a43f8a24592e0dcdd387dd5ae668f03410 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 13 16:46:01 2012 -0700 msm: mdss: allocate framebuffer memory from ion pool When panel size is increased dma_alloc_coherent is not able to find a chunk of contiguous memory big enough to hold framebuffer, this causes framebuffer initialization to fail. Allocate buffer from ion pool which has reserved contiguous memory at earlier stage. Change-Id: Ibf7e3f7fc2c7ad991d69c106bbb6a9dd4c7f0e79 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 67ddb9b38b1793c297ff431ef9f650f355c4abf2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Aug 14 19:00:22 2012 -0700 video: msm: Move histogram disable to before panel off Histogram expects the display to be on while running, thus moving its disable call to before disabling the panel timing generator ensures this assertion. Change-Id: I308b3e0c24f0111fb8549d0a0ae025910d649b75 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41b206d0792724c3ee2e1d881dcaf6025cc200a8 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 15:25:44 2012 -0700 msm_fb: display: commit mdp baselayer pipe When in resume or boot time, baselayer pipes need to be committed for mdp to play, otherwize underruns and blue screens are seen. The previous pipe stage up func has this commit which is removed now, so the commit calls have to be added for the cases where base pipe is initialized. Change-Id: I63a7d0ac3fb078b3d7f604eb646a0430326a478c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 496f928dd8cdd2b1b554c379d9336e2e902e0540 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 17:41:34 2012 -0700 msm_fb: display: change implementation of updating mdp_clk and blt mode Currently mdp clk and bw requests are predefined in a 4-entry table passed from the board file, and the logic to decide which level to use is mainly based on source resolution. This patch is intended to address several issues with this approach. One major issue is clk and bandwidth depends on seperate things, and need to be considered seperately. e.g. with mdp composition of multiple pipes, bw request may be high but clk requirement may still be low. The current approach that binds these two things together causes inefficiency of power. Another major issue is that there is no logic to calculate mdp clk requirement of a single pipe based upon panel clk and downscale parameters. Further the worst case of mdp clk should be determined by all pipe usage. Without proper logic, many underrun have been experienced, and blt mode may not be enalbed properly. Also mdp_clk or blt mode update must be on right timing especially between these two pathes: overlay play and pan display. In the situations of performance from high to low or from low to high clk and blt must be handled properly to avoid underruns. In a summary, to support many different panels and targets and complicated mdp pipe usage(mdp composition), mdp driver related to clk and bw needs to be implemented differently. This patch is to seperate clk and bw, and maily to deal with mdp clk and blt. Later increasing granuity of bw will be added. Change-Id: I678fbf86d6997ed7b602ce81cf2e0fff6164d129 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit db0fb308df4830ce3586618c62e77fc157bb9e4d Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Aug 15 10:25:22 2012 -0700 msm_fb: display: Set timing generator after register flush Timing generator was getting started before the register flush. Stale values were sometimes causing IOMMU page faults on bootup. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Ia671c3603e383af94197a23a8e5e5f32274a9978 commit 36898359d3e8c21b8fa45ce24d3fe472a3813d4b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Sat Aug 11 17:33:04 2012 -0700 msm: mdss: fix incorrect programming of timing generator setting Fix typo in code which is causing incorrect setting of vertical front porch on timing generator settings and incorrect output to panel. Change-Id: I4de61209443fcb284b7d4064a2039b5f546935d1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34e216d7db0466fef4b9114ec18cf684275607a3 Author: Lei Zhou <leizhou@codeaurora.org> Date: Wed Jul 25 12:52:13 2012 -0400 msm_fb: display: Correct LVDS bitmap setting In case ASIC 1.1 is used on 8064 platform, LVDS bit mapping misalignment is fixed and no remapping is needed. LVDS bit mapping should comply with VESA format to get correct panel display. Data line #3's bit mapping should be coded in this sequence: DE + VS + HS + .... Change the original codes to go with this sequence. Change-Id: Iaebcfcea9c52207e16bac54ec37dc63e97286ff4 Signed-off-by: Lei Zhou <leizhou@codeaurora.org> commit 8f0326e19752f9b2b083a433621d3581f4e9a9da Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Aug 3 16:00:03 2012 -0700 msm_fb: display: add dmap waiting before turn off timing generator Wait for dmap done to turn off TG to avoid underruns before base pipe setup and after constant splash during boot time. Change-Id: I64bc3935d996af1d2d54db4c11319301ea454ced Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 00c9a911ba43e3ddb4ea6ea1c843dc7101b3b1ab Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sat Aug 4 17:35:16 2012 -0700 msm_fb: display: add stage commit before kickoff to WFD Since stage commit had been splited out of stage up fucnction, it needed to be called to stage pipes into mixer befroe kickoff mixer. Add this function into overlay writeback for WFD. Change-Id: I11e4486d92b89a15e58531033d474b3137b5935a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2a811f2a333ca0507eb98c35831af463f43fb011 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 17 16:54:28 2012 -0700 msm_fb: Display: Fix Dithering issue for rgb565 format Using RGB888 as source format and rgb565 as destination pixel format, will cause image corruption on the display. Fix this issue by setting the destination format as RGB888 in MDP and DSI controller pixel format as RGB565 for DSI specific panels. CRs-Fixed: 377484 Change-Id: If58976ee9cd4825efb39437170e54796fa2213e0 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 3c5ae1f883a8b6a7812d936c5f7e5bb4d0d3142b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Aug 6 19:43:42 2012 +0530 msm_fb: display: Update mdp clock counter for unsuccessful probes If a panel probe does not succeed, call mdp_clk_ctrl to maintain mdp_clk_cnt counter else mismatch in counter results in mdp clock to never go off in cases like suspend-resume. CRs-Fixed: 385560 Change-Id: I4ca54b051af98e823dc7f3ff7b9bcb960532c7e8 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit a28d1bb434e8505630fc5d03383a0ed6d4565885 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jul 29 08:56:58 2012 -0700 msm_fb: display: Add BLT support to dsi command mode panel At run time, mdp BLT (writeback) mode is enabled and disabled base on performance level to avoid mdp underrun. Move BLT enabled/disabled logic to pan display so that enabled/disable is done per commit instead of per queue. Since all panels are shared same logic, dsi video mode and lcdc panel BLT logic have been changed accordingly. Change-Id: I6e04bf0f7bf1c13634e19b18d8ac4368affbc4d8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1c15029f8551ca8f5ffa57973c4eabc471177333 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:19:11 2012 -0700 msm_fb: display: retrieve correct base layer pipe Base layer pipe is cloned and cached at satge array. Retrive the real base layer pipe before used it. Change-Id: I6fc606559684156348a57b500083ed4089fc71b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit df5e3279961b1f43a38ba50f787d785a81ed1e36 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Aug 3 13:47:04 2012 -0700 msm_fb: display: free dtv iommu buffer Free iommu buffer after pipe is committed to hardware. Change-Id: I00506d6fd55d99fec7921c02953fd755a7536d3e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1bb4edf9242b0397975636a4442318713a53b5e6 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Jul 24 13:34:23 2012 -0700 video: msm_fb: Increase display timeout to 2 seconds One second time out for no frame update, as in current implementation, does not allow CABL to reach minimum backlight level possible because histograms dont get generated after one second. So increase time out period to two seconds which seem to be sufficient for complete black to complete white and vice versa transitions. CRs-Fixed: 370804 Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5d7e5b30a98110dd138fddee58bc2a4f3ffdc715 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 9 12:23:53 2012 +0530 msm_fb: Allow MDP hardware init for continuous splashscreen MDP hw init is getting avoided for MDP3.x targets to support continuous splashscreen. This avoids complete initialization of MDP and hence usecases are failing. This change allows the hw init. Change-Id: Ib0304b54bda4a62a20716bde85fe94b2dcfe6824 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5cb07af87572d44d74a2586dfffd1ee537f64941 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Aug 8 16:52:29 2012 -0700 msm_fb: display: clean pipe free or unlock calls A few places have unnecessary mutex unlock calls, and iommu pipe free depends on pipe parameters so move it before pipe is zeroed. Change-Id: I7ef39c66be611907b1b0c38675b15f8bc919d0c0 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b50f747dee6db1d9413fe46cba3d7c42263b21b2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Aug 4 17:04:18 2012 -0700 msm_fb: display: fix fake iommu buffer drop During pipe free, some content of pipe is backed up and then after pipe is zeroed out, the content get restored, in between there should be no actions to change the content since any change will be wiped out by the restore. Change-Id: Ia6da0162d1f9b614682e1fc36edab1db003b42ab Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4a652002fecbd5d984d01fbe2f32515f1a98ba91 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 17:38:07 2012 -0700 msm_fb: display: clear correct pending isr Clear correct pending isr during irq enable/disable to avoid unexpected side effects Change-Id: I5e7afc778cb8d5feda40f359ff2aae6493dc7cd2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 45301d3beb046201b8d4a54a2de274dabf1ebc46 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Aug 2 13:27:49 2012 -0700 msm_fb: display: fix iommu leaking Fixed iommu map buffer dropped after overlay unset by saving origianl iommu list before zero out overlay pipe structure. Change-Id: I498dd4cf62e93f4571883fe20a0298e9fad4ccab Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e2b559d1a1694e10bb2aa47826db24a8baceda6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 7 13:23:23 2012 +0530 msm_fb: hdmi: Give proper buffer size Need to give proper buffer size for snprintf function calls. CRs-Fixed: 378343 Change-Id: Ia4df74c9871b26255572bb3ba226317c3076b5b6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f3b0c231a85ceef488440ab02fba9b15e468faa0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jul 27 20:46:06 2012 +0530 msm_fb: Add support for Vsync driven composition on MDP 3.03 targets Add support for vsync notification to user space using user events. This is to trigger frame composition based on Vsync. Change-Id: Ie94edfcdb5e540dd2f9a4a5df4bc3b7c4eb9041c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c58fcce723e54466b85981bafe7179b717ff2371 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Apr 23 20:39:17 2012 -0700 msm_fb: MDSS: Add DSI driver support for MDSS Add the dsi driver implementation for DSI version 3.0. Use the panel information retrieved from the 'dts' to configure the interface parameters. Add the device tree binding file to specify the basic configuration and panel features. Change-Id: I6a3677401454ad1d2bc29b0b845b0366eb7842b7 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 17182d61f4cfdc990706bcacfb1ab02f631fa154 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Aug 3 11:14:36 2012 +0530 msm_fb: display: vsync support for HDMI as primary When HDMI is primary, dtv is associated with node 0. In this case, DTV vsync and ctrl need to be called for node 0. CRs-Fixed: 383877 Change-Id: I425cddf453dd159259883e71f92c32918ca8e6c7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 378fed12479c91893acbc56124b7d69ab7bd8166 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Aug 1 18:40:51 2012 -0700 msm_fb: display: enable sending uevent as default Enable sending vsync uevent as default so that uevent will be sent to usersapce frame work when first request recevied Change-Id: If72248007d68cba8fc814d449b46a58d842544ba Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 68446e5773292eea8a7bb33e7240cf7a67c0194c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 30 15:14:55 2012 -0700 msm_fb: display: add iommu mapping for mdp cursor buffer address The mdp h/w cursor buffer physical address needs to be mapped to an iommu virtual address when iommu domain is enabled. Change-Id: I73b4492fc4d63632117074136e4d908f5089eb93 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit dc5cfefb1bd5a30f8f1a611fca61cc9d7bc7bddc Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 12 11:19:20 2012 -0700 msm_fb: display: set pipe src and dst size same in solid fill mode When a mdp pipe is in solid fill mode, the pipe outputs constant color and pipe itself does not fetch data from memory, so pipe src size should not matter. However, when src size is greater than dst size in solid mode which means downscaling, underrun happens. In this situation, setting src size to be same as dst size can remove underrun. CRs-fixed: 368478 Change-Id: Ie3ffc34486129cddcc872fe6e5317873db985b97 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit efb6c143ea951dab6dc72586100999d5b94c1c8d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Jul 26 17:45:57 2012 -0700 msm_fb: display: no early suspend for writeback panel Writeback panel is not real physical panel and no power consumption concern, so it is removed from early suspend registration to avoid open fb2 error during suspend/resume. Change-Id: Ic61f69e069f2da8c73f2b5a13d103a2f20034d20 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 98b3a61592b34d0f39ed2dd00ef56b3ad575e0d2 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jul 16 21:12:33 2012 -0700 msm_fb: display: remove mdp_lut_enable call to avoid hang issue Calling this function is not necessary in mdp overlay2 writeback driver. If called, it causes command mode primary hang. CRs-fixed: 365332 Change-Id: Id7054c3e56224035ec5939d91f8ce152b038e858 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit f15aa8bcd2f3b4333e8f010c8af6be3a16cfb882 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Aug 3 11:52:31 2012 -0700 msm_fb: Increase the pixel clock range for DSI panels Increase the upper limit for the pixel clock that changed with the newer version of the DSI controller. CRs-Fixed: 380003 Change-Id: Ibbeaa478b4d12ae8f350be41f959d53a6ae6c923 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit cc3df57a918118a1b70a43921d0377fb2790fa1b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 18 18:28:42 2012 -0700 Revert "msm_fb: display: Register MDP fault handler with IOMMU driver." This reverts commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b. This enables the IOMMU page fault register dumps from default handler. Change-Id: Icddd2394f5aa337e1a4998247cc4e3201f752e84 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5f3807bcf41ae01b17a4140b010db6ed02899c18 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jul 4 00:06:20 2012 +0530 msm_fb: Add "Continuous Splash Screen" support for LCDC panel Add changes to support continuous splash screen on 8x25 SKU7 for LCDC panel. Delay the MDP hardware initialisation, keep LCDC timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Ied091b01ad2f26acdff73e3ffe158d844198923c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0a3699b368fd72a86fb293e37a420b9a34dbd5d0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 30 16:17:10 2012 +0530 msm_fb: Add support for "Continuous Splash Screen" on 8x25 EVB Add changes to support continuous splash screen on 8x25 for video and command mode panels. Delay the MDP hardware initialisation, keep video timing generator enable during boot up, do not disturb the GPIO/regulator configurations and skip the panel initialization sequence during boot up. Change-Id: Id5e635ca986e66abb3cbf7c5a174f952ea489708 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 14baef8b22dee8e1d5019a9ac9c6e6cdb48fbbe5 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:32:40 2012 -0700 msm: mdss: Use YCrCb 420 as the output format for writeback Use YCrCb 420 (NV12) as the output format for writeback. For Wifi Display use case, NV12 is required as the encoder requires this as the output format. Change-Id: Ica8851073476b9c05f3b5b41232803c2d71f7a3e Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit dbb6355114354211a5bcc2ba9f120d601d7a4712 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Thu Jul 26 17:17:53 2012 -0700 msm: mdss: Return proper msmfb_data back to client For local clients, return the relevant msmfb_data which contains a cookie relevant to the client. Change-Id: I9b845c0cd7fde1bc8c53a5063ba331460d67427d Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 3d36e64838fbd064ad4868e1a3770e27c183f83e Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jun 21 18:23:52 2012 +0530 msm_fb: display: Add pre-multiplied alpha support for MDP4. MDP4 blend logic differs from GPU blend implementation as MDP4 does not differentiate between pre-multiplied alpha layers and non pre-multiplied alpha layers. Check layers for pre-multiplied alpha and change blend logic accordingly. CRs-Fixed: 355755 CRs-Fixed: 361729 Change-Id: Id8253d3888f1ebbadba1b6bbd87e7d98bac22da7 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 5a19b70f2846822228d0ae0ef56d14162812ff9e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 25 11:15:20 2012 -0700 msm_fb: display: Map framebuffer region in Display Write Domain Framebuffer is currently mapped for Display read and rotator source domains. For MDP writeback mode, Display write domain requires framebuffer region and it is mapped at initialization time. CRs-Fixed: 382550 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iba6fd0201a48fe1864bf42e9576f063cd58646fd commit ec5b2ff6857134832d165b8c2db8174c0d0ef4a7 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 20:06:41 2012 -0700 msm: display: use the fb reserved fields same as kernel 3.0 Reserved fields of fb structure used for various use cases in qcom fb driver. Reducing the reserved fields caused lot of side effects and it will change the reserved fields same as kernel 3.0. Change-Id: I7bf82a9b5667cb5c84b54e428bbfcb6869157bd7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 071280769e98128452ce8773e7ac2bc353f0cc93 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 25 17:57:15 2012 -0700 mdss: display: expose panel parameters through framebuffer API Panel porch values and pixel clock can be used to calculate the refresh rate from user space. Assign these values with information from panel driver. Change-Id: I29995d27904e50892d72de5e8c7dd39285f9d421 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 34c2b52441d968030b31841eda77a09d73b89b8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jun 28 15:48:10 2012 -0700 mdss: display: allocate buffer from ion when debug writeback enabled Debug writeback is used to output MDSS framebuffer contents to memory to for debugging of MDSS core. Use ion buffer allocation for debug writeback buffer instead of using memory from framebuffer base layer to allow entire framebuffer area to be used for composition. Change-Id: Ia1a91f5f14bed1d29691092142fc94f7a8b6f4d2 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 686c70adef370bb5b60a116bdf326b2062c946d5 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jun 15 11:28:12 2012 -0700 mdss: display: fix incorrect rotator programming Source format should indicate that source is to be rotated 90 degrees instead of indicating source has been rotated 90 degrees. This is needed for hardware to fetch source in correct order and generate correct 90 degree output image. Change-Id: If8d1e12ef3e7a291e67ec9763f5ca92ec6fa983c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 38506ba57f21ea83fbb8adb6d6818e9f1611377a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jul 18 10:26:56 2012 -0700 mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bff7356885b596340c9701fd1a6b18b08f8e75a5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Thu Jul 26 10:59:49 2012 -0700 msm_fb: display: free writeback buffer at correct time When mdp pipe is freed at end of video play back, Writeback buffer is freed while mdp still fetchs data from it. This cause system crashed and blue screen shows on screen. This patch will free writeback buffer at correct time. Change-Id: I46a5031c13d86f943d6604713e1841b482dffe96 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 586fd1628cdd10468e0d6496a77a236f18eaf9c7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 14 15:24:16 2012 -0800 msm_fb: display: vsync driven screen update This patch will queue multiple surfaces and commit those surfaces into mdp at same instance so that surfaces will be blended and displayed at same time. Hardware vsync event is delivered to the user space frame work via uevent. Both queue and commit are controlled by frame work and synchonized with vsync event. Therefore frame rate will match with vsync rate. Change-Id: If630a6d94fd38483ee313f575b1a71ed8bd65a52 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe8e81ccadfb4ba621094c924f31f8c230daf63 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 9 17:54:01 2012 -0700 msm_fb: display: Set LVDS Chimei panel frequency to run at 60 fps Modify LVDS Chimei panel pixel clock from 75 MHz to 79.4 MHz and update PLL settings to achieve refresh rate of 60 Hz for better user experience. CRs-Fixed: 375510 Change-Id: Ifb4036c790552b1c43d5a3c817ed05691f86c7f6 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit dfe5751941ef2478c57565f8ebca09623d83a8a4 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Jul 23 12:34:47 2012 -0700 video: msm: Add CSC and QSEED support to Overlay API Add support for CSC and QSEED configuration through MSMFB_OVERLAY_SET and MSMFB_OVERLAY_PLAY ioctls. Provide better integration than previous attempt with the existing Overlay and PostProcessing APIs. CRs-Fixed: 380750 Change-Id: If895391074ef1e7d7a6824d289e1ed9da6a52180 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 3118cb077358e472adb0db8e207a63bd84fd267f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jun 22 18:15:18 2012 -0700 video: msm: Remove old post processing overlay integration Remove old implementation of HSIC and QSEED smoothing/sharpening overlay integration. Need to replace with new implementation that better integrates the existing functions of the two APIs. CRs-Fixed: 380750 Change-Id: Id3469fad16764ed88e74a8da75bb873f726ba366 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 382b00b9a664fa0bd9b8d8bee2dae3f4340d425d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:45:07 2012 -0700 video: msm: Add QSEED Table2 Support Add support for QSEED Table2 reads/writes. Table 2 is a table of coeffients for QSEED Table 1 to offset into. Table 2 is quite large, caution should be taken when writing into it. CRs-Fixed: 380315 Change-Id: I89be18c0047dcf1d9a3bcd538967b2bbe7b4efe1 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fbf467206a4b5d09f51268535364f0a1b462eef6 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed May 16 16:43:39 2012 -0700 video: msm: Add QSEED Table reading support Add support to read the tables of QSEED values. When the values of the QSEED tables are able to be written to, it is beneficial to be able to read what's there as well. CRs-Fixed: 380315 Change-Id: I3110721906424f70a12bf5736de7875dec03f4c6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 43da18d00abc2a61834b6650a49bf7edcf4f4df0 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu Apr 12 15:37:44 2012 -0700 msm_fb: display: switch blt mode on/off without turning off TG Turning off dtv TG may cause blink. MDP requires h/w idle to change blt mode, turning off TG can make sure mdp h/w is idle. If turning off TG is not desired, one way to do is to check busy bits of overlay and dmae and once they are both idle, the mode can be changed. CRs-Fixed: 363717 Change-Id: I2817d7751ed04fd9ed144974328c4518c54af3d6 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit fccacdf4e72f8b39c3087628aee41bf94652e220 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 12:01:01 2012 +0530 msm_fb: hdmi: Proper switching of switch device Switch device used to tell userspace about HDMI connection needs to be enabled when: 1. HPD connect 2. Authentication successful And disable when: 1. HPD disconnect 2. Authentication failed Change-Id: I8d4529fa2335ec1b2dc1196e57e3c8bad7d6b657 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 53156f5794a1eb8625033cabe243bf35bde93d1f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jul 24 10:13:05 2012 -0700 msm_fb: display: add out of range check for display sizes MDP pipe or mixer size registers have 12-bit number, so boundary checks are needed for those parameters. If not, input req sizes could be very large 32 bit unsigned numbers, e.g. 0xffffffff, unsigned operations may have overflow to pass all later checks, causing MDP underruns or hang issues. CRs-fixed: 380469 Change-Id: I096d7022ede21d54266b46a140782ab0348dd54b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6957fa026060675c197e2aad0762065a6aba7e31 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Wed Jul 11 21:08:50 2012 -0700 msm-fb: display: Tearing issue during video playback Tearing was observed while playing 1080p H264 videos in potrait mode. Enabled blt mode check for MIPI command mode panel as well. CRs-Fixed: 369365 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: Iac980050e5966db4731240c11e89e1f68118f2b7 commit 62d4a8cb1a5a1a98b3a70988de9ff9e2c1368be6 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jul 17 11:44:25 2012 +0530 msm: HDMI: Re-initialize the scan details for every HPD After disconnecting the phone from TV which doesn't support underscan, and connected to TV which support underscan, underscan is not working due to non re-initialization of scan variables. Re-initialize the underscan variables for every HDP events. CRs-Fixed: 375862 Change-Id: I22b7b8785ec93f9cf226e9b646a851ffb3ceff62 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit df67a26bb4e4eb274ef367ad67b10d1c845ef7f9 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 17 23:54:47 2012 +0530 msm_fb: display: Remove unnecessary dtv_pipe checks In case of PAN display, PAN update function would return without allocating dtv pipe resulting in no HDMI display. This change removes unnecessary checks and enable dtv pipe for PAN display as well. CRs-Fixed: 379625 Change-Id: I533392a1120a21e962fbbbf0c07a89997832406f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 30befc28305440f30770a6545839fe4b55ee2207 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed May 30 11:04:00 2012 +0530 msm_fb: display: suspend-resume on HDMI When HDMI is primary, suspend-resume is not happening. For HDMI as primary case, early suspend and resume can be used. This change implements early suspend and resume for hdmi as primary case. CRs-fixed: 381097 Change-Id: I7b83d07a8b109294f3606c60f58b760836b88685 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6b82d2ba8296e956abcd4c0c2014138390439dee Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jul 19 17:23:26 2012 +0530 msm_fb: hdmi: Boot param support for resolution change Boot param support for dynamic resolution change for HDMI as primary case like MPQ. With this change, MPQ can also be configured for different resolutions than the default 1080p@60Hz using boot parameters. CRs-Fixed: 373211 Change-Id: I2c8537724ddd1ece7e81e6022afb9315c5147aa2 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2568be7b453fc06ac0ce2a293021f2309e3ebbfa Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Jul 3 21:20:58 2012 -0700 msm_fb: display: Configure MDP clock table based on DSI Video pixel clk To avoid display underrun issues, configure the MDP clock table's rate according to DSI Video mode panel's pixel clock frequency by 1.15 times. Change-Id: I9bc864a754c2d51c9d86ece79863820eb72cdae8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 16c8ae2beba81d102bccd130ccf8cca06533cc28 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 21 11:31:15 2012 -0700 msm_fb: MHL: Adding MHL api's for USB interaction. Adding MHL api's for device discovery and registering callback mechanism.USB driver use these API's for synchronization with MHL driver. Change-Id: I0846951302e3b5f5d20d566c92c2f224528ca455 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c8430bd159039340c5a50e6897b256631f5dc7bb Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jul 9 12:34:01 2012 +0530 msm_fb: Add histogram support for MPQ 8064 Currently, there is no support for histogram on MPQ 8064. Add support for histogram ioctls to support histogram testing. CRs-fixed: 375580 Change-Id: I24ccf73c6ea6d230da4624ea196cba2d8195f8b2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit bc49e8330d32669aadc012585e3a2bcad0f34b85 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Sat Jul 14 16:18:02 2012 +0530 msm_fb: hdmi: Turn on switch dev when connect to HDMI Audio is not routed to TV after deep sleep and resume. Userspace is dependent on switch device to indentify audio route. When HDMI is turned on, this switch needs to be turned on as well. CRs-Fixed: 377159 Change-Id: I7faaad5ff772ad2045876cc084aa71d120b77139 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit f0a3914b984c75b66ca7d96a479c08230928e2d1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Mon Jul 9 16:59:35 2012 -0700 msm_fb: Remove control of HDMI PLL regulator The regulators required by the HDMI PLL are now controlled within the clock driver. Remove the explicit control from mdp.c. Change-Id: Ia2975a5a83b77cd9e21fc43cabea754b7b040dd5 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit f0fd8e7323ea0f60539918528a4cfa1edb39b828 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 3 15:08:20 2012 -0700 video: msm: Add user-defined backlight scaling Add method for scaling backlight based off of a user provided ratio and minimum level for the scaling to be applied. Change-Id: I74c2329c842dd9cbbc9eddfff38cd56fd0e939a4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 649ca22aba67cd429025ee026015b6082b38539f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 9 18:19:18 2012 -0700 msm_fb: display: Configure DMA before Layer Mixer for writeback mode switch DMA addresses are configured after Layer Mixer is set to writeback mode. This leads to IOMMU page faults due to incorrect addresses read from DMA. Hence DMA is programmed before Mixer setting. Change-Id: I4c5e41a56f05e3fabb46b4cadde03168589eeb17 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3bb47a097c62b71c7f8f2be888a1f73c6cfb8142 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jul 13 11:51:24 2012 -0700 msm_fb: HDMI: Fix for high HDMI sleep current In certain cases, the HPD circuitry is not switched off when the device goes to suspend state, resulting in high sleep current on the HDMI power rail. This patch ensures that the HPD circuitry is always turned off during suspend operation by removing an unnecessary condition check. Change-Id: I5846255ff4405ff1f449158f4b2f0d5ed0cd96bb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 2f7f94cef2a64930e1476c09a5a402631bd39d99 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jul 10 16:08:30 2012 +0530 msm_fb: hdmi: Do not turn on HPD at boot HPD is getting turned on by userspace if HDMI is enabled. We don't need to turn on the HPD from HDMI driver. CRs-Fixed: 377899 Change-Id: I29af0ca6ba222c7af61b1a0e8b51be35dee6426c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 10bbb7da8663f44fd348d72fef24f08bbc789cd5 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Sun Jun 3 07:56:23 2012 -0700 msm_fb: display: use spin_lock_bh() when turns on/off dsi_clk Since dsi clock is accessed by both thread and timer context, spin_lcok_bh()/spin_unlcok_bh() must be used to serialize accessing of dsi clock. Change-Id: Iac80400d871c90413dcbb10a12efc6bc6247e986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 97c332da161665e9ec31a222dcd919267889af1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: Id007cf96588f817bcfe8559177abb073a9b00755 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3d297368b8199b07bda815915e94ecb5761561b0 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jul 5 17:24:45 2012 +0530 video: msm: Fix corner cases of "read twice" error Fix several cases where histogram's completion structure is completed multiple times which causes the next histogram read to force the histogram software state machine into believing that the histogram is always being read by someone. When the timeout in mdp_do_histogram times out and then soon after the work that was being waited on completes, the next do_histogram call that is processed will not wait (and thus will not have its hist field set to NULL). This will cause all subsequent do_histograms to think that the histogram is currently being read, and will cause the "read twice" message to flood the kernel logs. This error is fixed by always initializing the completion structure before waiting for the histogram to complete. That way if the completion happens after the timeout, instead of causing the error, the completion's internal counter is reset to zero, which prevents the next histogram read from completing without waiting. Change-Id: Ic1bc4b8688cd191d226de1df15d389de09996106 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 18e97cde0f9875c41692139d30bce497df31b8fb Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Jun 22 00:33:51 2012 -0700 msm_fb: MHL: Driver changes for Integrated MHL Power up and GPIO functions have been moved to the driver MHL HPD event also triggers the HDMI HPD event since 8x30 FLUID device doesn't connect HPD line from 8334 to HPD line from MSM HDMI. The pull-up resistance in 8334 has been set to the recommended value so that the interrupts are sent over to MSM-USB driver. Change-Id: Ib8bb462c81706ff2dc027535ef766917bb7da39d Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9d7db4fd399109999f4ec0207651f335920f06db Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jun 23 18:49:59 2012 -0700 msm_fb: display: Wait for overlay done after DSI Video writeback switch After writeback mode is switched for DSI Video interface, wait for overlay done for prefill frame to avoid unnecessary fetches from previous buffers resulting in page faults. CRs-Fixed: 372389 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Iacd3775a718fe8e08404b4d119d447a88b628617 commit ef95ae33a328426b45f502eeb86f2edc120faf30 Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: I2d67525d6026b8a1fb2f2cb00e4bb118c8eb6f27 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 50f0f86034c97484081e1bbf4ea36253a21474f2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jun 21 18:53:25 2012 +0530 msm_fb: display: Add ion support for PPP Add support for ion in MDP PPP drivers for accessing source images and destination images. Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a43f44b44ee221df11ad84b8536c1c8d5373cbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Jun 28 20:00:42 2012 +0530 msm_fb: Handle multiple histogram reader errors during suspend/resume If a histogram reader waits for completion in the do_histogram ioctl and during this time the device is suspended, the complete for this gets called from mdp_histogram_ctrl_all() in the panel_next_off() sequence. This results in mgmt->hist not set to NULL. The subsequent do_histogram ioctls after device resume fail due to multiple reader failure condition since the histogram irq will be enabled now from the same mdp_histogram_ctrl_all() during panel_next_on() sequence and this by-passes mgmt->hist getting set to NULL that is present in histogram_start() ioctl. Handle this scenario. Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c45b820e3000c1c7f76cc1a3e1efcfaa33b75eba Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jun 27 12:00:44 2012 -0700 Revert "Revert "video: msm: Always queue histogram work"" This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90. commit 2423ba8... will be refered to as commit X Commit X should have been listed as a parent of commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue histogram work & lock histogram calls). commit 56a123b... will be refered to as commit Y Commit Y is composed of 3 commits that were squashed together after they caused errors when only one of them merged into mainline. Commit X was created to revert the first of these 3 commits, and thus resolve the errors. However, when updating commit Y, commit X was omitted as the parent commit. So when commit Y merged as a parent of commit X, commit X reverted part of commit Y. By reverting commit X, this commit restores commit Y. Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit b14ed96f74b1258b1f102831a2b0ccd56f991132 Author: Laura Abbott <lauraa@codeaurora.org> Date: Mon Jan 30 14:18:08 2012 -0800 gpu: ion: Pull in patches for 3.4 Pull in Ion patches for 3.4 upgrade. Inclues the following patches from google: commit 7191e9ba2508ca6f1eaab251cf3f0a2318eebe26 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Jan 30 14:18:08 2012 -0800 ion: Switch map/unmap dma api to sg_tables Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 6f9e56945d4ee3a2621968caa72b135cb07e49c4 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Tue Jan 31 09:40:30 2012 -0800 ion: Add reserve function to ion Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 9ae7e01de1cf03c77054da44d135a7e85863fcb0 Author: KyongHo Cho <pullip.cho@samsung.com> Date: Wed Sep 7 11:27:07 2011 +0900 gpu: ion: several bugfixes and enhancements of ION 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in those virtual address spaces. 3. Makes the return value of ion_alloc() to be explicit Linux error code when it fails to allocate a buffer. 4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and relavant call to ion_buffer_put(). 5. Checks if the task is valid before calling put_task_struct() due to failure on creating a ion client in ion_client_create(). 6. Returns error when buffer allocation requested by userspace is failed. Signed-off-by: KyongHo Cho <pullip.cho@samsung.com> commit 043a61468f395dd6d4fc518299726955e9999c59 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed Feb 1 11:09:46 2012 -0800 ion: Switch ion to use dma-buf Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 0d1259b5f84969bd00811ff9faa1c44cdb9fdbb5 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon Apr 30 16:45:38 2012 -0700 gpu: ion: Use alloc_pages instead of vmalloc from the system heap With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit be4a1ee79a89da3ca705aecc2ac92cbeedd032bd Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Thu Apr 26 20:44:10 2012 -0700 gpu: ion: support begin/end and kmap/kunmap dma_buf ops These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 46d71337f9aa84694e4e6cca7f3beb6b033bbf76 Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Mon May 7 16:06:32 2012 -0700 gpu: ion: Allocate the sg_table at creation time rather than dynamically Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> commit 903f6c716db3d4e26952aae9717f81dd5bc9e4ba Author: Rebecca Schultz Zavin <rebecca@android.com> Date: Wed May 23 12:55:55 2012 -0700 gpu: ion: Get an sg_table from an ion handle This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> The commit also includes fixups needed for MSM specific code. Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 24502cb2cfd176d72cc6884dbeb375c7fb054766 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 25 18:58:45 2012 -0700 msm_fb: display: Enable MDP clock's overlay block during panel on MDP clock's overlay block is enabled during first update after panel on currently. This is now moved to panel on to keep clock enabled right from display on time. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ie201186c1471201874f2eff246486bc4a73b5872 commit 89dd8eb788bc97479a7c7bfbcafc25f1b63ceda0 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Jul 2 17:05:16 2012 -0700 msm_fb: HDMI: Fix lockdep warning Locks must always be taken in the same order to prevent AB-BA scenarios from occuring: ====================================================== [ INFO: possible circular locking dependency detected ] 3.4.0-g55e6e49-00052-g71783d6-dirty #3258 Tainted: G W ------------------------------------------------------- kworker/0:1/15 is trying to acquire lock: (hdmi_msm_state_mutex){+.+...}, at: [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 but task is already holding lock: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (external_common_state_hpd_mutex){+.+...}: [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0341510>] hdmi_msm_hpd_on.clone.0+0x230/0x2c4 [<c07e5dfc>] hdmi_msm_probe+0x378/0x588 [<c03dcc00>] platform_drv_probe+0x18/0x1c [<c03db920>] driver_probe_device+0x148/0x334 [<c03d9f5c>] bus_for_each_drv+0x48/0x84 [<c03db7ac>] device_attach+0x78/0xa4 [<c03daa4c>] bus_probe_device+0x28/0x9c [<c03d97e4>] device_add+0x438/0x5e0 [<c03dd13c>] platform_device_add+0x13c/0x1a0 [<c0d255d8>] hdmi_msm_init+0x218/0x2d0 [<c0008708>] do_one_initcall+0x94/0x168 [<c0d002fc>] kernel_init+0xe4/0x1b8 [<c000f4f8>] kernel_thread_exit+0x0/0x8 -> #0 (hdmi_msm_state_mutex){+.+...}: [<c00cc6b8>] validate_chain+0x944/0x1080 [<c00cd744>] __lock_acquire+0x950/0xa10 [<c00cd990>] lock_acquire+0x18c/0x1e8 [<c080c248>] mutex_lock_nested+0x68/0x3c4 [<c0340e98>] hdmi_msm_hpd_state_work+0x78/0x2d8 [<c0097420>] process_one_work+0x37c/0x694 [<c0099978>] worker_thread+0x22c/0x3bc [<c009ecdc>] kthread+0x8c/0x9c [<c000f4f8>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); lock(external_common_state_hpd_mutex); lock(hdmi_msm_state_mutex); *** DEADLOCK *** 3 locks held by kworker/0:1/15: #0: (hdmi_hdcp){.+.+..}, at: [<c00972b8>] process_one_work+0x214/0x694 #1: ((&hdmi_msm_state->hpd_state_work)){+.+...}, at: [<c00972b8>] process_one_work+0x214/0x694 #2: (external_common_state_hpd_mutex){+.+...}, at: [<c0340e8c>] hdmi_msm_hpd_state_work+0x6c/0x2d8 stack backtrace: [<c001521c>] (unwind_backtrace+0x0/0x12c) from [<c00cbb14>] (print_circular_bug+0x288/0x2d4) [<c00cbb14>] (print_circular_bug+0x288/0x2d4) from [<c00cc6b8>] (validate_chain+0x944/0x1080) [<c00cc6b8>] (validate_chain+0x944/0x1080) from [<c00cd744>] (__lock_acquire+0x950/0xa10) [<c00cd744>] (__lock_acquire+0x950/0xa10) from [<c00cd990>] (lock_acquire+0x18c/0x1e8) [<c00cd990>] (lock_acquire+0x18c/0x1e8) from [<c080c248>] (mutex_lock_nested+0x68/0x3c4) [<c080c248>] (mutex_lock_nested+0x68/0x3c4) from [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) [<c0340e98>] (hdmi_msm_hpd_state_work+0x78/0x2d8) from [<c0097420>] (process_one_work+0x37c/0x694) [<c0097420>] (process_one_work+0x37c/0x694) from [<c0099978>] (worker_thread+0x22c/0x3bc) [<c0099978>] (worker_thread+0x22c/0x3bc) from [<c009ecdc>] (kthread+0x8c/0x9c) [<c009ecdc>] (kthread+0x8c/0x9c) from [<c000f4f8>] (kernel_thread_exit+0x0/0x8) Change-Id: I251049edbc97a5fe0e6c67801cf472fdc48722a7 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dbbca9b8710704bd0ae37acd40e30b6aba6d1462 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 19:04:08 2012 -0700 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call Attach IOMMU call is currently done from DSI cmd mode DMA update method. Move the attach call to kickoff which enables it from restore and video paths Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf commit 07876121525c631cbf914c8777e01875c293d0ed Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 29 12:27:49 2012 -0700 msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get() After regulator_get call for HDMI PLL footswitch purpose, set output voltage to 1.8 V to ensure proper state while enabling and disabling regulator. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24 commit 3ac0c174b21293d50773bb8b2bc5ad9ee2aedf23 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jun 22 18:46:33 2012 -0700 msm_fb: display: Fix Toshiba WSVGA panel porch and timing settings Fix the porch and timing settings for DSI Toshiba WSVGA panel to enable writeback mode switch efficiently. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ib768d13617470f75ae027970c6ca4779d6b5a367 commit 254d6740cfa0a32afe9bb66762199ea5931f53d0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 30 22:12:09 2012 -0700 msm_fb: display: Flush pipe registers before staging for Mixer 0 or 1 For Mixer 2, register flush need not be called. Flushing is done only for pipes on mixer 0 and 1. Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I54758f79552790de2ad936703ba6140ac57b76c4 commit 37320fb657169e39aef13afb468ae551481658f4 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Jun 26 14:50:28 2012 -0700 mdss: display: Correct regulator API usage A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit b5085c57a43b2ba6cded7b4adeb646ed3c8ad095 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Jun 20 11:43:54 2012 +0530 msm_fb: display: Increase wait for VSYNC Wait time for VSYNC needs to be increased to accomodate 1080p 24HZ resolution which requires around 41ms. CRs-Fixed: 368521 Change-Id: Ideda24bb83e32a6d5035c6193ef3dfd5e0c947fc Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 4a4f2d591cebc94b179e58cc6418f4598146f3c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 20 18:30:05 2012 -0700 msm: display: Add MDP footswitch regulator control for HDMI PLL Add support for enabling HDMI PLL regulator along with footswitch enable/disable to avoid PLL lock detection failures during suspend/resume Change-Id: I9b161cab50d2b6c39de39b588e326f5ff97cbc65 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9c4743fd7d5e5230b4f05564432bd6d6b51b4a88 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:31:43 2012 +0530 Revert "msm: iommu: Split rotator/mdp iommu domains" This reverts commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a. Change-Id: Ie93cbb23eaa1e35bfbacc53cd18f05b345acea4b Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit fd233093130a8b11519630cf3b38f02491e634a3 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Jun 27 15:30:49 2012 +0530 Revert "msm_fb: display: Add DMA and Overlay blt mode address to MDP driver" This reverts commit 5f979254a80b7a844df3d9c1f49e16427f2477cc. Change-Id: I595afa529d96e8378d00e75bd836cfa191ab5135 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef5b150ffa574ec1aac76618e2cfd1d94ee626ba Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 13:08:06 2012 -0700 msm_fb: HDMI: Removing unnecessary HPD detection code. HPD read work is used to detect HPD at bootup which is not required as HPD detection is taken care at bootup by toggling the HPD circuit. So we can safely remove this redundant code. CRs-Fixed: 368865 Change-Id: I8eed00c4f5af2ed2ca37e86da622ab518e5eb887 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 2423ba8ae07458ec93efa07d777454f26d1d7c90 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 19 18:09:36 2012 -0700 Revert "video: msm: Always queue histogram work" This reverts commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b. Revert patch that is causing excessive histogram logging. Will merge original patch with fix when issue is resolved and tested. Change-Id: I99b04362f6acd4f75a72e4b3ca52406907971e67 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14c5e7a160faee03393994b064a093019aca9333 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 14:02:58 2012 -0700 mdss: display: Add writeback support for WFD - Implement APIs used to support wifi display (WFD) based on ioctls and functions declared in linux/msm_mdp.h. - Restructure writeback interface file to support custom output formats and take buffers from WFD APIs. Change-Id: I3e6b75bd8b7d73eb20c97899de1891bbd85e9fa4 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 20684ab9fdf25602872a602d89a3d3eda1b15102 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed May 9 19:16:40 2012 -0700 mdss: display: implement common irq handler for different mdss blocks All of MDSS blocks (mdp, dsi, edp, hdmi) share same irq line. Implement function to manage MDSS irq line with common API with support for irq callback handler for each of block. Also fix incorrect calculation of MDP interface interrupts. Change-Id: I1271f7e1065aac95175b6e92504917264f4043a5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2dca5a058c622a7bd0803285b10ec081b8f8e3ef Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 19:00:54 2012 -0700 mdss: display: add video display interface support Video mode display interface is used by DSI, HDMI and EDP controllers. Implement MDP support in order to setup data path to these controllers. Change-Id: Ibc766a1d10a55bcf64a3ab693db034a378afe4ee Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4e584a304cdf03c4ed7cc28a6457ac22e5d4c688 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:25:01 2012 -0700 mdss: display: implement csc matrix programming Implement color conversion matrix programming to support YUV surfaces. Also add dspp initialization stub function. Change-Id: I7ba57eca24e15acffbddf7b81fac6b8a6ce3bba5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 1857f06647e420c97f9b0e24bb1b77da710d858a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:57:28 2012 -0700 mdss: display: add rotator interface to mdss driver Add rotator session management support with overlay interface using MDP flag MDSS_MDP_ROT_ONLY. Overlay interface can only support overlay surface or rotator (written back to memory) but not both. Change-Id: Ib2f494683b2e6c2fd8c67818df2b57afb82a3df3 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 96a1e9e9a778f0729b7073f20a0fbd9a63c9ba8b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 18:36:57 2012 -0700 mdss: display: add clock and bus scaling logic MDSS hardware supports different bus bandwidth and clock frequencies depending on the load on the hardware. Add support to driver to calculate the bus bandwidth and clock frequency requirements and activate changes before the load on hardware changes. Change-Id: I9bb5bbc7b3e18fb1a738f527b875506dfa0c5c81 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ef3ac01347acd86ea5a3f7a7b44cbe88bb90221 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 14 18:40:47 2012 -0700 msm: copper: add device nodes and clock information for mdss Copper uses Mobile Display SubSystem, add device tree and clock information to be used in mdss driver. Change-Id: I67397a28168407b3268f4f026f35d69a04062995 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5f979254a80b7a844df3d9c1f49e16427f2477cc Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jun 13 11:25:38 2012 -0700 msm_fb: display: Add DMA and Overlay blt mode address to MDP driver For handling split IOMMU domain cases, BLT mode requires DMA to map for reads and Overlay for writes. DMA and Overlay blt addresses are added to configure the respective registers to avoid page faults and normal operation of supported panel interfaces. Change-Id: I522944b804fe65925df428d6bb312262328a11d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ae9beaf0a79f929c4f9928b8daed5a9ed131d6a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue May 15 09:50:30 2012 -0700 msm: iommu: Split rotator/mdp iommu domains Finer granularity is needed when mapping into the IOMMU's for rotator and mdp for secure playback. During secure playback HLOS will only have access to map into one context bank. The other context bank is secured and programmed by TrustZone. Divide DISPLAY_DOMAIN into DISPLAY_WRITE_DOMAIN and DISPLAY_READ_DOMAIN. Divide ROTATOR_DOMAIN into ROTATOR_SRC_DOMAIN and ROTATOR_DST_DOMAIN. Change-Id: If3e556171645e8ea02deb12ca543df36233db5f2 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 56a123baaab84af584fbbf5cbb29955ec5c92f39 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work & lock histogram calls Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). Lock the mdp_histogram_start and mdp_histogram_stop calls with the same lock used currently by mdp_do_histogram to maintain that every do_histogram called between a start and stop will be completed. Add a timeout to do_histogram wait_for_completion so that it will unlock and yield to other histogram calls if it waits for longer than 33 msec. CRs-fixed: 363763 Change-Id: Icc503aed4e60dd01941682003ca3dbc844aed8d9 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 41cdae666312bdc248a8e707a2d8f9ca568178cf Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Jun 11 17:18:42 2012 +0530 Revert "msm_fb: display: Fix for HDMI bootup issue" This reverts commit a369ce03ca048fb511642ac1cb73c1f652d70c50. The change is no more required as pan_update is not being called and overlay set is now being used instead. Change-Id: I7b25c256ab57e620f319058638371e079642c448 CRs-Fixed: 367233 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d60ac323a1e3e7086ef2d77c866d5ed482d2a4e9 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu May 31 18:16:31 2012 -0700 video: msm: Resolve post processing memory leaks Allocate memory for post processing only once. Free post processing memory when MDP is removed. CRs-fixed: 366325 Change-Id: I244f4e10a6933e2acaf69a83d8b91ee5f6e27557 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit cc91399843c5ffb5a57d890c0ca835cd7f5a6e8c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed May 9 14:57:28 2012 +0530 msm_fb: Add backlight support using both GPIO 96 and PWM Add support for backlight control on EVB using both the LCD_BACKLIGHT GPIO and also the PWM approach on 8x25 EVB. Also increase the backlight levels supported on 7x27A from 100 levels to 256 levels. CRs-fixed: 365523 Change-Id: I4806644783cc98e01192a3101bc852487bb3b592 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 691524c2e330592b2561df4c0fb6e7d2a741a924 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 6 12:44:46 2012 -0700 msm_fb: HDMI: Do not add HPD state timer during probe Currently all HDMI timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HPD timer being fired 5 minutes after boot even though cable is not connected. This change fixes this issue by not starting the HPD timer during probe. Change-Id: I9eeb8b892be2476e8debdd4ec5897a103cc34665 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit df694561ecc3105707af6bf323cd42f988293e3a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Jun 5 15:06:21 2012 +0530 msm_fb: display: Fix compilation error for non-HDMI builds HDMI dependent functions need to be guarded under HDMI panel macro to avoid non HDMI builds complilation errors. CRs-Fixed: 366864 Change-Id: Ib2a9f6db4eb511b2a170fcc7ac979f6c41046baf Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3db0ca75238989ad2b5860c48901952bb15483a3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 17:32:43 2012 -0700 mdss: display: add overlay ioctl apis to mdss driver - Add support for overlay IOCTL APIs defined in linux/msm_mdp.h - Support for ion client buffers and framebuffer memory Change-Id: I0418ecab9aacf826d900f82f179fa20688fc763e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d6d2863519c2351ef790758ed134e012d4563c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 16:52:09 2012 -0700 mdss: display: implement writeback interface for mdss Add writeback interface support, using one page of framebuffer memory for writeback output. Change-Id: I0a44c6907cbc10d97c78642f45dc018dfb2d1750 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e55fa120321f49385973b37f8b258bf78163743b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue May 29 15:36:08 2012 -0700 mdss: display: Add Mobile Display SubSystem driver - Implements Linux frame buffer interface to interact with userspace libraries and applications, based on msm_fb frame buffer. - Implement MDP driver which handles MDP core data path setup and hardware blocks programming. - Support for UI through Linux frame buffer FBIOPAN_DISPLAY ioctl. Change-Id: Ib98677b8d81d74283b27dea08a9f1a705c101bce Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 75692782e15de0990247e2d6252fbd26ca849278 Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Thu Jun 14 14:56:11 2012 -0700 msm: display: reduce pwm frquency to fix the broswer blank issue screen goes completely blank while loading a webpage at low back light value. reducing the pwm frequency range to fix the issue. Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Change-Id: I44018b9f19d2dd3c8731d94588c606cd081fa3cb CRs-fixed: 362987 commit 14db6b404f2b1627791dada77ea303ef970910a6 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed May 23 17:22:15 2012 -0700 msm_fb: HDMI: Start HDCP authentication only on device open Currently HDCP authentication is started for a default resolution upon HPD connection event. With this change, HDCP authentication is only triggered after the HDMI interface has been configured for an appropriate resolution following the call to open the HDMI device. CRs-Fixed: 368865 Change-Id: I7b9ce85aed989b78b448bff6a545a194dfed5b1d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 56672d222b15602826d0200a6baee5ca02a450c6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jun 8 15:57:29 2012 +0530 msm_fb: display: HPD rework for cleaner approach Currently HPD is turned on and off with HDMI turn on and off and turned on again after HDMI off so as to detect the cable plugin. With this change, HPD will be turned on when HDMI drvier is initialized and turned off and on with suspend - resume. The HPD handling during HDMI turn on and off has been removed. CRs-Fixed: 368865 Change-Id: I1fb42b4587e58086d643b87a1600ecf09754423d Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 7d11c271b2ca399783975d3b6ef3199cd937a2e0 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Jun 7 12:25:31 2012 +0530 msm_fb: HDMI: Update HPD logic to address HDMI PLL related issues In the current implementation, the regulators pertaining to the HDMI core are turned off/on as part of the configuration of the HDP circuitry. As a result, the regulator that powers the HDMI PLL is turned off before the HDMI clocks on the PLL are disabled. This might lead to the PLL not getting locked when it is re-enabled. This change turns on and off the regulators and clocks in proper sequence. CRs-Fixed: 360135 CRs-Fixed: 358598 Change-Id: Ie3630b543e78e83dc565edc32239935135ca4ca5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 66c3c2d50b970ee5f2275d89945271677018ddb3 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Jun 12 17:46:53 2012 +0530 msm_fb: display: Add support for command mode on 8x25 SKU5 1. Make command mode default on 8x25 SKU5 devices 2. Add command to change panel scan direction to have proper display Change-Id: I9440ed01541a18ddabe2029c37565dda1181ac2f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1c2bee0158437f485c32f6750e8df3314ae9168b Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed May 23 11:30:28 2012 -0700 msm_fb: display: detect if timing generator is on when do dma waiting If the timing generator is not on, dma waiting won't return and system crashes. So add TG on detection to avoid the issue. CRs-fixed: 362503 Change-Id: Ic472e7b75be1fd8960e5ac18929181513085212e Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c0d815c2a4118d1ba51e316c6cb59bee4d68eb9b Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Jun 12 16:55:14 2012 -0700 video: msm: Always queue histogram work Always queue histogram read worker in order to gain concurrency protection from the histogram management mutex (move previous checks/calls into worker itself). CRs-fixed: 363763 Change-Id: If9e3c13b5e4005f81fd1b5d2664af206b1decf5b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ba2fa104b3d51b24ccceb168b6bae96fcc851080 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri Jun 15 07:43:20 2012 -0700 video: msm: Don't make the framebuffer cached The video framebuffer should not be cached when mapping into the rotator or video domains. Change it. Change-Id: I407c68ac21a030aff801ebfae01d360bb6bf338c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit aadc14e2ef6a6a84681233ba8020b72b38b98819 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Apr 10 15:28:50 2012 -0700 msm_fb: display: change ion memory map for mdp mixer2 writeback One way that mdp mixer2 gets writeback address is to get ion memory fd from userspace, then mdp driver maps this fd in kernel. When mdp iommu domain was not enabled, this maps to a physical address. Now after mdp iommu domain is enabled, the map is changed to an iommu virtual addr. Change-Id: I461a00cc93169de586565834af4fb9a43949cf95 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 9acbfb0eb688bac6a35f12b58e2e9c3de4d2d3b8 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 6 10:00:43 2012 -0400 msm_fb: display: add support for frc Frame rate converter(frc) is treated as LVDS 1080p panel Its configuration is based on HDMI 1080p60 mode LVDS dual channel mode will be used Change-Id: Id3a17f107c8398ddb47105d064be2743a150a3b3 Signed-off-by: Ken Zhang <kenz@codeaurora.org> commit 94fea065072fc6afd61bd7e2c05f0e552dd1e578 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Jun 12 17:52:12 2012 +0300 msm_fb: display: Fix D2L register I2C driver more than once Fix error message seen on kernel log after suspend/resume Change-Id: I908efec9fde6e9de838e28d2c778fa4b3567e4f6 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 913cf20260442f1335ec6ad82549bdae65b120c0 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:12:38 2012 -0700 Revert "msm_fb: display: Attach and detach MDP IOMMU on suspend/resume" This reverts commit aaf74ca34581feb8be797a6d8793824e73fecf67. Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: If9ec76cd040b0e834301d3d9ddbbab04b38b7a7e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f6ef081fb7c9d779401b88c00314127333f9df83 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 8 22:05:30 2012 -0700 Revert "msm_fb: display: Add MDP IOMMU detach support for DTV" This reverts commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4. Change-Id: Id1d127080040962c1ad33c9d4bca5005415283da Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1ce7e4c2f39c787fa82aa10a5189df7d0c41b3fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 13 14:05:54 2012 -0800 msm_fb: display: Add support for 4 layer MDP composition Add 4 layers composition support to MDP by allowing borderfill pipe to be used as base layer of mdp blending. This releases RGB1 base pipe which can be used as a general purpose pipe. Change-Id:I517485d738e8bb555a263b3ea885d78d5e4f4396 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 12d6b1f102f45566a0d3089d4e5eeb46a328cf00 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Jun 4 11:18:11 2012 +0530 msm_fb: Correct the chroma offset calculations for Yamato format In the PPP blit operations, when the source image format is Yamato, there is chroma offset calculations going wrong in the case when a frame is split into parts and blit is done separately. Correct the chroma offset calculations in this case. CRs-fixed: 366908 Change-Id: I867024632fda9f64a569150e0b6389d55614cd3a Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit a382195e358eebc39640ba8e7f2fe7a3d583aaec Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jun 5 17:06:10 2012 +0530 msm_fb: display: Set the minimal sleep time for DSI PHY Initialisation On 7x27A/8x25, set the minimal sleep time required for DSI PHY hardware to get initialized and for the display to come up. CRs-fixed: 367652 Change-Id: If040a5ac37f694e83b819ecf08fc80f2afb7afaa Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 2fcabf92eea31cad2ec4852dcab563f2c93e4294 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Wed May 30 10:41:11 2012 -0700 msm: Replace idle wakelocks with pm_qos Idle wakelocks are being removed so replace them with pm_qos. Since we don't know every driver's latency requirements we maintain one-to-one compatabilty with the idle wakelock API by replacing the wakelock with a pm_qos request of the correct latency. Once we determine the actual latency requirements of each driver we can replace the latency used with the correct latency for the device. Change-Id: Icc40f1642218e0de8fc2f56eaf9e8f92914d142f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 12:25:31 2012 +0530 msm_fb: display: add writeback mode for mddi on 7x30 Add support for BLT mode in the MDP4.0 overlay architecture while downscaling to more than half of the source dimensions to avoid underrun issues. CRs-Fixed: 313524 Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ef9ccdb031e1fc3c80067cfad59fc5c2d9db77be Author: Siddhartha Agrawal <agrawals@codeaurora.org> Date: Tue May 15 10:52:00 2012 -0700 msm: display: Change DSI escape clock to byte clock Changing DSI escape clock source from PXO to byte clock to add more flexibility. Change-Id: Ia78093f8b8be6a27c86f3e8db68fa1f4a4d85086 CRs-Fixed: 361022 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit f98c498b5ef8827afb24bad495f4e175f0829807 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu May 31 15:15:29 2012 -0700 msm_fb: display: Wait for external vsync before DTV IOMMU unmap In play wait call for DTV, software waits for overlay1 done before unmapping IOMMU buffers. This is replaced by external vsync wait to avoid page faults. Change-Id: I67d3615121e9eda3a4378553049a41e32860a520 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c0399fc8064b7e09bf41b9213faabc448ea95707 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Feb 29 11:43:49 2012 +0530 msm_fb: display: Remove chicken bit config during video playback Remove the chicket bit configuration and overlay status check for MDP 4.0 v2.1 hardware version CRs-Fixed: 313524 Change-Id: I0fd2db72a25a628398c9f794676d2178cdca78df Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit b411a253ea37acbe8cc817bf004ae08d877d9bd1 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed May 16 00:47:38 2012 -0700 msm-fb: display: lm2 writeback support on mpq platfroms lm2 writeback has broken on mpq platfroms as lm1 and lm2 are selecting the same axi writeback path. It adds the support to select the right axi writeback path based the availability of the write master Change-Id: Ia6b868ff13de5edc641e4795794286893c063e66 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 140748fe6442df1cc95dc1a2519ad8db2190b2b3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu May 24 20:44:07 2012 -0700 msm_fb: display: Disable LVDS phy & pll during panel off LVDS phy pll power rail is consuming power in suspend state. Hence phy & pll are disabled during panel off cases on suspend and device release cases. Change-Id: I390a1d774587a108edc2e5f7319e431c14132cb8 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ff42a9a426ab9a76d75a29464412807dd72ceb13 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 29 11:03:00 2012 +0530 msm_fb: Check for Histogram NULL while queuing work Don't queue the work if the user hasn't requested for the histogram data CRs-Fixed: 365729 Change-Id: I0b28097fa00f13a836c2ee9d35e8e4557f1c70f0 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit adf8fef78bf5f77f6c378d8889a35844278148e3 Author: Laura Abbott <lauraa@codeaurora.org> Date: Fri May 11 14:13:05 2012 -0700 video: msm: Migrate away from subsystem map APIs The subsystem map APIs are no longer the preferred method for mapping into the the IOMMU. Migrate away from those APIs to the newer map_contig_buffer APIs. Change-Id: I29608bd1cf7f9fb8c5584952826b6f3ae56bc3d8 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit a2afa0dbade27d11382e2486c079d20532a5d73c Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed May 23 15:38:50 2012 -0700 msm_fb: Display: Add additional settings to improve DSI signal strength. Modify/add new Physical layer settings for Lane, BIST and PHY strength to improve the rise/fall time of the DSI clock waveform. CRs-Fixed: 364037 Change-Id: Ie2503100eebdf9d4c82d457c187ab8fa903778c6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 493c38628f7288d0c9ef384517b0eda3b76d50a8 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 23 17:18:18 2012 -0700 msm-fb: display: Perf changes for mdp composition Display under-run issues are observed with mdp composition. Fix underrun issues by changing perf level. CRs-Fixed: 354377 Change-Id: I82346e65af173d7592506f1cee7f90f40ee01485 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 7a77c7ca07bbcc390967552d0973238ac48b5597 Author: Anitha Anand <anithas@codeaurora.org> Date: Tue Apr 24 15:46:36 2012 -0700 msm_fb : Disable power collapse before VSync to negate wake up latencies. For a 16ms frame period the CPU may go into deep power collapse. Based on the power collapse exit latency for that low power mode, the frame period gets extended by the latency to wake up the CPU at the next VSYNC. This results in a user experience glitch. Adding an hrtimer to wake up the CPU few ms before the Vsync and disabling power collapse compensates for the extra time spent in waking up the CPU out of deep sleep. On timer expiry, set wakelock to veto idle power collapse till the next VSync. The wakelock is released on the next VSYNC occurrence. Change-Id: I3e013cc54c36d3015d6fafa4b9ccd435cb5532ab Signed-off-by: Anitha Anand <anithas@codeaurora.org> commit 9f36ce34dc0e6f840c6198430adfb44142d91f4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 15:15:16 2012 -0700 msm_fb: display: Register MDP fault handler with IOMMU driver. MDP fault handler will print minimum information on display related page faults and its registered with the IOMMU driver handler. This is to minimize logging when a series of faults are seen to cause watchdog bark. Change-Id: I7728e8265cad8f2b506f1ec7f71309ccdcb804a2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c96bc441e59d6f0439671c85bc41a3507f232e8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 12:31:31 2012 -0700 msm_fb: display: Free staged foreground pipes during suspend During suspend, some foreground pipes might still be staged and have to be removed before disabling timing generator. So, these pipes are staged down and freed before timing generator is switched off. Change-Id: I3f2376cac43464c64cd1c9e2f16f3d801298c25d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fa853b91ddfe4ac5eb9c77f9c409223d9b3cc0e4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 25 13:24:52 2012 -0700 msm_fb: display: Add MDP IOMMU detach support for DTV IOMMU detach support on suspend is currently meant for DSI Video and LCDC modes. The detach call is moved to early suspend for primary display and external DTV to avoid page faults related to suspend/resume cases. Change-Id: Ia45071c44c20b951a328f39a033bdd83ff77d8f8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6877b7fc326cd18bbf6c83b418005f7cffbffb9c Author: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> Date: Thu May 24 12:30:35 2012 -0700 msm_fb: display: Flush background pipe after solid fill configuration For is_fg support on a foreground pipe, the background pipe is currently set to Solid Fill mode without being flushed. Add flush after enabling Solid Fill on background pipe. CRs-fixed: 352855 Change-Id: I91c4e391c9577a9198d048d2b369369d348efeab Signed-off-by: Amara Venkata Mastan Manoj Kumar <manojavm@codeaurora.org> commit 10a9758c95a68e11f27c9f6452ac9b5b978a8ca8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon May 21 17:32:07 2012 -0700 msm_fb: display: Fix invalid x offset programming for YUV444 fmt Source x offset adjustment is not properly programmed for YUV444 format, it is always programmed as 0. Add support for correct x offset adjustment. Change-Id: I73e87f961bda60670cc764c66be955e48ccf2734 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit aaf74ca34581feb8be797a6d8793824e73fecf67 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 18:37:20 2012 -0700 msm_fb: display: Attach and detach MDP IOMMU on suspend/resume MDP IOMMU is not in a clean state on suspend/resume with page faults seen with video playback after resume. Hence, IOMMU is detached during suspend and attached on every resume call. Change-Id: I906cd7fa79ab67fd69eb1974d06d3521d42bf55b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9ef70852238212e6df24584426ad263291df1bf4 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Tue May 1 19:19:40 2012 -0700 video: msm_fb: Wait for dma to finish before terminating If writeback takes too long to finish, after calling _stop() writeback client might deallocate buffers during the DMA causing faults. To prevent this situation, make _stop() a blocking call that waits for the writeback to finish before returning. Change-Id: Ia710095a55d705589a81aa9bc29c41d536c2a42d CRs-Fixed: 351773 Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org> commit 20c1b5887a5ba7bae742225bfceaa2268e0e7549 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Mar 12 13:58:07 2012 -0700 msm_fb: HDMI: Video Quantization Ranges changed Quantization settings applied based on default range for source format for 480p. If a non-zero value is sent then it must correspond to transmitted video format as per the standard. Setting RGB Quantization values in AVI Infoframe for 480p to default range (0x0). Change-Id: I01fc263c9406fe80a4b3c73628f265bb733ff90c CRs-Fixed: 349246 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 77f82aec5a4785f89cb2ab968dcde1452f3073c6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed May 23 09:42:25 2012 -0700 msm_fb: display: Flush MDP registers before staging up any pipe Add flush calls to MDP's pipe and mixer registers before staging up any pipe to a mixer. Change-Id: I36f5aa04634bae43a38e57cd97bd2aafe9631eda Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c9fa6999ad8b2f10ec4e807ee3dae621f8c6d4fe Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sun Apr 29 22:39:48 2012 -0700 msm-fb: display: Reducing the display wake up time 100 msec sleep in phy init delays system wake up. Using usleep instead of msleep to optimize it. Change-Id: Ibdbb771145210c9462aa68543024be2ae797be4f Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit aa356f6c4d44965233c79d68bd293a258730d8c1 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu May 24 12:25:27 2012 +0530 msm_fb: display: Keep fb1 for MDP version < 4.0.2 For better memory usage, fb1 memory allocation is removed for targets like 8960 which support BF pipe and true mirroring but required for targets like 7x30 and 8660 which still needs fb1 for border fill. CRs-fixed: 364669 Change-Id: Id741223a0107e356b9164b582aa1f901caa21988 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e9658eb364860826d3924b3d45ba74a2a6c2a2e6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue May 15 14:58:55 2012 -0700 msm_fb: display: Rename MDP IOMMU context bank names MDP IOMMU context banks do not correspond to the input processing pipes like RGB and VG. So the context banks are renamed based on port and number. Change-Id: I39a6b1a66226aeaaf48fb3697f90ab55b67a592c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d995a89cd61bb7295f0226420c4752dc0a9a8fe1 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 10 12:18:58 2012 +0530 msm_fb: display: Move mipi dsi clock enable before dsi soft reset mipi_dsi_clk_enable() is called after dsi soft reset. Move mipi dsi clock enable before dsi soft reset as per mipi dsi hardware design document. Change-Id: Ie1cfdf53bc74b87b5a0e0679ab26bc513205673d Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 8 15:04:27 2012 -0700 msm_fb: display: disable pan display and memory access to fb1 and fb2 The native fb1 and fb2 framebuffer memory is not used and not allocated on the board file. So on the driver side, pan display ioctl or other operations on fb1 or fb2 framebuffer memory is checked and invalidated. CRs-fixed: 357242 Change-Id: I2883926251a0465f69f18c442d5867556a4651bf Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0dc81db9cf48d869987e8fa8ab8914fcec964bda Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue May 15 13:38:45 2012 -0700 video: msm: Avoid waking readers on failed histogram copy Avoid waking up the waiting histogram reader when the current histogram has failed to copy. Additionally, clean up initialization of histogram workqueue (was initialized twice). CRs-Fixed: 361640 Change-Id: I376c0193b8e34aba5b0aef54feb9504f450ffff4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 71cf95bf1100ab5de55bf3858d40996be7dc445e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 7 11:30:52 2012 -0700 video: msm: Check for multiple readers of histogram Check to ensure that only one reader attempts to read one frame's worth of data from a histogram block. Prevent the case where two readers attempt to get data, but end up causing a loop where neither of them do. CRs-Fixed: 361640 Change-Id: I48878d9fe02d96f306894ed9acc47bf41cd9984b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 19e4b71f617e307cacf0be077e08bec5c37df290 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 14 12:01:04 2012 -0700 video: msm: Clear previous histogram data on next startup Clear the pointer to the userspace histogram struct when histogram is started. Previously, when the histogram was stopped while a histogram read was in progress, the pointer was not cleared, causing the next histogram read to think that someone was already using the histogram. CRs-Fixed: 361640 Change-Id: If09017149e98b35c49603372c554aa4c97f2de82 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ee888e34e20ec3bb4c2c385f3967ecaa9e97f49c Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue May 15 16:39:10 2012 -0700 msm_fb: display: add blt mode enable and disable for lvds panel The check for lvds panel is missing, so blt mode can never be enabled for lvds panel. blt mode is critical to avoid underrun issues. Change-Id: I3cd74bcd978a73997df638f10cd2126ba9ab6577 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 8f7c96dc7ee42acd71ea962cf0580f0a9480d5af Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue May 15 12:42:57 2012 +0530 msm_fb: display: Add support for MIPI NT35510 client on SKU5 Panel is 180 degrees rotated on SKU5 devices. This change fixes the 180 rotation on SKU5 devices in video mode. Change-Id: I9c7ff12de9e19534f8df8ebd9215d74ff0e429f3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9f1453ec3eb2b22160d25148a45f1731a23d4c95 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Mon Apr 16 13:25:00 2012 -0700 msm_fb: Increase PWM granularity to 255 levels for 8960 fluid Currently 8960 fluid display panel only supports 100 levels for backlight. Content Adaptive Backlight Control requires 255 levels of backlight for optimal user experience with CABL turned on. CRs-fixed: 342485 Change-Id: I02226a7790f2dd0144c1eb623c8177724e33a715 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit fee56a86ba3582e2985b2f5a0e535743381544ff Author: Pankaj Kumar <pakuma@codeaurora.org> Date: Tue Apr 17 14:26:49 2012 +0530 msm: Add support for 7x25AB MSM 7x25AB is new msm which can go upto 1GHz. Add required cpu checks to add support for this new device. Change-Id: I0be886d471fe0c70b8afd4da87b9991862a8571f Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org> commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54 Author: Siddhartha <agrawals@codeaurora.org> Date: Mon May 7 18:58:56 2012 -0700 msm_fb: display: Update video format on fps change Added check for frame rate change. Corner case if there is no change in xres,yres and pixclock. Change-Id: I0ff5eb65364d2a370e0973da7e84f738bd042a20 CRs-Fixed: 356328 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> commit 514b1c651a33b7b73fb6f654d04355eac5ecb146 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Change-Id: I8d658ddf4f2ccb2ae47015fe411e8c1a5a55e4df Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ca15287e50fe00dd6526fdc166cb526298099fb2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri May 4 12:56:36 2012 -0700 msm_fb: HDMI: Do not add HDCP reauth timer during probe Currently all HDMI/HDCP timers are initialized in the driver's probe function with a maximum possible expiration value. However, the 32-bit jiffies value is initialized in the kernel so as to wrap 5 minutes after boot. This results in the HDCP timer being fired 5 minutes after boot even though reauthentication is not necessary. This change fixes this issue by not starting the HDCP reauth timer during probe. The timer is only started when an authentication failure is detected from an existing valid HDCP session. Change-Id: I0a28437daa2e95d24a02131322305f3b21a6445c CRs-Fixed: 352080 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d4aab1eb15aa7f9452f1e40688732815b39d4182 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu May 3 20:26:56 2012 -0700 msm_fb: Pass device pointers to regulator_get() Passing a device pointer instead of NULL as the first argument to regulator_get() allows the device to be taken into account when finding a matching regulator. Change-Id: Idc9990eff2c6c78fc9fc9a36d638eef4fd1b632a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 275f94daff0211c145526ee6d45bf48454b13afa Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 15:46:01 2012 -0700 msm_fb: display: add mdp version info for later mdp h/w fbtest needs to get the correct mdp version number, but now only the version up to mdp4.0 is returned. Add the latest mdp version up to 4.4. Change-Id: If1ff302bb4a02ed13bb4dcabcb933fd5adfbec6d Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit cfd004fa326a6dc4c7e80da707248b5bddaa39b8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 7 12:02:41 2012 -0700 msm_fb: display: Flush pipe registers before staging the pipe Flush pipe registers before staging the pipe for the Mixer with pull mode panel interfaces. This fixes the IOMMU page fault/underrun caused by pipe fetching previously unmapped buffers due to missing flush calls CRs-Fixed: 356484 Change-Id: I6bc2e49746a7c3773708796bc1709c75a8afaa4b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit eee66c6ffa18c954fa2583fdda66526f90bad40b Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 28 16:07:08 2012 -0700 msm_fb: Increase backlight granularity from 15 to 255 levels Currently number of backlight levels are set to 15, which causes noticeable flicker when backlight level is changed from CABL functionality in userspace. So to improve visual performance, increase backlight granularity from current 15 levels to 255 levels. This change is for msm8960 & apq8064 liquids which use Chimei panels. CRs-fixed: 342485 Change-Id: I204f881d45fbcd4a419cc8e61c3bcb1f4d520f7e Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 134786b7bbcb3c8b07b4f56b4421842b75e8471a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Thu May 3 14:44:39 2012 -0700 msm_fb: display: add dtv wait for vsync when in blt mode Currently dtv is waiting for overlay done when in blt mode. When dtv frame rate is low, this return may be too soon. So before dmae finishes updating buffer, the buffer may be overwritten by userspace. Add dtv wait4vsync after overlay done to lock the buffer untill the next vsync to avoid tearing or flicking. Change-Id: Ic57544a5305fdf9081bfeeccd8d364395faaf602 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 6f043415300f58c5868e02050b15c8aa21c26342 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri May 4 01:16:06 2012 -0700 msm_fb: display: Correct LVDS Phy mux settings Fix the display color issue in 1.1 chips due to wrong mux settings in LVDS Phy Change-Id: Ia51500e15e0ffb3e4cc056073985cdeed5751652 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 29c5fb0392a1bf36ac385f5e8790999d70f6d2a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 27 13:50:44 2012 -0700 msm_fb: display: Clear background solid fill on closing video pipe Clear background pipe's solid fill setting on closing Video pipe to avoid blink issues in display Change-Id: Iac3c884334f38580fb5c9dbfb260dd6940ef5019 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b2bdae8ee4262a4e1d8e8e7f9c91b80790bdff27 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Apr 6 16:05:05 2012 -0700 msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe dtv_pipe is the base layer pipe for mixer1. Waiting for vsync when staging down this pipe (it happens when we unplug HDMI cable) causes mixer1 under run because at the vsync moment dtv_pipe is disconnected to mixer1. CRs-fixed: 349765 Change-Id: I3a09159c3ae2dfea963e5ad064076f5a9452ec1b Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e534683723654af2a904e6dec3a646a2d9542408 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Apr 27 22:27:31 2012 -0700 msm_fb: Correct mdp_iommu array size to avoid scribbling The mdp_iommu array was undersized. This resulted in scribbling of nearby data structures which, through a long series of events, lead to invalid pointer dereferences in the workqueue framework's process_one_work() function on (at least) the 8930 SoC. CRs-Fixed: 357011 Change-Id: Ia8027ba8714bb90b336ee79d43920a7f71a8091b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 59508db9d5cec32ff59c2ff5a689288db2b027d4 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 30 16:30:29 2012 -0700 msm_fb: display: increase mdp upscaling range The old range is x8. Acturally mdp rgb or vg pipes can scale up more than that. The max up to x20 is verified. CRs-fixed: 340747 Change-Id: Ief7ee936e39de2ada87d47b14872bca0c3cf36a7 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit b18c9e29486f574bc6353243e1c0116956ba712c Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Fri Apr 13 18:29:34 2012 -0700 msm_fb: Provide support for ARGC and CSC for layer mixer 2 MDP 4.4 supports additional layer mixer (LM2) with ARGC and CSC blocks. Extend existing ARGC and CSC functionality to additional layer mixer (LM2). Change-Id: Id9e5d0a80fcd9a6e3b6132b083d8a43450c0efa1 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0ae152b929dfc538bbb2c72f01b5f3bf14c3c6bf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 25 14:17:39 2012 -0700 msm_fb: display: update dtv panel info clk rate dtv panel clk rate is dynamically changed with the HDMI resolution. s/w panel info needs to keep its clk rate updated. CRs-fixed: 355110 Change-Id: I9365d67820158afb2bc520736df9152864a2a962 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit e01bb5a4944eea27e87ca00a869105185c13664d Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Apr 24 15:14:26 2012 -0700 video: msm: Add QSEED API to MDP_PP IOCTL Add the ability to program the QSEED Table 1 coefficients to the features supported by the MSMFB_MDP_PP IOCTL Doesn't support table2 writes currently, however, the code to write to them is already present. QSEED support is currently only configurable via a tuneable parameter that maps to a small subset of possible QSEED settings. By moving to the MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value requested by userspace. This also allows for future expasion of the QSEED feature by allowing dynamic loading of the table2 coefficients (rather than only configuring them at init). Change-Id: I7394e211169efb0e677391e2c150a6a6b8d0477c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 28ffb9c964d8d303c38f90b6c4bc8bf313356a54 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Apr 11 23:37:15 2012 -0700 msm_fb: display: add dtv_pipe null check before dereferenc it There are chances that a null dtv_pipe pointer is dereferenced and system crashes. One such case is unplug HDMI cable while playing video. So a null check is needed for each dtv_pipe dereference. CRs-fixed: 355238 Change-Id: I1ff57b00169e217fc5ed98574db7fd49b9319d0a Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 14648740d17ca1f154222aba29a1f2946609f460 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Mar 30 19:42:12 2012 -0700 msm_fb: MHL Driver for SI-8334 Transmitter The device driver for SI8334 Silicon Image's Mobile High-definition Link (MHL) Transmitter implements wake-up, discovery and communication with MHL sink. The MHL-8334 Tx is attached to MSM as an I2C-client. Change-Id: I845bc1b30dc799183357224a296215ecc1d44893 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b41048b637d4341e24f8f36b68b127fe600f6a1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 15 10:40:40 2011 -0700 msm_fb: display: add YUV444 interleave format support to mdp Add support for H1V1 interleave (YUV444) to mdp Change-Id: I86b76831ad87dede90ddd8d8f5ae64e51fa28c27 Signed-off-by: Kyong Hwa Bae <kbae@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6098eee975076350586eb3010edda8b96ac998d5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 19 10:35:01 2012 -0700 msm_fb: display: Unstage video from primary mixer H/W on unset Resolve video playback suspend/resume IOMMU page fault by unstaging video layer on VG pipes from primary mixer H/W during overlay_unset calls immediately at the next vsync boundary CRs-Fixed: 350371 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ia1b2369005db500b5042d3226cf8d43027783fe3 commit 5ff2cb661c0575a45e8cf70384dd6c1d2dc8e7ba Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Wed Apr 11 10:43:07 2012 -0700 msm_fb: display: switch mdp mode without turning off timing generator MDP need to be in idle state before switching to different mode. Dmap_done interrupt is delivered when the last line of frame is clocked out. Therefore mdp is in idle state during dmap_done ISR. This patch execute mdp mode switching inside dmap_done ISR. Therefore timing generator is not necessary to be turned off since mdp is in idle state already. CRs-fixed: 350154 Change-Id: Ib10557bde90856ffd5284a0a76dddbe92f2abc0e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d94b7d4d0c67a9bcdbb4ab1929ce70f4b6ec7136 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 23 16:02:08 2012 -0700 msm_fb: display: remove mdp writeback2 overlay kickoff waiting Before overlay2 kickoff, there is already a dma busy waiting, so once overlay is kicked off, mdp driver can safely return to userspace. Then if there is another request while ovlay2 is still busy, dma busy can take care of it. Change-Id: Ibb45a8b306a393c8e240fc64b5857e8700afcaba Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 012a8e79ebc3cd375f501a862e7b401b99c53054 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Apr 11 10:41:13 2012 +0530 msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers Many of MDP input formats don't have correct unpack pattern, so image displayed on screen is not in the actual format set. Also,Some rotator output formats differ from input, these mappings used to be handled in userspace, but to avoid issues this is now done in driver. For YCrCb planar inputs chrominance order is dependent on rotator hardware version. Add hardware check to swap Cb and Cr for 7x30 and 8x60 rotators. CRs-fixed: 339114 CRs-fixed: 337040 Change-Id: I55691aa7c9d38e83e4fc63a162ffb23959ba30c1 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 7a62a68bfa68cf9767b9cb6432c05a47e296067b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 14 15:56:13 2012 -0700 msm_fb: HDMI: Compile error when HDMI is disbaled Resolve compilation error when HDMI is disabled through kernel config. Change-Id: Ie89ac666fe4db83294cce07f59f61790b200d463 CRs-Fixed: 341412 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 87dd72e286299134b5783cb90f61e7eaec7d2788 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Apr 16 19:07:36 2012 -0700 msm: display: Clean DSI state on continuous splash disabled cases Reset the DSI clock control, disable controller and PLL to resolve boot issues for DSI command mode for continuous splash feature disabled/unspported cases Change-Id: I1e5e9a9d2d548c518d2620bf6d9e125d5efc8fd4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0769dbd1fabe600bf6a8bd1d563c9e31b8d7c122 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 19 16:54:09 2012 +0530 msm_fb: display: Update clock prepare changes for MIPI DSI Update the clock prepare/unprepare changes for MIPI DSI clocks and update the clock lookup table for ebi_lcdc_clk for MIPI DSI interface. Change-Id: Ic31e2e1b169894e633849573eb54325457080b53 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 60d51beb9dd5db3f1adeb203728b1d7ccdec8e0c Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 18 17:18:31 2012 +0530 msm_fb: display: Change panel init command for NT35510 for proper display On NT35510 panel, the display is 180 degree rotated right now for video mode. Change panel init command in the init sequence for Video mode for proper display. Change-Id: I90f9c3e8e689a141c7c606be756c319bb7de1b3f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d16485de65e9e7d611293f5b6174b3a3efa7a3d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 21 16:51:26 2012 -0700 msm_fb: display: Add clk prepare changes to MDP and rotator Use clk_prepare_enable and clk_disable_unprepare instead of clk_enable and clk_disable respectively. CRs-Fixed: 351340 Change-Id: Ifb2a9405b8f445a90277d2fade9ab33f5becbd6e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 0f0000abcba6f99593dab94ca869c3d865a73e29 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Apr 12 10:23:02 2012 +0530 msm: display: Backlight control on 8x25 EVB for qHD panel Add support for backlight control on 8x25 EVB for qHD panel Change-Id: I488786b45b844df776952fed4d23b9a4fb337107 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5479cc16a03c6b791daa5eac8f45018ea873cfc1 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:40:40 2012 -0700 msm_fb: HDMI: Enhance EDID Parser to read supported 3D formats EDID Vendor Specific Data Block (VSDB) contains information regarding all the 3D video formats that are supported by a sink. This change enhances the EDID parser to read this data. Change-Id: I61ca8adbff8f4662e437bab42786149c39ea78da Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8b25b2a0b5910befcf0668dc76294f83dccc080f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Apr 12 14:19:12 2012 -0700 msm_fb: HDMI: Fix EDID parsing logic for multiple data blocks This change fixes a bug in EDID parsing logic when there are more than one data blocks of the same type in the EDID data. With this change, the starting offset used to scan for the next data block, is computed correctly. Change-Id: I5d09fe61be9f7c749197991f54e430ae3aaddbcb Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 45ce501383ee71df0072b4e5426f9daa7941636a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Apr 9 11:19:07 2012 -0700 msm_fb: display: add mixer1 writeback buf init call mdp4_init_writeback_buf call is missing for mixer1 interface. And blt_addr should be nulled when dtv interface is initialized, otherwise, mixer1 writeback mode may be false enabled which causes system crashes or garbage display on TV. Change-Id: Idbf5fe90eb50f0a68b434f2c76012c64a38553a4 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 7b8b64075ee4b61c15e28f3042672b26674e0b45 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Mar 1 10:58:03 2012 -0800 video: msm: Add Histogram collection framework for MDP blocks Expand the previous histogram collection implementation to support the addition of other MDP blocks that allow for histogram data collection. Support the VG1, VG2, DMA-P, and DMA-S histograms using this new framework (VG pipes only supplying the histogram of luminance). Change-Id: I94088c1f714fa5d91256ae7b0f5548f8a0b81763 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 20582a5cf3fad8e9fda7ded6478ed8a32b376b97 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Apr 11 10:57:22 2012 -0700 video: msm: Remove an ifndef from mdp_isr Remove ifndef so later patch does not require adding more ifndefs. Change-Id: Ia06e844f42086ad76019f66b575ed78a40ebafc4 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 5 19:09:40 2012 -0700 video: msm: PCC/GC config register protection PCC/GC configuration registers are shared with other features. This patch makes sure that the other features implementations don't overwrite the existing settings for PCC/GC. CRs-Fixed: 345395 Change-Id: I5467a4c50eae214181d67a7976eee92c0ae26fe5 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 97e2fcf862d913feff157f536ee14cfc5f3197f7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 10 14:11:22 2012 +0530 msm_fb: hdmi: Disable 1.1_FEATURE Some displays support Enhanced Link Verfications(1.1_FEATURE) which makes HDMI Tx to verify Pj on every 16th frame. Three consecutive Pj mismatch will result in HDCP authentication failure. If 1.1_FEATURE is supported(this can be detected by reading BCAPS), it needs to be enabled by writing into AInfo of display. Default is disbaled. This change sets HDMI Tx core to disable 1.1_FEATURE by default so that we don't see Pj mismatch error unless the feature is enabled. CRs-fixed: 348752 Change-Id: I996f60b852a7e867e8e13e700beecbac8190a59e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b52a25139f7b14bb3b9e052d1af3def2fff5d25d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 10 18:27:23 2012 -0700 msm_fb: display: Fix HDMI as primary issue with continuous splash support Fix HDMI as primary boot failure with continuous splash support by resetting MDP hardware and disabling splash feature flag in board data Avoid flickering issue for HDMI as primary display with composition bypass updates Change-Id: I9620062f10b24072ea23b7e712e24aba533f044b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 6b7005caf369caf819c1bc3e29a633893b9ebcc4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Apr 6 18:58:44 2012 -0700 msm_fb: display: Allocate writeback buffers of panel resolution sizes Allocate MDP writeback buffers based on panel resolution size dynamically Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I4a456199a05850f35c204edfa7ae3679036138a9 commit 8c23e070b04aa6160681203bf431db60eb7e2e9a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Mar 14 11:35:49 2012 +0530 msm_fb: display: Enable 32bpp framebuffer format. Enable 32bpp framebuffer format for 7x27a and 8x25. Change-Id: I38deabca45ea849710bd2edb2b6847c5309a0c9e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 2e931122a4bab690ed345730d7733904eb97d5b8 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Apr 11 11:05:39 2012 +0530 msm: display: Reset BG_alpha register while alpha blending Reset BG_alpha register when pre-multiplied alpha is not set for a layer during blit request. CRs-fixed: 351158 Change-Id: If103af384d59c3349cb2ef556a497c709d9280a2 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1b064f5e1e5a7426fad6ab8ada8e47dbb091937e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Mar 15 18:17:54 2012 -0700 msm: display: Add device pointer with clk_get for retrieving clocks clk_get requires device pointer to return appropriate clocks for display subsystem. Rename the names of display related clocks in the lookup table based on functionality. CRs-Fixed: 336925 Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59e7b0e47eaee57850157361f31c230b3e1c8a8f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Apr 6 15:51:44 2012 -0700 video: msm: Allow PCC/GC to be disabled/select bins Current implementation would not set enable/disable bits to PCC/GC nor be able to select the zero'th bin after selecting the first. Change-Id: I0f52beb8914cdaecbabe913455c00fb9ea6100db Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit fff7a7d207a8791a68706bf8fac3838884981204 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:27:19 2012 -0700 msm_fb: HDMI: Enable SPD InfoFrame transmission Sinks use the information in the SPD InfoFrame to get the vendor name and the product information of the source device. This change adds the ability to specify this information and transmit the data as part of the SPD InfoFrame. Change-Id: Iff3db2e21cc30cdcc18787de5fd83c6a0790794e Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b64b8dee8c93cb806a906440ef8a4aa72486df75 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Tue Apr 3 23:04:35 2012 +0530 msm_fb: display: Unstage mixer staging on next commit for video use case Unstage of mixer occurs on single vsync. For video playback case on 8660 it is observed that sometime unstage does not complete due to which flicker is seen during unset. Unstage of mixer is now done on next commit only for video use case to avoid flicker. Change-Id: I4939148989d49b3190142f858a40d2cf7617c7ba Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit bea9c06d44800da4c7cbc75e25731a75bd9f84ae Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Apr 9 10:33:48 2012 +0530 Revert "Revert "msm: display: Backlight control on 8x25 EVB"" Enable backlight control on 8x25 EVB for WVGA panel. This reverts commit 75cf6b84b36b054cb7b8074af165cb082112c7d7. CRs-fixed: 339158 Change-Id: Ice8426442c9d82a7316dfd4d812e9f6301a97850 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit c55856c548e0cec8b29e415a08a353a0ab1ac4c8 Author: Alhad Purnapatre <alhadp@codeaurora.org> Date: Tue Feb 28 13:24:57 2012 -0800 msm_fb: display: MSM V4l2 video overlay driver Provides a V4L2 device that uses the MDP overlay pipes (on MDP4), or the PPP interface (MDP3) to overlay frames on top of display framebuffer. Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org> Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee commit aabbf2b21c415c226b680df7ee61b565f47d8603 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 7 10:50:19 2012 +0530 msm_fb: hdmi: CEC re-transmission improvements. Adding some improvements to HDMI CEC code flow to reduce the risk of system crash and compliance failure by proper CEC resiters settings and positions in code flow. CRs-fixed: 336541 Change-Id: I8fb3510190e5c4ff83b3785c51bade139f20692c Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6fdf4becd5fe50e52d587d35d1ee047385351f83 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 30 18:34:05 2012 -0700 msm_fb: display: Create hdmi_as_primary node for boot parameter case Create hdmi_as_primary node for both boot parameter and compile-time cases when HDMI is set as primary display Change-Id: Ib170637e3792477e46ae0fb6044b298bf8de875c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f0bd4cd4ca4114298fba41f18db9babe0533e075 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Sat Mar 31 14:35:50 2012 -0400 msm_fb: display: Epson ebi2 panel support Support fb with ebi2 only(without mdp) Add Epson ebi2 qvga panel support Change-Id: If61b2c522a102133f98f27b21dcc18d057b7ef25 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 226b429d026195ff93b7de8066d8943b58dc65a5 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:35:31 2012 -0700 msm_fb: HDMI: Enhance EDID parser to read physical address This change adds the support for reading the physical address field in Vendor Specific Data Block (VSDB) of the EDID data of a sink. Change-Id: I435705a7709ea26cff71121a2c37fd630b267ae5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit d89c0e7712dd5cf13769b4d0facfecb93028538c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Mar 28 10:17:20 2012 -0700 video: msm: Load correct default values to QSEED at init The previous QSEED Table 1 values are not suitable values (would end up smoothing and sharpening content which can lead to artifacts). The values loaded by this patch are the suggested default values for QSEED since they do not smooth or sharpen most content (bi-cubic filter), but will slightly smooth low frequency components of the image (i.e. helps reduce artifacts that produce sharp edges on content that is supposed to be a constant color; often introduced by some video encoding algorithms). Change-Id: Ic4c0ca4719141bf52123ad239fcca5d3767a2c2b Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5066a5f662d0d88ad4c94158fe392bb0fbd61cb4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Mar 16 15:29:32 2012 -0700 msm_fb: HDMI: Support VCDB parsing of EDID data This change enhances the EDID parser to read the Video Capability Data Block (VCDB) in order to check whether a sink supports underscan mode. Change-Id: Id4e48db4ff7f54fd72d40a413e2f03b692b662c1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 6e73f0a25171e3e5d2d520da99a02f74c5646592 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 8 17:32:55 2012 -0800 msm: Display: Add support for backlight control on 8930 chipset. Register the PMIC WLED trigger driver to control the backlight level on 8930 chipset. CRs-fixed: 339310 Change-Id: Ia73625cfeaa18f2515c81a4c128f98f9fb5c0b32 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit b7c45f42b50b609bb632a0f1f1b2e404af38329a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Apr 3 11:39:39 2012 +0530 msm_fb: display: Enable pre-multiplied alpha for MDP303 For images which are pre-multiplied with alpha, driver support is now added to blend them properly. CRs-fixed: 347803 Change-Id: I859c26c5f52fa0886c106928ef338bd9d0db4462 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 18e249a842a459c14624354f00ef3434d3b6c643 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Tue Feb 21 01:10:56 2012 -0800 msm_fb: lvds: Fix uninitialized variable warnings The compiler doesn't know that there are only two values for mfd->panel_info.bpp. Add an else arm to catch the unknown third value as a BUG() so that we avoid writing initialized variables to registers. Change-Id: I643df7e256cda59a4af73571e1cc5eef610d781f Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 2d19103b77ae63fe127304b9c3ceeb1f399c756a Author: Olav Haugan <ohaugan@codeaurora.org> Date: Tue Feb 28 09:46:31 2012 -0800 msm: Enable all IOMMU's Enable video, camera, display, and rotator IOMMU's so that virtual contigious memory can be used by these devices. Physical contigious carveout regions can be reduced so that more memory is available to the rest of the system when not in use by multimedia. Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> commit 70b866b2ca1d92ee632b5f3eb591d7ae09fab492 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Mar 27 14:50:25 2012 -0700 msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication All HDCP interrupts should be disabled at the beginning of HDCP deauthentication process so that we do not process any redundant HDCP failure interrupts while deauthentication is underway. Change-Id: Ib5149460446b6073122a8249807918d5ad06492c CRs-Fixed: 341921 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 92e58bb7966bbaf8b4c73bf98a5d55dde9980b37 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: flush base layer pipe when solid fill is enabled Need to flush bgpipe with solid fill format to avoid fetching from bg pipe when its contents are not displayed. Also add other missing flushes. CRs-Fixed: 342961 Change-Id: I03e517e02c02d9abc26fd9365e7b67025fa59657 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c0852b7c3a9d08f8d80ad2bb01316f7252f23ced Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Mar 6 13:49:19 2012 -0800 msm_fb: display: perform data flush for each data path separately Performing data flush on stage commit causes some frame updates to be missed waiting for stage commit, this can lead to old data being overwritten while it's being displayed causing visible corruption. Change flush to happen on each frame update to avoid corruptions. CRs-Fixed: 341597 Change-Id: If91800068d2bfd5a2e43fe3e2a96c457e173763d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d46e8d072e432c19eec0e7a2b04a9b6967906242 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Mar 27 16:22:11 2012 -0700 msm_fb: display: remove #if 0 Cleanup all #if 0s in display driver. Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit aabb74cb030c086ca67f51b3d56deb678d4f040a Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Mar 15 14:25:32 2012 +0530 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> commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 2 10:20:48 2012 +0530 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> commit fd0df3ccda02dd1fad680735333bea7ac025abc5 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 30 17:03:51 2012 -0400 msm_fb:display: add display support for mdm platform add setting for no mdp hw case add ebi2 epson qvga panel setting Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 687b109b5f46caf68efde0a1c3a1084a5576a997 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sat Mar 31 15:45:21 2012 +0530 msm_fb : display : Add 60fps support for NT35516 qHD panel This change adds the required support for 60fps using h/w vsync in Command mode on NT35516 DSI Client. Panel Init comamnd has been modified accordingly. Also, since the panel gives 59 to 61 TE signals per second, refx100 has also been modified to indicate the maximum possible refresh rate with this panel. This will ensure smooth operation of DMA Tear Check algorithm. Change-Id: Ib2c03e61509946b7929c3cd21b497a972359fee3 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ff6bfa8e6f2a62ebb19aabd9ed499ee7efa0e006 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Mar 23 17:48:47 2012 -0700 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 commit 3ef84a5ab70bbd65799dbf72b3375b0bc764140d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 22 22:14:41 2012 -0700 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> commit 75cf6b84b36b054cb7b8074af165cb082112c7d7 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 30 15:04:52 2012 +0530 Revert "msm: display: Backlight control on 8x25 EVB" Waiting for the vendor approval/permission letter. This reverts commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd. Change-Id: I83e45776c37ea08c6daf0a529c411e67bd5a7719 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit d85b55446992dd36bb9b8ee56f7e95be97278425 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Mon Mar 26 15:59:58 2012 -0700 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> commit 5b5f2188eb7f6c774b435263284f6179cb35c508 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Wed Mar 21 13:43:55 2012 +0530 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> commit 6bc448aefa897a1e08a6c817280809afc189faa7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Mar 14 11:31:52 2012 -0700 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> commit 87260cdaef95054474e97fab85e3fb691f03a035 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 12:00:45 2012 -0700 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> commit 4a9d3382873adb7aecab07345f3d253eefd150cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 19 16:10:42 2012 -0700 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> commit 2aa111c008157070e871aa5788e9c3664935847a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Mar 20 11:58:44 2012 +0530 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> commit 224d5fa264c38a529fc41f5cfd0ed2792181fcbd Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Mar 6 18:23:50 2012 +0530 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> commit 14e8c40443d2c2891c232c2becda9073a1a44186 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 5 14:57:09 2012 -0800 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> commit 042cd63a1b7674feaf70e41a44550678ae338bbc Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 19 12:51:37 2012 -0800 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> commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Feb 28 12:24:39 2012 +0530 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> commit a3b168b4d1f6b32f17a3498940cf198fdfba0722 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 11:13:11 2012 -0700 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> commit e350d9bcee496c06f79a6490f108f77ed73f66e3 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 26 08:29:54 2012 -0700 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> commit 28338aebe08832ba8a01c28b290615d60c023128 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 26 13:31:28 2012 -0700 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> commit 8d3b0fce866e5f05f18a47bc0cd8f60356dbeb23 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Mar 14 20:18:30 2012 -0700 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> commit 88ad8a7be06a86104169cf2739c18c7d4409dde6 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 14 14:19:18 2012 +0530 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> commit a1f9df15e005241ecf23069f7d345f9a943c06ef Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Mar 9 19:48:18 2012 +0530 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> commit 56dfb682a5bf274842140716333c791d010e38ef Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Mar 21 16:23:54 2012 +0530 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> commit 16f27dc68e406e181c306cc1fb924dca43fb1080 Author: Deva Ramasubramanian <dramasub@codeaurora.org> Date: Wed Mar 7 17:04:24 2012 -0800 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> commit fa530308e1fa485a39e35ed17879b6ab1e665c37 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Mar 12 15:03:10 2012 -0700 msm_fb: display: Remove base layer for DSI command mode during suspend Remove RGB base layer pipe for DSI command mode during suspend to unstage all pipes in Mixer 0 properly CRs-Fixed: 343233 Change-Id: Icce46ad0969536ed9819d10c0e7e01c63aed147d Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c1fa46367d021fc3e457df2bf5b6331c41ad189 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Wed Mar 7 17:49:09 2012 -0800 msm_fb: Handle flags for updating AR GC lookup table (LUT) In current implementation of area reduced gamma correction (AR-GC) LUT configuration,flags for read/write AR-GC LUT and enable/disable AR-GC LUT functionality are not handled even though the IOCTL accepts these flags as part of arguments. So in current implementation by default updates the AR-GC LUT which may not be expected always. So, handle flags for read/write AR-GC LUT and enable/disable updating area reduced gamma correction (AR GC) functionality Change-Id: Idd19dd86ec2b8a4b6f22674e522b2f7e06fb63fc Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 225152437092241cb3f6ff5b97896684d856f844 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Mar 1 17:45:52 2012 -0800 msm_fb: Restructure PCC and AR-GC code for clean implementation Current PCC & AR-GC implementation uses macros for base addresses, while other post processing features use mdp_block2base() function. Also, in current implementation check for feature supported for MDP version in device is not performed, currently function which implements AR-GC, is named as mdp4_pgc_cfg() which is bit misnomer. This change uses uniform method for calculating block base using mdp_block2base(). For checking MDP version and feature supported using mdp_pp_block2pcc() and mdp_pp_block2argc() functions. This change also renames mdp4_pgc_cfg() to mdp4_argc_cfg() to correctly indicate the functionality it implements. Change-Id: I99a9948c987e3270c246aa44e569f94e35026c2f Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Mar 12 14:55:04 2012 -0700 msm_fb: display: disable mdp flip when enabling mdp solid fill If both solid fill and flip mode are enabled, MDP underruns. So for any pipe, if solid fill bit is set, flip operation modes including left/right or/and up/done are disabled. CRs-fixed: 334782 Change-Id: I879231d03c6aab6f82d80bde65c9f01c34f1fa6c Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 2bd101d5bed1729b317114456360605e86289c15 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 16 11:32:23 2012 +0530 msm_fb: Clean up the fix for error in y-offset check in FB driver There is a failure observed in yres_virtual offset check and every third frame gets skipped without an error message. Due to this high fps is noticed in the test applications. Correct the yres_virtual offset check. Change-Id: Iddce0b75e0a9c466adad6eb5726203ae0586c27b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 56daa2d8864d4de16d131b943af5f5fb3ce50b24 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Mon Mar 12 19:43:41 2012 +0530 msm_fb: display: Change perf level for VGA video Change perf level to 3 from 4 for VGA and less resolution video usecases. This avoids underruns seen with camera/camcorder usecases on 8660 and older platforms. CRs-fixed: 338044 Change-Id: I12fa81f10dc6d02caed44c5b7e6f5732a57bb095 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Mar 15 14:40:11 2012 +0530 msm_fb: hdmi: CEC Message queue flush CEC message queue should be flushed when CEC function is enabled. If there are residue CEC message, they might cause collision at message queue. CRs-fixed: 338811 Change-Id: I6268528417d660fab48818ae67e94e169abbb217 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a950365ed12ab0d66367b06bd1c3236cbcf695a1 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Mon Mar 12 16:17:23 2012 -0700 msm_fb: display: check dtv_pipe before unset it Dtv_pipe is the base layer pipe for HDMI and it is normally populated before overlay_unset() called to free a mdp pipe. However at wireless application, there has possibility that overlay_unset() is called to free a pipe even before dtv_pipe is populated which cause system crashed. Therefore check dtv_pipe before free fore ground pipe. CRs-fixed: 340884 Change-Id: I32b69e937f21646204c7fd7275988ee12e439655 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e5c9f6e5f9fe550e228cc5b34dbde086b151a613 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Feb 22 15:09:07 2012 -0800 msm_fb: display: initialize is_flag variable This local variable needs to have init value, otherwize it is always true, possible for mdp4_overlay_perf_level to return incorrect value. CRs-fixed: 338543 Change-Id: Icbb665773545e866c7f48edaf3ecf11272713d19 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Feb 21 12:00:12 2012 +0530 msm_fb: Clean up of frame buffer 4KB alignment changes Remove redundant code from the 4 KB alignment patch and reduce the overhead of calculation of the hole size by using bitwise operators in its calculation. CRs-fixed: 325134 Change-Id: Ie2e3ea7cbb2a815ae4f50cb97e6c5be1bd72fe27 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 10 08:40:51 2012 -0800 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Change-Id: If5b80d0c3a9b5edd21ae6651321572c2fdcac951 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0507c8cefa525a89df9b9e2a305e2bd7c4f6d7b2 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Thu Feb 16 17:16:05 2012 -0800 msm_fb: HDMI: Add support for HDMI on APQ8064 Configure necessary PMIC regulators, GPIO, clocks and parameters related to external display to enable HDMI on APQ8064 target. Change-Id: Ia2741fc13c6a640ebc610461ad4242929383b611 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 5245ec886f6e282b8f3c1b0e3f7aecbfae9ed85a Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Fri Mar 2 13:49:53 2012 -0800 msm_fb: display: change pixel sequence on lvds lanes This is a s/w workaround to fix lvds phy h/w bug. On the rising edge of lvds phy clk the phy transimits d0d1..d6 sequence, however, lvds panel from the manufacture expects d6d5d0...d4. So s/w adjusts the sequence on the phy side to meet panel spec. CRs-fixed: 338715 Change-Id: If852ba29954b363911d04cd08d3784ce7d385c2f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 416878307740e2d475511ed0f12ebbd50db8c156 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Feb 22 09:15:28 2012 +0530 msm_fb : display : Add support for NT35516 qHD panel This change adds the drivers for NT35516 DSI Client and Truly qHD panel. Change-Id: Ifb7e02300a8e42d7097845638b77e311e92f69d6 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit d37b52404236bf4cadf530a238cafc5d6499d32a Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Mar 9 20:16:21 2012 +0530 msm_fb: Fix error in y-offset check logic in FB driver After 4 KB alignment changes, the frame from 3rd buffer doesn't get updated since during PUT_VSCREEN_INFO ioctl, the driver returns -1 to userspace due to error in logic because the hole size is not considered in calculating the logic for validity of the y-offset. Change fixes this error. Change-Id: Ib151970eacab4df36fb8274be0079bc814e93efe Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fff132dffafe129620475a51c34309b4fff08dce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Mar 7 13:22:30 2012 -0800 msm_fb: HDMI: Enable HDMI on 8930 target Register HDMI device and enable HDMI driver initialization for 8930 target. Change-Id: Ia3d1f0963de079e7af3cd683a498897cd677e97a Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit fd3a0274fc30e8f795365e8cd8c90d2b0b3df2d7 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Sep 26 17:29:37 2011 -0700 msm_fb: display: Add MIPI DSI 720P Orise panel driver support Add support to run 720p MIPI DSI Orise panel in both cmd and video modes Change-Id: Iefd5594ba2fafe7797378f3297d169ebbce9b963 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a6f72edcca16dbed1e345fe472df32f08f5548ca Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Mar 2 16:51:57 2012 -0800 msm_fb: Display: Change the VCO frequency range for 8960. The DSI PHY PLL is not stable for VCO frequency between 500 MHz to 600 MHz on 8960. Fix this issue by changing the VCO range from 500 Mhz - 1 GHz range to 600 MHz - 1.2 GHz range. CRs-fixed: 340956 Change-Id: If09ac96455e16c5c2ca219c74e7ee0c758d55851 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 0bb7fe942f5e655d1ac1b10398ccda73ce83550e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 27 16:06:30 2011 -0700 msm_fb: display: Dynamic boot support for HDMI as primary display Move boot parameter to board display file as early_param for proper allocation of PMEM and ION sizes. Change-Id: Icfb163f572e8e010550747ec83787b6da6e86ee2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit beaa9356713db6949eefa32ed329bf87a3461842 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 16:59:26 2012 -0800 msm_fb: display: decrease file->f_count when play Frame buffer's (fb0) f_count needed to be decreased after both overlay play and rotation so that fb0 can be closed and display will be blanked out after system suspended. CRs-fixed: 336254 Change-Id: I966e7b2bb4def0c9c09580be12048933723e2c2e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d19d0d22e03dba3b2b08356bc18ed1b2987e70c Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Fri Feb 24 12:50:37 2012 -0800 msm_fb: display: call mdp_pipe_ctrl() with correct block name Mdp_pipe_ctrl() needs to be called symmetrically within same block name for both ON and OFF operation so that mdp clock will be turned off after OFF operation. CRs-fixed: 338802 Change-Id: Idda450a32c0c897327c17dda70fc05e9fb74d510 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5649bcea56c8aecbf88fb97a2a88d7142f5ca1f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Dec 7 18:23:32 2011 -0800 msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth On HDCP reauthentication, the HDCP link status register does not get cleared unless the HDMI app clock is deasserted and asserted. Stale values in the link status registers can potentially lead to the HDCP HW block getting locked up resulting in a device reset. Change-Id: I4952c64d4087e4303cbc75dbb61f66510b0a0798 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 682888654f146d6c34c76b9db435c9c6fe58eeea Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Jan 18 16:08:55 2012 -0800 msm_fb: display: add overlay1 writeback enable and disable This logic is used to enable mdp overlay1 writeback mode when downscaling in any pipe for mixer1 requires a mdp clk rate more than its max, and disable it when no pipe requires more than max mdp clk rate. CRs-fixed: 330895 Change-Id: I67632fdc2cf4c357753603fee293817bb87581ca Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 4c7ccb31068e6b606520722279fc8add740d7578 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Feb 21 12:56:04 2012 +0530 msm_fb: display: Use FIR (QSEED) for upscaling. Low resolution UI is observed on HDTV connected with HDMI. FIR (QSEED) algorithm needs to be used instead of pixel repetition to improve the performance in case the BYPASS composition is not used. CRs-fixed: 332123 Change-Id: Ib4c2b107b4ae1300458cccc7e8066d31aee50a0d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38eac1aef2250181f1a2f9d75529f0961257740b Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Feb 28 16:24:06 2012 -0800 msm_fb: display: set max clk level when more than 2 pipes used Correct logic to take all pipes into account and increase clk perf level to max when more than 2 pipes are used. Change-Id: Ibe6594e23a95e72c113b98c8f08b33395677d212 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit c246a1bd2edbf1607e5437ee46c0f7a043d6bd5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 20:38:43 2012 -0800 msm_fb: display: perform bus scaling updates when idle Move bus scaling updates to same place where MDP clock is changed which happens when MDP is idle. This allows MDP sufficient time to finish fetching buffers before commiting unstaging changes. Change-Id: Id6e04522928b0f815091e17054fff94e0e111ff1 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3e9ca08c34561167db0e7aa7179b224d8e10a1e5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 13 12:14:59 2011 -0800 msm_fb: display: Remove boot parameter parse support Remove boot parameter parse support from framebuffer driver. This is done as a part of moving this to board-display file. Instead of detecting the panel in msm_fb file, the detection is now handled in individual board file. Change-Id: I722cc6964a815bd99b1cf0856ef9c1a4481898d4 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit b88ffd3484ecddbfe7a24ae9a8438b0d3792d116 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 22 19:42:44 2012 -0800 msm_fb: display: enable unstage caching for command panel Enable support for caching of overlay unsets for command panel to flickers between frame updates. Change-Id: Ide9a165cfddb33a5cd0756b9cd469b0c3374f2ae Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d60dff3ca61bbdc6881b9aaf34baea570c25fa32 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 14:01:09 2012 -0800 msm_fb: display: wait for vsync staging down in overlay unset Need to wait for vsync so registers are properly flushed when commiting stage down changes in overlay unset Change-Id: I56bfdf56c2a32f109f3d9264c8cc4a086ef2c356 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit acde4b6510b352b97ca1dc7d3386c6696e8f10fb Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Dec 16 15:50:56 2011 -0800 video:msm: Add IGC LUT functionality to PP IOCTL This patch adds the functionality to write to the IGC Look Up Tables (LUTs) in the MDP. Change-Id: I4789820a56748b1a5e33ee4ca979e418170695a3 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 330b4ae84d423bee684af24a2e52b4d81831a37f Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Feb 20 19:24:56 2012 -0800 video:msm: Add support for updating Histogram LUT using MDP_PP ioctl This adds the ability to write to the Histogram LUTs in the VG pipes, DMA_P and DMA_S. Change-Id: I548140d01aee5c2fd437aa218a307b4d1364dade Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 14b56ad8f78a974de534aa02523624304983acfc Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 22 14:56:21 2012 +0530 msm_fb: hdmi: check for multiple hpd on/off calls HPD on/off may be called from userspace and from kernel asynchronously which may result in system crash or reset. Returning in case HPD is already on/off. Change-Id: Ic6233925e02e6070e3ebc3fa40a87717e7b2ad1e Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 6cc11c405ae51f50436f48160faf302b8b29d486 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Feb 7 15:25:46 2012 -0800 video:msm: Move histogram reads to workqueue Histogram must be read after each histogram completion in order to clear the histogram registers; this patch reorganizes the histogram code to use a deferred workqueue task to read the histogram registers out of the interrupt context. As well, this re-organizes the histogram start-up to clear, using the same new workqueue, the first histogram that is read because it is often incorrect (too many or too few bins filled). CRs-Fixed: 328214 Change-Id: I4088028fc805113e74b5b763c6458183e75421cf Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff10d072f13a0845fc4e6dc0f82d2f51d9209e6e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Feb 15 15:19:29 2012 -0800 video: msm: Allow Enabling of DMA P Hist LUT Histogram LUT enabling was accidentally disabled by a previous patch. This patch allows it to be enabled again, while not conflicting with the patch that previously disabled it. CRs-Fixed: 336128 Change-Id: I5106999d79b5fdee255e23d31e5bc7de5d59b937 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e063a05cb7b869853ac7968c29acc0891b0d70f9 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Mon Jan 30 16:26:57 2012 -0800 msm_fb: display: change perf level for 720p landscape video New perf level 3 (128M mdp clk) is used to play 720p landscape video, changed from previous perf level 2 (160M mdp clk), to save power. Change-Id: Ie27de4d2e407513eeb4cfb8fba6dd535a45c1364 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 20bd54d7d64317f2c9e3b1384133a1c550454948 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Wed Feb 22 10:22:36 2012 -0800 msm_fb: HDMI: Create hdmi_as_primary switch node If HDMI is used as primary, rather than external, create a switch node named "hdmi_as_primary". Change-Id: I694a12c1b8d223417090183b9d57913dca4df5be Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit c7a7cc6dc79a6f60b0468efd0fb3964b1ebc7a70 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Thu Dec 15 16:25:45 2011 -0800 msm_fb: Add support for Area Reduced Gamma Correction (AR GC) Provide API for programming Area Reduced Gamma Correction parameters. AR GC is used for adjusting panel gamma behavior for R, G and B channels. Tested using dummy AR-GC data from panel calibration and fbtest Change-Id: I64e9f81510160ffaacb6927de1812dfd2a3e5436 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 85153bdf335804c526746ab8d930087b658f3d50 Author: Pravin Tamkhane <pravint@codeaurora.org> Date: Tue Dec 13 13:56:46 2011 -0800 msm_fb: Add support for Polynomial Color Correction (PCC) Add support for programming Polynomial Color Correction (PCC) parameters on MDP. PCC is used for enhancing colors on display panel by programming the display panel calibration parameters Tested using fbtest and dummy calibration data Change-Id: I57dae828365f02d560e932ed0f26aa76c819fd31 Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org> commit 0056791344518f90c5708a5d3233373bb4e4cca6 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 18:27:42 2012 +0200 msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver. The Toshiba bridge has both DSI and I2C interfaces. The DSI interface is used for configuring the bridge registers during setup. However, when video is running via the DSI interface then the I2C interface is used for read/write the Toshiba bridge registers. Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit ac5337bb28f81c29b7449626f442e84742186574 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 21 03:26:00 2012 +0200 msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps. Fix front porch blanking according to the panel EDID for 60 frames per seconds. Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 91e4135c0f44697891b7ea933a8dacfac375a1e3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Feb 10 18:23:04 2012 +0530 hdmi_msm: Power down PHY register during suspend Add change to power down phy register to save current when device goes to suspend state. CRs-fixed: 333739 Change-Id: I5c1c4202637cc8391d1dba03071a246e4f891307 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 5f4b579b68fdc6f50ba20a50e31814a7ec2bc45d Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Dec 7 17:14:10 2011 +0530 msm_fb: Change the sequence of backlight control for Gordon panel During Resume, backlight control settings are getting set before the Gordon panel has been initialized. This change corrects the sequence and ensures that display is proper after resume operation Change-Id: I22a6c857da3cb011404198b94e4347f76292a77e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 25 12:01:28 2012 +0530 msm_fb: Make buffers aligned to 4K page boundary This change makes the frame buffers aligned to the page boundary. Improves GPU performance since accessing the frame buffer from page boundary is faster. CRs-fixed: 325134 Change-Id: I6ce4477f62536a3cd81064e26dc08f2b199e181b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 1573599adbb42c606d8b91854c76461b3f212c3e Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. Change-Id: Ia5a2e09372129a4358a46a623e6880095da4f0b4 CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9919b7e5503bc078720337da27a421ec3833e528 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Feb 10 15:57:39 2012 -0800 msm_fb: display: perform mixer flush on every commit Mixer needs to be flushed on every commit instead of just when mixer cfg changes to flush changes in blending configuration CRs-Fixed: 336655 Change-Id: Ia56380eac1bd9dfb0795d930dc97a85dd30ba8a8 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a369ce03ca048fb511642ac1cb73c1f652d70c50 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jan 20 16:13:43 2012 +0530 msm_fb: display: Fix for HDMI bootup issue If the device is booted up with HDMI cable connected, HDTV would go blank unless the HDMI cable is removed and inserted again. This is happening because the dtv pipe is initialized after HDMI core is initialized. The dtv pipe needs to be allocated at the bootup time when dtv is turned on to syncronize the HDMI core and DTV overlay. CRs-fixed: 331867 Change-Id: I90f6434e8440548391a6846b47bb5539f2e436b7 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3b9595f629805408d572892227091cd1b42560fd Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Feb 8 16:36:03 2012 +0530 msm_fb: hdmi: Fix for EDID parser error. For an older TV, which doesn't contain Data Block Collection, the EDID parser was parsing wrong supported video resolutions. As per EDID standard, if EDID block 1 byte 2 is 0x04, it means there is no DBC available in EDID so the supported video resolutions should be read from DTDs of block0 and block1 instead of SVD of DBC. Reading DTDs for supported video resolutions instead of DBC for byte 2 being 0x04 case, fixed the issue. CRs-fixed: 332148 Change-Id: I637b91059952b63029cf4f05f750c340bdfa37a6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 36d8ccd620799d2ad224f22a4c4c34c0256e1d08 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 10 11:53:49 2012 -0800 msm_fb: display: Add DSI Video Toshiba WUXGA(1920x1200) panel support Add DSI Video Toshiba WUXGA(1920x1200) panel support using DSI Toshiba WSVGA bridge chip for controlling panel Change-Id: I36de195a0f86acd5415f2c6a0c4f0cfe050512bb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 23fa9e7a958be09f9d6743cea026a4f56b84a48f Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 31 10:31:53 2012 -0800 msm_fb: display: set mdp perf_level to low level after playing video This bug fix sets mdp clk rate back to the rate for UI after playing video to save power. Change-Id: I73a0db158536b27a4a50d25b7737db4327210b8f Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3b6551e3642301c92a1c96a70c4905da87b268ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Feb 15 16:11:39 2012 -0800 msm_fb: display: Add supported MIPI panels to LVDS/MIPI detect config Add supported MIPI panels to LVDS/MIPI panel detect config for backward compatibility with old targets Change-Id: I31048cd51c8e8d09e7a16c5f81eb3e6dc9c59259 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 55648fc2ab536294f7d549c822df8f17317b91c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 19 13:43:44 2011 +0530 msm_fb: display: Add mutex during display turn off There is a possibility that suspend operation trigger during a display update. Add mutex to serialize suspend and display update operations Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 13c5b2aa0116ee7859eb9331efd111e535db335d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 12:32:37 2011 +0530 msm_fb: display: protect dma status for video mode panel There is a possibility of race condition between dma update in ioctl context and isr context, hence add spinlock to protect the dma status in video mode type panel for safety in dual core environment. Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7716ef8c6180714d9948ecc008fb82ffef5628d7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Feb 2 19:04:18 2012 +0530 msm_fb: hdmi: Fix for different resolution TV switch hang. On connecting 1080p TV, then connecting 720p TV and then connecting 1080p TV again results in system hang. Hardware is waiting for reading AN in hdcp authentication part1 and then the resolution switch happens, which clears all the registers and we are in lost state. We need to protect the reading of AN bits in link status register and the reset core from muliple access. CRs-fixed: 334143 Change-Id: Ic5399a79a37a4285b1d10998cb1ffb4913c39f51 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit d7185f60b02879c6b07293380a505791add19752 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Sat Feb 11 01:36:41 2012 -0800 msm_fb: display: add mixer2 writeback userspace support Apps, e.g. fbtest can access mixer2 writeback functionality in userspace by providing ion writeback buffers. Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 1af8a35b8700d507016d6c05488401dbf6af0431 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Feb 9 14:34:23 2012 -0800 msm_fb: display: fix underrun seen due to scaling accuracy When making scale phase step ratio calculation, accuracy is lost when sizes are big since calculation is done in 32 bit and some truncation happens; this leads to underrun in mdp hw since scaling ratio doesn't match the src/dst rectangle. Increase accuracy by performing division again on remainder and appending to lsb of ratio. Change-Id: I6baa69a70a55e402c8924b51cab86afa6d0e9b5c Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 57e30678c19f540108d99e81fb03fdaa86105d95 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Jan 30 16:58:12 2012 +0530 msm_fb: display: Featurize pm operations for external display Featurize suspend/resume operation of the external display to resolve compilation error in cases where external display features are not defined. Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit b0d8321014da0ff547e8386d09a6bb3146320834 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Feb 13 13:51:47 2012 +0530 msm_fb: display: Fix for compilation error with HDMI as primary Proper variable is now used to avoid the compilation error. The function where this error is seen is compiled only when the HDMI is configured as PRMIARY. Change-Id: I74a9693ceef49143412101a6a8360d2241f75e91 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit ab05f94b75a40fdd70f018a12fef1d8e0b972175 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 9 19:18:45 2012 -0800 msm_fb: display: Add LVDS display & LVDS/DSI panel auto detect support Add LVDS display PHY/PLL configuration and panel backlight support. Enable auto-detect support for LVDS/DSI panels Change-Id: I36a1a3c4cee9e015ae6fd03257bd10efa81450d8 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94f25dcbd137d139e31be55c461a95b39f730cbe Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Jan 31 00:18:33 2012 -0800 msm_fb: HDMI: Export interface for setting Audio info frame The Audio InfoFrame contains information that allows for the format of the digital audio streams to be identified more quickly via out-of-band information and, for multi-channel uncompressed audio provides channel allocation information for the sink device's speakers. Currently audio info frame is hard coded to support 2-ch PCM. To Support Multi channel PCM, correct channel allocation information has to be sent to HDMI sink. So export the interface for setting audio info frame to HDMI audio driver. Change-Id: I7d0d5cf9f8792250bfd6e5eb003a8360ccb9707a Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 56499ed9d52ec2adfab9d8d48fa1495698fbbb75 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Feb 9 16:12:00 2012 +0530 msm_fb: Display: Update panel initialization sequence Update the panel initialization sequence to avoid tearing effect on the panel Change-Id: I933ba5cadf1d2620bc571bd3a307494d838c2b38 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 5cef5f4de20c409e8e1ba31bd97aca111677f49d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Tue Dec 27 11:39:16 2011 +0530 msm_fb: display: add spinlock to protect dma status. During dma transfer to interface host the status of the dma needs to be protected in the smp environment. Change-Id: I02b4f046de7f693bb098343b7345c4aa6ca395bd Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7f4205b6487f81a3c504726263ffeddbc74df833 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Mon Dec 19 12:29:52 2011 +0530 msm_fb: display: Add SMP-safety for PPP Operations Adds protection using spinlock for the variable used in controlling the PPP operations Change-Id: Iba6ef5e32d38668bd110ed23ee9631aa40de79e0 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5978cd2b581df55aa0c23a1478239b2e7bf7942d Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Dec 26 11:10:46 2011 +0530 msm_fb: display: remove while loop in mdp ISR As mdp interrupt is enabled on-demand, there is no need to have a while loop to handle interrupts at random time. There is possibility that mdp clock is turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Change-Id: I3716638974d8e24eda4a5146421d026b0ca85b4c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 1e6fcce3a2382b6af0c02aaed6bb503ac5d53b5d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 16:24:22 2012 -0800 msm_fb: display: fix primary not resuming after suspend when hdmi connected Update bl_updated variable only after succesfully changing backlight, otherwise it can be set on hdmi play which doesn't really update backlight so primary remains blank. Change-Id: Ia08713ff0fbc88a98acd004a909c995fcd5726c6 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d3a2993f02636b865bb59b075b12586513c7ba9f Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Feb 8 12:26:39 2012 -0800 msm_fb: display: fix no resume after suspend for cmd mode panels Base layer pipe is updated only on ui kickoff, in bypass mode ui kickoff might not happen and that is why panel won't resume. Perform base layer restore on resume to allow panel to resume. Change-Id: I6031569077731fae0a716175d62fe4c0c85c6c36 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 540124b79dd7b3bc25651935999f6fe422152fa4 Author: Amir Samuelov <amirs@codeaurora.org> Date: Wed Feb 8 18:18:51 2012 +0200 msm_fb: display: Add write permission for 3D barrier file. Allow user space application to write to 3D barrier for control. Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit d9f38b0c3bcb8cb16e5b8d433caea647f9c875a3 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Thu Feb 2 18:57:03 2012 +0530 msm_fb : Add support for Yamato format Changes to support Yamato format as a source format. Change-Id: I334fd059d2a06ea2796eb24f4a69fdb4be4e9789 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 0cfba7b42b33cc0712d81d3ea917a235b3cd8d7c Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Feb 6 11:02:12 2012 +0200 msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver. Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver. Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 4b3395e1e6441673fb41c8fea58ea3e1422c3590 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Jan 28 21:45:03 2012 -0800 msm_fb: display: Read DSI platform's data lane swap for Novatek panel Read DSI platform's data lane swap setting for Novatek panel and set it in panel info for programming internal lane control register Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2664ca29cca2ba9a46b0a992ba4f529e5208bab7 Author: Kuogee Hsieh <khsieh@codeaurora.org> Date: Tue Feb 7 15:31:42 2012 -0800 msm_fb: display: clear mixer blending cache during resume Clear mixer blending cache so that new blending value can be committed during system resume. Change-Id: Ie4e8399cdbbdb2153417c19e7f8019f38a294dd6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 18044ce96c01a440a2ade3711aba776aa1fea64a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Dec 13 23:22:48 2011 +0530 msm_fb: display: Add support for MIPI NT35510 WVGA panel. Adds DSI client and panel driver files to support Command and Video modes with NT35510 client and Truly WVGA panel Change-Id: Ia41bf282d070fa5fc5e0afeb24366a540c7ca9f5 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e6f182a1d4d1e186ae75f3a73cc496d94f983761 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Feb 7 09:14:03 2012 +0200 msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel. Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver. Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9705d1ebd4e39d0428a950589da9f5963d22ab74 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jan 17 15:29:57 2012 -0800 msm_fb: display: increase timeout value to 2 vsync wait_for_completion_timeout() may timeout before overlay1_done interrupt when one vsync timeout is specified. This cause mdp4_overlay_dtv_ wait4_ov_done() to return prematurely which causes a falsely increased FPS. This patch increases the timeout value to 2 vsync to prevent premature timeout. Crs-fixed: 330723 Change-Id: Iac516525f328be01cf81ce3f4e95e5d6a4ab80ca Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit bbcf4477c7e7d8ba7208e179f55bc8e550de08a7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jan 20 11:35:24 2012 -0800 msm_fb: display: enable MDP interrupts base on panel interface Enable necessary MDP interrupts base on panel to avoid triggering dma_s isr handler. Crs-fixed: 331668 Change-Id: I139a6193338a1b0a7c9cc7869e3ea1b3f9a65c4d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 94c8a2c7f32371057f094cac19aa1bb905e714f6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 6 12:35:14 2012 -0800 msm_fb: display: perform staging updates on a single vsync Store all staging updates locally and write to hw on a single vsync only when changes are detected, this allows a smooth transition from using multiple overlays to framebuffer for UI Change-Id: I2cd61d858e74d450b8ad515b75008518274bd15e Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9cb0ead92fa1188c99ee9bcdc1148dab17b48a36 Author: Jeff Ohlstein <johlstei@codeaurora.org> Date: Fri Dec 16 13:30:08 2011 -0800 video: msm: change normal operation prints to pr_debug There is no need to print every time an mdp4 overlay pipe is allocated or freed. Change these prints to pr_debugs so they can still be used for debugging if necessary. Change-Id: I91ba245ce54ab8a963539cfdea6d8d92efaf52a4 Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org> commit 207b565179fe95d9537ad1d8172ba9de91a3fbaf Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Wed Jan 18 21:21:15 2012 +0530 msm_fb : Check the validity of Histogram start/stop ioctls. Histogram start/stop ioctls are called now without checking if the panel is on or not. Add check to validate the ioctl calls in this aspect. CRs-fixed: 327910 Change-Id: Idc110408841c1b813dd2331a63cafe80243baeac Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 62f887ce4c6a52be4a4b846606768c19487742b7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 11 22:56:59 2011 -0700 msm_fb: display: Add LVDS display driver support for Chimei WXGA Add LVDS display driver support for Chimei WXGA LVDS display panel Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If8830295814d0e27f49dfffdeb96db63f73809ba commit 79d05a646f8af2658ad8f0aadb73c47cb277cc95 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Mon Jan 9 15:18:33 2012 -0800 msm_fb: HDMI: Switch device node for HDMI Add switch device node for HDMI on initialization. Final node path will be /devices/virtual/switch/hdmi Set the node state to 1 on HDMI cable connect event, and successful HDCP authentication, if applicable. Set the node state to 0 on HDMI cable disconnect, HPD off events and HDCP authentication failure. Change-Id: I3496169f73a768a7908e8c633ab4dfb70c42f940 Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit cb6b2e9c9ecb6884f556456b3d1ce4d877570534 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 19 16:05:27 2012 -0800 msm_fb: display: Add external display PM suspend support Remove PM suspend registration from HDMI driver and add it in MSM framebuffer driver Change-Id: Ibd15ce1de541d2fe4dae24fc0d2f580328915fc0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8562e7893e41969f1fe15839b7020b75401f6d72 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jan 24 18:34:29 2012 -0800 msm_fb: display: Remove HDMI PHY power settings for proper PLL locking Remove HDMI PHY power settings for controlling PHY along with HDMI PLL in clock driver for avoiding random PLL lock detect failures Change-Id: I4016d5711b06785be3dd47782a187196d61445de Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 175d1281a5c1635cffc911dac261efc67d807c9d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 20 16:57:23 2012 -0800 msm_fb: display: Cleanup log messages for ION buffer management Cleanup log messages for ION buffer allocation and de-allocation functions Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I87f44273a9de1899fdb7c30e90a8a1a5715c4dc5 commit 0bd48279653be46c7b91648e1ae0d93c7131e425 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Tue Jan 24 11:59:50 2012 +0530 msm_fb : Check validity of histogram bin collection When CABL is disabled from UI, wait for completion gets killed. Histogram bin collection is invalid in this case. Add checks to handle this scenario. CRs-fixed: 331527 Change-Id: I0c25417672ee44a63011f76f2c998cbef9ae95f5 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit fa1de67dbadc084aa9fd6afa5ab4fae335089334 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Dec 5 12:37:59 2011 -0800 video: msm: Adding CSC support for other MDP blocks Adding support for VG1, VG2, DMA_S and Overlay Mixer 1. Change-Id: I95a5832a70fd893970e82dadcec1e11ed608d79c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c7d7aa888a33818f278bdce86fa6c349561e05ea Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Sat Jan 21 17:17:06 2012 +0530 Revert "msm_fb: Handle static screen update case in CABL for MDP3.0.3" This reverts commit ff77f57b5bb1cd55bfdd3a14430470829e360822. Patch causes histogram ioctl to fail after there is no UI update for 50 ms. Abl-daemon handles static screen update case in CABL from now. Change-Id: Iddcd5b4fe0b2f99fe7b8f6b296649eee2f1f0c6e Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 3ab14ddf6e9fa157c292ba7442550628f090b5a5 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jan 20 22:40:52 2012 -0800 msm_fb: display: increase wfd resolution to 720p Wi-fi display can support upto 720p resolution. CRs-Fixed: 332226 Change-Id: Idd4f293d364bb52ff5e85c58a713fc1d36b29c1b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 228895ae217589ca71aa464f7c22bc4cedd06f77 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. Change-Id: If5de484fe19dd3e949107d5b0d72f9594ee2e76f CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 0da46929eb69a01fa4b1d26a317e8fcc60a024ac Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 15:08:04 2011 -0800 msm_fb: display: add mdp overlay1 writeback This feature is enabled to avoid underrun on the display external interface (HDMI). For example, if 1080p to 720p downscaling is required, and mdp clk rate already is in its max, writeback is the only solution for this situation. Change-Id: I2323272a90730da45601f1d4c7dfc2bf06337b59 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980 Author: Mayank Chopra <makchopra@codeaurora.org> Date: Thu Jan 5 10:36:31 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> commit 284fc85908c31b7424cc600083c2499d4188bdfd Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Sat Jan 14 14:45:23 2012 -0800 msm_fb: display: Fix incorrect goto call During the probe for writeback panel, for MDP hardware versions earlier than 4.3 an incorrect goto call un registers the bus scale handle that primary panel uses. This is causing the boot failures because the primary panel turn on sequence triggers the bus scale update request on already unregistered handle. Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit fa559f6cb6c9a75beb48b594f952ccfe213c4234 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Jan 13 16:28:54 2012 -0800 msm_fb: display: fix underrun seen with big src coordinates MDP underrun happens if combination of x + w or y + h exceeds 2048. To handle such use cases add an offset to the source address instead. Change-Id: I36a8b687c4e21cac9915b5bf71211c97f6b44ddd Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit da2f3cc0003c55cd18d6f052ecb9530fe2acea9a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Jan 5 15:32:57 2012 -0800 msm_fb: display: perform backlight updates on overlay play Perform pending backlight requests on overlay play to handle cases in which framebuffer updates are not happening to update backlight. Change-Id: I97a39c8fc9405f308ed684041b171bccc917154d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit ff77f57b5bb1cd55bfdd3a14430470829e360822 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Fri Jan 13 16:32:31 2012 +0530 msm_fb: Handle static screen update case in CABL for MDP3.0.3 Avoid histogram bin collection and copy during static screen update. Histogram ioctls are also returned early in this case. Change-Id: Id75a2a61e018f683e2ec2d23c0fb78e1c7605a7d Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit daa069f0949391f7b6fa7dcc26d854b790c14906 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:09:24 2011 -0800 video: msm: Adding CSC configuration for DMA P This enables the ability for the MSMFB_MDP_PP ioctl to configure the DMA P CSC registers. Change-Id: I1e18646decdd26641592bbc2a2dc0a4aa74e5f8a Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit ff85b428535a84bc00648e4a097332aeaebd676c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 9 00:07:05 2012 -0800 msm_fb:display: Fix compilation errors when DTV is disabled Change-Id: I33b6426a202b60fe2f3d2fd007e05ce839283c0a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ca82bd65223f61c193fd2600479bd18c09f7b1dc Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Jan 10 15:57:53 2012 -0800 msm_fb: hdmi: Correct logical clock rate for 480p We need to keep the logical pixel clock rate for 480p video resolution to be 27.03 MHz even though the hardware internally only generates 27.027 MHz. Change-Id: Idc653062e0a155e69753a8b58b9abf6106cfb8e0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4f4b108a0931736c2b3d5d0b577f1f557247167c Author: Carl Vanderlip <carlv@codeaurora.org> Date: Wed Jan 11 10:02:34 2012 -0800 video:msm: Fix histogram error check logic Current error check logic is incorrect. Starting the histogram should throw an error if the histogram current state (mdp_is_hist_data) is already true. Similarly, stopping the histogram should only throw an error if the histogram current state has already been set to false. In the cases of suspend/resume the mdp_histogram_ctrl calls should only be allowed when the histogram desired state (mdp_is_hist_start) is true. Change-Id: Idef307293a7e4fb70807e9cea53078bf3cc67f15 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 061c8d1b5097067a2348431f26ad193a37ae02c8 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 18:37:36 2012 -0800 msm_fb: display: fix underrun seen for some YV12 format input Underruns seen on display because source rectangle width is aligned to 16 before being passed to MDP. Only ystride should be aligned, source rectangle should be passed as received. CRs-Fixed: 329453 Change-Id: Ibb71ad316023d21ebad4c5db37fdc5e5c8acb02b Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e1ba2705ea4c9960f4349c57d115f4a79482f3a0 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Wed Dec 21 16:24:52 2011 -0800 msm: wfd: Adds writeback start/stop functionality. Removes register/unregister calls and replaces them with start/stop. No need to pre-register the buffers anymore. Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit e240c2f738e6b3c4bc754442a8da3a351a0d68cf Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Jan 3 15:43:29 2012 -0800 msm_fb: display: fix mdp clk rate settings If the video resolution is changed from higher to lower, mdp clk rate cannot be changed before overlay_play. Otherwise, underrun may happen because of a lower mdp clk rate for current higher resolution frames. On the other hand, if the res is changed from lower to higher, mdp clk rate must be changed before overlay_play to avoid underrun. CRs-fixed: 327811 Change-Id: Ieac4d2e1644e5687e3506b37799c56e19a17b991 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit bf300479078611dc528cd0e2decc4fdb3c282c4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Jan 10 12:33:13 2012 -0800 msm_fb: display: fix hdmi connection crash on 8660 Crash happens because RGB pipe is not completely setup when initializing the base layer pipe. HDMI crash no longer happens after initializing RGB pipe correctly. Change-Id: Iff2e989db95b86fd81afc7e04d12d3d8f099acd7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 06237550f191c8d218030a231a9fefe0d7bd3f76 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Jan 4 16:35:26 2012 -0800 msm_fb: display: Move debug messages to debug statistics Move some debug messages that were shown as errors in display driver to debug statistics to avoid excesive prints in kernel log. CRs-Fixed: 326925 Change-Id: I529586f0e79baf27e2ae17f08fac203ba28bf416 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 9add8a944993cb6bf90b12344731bb279fb366c9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Nov 21 12:51:36 2011 -0800 msmfb: display: fix the issue with overlay wait api calling overlay wait api asynchronous to the other overlay apis results in race condition in protection flags. this case is observed with HDMI true mirroring feature. it modifies the protection logic to fix the race condition Change-Id: Ib933055a395c2fc743f018aee96090defde33d37 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit ca0aeaa65f7d4c2896e881e20e2b1892e5f96dab Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon Nov 28 14:08:03 2011 -0800 video:msm: Adding stub for MSMFB_MDP_PP ioctls Basic handling of invalid copy_from_user and op from an invalid range. Change-Id: I788b28d3804e7312ee18310011c75d11287c4c6c Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 880f847f5daf4517a4090e62ea1345ed69ff05fc Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Dec 14 03:52:28 2011 -0800 msm-fb: display: ION based allocation for writeback buffers ION based allocation is added for the writeback support for content security. Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 285745f9b9cf52a4f69711a3737ca185e0e699ec Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Dec 29 18:31:46 2011 -0800 msmfb: display: clean up of the writeback buffer variables clean up of the writeback variables to change the write back allocation for ion support Change-Id: I4999e43cb2f7111853e9c4a17852b2d5a351204e Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. Change-Id: I526ce7bb5e6894e07040cc409c8a700e4a78a9fd CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 304248c9d5bfa96e965a2a08c134cb5b20aac00a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Dec 29 14:04:27 2011 -0800 msm_fb: display: fix mdp blending logic Handle case where blending downscaled VG pipe with alpha channel since alpha channel will be dropped by MDP hw. Also propagate framebuffer pipe alpha to top layers only if they are opaque to avoid picking up from layers which contain alpha. CRs-Fixed: 326178 Change-Id: I73cfc0716d1f5f8a803a645bdc09b97f909e593d Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 276bdaa5717d379e072137f004dd79133058d70d Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:44:53 2011 +0200 video: msm: Update CONFIG_MHL condition Replace generic CONFIG_MHL by a specific define CONFIG_FB_MSM_HDMI_MHL.implemented in Kconfig Change-Id: I3a8393518ca4f3adc1d74a62cb615ca629269af2 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 819b257a51108b3833256804030c522dc7059cb0 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Thu Dec 29 18:36:56 2011 +0200 video: msm: Add FB_MSM_HDMI_MHL to Kconfig Add FB_MSM_HDMI_MHL config to enable/disable the HDMI to MHL conversion support Change-Id: I51b58e9ca687e244c5b818a3aefb211e605c8e2a Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit b52368bee31a047be045687253e3805c008bd4e6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Dec 22 12:09:17 2011 -0800 msm_fb:display: Enable Layermixer2 for nv12 writeback enabling the layermixer2 for new MDP hardware so that it can be used to writeback the output in nv12 format for wi-fi display usecase Change-Id: I70322e722d8382102077db2d94a9320c2f2bb175 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit d0de5f990ab738a8b9c67fefc63b67e31d457f89 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 20 13:57:28 2011 +0200 video: msm: Add support for Sii9244 MHL video modes. Currently the HDMI driver reads the video modes of the external panel using EDID and matches those modes with the HDMI TX Core supported modes. If the HDMI signal is routed via the Sii9244 MHL chip, its video modes should be also taken into account. Change-Id: I841071c47dde94d9a91727d5f31b0ec43a957689 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit 6a75b86e9f0707f46f0fd161481da25235bd037c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 10:33:39 2011 -0800 msm_fb: display: Add backlight with first pan display after resume Add backlight call with first pan display after resume operation of framebuffer driver CRs-Fixed: 323682 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic27c2c9fe37b622bbd9ab5933ca45626decd53ae commit 48d8f219004677ead97d6a5a0b89b54625c2f15d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 11 18:22:29 2011 -0800 msm_fb: Power saving for enabling HPD feature. Don't initialize HDMI PHY while enabling HPD feature. CRs-Fixed: 310913 Change-Id: Ib18f93dfa848218e0a6a1fdf06944e6696e08bbc Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 402adc6142598abcb2a41a941895003f57f289a5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit e88f8f552a6102b8622ca6f88e78f2a244531746 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 19:07:20 2011 -0800 msm_fb: HDMI: Fix Coding Style Warnings This change takes care of all the coding style warnings reported by the checkpatch script. Change-Id: I31506132176f269ce2971dc45ffaf6e8b4b9dab5 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Change-Id: I6d21103d049bf22d3a09aeeafab1a50119597d7e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit b7b13f07b1b7f3c721752163f8b0279042636a02 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 18 11:20:08 2011 -0800 msm_fb: HDMI_COMPLIANCE: Disable Encryption on NON HDCP builds. HDMI Compliance require non HDCP builds to work on HDCP SURF's. Do not set HDCP flag for NON-HDCP builds, so that encryption enable bit is never set. Change-Id: I6f2df598fe2ed4d9ae3673fcec74b76c30e3c0dd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 910183691eb3d8c06f6344cfd57ae4e30716ff94 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 14:57:43 2011 -0800 msm_fb: display: allocate mdp writeback memory The writeback buffer is already reserved on the board side. This allocation separate writeback buffer from framebuffer. Change-Id: I312be3e0dfcf4c5b611cd06cd68d2baae7e2add8 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit c174d301d899a3242efc5d30d549c9fde8270b78 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 15:38:26 2011 -0800 msm_fb: display: enable pixel repeat on VG pipe only for alpha upscaling VG pipe doesn't support pixel repeat/drop to avoid alpha channel drop during downscaling. Keep pixel repeat only for upscaling. Change-Id: Id400d0f823bc0054a94330600d5085778a65b936 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 7b879b66c84b849ea78bcdd2400bacd7e0311561 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Dec 16 16:04:09 2011 -0800 msm_fb: display: Add MDP 4.2 footswitch ctrl at suspend Add MDP 4.2 footswitch ctrl at suspend/resume for non-HDMI cases Change-Id: I1071c0106ffc52c7f337e9f612a6ec9eb4746edd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52e88234977cd598e4902841869207b670f1321b Author: Ajay Dudani <adudani@codeaurora.org> Date: Tue Dec 13 13:33:10 2011 -0800 msm8930: Temporarily disable HDMI by default On some 8930 variant boards, we see a kernel panic on HDMI core power on. Disable HDMI temporarily until this is root caused. Change-Id: Ibfa1d851897c6f38c8f17cde8d3529a373203f1e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 89d519ca92ba2f8c70d595f1950691170c577486 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Dec 15 17:31:35 2011 -0800 msm_fb: display: Fix DSI cmd mode color swap issue for MDP rev <= 4.1 Fix DSI cmd mode color swap issue for MDP rev <= 4.1 CRs-Fixed: 323479 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic9841f0eb89df7afea7ec1c9486e8cb0e6bbb58d commit 6a601cdc35501835a0b19718329be70f696a34ee Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Dec 13 18:16:25 2011 -0800 msm_fb: display: fix mdp underrun on disabling writeback Writeback fallback for mdp underflow can be enabled/disabled dynamically based on parameters; if writeback is disabled while displaying previous frame it can can cause underrun. Disable writeback after programming new frame to avoid underrun. Change-Id: I6c73887043f19596cb3611c83c51c1aeac907ff0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8e3cb69445244c620d5742b8f3cb57c3a8bef5c4 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Tue Dec 13 17:35:51 2011 -0800 msm_fb: HDMI: Remove Audio Packet Ctrl Reg Setup With a recent change we do not set the Audio Packet Control Setup register (offset 0x0020) on HPD connect event. In addition, we should not reset the value of this register whenever HDMI is powered off. CRs-Fixed: 323928 Change-Id: I1ecbb9c87470b5cedc7351198cf73c5d7406ceb6 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit db7007f5a6697cd5239f433b010440bf5a5650e7 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 14 02:17:58 2011 +0530 msm_fb: hdmi: Add DVI sysfs node For DVI mode, audio should not be routed. This routing happens through HDMI daemon in usespace after confirming the mode from HDMI core. This change gives HDMI daemon a way to determine if the mode is DVI or HDMI, based on that HDMI Daemon can decide on routing the audio. Change-Id: I4afa746d6195b02046305a33a2b6a8b693510ba6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Change-Id: I304bb088ef1147e562fdeb6f7eb02ed570aba627 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> commit 88426ca238a783acf165f8b4e0958cd3cced6cf9 Author: Eugene Yasman <eyasman@codeaurora.org> Date: Tue Dec 13 13:31:41 2011 +0200 video: msm: Add mhl api header file MHL API defines an interface for HDMI driver. The API provides the information of the MHL connection state for HDMI to transmit the MHL supported video format. Change-Id: If19e497b7a238eb0465f9fb13b5586d3b9043360 Signed-off-by: Eugene Yasman <eyasman@codeaurora.org> commit a35b234783de0a3dd4e21d784081d35309592e51 Author: Vinay Kalia <vkalia@codeaurora.org> Date: Thu Dec 1 17:38:01 2011 -0800 msm: wfd: Fix compilation error. Changes function call to match the new API signature. Change-Id: I6b1cadca697c5b7431ee2648a4d34df21b46ce52 Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit b240803778c9d2c9788bd33587c9c63edb7d6801 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 10:52:48 2011 -0700 video: msm: Track validity of and synchronize histogram Adding mutex to more thoroughly lock histogram calls; additionally, adding a flag to track histogram data validity. Together they ensure that the histogram is not started, stopped, or read out of order. CRs-Fixed: 310429 Change-Id: I276974811a5e673b05c68b41f5fbff5b178165cb Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 562c58fbf58a55b9dc8cde472361cb8d3cb6a1e5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Dec 8 08:47:33 2011 -0800 Revert "msm_fb: display: decrease mdp_timer_duration" This reverts commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00. Change-Id: I3312c878370ce72a611423085c8cefe42028d21e Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fc6be921eeb73aea9bd625189f225d199908b685 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Tue Oct 4 15:22:39 2011 -0700 msm_fb: display: enable border color fill on external display Enable border color fill feature on external display. This avoids usage of RGB pipe for background border fill and can now be used as overlay layer for UI display. Change-Id: I652ab3ffe2c43260590e4e5a2ffc986340c4a8c0 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit d2fb0bd826f83b6bc3fc2d0819773f25bd2b049f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:38:14 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Reset DDC control logic upon failure This change toggles the HDCP_DDC_CTRL_0 register to reset the DDC control logic, in effect enabling the DDC controller logic to continue to function after hitting a DDC failure. This is needed to pass HDCP compliance on MSM8960. Change-Id: Ic11a4d4de375aab9b3948cbde7eda5aca7aefbd6 CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit daf5e17901e7519de3bfc5752dbd95093aeb2527 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 18:34:40 2011 -0800 msm_fb: [HDMI_COMPLIANCE] Disable HDCP interrupts on de-authenticaiton This change disables all the HDCP interrupts upon de-authentication. In addition, we also clear the HDCP AUTH_FAIL_INFO register upon processing the AUTH_FAIL_INT interrupt. This is required for passing HDCP compliance for MSM8960 Change-Id: Iefe544c8c972e4d3b5fa4ccdd513c411d1781b3d CRs-Fixed: 321221 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 34c5f958890c8881e92a05e05ac6f95b5a48eaf1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Tue Nov 29 13:56:59 2011 -0800 msm_fb: display: cleanup overlay0 writeback funcs and config flags The writeback blt mode is controlled by assignment of blt_base (NULL or not), only the #ifdef in board file is effective. Those flags and funcs on the driver side is cleaned up. Change-Id: Idc9a7fbb5525071bf3cf68e5182bc7f6a5693932 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit a12cc95a7e8b5f4882307f0ec7516f62ef8ab21e Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 18:14:50 2011 -0800 msm_fb: Discontinue use of clk_set_min_rate() This proprietary API will soon be removed. Replace use of it with a combination of clk_round_rate() and clk_set_rate() where appropriate. Calls to clk_set_min_rate() with a rate of 0Hz followed immediately by a clk_disable() served no purpose and are removed entirely. Change-Id: I56d680ee36cc6292dcc436eeec7acdc57f3c243a Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 2aab6fd9b00955b2e836a873cd5a27bddd2f3644 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Dec 7 07:23:34 2011 +0530 msm_fb: hdmi_msm: No HDMI for 8627 The HDMI driver should not register for 8627 target. Change-Id: I3ef882e76d374eabc15ed5c3121ac7d6f618f616 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit e8943499da4389b9f32658f19da0ced6b7ff565f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Nov 1 13:04:10 2011 -0700 msmfb: display: enable the blt mode for bigger line length blt mode is enabled for bigger line length to avoid the underun on qt devices Change-Id: I6055f494034b1e64fbf6fb083442f9513634659c CRs-Fixed: 316327 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 954620c40355894763ea1aeff4646b2adb30a594 Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Nov 30 14:50:48 2011 -0800 msm_fb: [HDMI_COMPLIANCE] HW reset on HDCP reauthentication We need to add a small delay before reading the AN0 and AN1 registers once they are ready, in order to avoid hardware reset. Change-Id: Iba9465ee83dce66ae99ab5885015d977d54c0612 CRs-fixed: 319542 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 9a2673aca6aae756ef36b35e981c7c349845edf1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:03:25 2011 -0800 msm_fb: display: fix invalid receving length bug Since expected receiving length need to be divided by 4 evenly, it need to be &= ~0x03 instead of &=0x03. Change-Id: I68912245c6fc499bdb652ed327d60bcf60487d40 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e22c42d680cfa7abedb0b29431bbbd83451f19c1 Author: Huaibin Yang <huaibiny@codeaurora.org> Date: Wed Nov 30 17:35:51 2011 -0800 msm_fb: display: move the prefill function inside the config flag There is a compilation error if the config flag is not set, so the func has to be moved inside the #ifdef. Change-Id: I6163606c389e8e4767239cf74eb8260fca728728 Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org> commit ebefc805a139e8222061b32cbf7686d76122de5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9a1fb1c65ad421178dea65e8cdc0796c9ace3b00 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 30 09:15:12 2011 -0700 msm_fb: display: decrease mdp_timer_duration mdp_timer_duration decides when both mdp and vsync clocks be turned off after last screen updated. Decrease mdp_timer_duration to 20ms to have clocks be turned off sooner. CRs-fixed: 315271 Change-Id: Icf7f0a64ab38dd5184a12242cfc190efa31016a9 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit edcb9567783846d292410c14fc4b99612ef1caff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 28 09:02:50 2011 -0800 msm_fb: display: remove mutex from mipi d2l register read/write Mutex had been acquired at dsi_on() already. Hence no need to acquire same mutex at mipi d2l registers read/write function again. Change-Id: Ie47590771c287a8e7c42aae568c1703a7e9107a4 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit fa14cb039938c7a60007b6e5f1c4db2541faa18e Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Oct 19 13:00:16 2011 -0700 msm_fb: HDMI_HDCP Compliance: Fix for test case 1B-01a In the case where there are many downstream receivers connected to a repeater, we need to poll for HDCP_SHA_BLOCK_DONE bit everytime after writing 64 bytes of the KSV fifo. Change-Id: Ic304250a73ad6573c43b4eb910a7eb7eb2b4dee9 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 8863118c485d2dff94dfa259a95d069d15994b29 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Mon Nov 28 23:55:53 2011 +0530 msm_fb: hdmi_msm: dynamic sample rate change for non-hdcp Adding support for other modules to dynamically change the sampling rate in HDMI core for audio which is supported by NON-HDCP surf/FFA as well. Change-Id: I2e4f239e43251b2dc5f8529b7c352a94456ad974 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 0948c68fe35913119f2d025168b381e6ca1d2db7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 16:50:43 2011 -0700 msm_fb: display: update mdp statistics Update mdp4 statistic information so that it becomes more useful during debug session. Change-Id: I0b88428bc692c28284f9091e143f0cf10079225d Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0fc5d36176b8feaa360bff9c5d46c481cea8a42b Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Wed Nov 16 05:48:33 2011 +0530 msm_fb: hdmi_msm: Add support for audio sample rate change. This patch provides the support for changing the sample rate dynamically. Change-Id: I973e5240e6f545b85ab2872aa0786b2d80ee2d2f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit a077d0063dfb8a39a869f56099dd0ffe85301180 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. Change-Id: Iee8d5d019b74edd675b23ac8dd34535766714eb2 CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 6b2d8af94b0fc441eefb65e87a964208783dac3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 16 10:02:01 2011 -0800 msm_fb: display: commit BLT to mdp register during video kickoff BLT (writeback mode) need to be committed to mdp register before kickoff. Normally, UI kickoff will follow immediatly after BLT enabled/disabled. However sometimes video overlay play happen before UI's pan display after BLT enabled/disabled. In this case, video kickoff need to commit BLT to mdp register too. Change-Id: I7b085f516f869009e7fc4b443f7858a61fce5ba3 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 3875379164cd350591eb8a1f4ea06994004a21ce Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Nov 18 13:14:08 2011 -0800 msm_fb: HDMI: Support for 576p 4:3 in HDMI Driver The firmware upgrade for the QD 882EA box requries us to have support for 720x576p 4:3 aspect ratio. Until now, we have only supported 720x576p 16:9 aspect ratio. This change adds the appropriate values to the AVI Info-frame lookup table. Change-Id: Ibc1165ab2445977e7b253a20b0d9396e1ae88ce1 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> commit 4b910f252587e25699eaa4daa5036ab3bfb73c3f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 15 09:43:04 2011 -0800 msm_fb: display: enable mdp chip select controller Enable mdp chip select controller so that CS signal is asserted or de-asserted by MDP according to activities of memory access on both read and write to save power. Change-Id: Ic0acc1c8cbe06c5f3cf25627af209abadeb1350c Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 465c15903f44453a235d7eb9be4b6bde51368370 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:06:15 2011 -0700 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Change-Id: I9ab9bf2b6c02d73e40cd1a28241ffb20cdd69516 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2b16b8f13507e9ea078b2f612d74b024a11afd13 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Nov 8 16:58:21 2011 -0800 msm_fb: Use clk_set_rate() to vote on ebi_clk rates clk_set_rate() and clk_set_min_rate() share a common implementation for ebi_clk, but the clk_set_min_rate() API will soon be eliminated. Remove its use in preparation for this. Change-Id: I5a4a4a2f5e2e0ba4989bc7c1f9423653bec0af0f Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit cb8fbbcbe0630451ba582a0747987c48b2c603f1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Oct 26 13:00:18 2011 -0700 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Change-Id: If723802d9405001baa69f132a143d21c8aa85613 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. Change-Id: Id79795dd4c17c3a75337a4c3818219ba6d87ff25 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d973663b4a2086c7fe1bf0264f16d413673c36c3 Author: Liyuan Li <liyuanl@codeaurora.org> Date: Fri Nov 11 13:47:59 2011 -0800 video: msm: Adding support for MDP4 HSIC controls Adding support for users to adjust Hue, Saturation, Intensity and Contrast of the display. Change-Id: I79cb69c871686ccba115798f635f768b9a50affc Signed-off-by: Liyuan Li <liyuanl@codeaurora.org> commit 4b1bde4cd20b889b3fc49972d3210c5308044ca1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 8 15:26:26 2011 -0800 msm_fb: display: add mutex to dsi_on During resume, backlight dcs commands to client may be issued before dsi_on completed. Add mutex to dsi_on and check dsi state to make sure dsi_on is completed before sending backlight command to panel to avoid conflict on dsi link. Otherwise screen will stay blank if confliction happened. Change-Id: Icfba079b228f02aeb89949befb10cca29bf6d744 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit e69bed86ffa5b7cc05545fd986a21ebef5123775 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 17 16:21:42 2011 -0700 msm-fb: display: ion framework support Add support for the ION memory manager to the framebuffer driver Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> commit 6a3a01ae8eca6d615ead5be9ed28720bc0c79dab Author: Deepa Madiregama <dmadireg@codeaurora.org> Date: Fri Oct 28 06:34:17 2011 +0530 msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue LPA_IF dma channel is disabled without checking the per count value. Because of this dma channel is not functional after few iterations of continuous playback. Fix this issue by checking the dma per count value to stop before disabling the LPA_IF dma channel. Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89 Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org> commit 81be67988ef149f601064a9e8e5d91705e636ff5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Change-Id: If2622631a7cd03276ae7fbd8326155d0e9c7b66b Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 27020d1b5db194e11b08dc46dd7b89078895b6eb Author: Vinay Kalia <vkalia@codeaurora.org> Date: Fri Oct 14 17:50:29 2011 -0700 video: msm: Writeback support in mdp for WFD. Adds writeback mode in mdp for wifi-display(WFD). This mode can be used to get the captured frames from mdp. This is added to support wifi-display capture device. Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c Signed-off-by: Vinay Kalia <vkalia@codeaurora.org> commit 584b96a4a3b0f5842178fb8fd1b1235501cf7ef0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 31 10:33:30 2011 -0700 msm_fb: display: add no_max_pkt_size flag Add no_max_pkt_size flag to allow toshiba dcs to lvds bridege chip work. Change-Id: Icaed4bc749dec96f12e3e0e78c098294658a2c46 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 4c4c286176e91b24f2399309ce9f379902be58d2 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:28:55 2011 -0700 video: msm: Clear and disable histogram interrupt When the histogram is disabled, its interrupt should also be disabled and cleared. Note: only applicable to MDP4.0 onwards as earlier versions of the MDP expect the histogram interrupt to be left enabled after running mdp_histogram_ctrl. CRs-Fixed: 310429 Change-Id: I5a8df4fdcc41520e1ed0af970a8628479a4645a6 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit e19a2869b3db914e93335746ef80878103d5c0cd Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 11:26:24 2011 -0700 video: msm: Remove redundant code in histogram collection Rewrites start and stop histogram functions to better use the existing mdp_histogram_ctrl function. CRs-Fixed: 310429 Change-Id: Iecc97c1376319021f99dd00eee6fb154bf7a5740 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 13f48ed4a9141772385eb44bd8c1923668ae32df Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Oct 27 13:44:31 2011 -0700 video: msm: Remove ifdef from mdp_histogram_ctrl Replace the mdp revision specific code with reference to mdp_rev global var. CRs-Fixed: 310429 Change-Id: I09fe3707bc9926af89874966e7d640c5862cffa0 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 7484515be07eebc3a12a087921416f1b373decde Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Oct 11 10:24:32 2011 -0700 video: msm: Block histogram requests with powered down panel This causes MSMFB_HISTOGRAM ioctls to return an error when they are called after the panel has entered a powered down state. CRs-Fixed: 310429 Change-Id: I39c768c62a37ca83df2db2309230971cb6492bab Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 40a43409804073a0442d2a1ea09293c0b95fdab1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Change-Id: If8b6220c26ea8d08857f87f33609b1673238b2ec Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 0737d65bb7faf91f3dbf87c32a86c5e7cb9e454e Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Oct 14 02:02:33 2011 -0700 msmfb: display: support for overlay wait ioctl this adds supports for overlay wait ioctl and it allows the userapce start overlay play and HDMI and can call wait later point of the time Change-Id: I8000cc52a497861e0a5fdfe58c0c049219724ab6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit d1b9d7ab0c98fe2bb8d6ab3f6dbd489dd17b3c5a Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Fri Oct 14 18:18:51 2011 -0700 msm_fb: display: enable hw cursor for dsi video panel fix hw cursor updates not coming for dsi video panel defining callback during driver setup. CRs-Fixed: 309515 Change-Id: I12586e813c19ff4dbe1e3877eaf14b5a396b273a Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit dee95105fdbc21ca2cecad26403e7c6a9942f445 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> commit df021cf202ea5f026c9d8862a06997e43346b2aa Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 20 12:53:27 2011 -0700 msm_fb: display: Fix suspend/resume for HDMI as primary display Fix suspend/resume for HDMI as primary display by setting solid fill for RGB pipe connected to DTV Change-Id: I2f6bf1892137ef40c55e26498c03cfb7a439219b CRs-Fixed: 310198 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d893034f3c7b3bc9435cd0cba78f220349b484ae Author: Taniya Das <tdas@codeaurora.org> Date: Tue Aug 23 18:47:05 2011 +0530 msm_fb: display: Add support for MIPI DSI Truly panel Change-Id: I499f050622e72c9f1daafa251b16ac67c35a7991 Signed-off-by: Taniya Das <tdas@codeaurora.org> commit 959fd6fc48da46199ac1faf8b7d8be18d50af253 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: Id8344af1a1607cbf4a6c01ad35441bbdd4fcbd49 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 4b99172a1df8b1ad2b48343bead39685f294e680 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Change-Id: Ib6fb8f2eab4b1e871a406a3a2d7274fcfdcdd9d1 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 8611e05dc5cb4b3ce155c04ab4e851dff1438582 Author: Amir Samuelov <amirs@codeaurora.org> Date: Tue Oct 11 17:44:32 2011 +0200 msm_fb: display: Change the backlight PWM freq to 66 KHZ for LiQUID Change the backlight PWM to 66 KHZ, according to the backlight driver HW spec. Change-Id: I67bc02b7863d7e8721841edfb4cfe3a4414a1bab Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit a2c2767ee7fa7e55d9cb30873739dc42311d60f4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 30 17:19:39 2011 -0700 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I62ce418b7f1e887550319081cc4b78fbd564a6f5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 5e48f5f6701a3cf0f8c325d252037bb49be67fc1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 23 18:56:59 2011 -0700 msm_fb: display: Fix DSI WSVGA Toshiba panel PLL control settings Fix DSI WSVGA Toshiba panel PLL control settings to avoid over-write on reset values from phy table Change-Id: Ia4b3a4a409a4601a3a2c9132ff66c164f1f8c9fd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7a95a8f6a93bbca3f1664cd12d516041f6d926cf Author: Amir Samuelov <amirs@codeaurora.org> Date: Mon Oct 17 15:20:11 2011 +0200 msm_fb: display: Fix dsi read packet size for LiQUID The toshiba DSI-to-LVDS bridge supports only packet size of 4 for reading its registers. The DSI host should avoid changing the bridge packet size. Change-Id: I08a4cb5921c90e9fa07db62e0310fcdb6155f131 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 051489246f2a6a4538e7dad2b985837fa06d567a Author: Praveena Pachipulusu <pveena@codeaurora.org> Date: Mon Oct 17 10:42:36 2011 +0530 msm: Change the permission of 3d barrier sysfs entry Change-Id: I64f7e028701d65d864d9ed30499bf0bfc00c8ab6 CRs-Fixed: 308897 Signed-off-by: Praveena Pachipulusu <pveena@codeaurora.org> commit 898f4bd8a9e7027e2fd9e50000e34abb41834e19 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 15 18:25:47 2011 -0700 msm_fb: display: Add support for HDMI as primary Add support for using HDMI as primary. Includes changing number of framebuffers to 2, using RGBA format, enabling HPD by default. Change-Id: I7a01ee3cf981b08d05eed13cd0fb7a41983211b5 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 09ab565589a8a1409c222ce79b6885aa9e96d33d Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Change-Id: If9797a3b8490ecba05969d546fc70a80c0f76dd0 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Change-Id: I77e660f4b9843991a6948532eea4199b7377a6b9 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Oct 10 20:51:31 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> Change-Id: I46139c2126b47ac6e1b33135b792ef702cc04446 CRs-fixed: 302409 commit a27bde25b4efd43946c19f1e672554ce0bce63c8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. CRs-fixed: 306936 Change-Id: I0e3776c7ca86f7c4a0f0d090da108599753b9997 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 8717a17a1a5555e53d2f8f8160462417105dda6c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I630cc47be806a8de383648aa80804b4d65210d4d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c430223b113ff533ef34c5acb0de6a6ccc3a1b51 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5a7f32c088bda86c7f0de08d06c8176920b28439 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e17a2ddc109e0691a25c69acd3ee16de354f5a82 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e1ed1ae1d4c6d17ddb2a027ced9524c23e878d72 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c719c541d8ec1c9a036002a80725457aab10e54f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e2833e9f0a24e1f1d3dc1a912977884920bc5487 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Tue Sep 27 13:26:01 2011 -0700 video:msm: Reset histogram when not read Reset the histogram collection if there is no one waiting for it when it is completed. CRs-Fixed: 308367 CRs-Fixed: 305674 Change-Id: I76de44f237f842a1163d8b9f0783bf3457ff1d3d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 5a4f1ba19d0172fe3566f3df5bc78844d84c485b Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 1429568ba55646240d551e8f8f9bdd25e4cb249f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aff429ae7d2d1b272d98935907ddfbf43ff4aaeb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d48737e7b42e51a73d8084cc37d7c1b63fcdefc0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a591110794daf54865c88f3f3fcfa8b5b4ab45c2 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit a7c9891a83bb0dbb6729173b0e7a204f20220849 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 95169f2d316397b15f2666591951c937bdd3de4e Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit a1b240fc59964122076812ea4c2f2ebcda99f4f2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2f19595abd7e55f302f6b50f39ed81a67cdbee6 Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit daf1d2101d21f27ed21dbc8e9afe9e82f24083c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 1dcb24860f556c8e60b333ffbfa26f22773560c1 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 83eac3cec4e5957abd90a7a73a645f91d477a603 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c6ecb836e9afb41bc9475b2a4c39dad8888f5e5f Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 419051b1b98b5f86ef72a6299ee9d73d039ce09e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 18f63087971116fc2af33f90ed42fd764d8ae7c0 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit c42862ab0b4149d6264b39d849aaf70b3de7a1fe Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 054dc107f98f31b2941489bd37e647e8be7b34e6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 7a7e46f6c1b48a5e2a3234bf0bb0e0ccfcd90323 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bbf9a472c9484c9e7a0b6ec15995a29afa0dfaeb Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 9e4491612de7c7a322d061b85c8d42ee42ea831a Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 3d4d275bd9442307af9f0ffb36660114e842e529 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 5c6cfbf2a4f8e76a0d14e37453c31561bca41019 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 074ee02cd301d9831de59b55d34e2ab5625cc983 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 07d19c35fd414757f4535f721522ed6379286b47 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 668d6d5e3e38f9aa55e78333fb8d200a83f32be8 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b84120b47e318d5144604e7249e0e0bc119e1301 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 21ef2feb1cddfa15f0a88c0838e3c941a84e9c7e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 073f1221221adb52039bc49f79c81e06335f9c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5e91203dfd1bb3dda16c712a4accde6b2040e437 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 8fef09a792fe01ec564d09a2b0b29d2bfa55fd21 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 33dc7b93d4fd73307bb8f68f8067cbe481c5bbcb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2ca30356bd3e2db7de9df06670ff9ba2f6dfafe4 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 57dcfff1206da4b1f6e3cdbbc63b5c27d57ded24 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit bea4783bcd4a65f11a6c5c00995a04dcea72c002 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 3a8b8514533d94af2e9fcb4b215f968f07d14253 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit d5315bd98102b8a2f8e36bbd69b15b679dc43e84 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit e52976fc8742c1734c3fda80735d0dfd21c61826 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 48aef6d5c2dbe622a0c44440809f4860ff7a5770 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0a3249ebfc2d474378fb2a3e49dad2140fd6b042 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 4d3c779eb9d906b381225be5065976703d91872a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 1833754d1f71e8b52e3ac0fcfb4602048763f39c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9452ecb5b57e5bde9b880a2a1ddcd0f210ce9dea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 01d682803053d294ef11da8bef3e88b073c43cc8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 115d7975e66ab3e5f9c03d9660413a940517ddeb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 164fe8a429e39cad3f03d56dfa4dce85ff90a0b3 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 120232e5eed881f12c9d6196f2f5567106c2c98a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48551552f956565389a760cd46fd6db8ad79a044 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3436daeb9f5e1216c827a85252b4c35a6d8380e6 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 3a76ccb3dff876cea6494d777c24c232c5964c4e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ed016bedc8c2af80b10a9d0558b537cf5e396636 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit e7833e230a3843070f4628532e5902442eeed2c4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 58b5555b7d19272e43732364b68e5d7c74b30870 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit bb3d48517f5d590cb66cee5b2fe418abf4eb69d1 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 492049ec4f59bf04275878a9d16ae20528159636 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit e546d48310bbb1b62e56a4f361af923c8814de54 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit b91fa71c588a9785f639193c49295b88031971d7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 7b57bb815b5287b0c8ef618459d989475aa2f071 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 405dc3051b06637b6a38aa6b1f4da1660cff37d0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4b8b2fb9d783be26b85381b3618bbe253a75b89 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f74d2edd791b3fddaf147c5e358a8f41463dc1f9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 49a83b2caa9718d35fab9a9fa9ad2d9436040ffd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a411f7e5195777253d4c3c94430787b4f19ea068 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 4aea274b69eeee685d87e159107f0d0eb9b35b70 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d1f8724f0d89d474a283f2ba6f51801d14daaee Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit ebca0c796cb22947a224c1afea9b7950886804e1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 3de11f35c77c7239a51c64254b00e400abaf93f1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9d28c3e809aac17dc2e3f6923e730293ae4aa977 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 759a8cf14ce1c2f0d6551a090fac84ec7f4705f2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Tue Aug 16 17:27:22 2011 -0700 Initial Contribution msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142 Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit 39fff5a3899f8d95886ba2e50d70001602b279c0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Change-Id: Id270b97eba6d01583dac3091cce0403a6aa96be7 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cb472111d93fa119c52d56c102b90cc3ad2c8030 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Change-Id: Ib64ddaf9d887ac3250b40451fab70d7ca9df081e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b9047132b38c211d4d8a26896ceb4e151bf618a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Sep 30 15:04:39 2011 -0700 msm_fb: display: Fix display driver init calls for auto-detection Fix display driver init calls for auto-detection logic to avoid initialization of panel drivers that are not selected for loading through fastboot Change-Id: I32a7c220efd33f748a7b46fb1006e5f0a59dc4dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 91be717084e45121fc1232e8309343c605603928 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 28 16:49:25 2011 -0700 msm_fb: display: Add boot param LCDC/MIPI panel detection support Add boot param LCDC/MIPI panel detection support for automatically loading selected panels through fastboot command Change-Id: I5f5167411ac2e5bbc4287148d22608a7e1f2af35 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d8a25911705d1baef68f3accf2bdcb4327152705 Author: Matt Wagantall <mattw@codeaurora.org> Date: Thu Aug 18 18:13:03 2011 -0700 msm: hdmi: Register device with clock driver and rename clocks Rename the clocks per the new naming convention under which similarly named clocks are distinguished between using their associated device's name and ID. Change-Id: I35f164e902003b1c3cd7243bc08d00b4c5d37b0c Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit a2e6ec896e8d2e10965d6f8df6f0affdf162a489 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: Iff123c6046eb69b5d26e632ad507605774f6562f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5a95ccd976434514d06384c2684c187daf3925ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Change-Id: Ifb4f6d16967cb98a25a253c99a8af2da2a22404d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 22 17:50:05 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Change-Id: I1795bb154fcee4813b4a1e5e935ed7c9863cd849 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6e4e76632b3e8e109da4b63fdf653af246dcde1e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 26 09:12:11 2011 -0700 Revert "msm_fb: display: fix behavior of NO_WAIT flag during writeback" This reverts commit 96fbbf3272449febc1a33861af1d275200563965. NO_WAIT frame push need to be followed by a WAIT frame push so that only a MDP kickoff necessary. Therefore this fix should be done at user space program instead at driver. Change-Id: I39f263a8e0263aa04274d95fa43e2bd4b5815185 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 46e3767f9ec607dddb2fa6ac8f41a0c0e455a479 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Sep 23 11:54:21 2011 +0530 msm_fb: display: Fix compilation error for 7x27a target Fix compilation error when CONFIG_FB_MSM_MIPI_PANEL_DETECT is enabled. This is required for auto detections of the mipi dsi panel. Change-Id: I2f0ab81c2432d7d04fd685f0d104858b8342bd9c Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit f076525d4ed93b77ca5a4cad20771e34dd5cbea1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 22 12:44:15 2011 -0700 msm_fb: display: Avoid footswitch control for MDP versions <= 4.2 Avoid footswitch control for MDP versions <= 4.2 to prevent any side effects with video playback and HDMI use cases Change-Id: I75d46e16564c4a7d1486f1ac59f79b8b218290c3 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 96fbbf3272449febc1a33861af1d275200563965 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Wed Sep 14 19:17:33 2011 -0700 msm_fb: display: fix behavior of NO_WAIT flag during writeback if NO_WAIT flag, overlay buffer should be set and wait for dma_p done should only be done if flag is not enabled. Change-Id: Ic007306a019956f565b0336d966cec7fdeefe918 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Change-Id: Ibbdbdaedf4ad5000e3f44d1e80888d68e23ff842 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7ec6eccf30ef970ec47444058f490530ac92600 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Aug 30 17:16:07 2011 -0700 msm_fb: Display: Enable novatek sharp panel for 8960 target. Add code to provide DSI PHY settings from board file. Remove chipset dependent changes in panel file. Add fpga register access support for 8960 chipset to enable 3D barrier Change-Id: I89a8dce29c1ea41894eebdfd3bdb5ad7178aa8ee Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7e65d5e31f62a20ae919e0e70f04d000a353bd52 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Sep 11 18:32:23 2011 -0700 msm: Add MIPI DSI novatek panel for 8960 target. Add code to support DSI novatek panel for 8960 target. Add support to provide DSI PHY settings from the board file. Add code to provide FPGA access interface information from the booard file. Change-Id: I03ae784750eb4763569cf8faca43ecd46f995638 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c2177245161614a0302380d0eca57deae0cb10b5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Sep 14 10:00:18 2011 -0700 msm-fb: display: Fix for the green patch issue in rotation cases always programming the tile_size register has side affect in rotation case. the issue is fixed by programming the tile_size register only in case of tile buffer Change-Id: I2012cc3cd9a69b7d5eadb690fee4faa1857ee059 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn Change-Id: I462422e4b0d17013d61e841f66fd155db4b7ea00 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Change-Id: I00ab1fa277a86d721a78ea2d2c9d8139c92e0719 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9955cf6062327857c43947cc7ec78649619c8735 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Aug 31 19:07:53 2011 -0700 msm_fb: display: Move MDP footswitch control to early suspend/resume Move MDP footswitch control from pipe_ctrl to early suspend/resume and fix boot related DSI command mode. This patch resolves the side effects caused by 716e97e704c6591f05f5b88743fca7770f0c61cd on 7x30 CRs-Fixed: 306221 Change-Id: Ie179e0281bff19ea69ec60fdabcf18190c390660 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 7b31a46e449747c2ca79605450f57658c855c756 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel Change-Id: I47a4a55d85f4fe2555628d833220b7e72c69cbf5 CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 313e9c47ee295bff714ca1a535fe6681945d5421 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 14 11:42:34 2011 -0700 msm_fb: display: Fix division by zero error in MDP downscale check Fix division by zero error in MDP downscale validation by rejecting destination rectangle width and height params with 0 Change-Id: Ia7054e7f1d05740b765a6c9b88f8f844cb605bbb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Change-Id: I5b4f8e11262c60d286d98c79f0c32e0104a7d57b Signed-off-by: Khsieh <khsieh@codeaurora.org> commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. Change-Id: I5c0804854cb33d1fb875bf1f6c52acd0a0e0940c Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a8d17b9e9d8c1f980002994c81c9ae1ff25dca8f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 12 12:45:29 2011 -0700 msm_fb: display: Set DSI Video mode dest type as DISPLAY_LCDC Set DSI Video mode dest type as DISPLAY_LCDC to return correct fps to userspace in reserved[4] CRs-Fixed: 302910 Change-Id: I0ef69645fa08e8c756aa25be95ac5a9d038a3910 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1c60d7efe10dd5b2824464d3187bb8262ee25d2f Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 09:01:55 2011 +0530 msm_fb: Display: Set ebi1 clock during lcdc on and off. Set EBI1 clock to 0 during lcdc off and to 65MHz during on. Change-Id: Ia81a8d52c6f9a24f8107d62596eed3cdc966e4dd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 9f1bb9925e9d0ea9eb505695601941f48f8aed7e Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Sep 9 11:57:41 2011 +0530 msm_fb: display: Re-arrange the reference clock enabling. Reference clock needs to be enabled before DSI PHY Ctrl enabling. Change-Id: I754a23592901225f3f52772b7ff4666f5b6d429f Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 743f162911247ba260445deb01b5406d0067daf3 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Change-Id: I107af5cc0c1a914c53a22558085123798ca2b5f2 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Sep 2 12:06:37 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Change-Id: I056c15de115367a33209c876a0d64cea85a02655 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 446d22d4641f699b741d16ea6086ce570c49dd7c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I7f493f1b850d40156b505cf88da308844ee34b42 commit 4f7e10164fc8f8477a0929cb910a849772620bc9 Author: Amir Samuelov <amirs@codeaurora.org> Date: Sat Sep 3 17:49:43 2011 +0300 msm_fb: display: Add Chimei MIPI-DSI WXGA panel driver. Add Chimei MIPI-DSI WXGA (1366x768) panel driver. Change-Id: I0409909ea6f24db3da6ebf4d92233e45da93c2a4 Signed-off-by: Amir Samuelov <amirs@codeaurora.org> commit 9c08f6850dbd998adf7956887060eec599a8f26f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Change-Id: I5cf94a2523c453cf4e82f68f3167c3c2442d9c82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d93d76ca62d758fa6f584a5a6f86ed92b0ea845 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 09:44:22 2011 -0700 msm_fb: display: Add panel vertical porches into TE logic Panel vertical porches are not considered into tear check logic which cause TE can not tolerate panel vsync frequency variation after panel heating up. This cause mdp to hang up and no screen updated after that. This patch will have panel vertical porches considered in during configure TE registers. Change-Id: I3ede2a9fa25adc62c85b5514c1bb1600ec7ce460 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ee9289450d530ab1fdec2379859fca5845a7808 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Change-Id: I6f03e957983c4161499a26cfe2f9008a997a04c5 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 4d8813b4fd6fe7588c411e90a2603b23a772f738 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. Change-Id: I252df99c085bf3e9ada117aa7c08f3a1f3023475 CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c429f0a0d694ee7ef3471c1b5172b050bf17a1f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler CRs-Fixed: 300666 Change-Id: I8b054f61ae907735064da549e493964176ed3090 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bca2a2055432cdf78380ac070ba0ede9c5893083 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jun 24 18:16:23 2011 -0700 msm_fb: display: Fix DSI PLL/clock warnings CRs-Fixed: 300073 Change-Id: I6a0793ff049017785b75624d30d0fe862e41b210 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 871edcfd5a801feed587b6c7f72aa4e1387d245f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Change-Id: I06c21a6fb480e119ad4ec75e993203124b97f4b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ede104a0244a04ca6fa6ce8fe9fc98008462df9e Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Thu Aug 4 18:41:39 2011 -0400 msm:8060: lcdc nt35582 panel support Change-Id: Ic5714dad929cf56505569cba14722a20dee12c15 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 716e97e704c6591f05f5b88743fca7770f0c61cd Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Aug 15 10:49:59 2011 -0700 msm-fb : display: foot switch control for the mdp driver adds the support for disable/enable the mdp foot switch at suspend/resume boundaries Change-Id: I3c80e4307f84d32b02872e977858fb0adc293b94 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 64b4b03461e39a715b33a2ea1ab97f5b27850535 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Thu Aug 18 16:16:12 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. Change-Id: Ie2a0785d490dc92f7f14f64aa3c2e28e6a231202 CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Change-Id: I94ba3457311c58415ba29bccdc2d146891b17897 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Change-Id: I0ce9cf2a7eefd785ad161b10204e56285248661f Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit cfb68532d8d09c54564590fb8eeaa83383004472 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Aug 18 18:58:50 2011 +0530 msm_fb: display: Vote for AXI Clock for DSI on 7x27A Vote for a minimum rate of 65 MHz for AXI Clock while using DSI interface on 7x27A Change-Id: Ie3e020394492fdb0209b7eec2ab2303b4f2a9ebb Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit ea9be62c230d982d6122b16b8717131f0df6f215 Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 16 12:16:19 2011 -0700 msm-fb: display: Remove explicit control of mdp_axi_clk This clock is already enabled and disabled implicitly along with mdp_clk and should not be controlled directly by the MDP driver. Change-Id: I47d68ddb2565be4f3d131061a21c5d921142e933 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 60dc151a43093fad5f68d02323570d5efd58ee4a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jul 25 11:02:24 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Change-Id: I98bd1a4547bb7e310b0df2311aa41ed4115cf8cf Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit e6613b38e178e67f441936e6820c966f553074ec Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts Change-Id: I032883b9de9e51c6844cc66e3d1945a14ca05e19 CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ddc23bd81a174843ee09fe464e0afafa62bc7126 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Change-Id: I7188e5dac6d4eb2f4ca6a7833c84e1fb1251b1b5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset Change-Id: Id2eb0be74e72c8982a2def8e333032174ec1d23c CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 14db758bfd64c473185b369b311e2cca443d01a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 12:52:14 2011 -0700 msm_fb: display: Add mb() before reading MDP histogram data Change-Id: I960e441210deaf7edba38b2409954f938160e875 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a41b7a628978951a3d2b58409eaa131a65707f4d Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Fri Aug 5 18:10:54 2011 -0700 msm: hdmi: Disable the HDMI driver on APQ8064 Prevent HDMI initialization from running on APQ8064. Change-Id: I37e0cc6394ffa8dce8aa8a4cc5fde61402f44334 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit fb8a7f9d09f3c068fdcdb7e880fd11688db2df95 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 5 19:13:55 2011 -0700 msm_fb: display: Enable tv_enc_clk for 7x30 to avoid HDMI freeze Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I39cdcb78455e07332351b7312ba149aa4f8c2f07 commit aa3c63a48f18740c0f90f2d85218891b0b3899b5 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 8 15:33:42 2011 -0700 msm_fb: display: Fix vsync GPIO for DSI command mode Fix vsync GPIO 0 condition check for DSI command mode to enable Tear check logic CRs-Fixed: 298596 Change-Id: Ide2beb306ed09e4b5478877d2f000eb00f1c317b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Change-Id: I5fc29a314eb6eeb9a88ff7cca5779e95ca954ede Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 2920965c1443096f1707888d2fe311cb79dd68dc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Change-Id: Ie55ac18e6b196276023d7f28f291e5410d309217 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6935ec9e55cb488fbbb377cc49697b6d37b254f6 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Sat Jul 23 17:58:43 2011 -0700 msm-fb: display: back light support for mipi driver back light control logic is added to mipi driver. it supports 100 levels Change-Id: I0c30f41a5d46f357110b619ba90d16d95d9576af Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 15:57:52 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. Change-Id: I1b9e562c257fac563934b5b1477e58e5382b45be CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens Change-Id: I7448525e9f11638c4505e0ce39fa9da05813f5d9 CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit bf2d82ddc93d20097fa1021b1c7629b9d9986384 Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Tue Aug 2 10:28:01 2011 +0530 msm_fb: display: Avoid BTA requests during panel init. BTA requests may fail during panel initialization if the DSI Client is not stabilized yet. Hence, avoid them during initialization. CRs-Fixed: 298789 Change-Id: Ib794b76cc7b9e1a8e9ce53ff9ede57108f0eca88 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 38bae35c81f7eee8605d854cda9f3854c3be2051 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 22 16:20:19 2011 -0700 msm_fb: display: Add MDP 4.2 histogram support for DSI Video Change-Id: I555cf7871da84a91806cb5b1c269e7ed79080009 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Change-Id: Id6fdb3249825405fae058d54772a86145de9d8e8 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit bb597c0640d5f87aadec33d29c03eaa0d3718a4b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Jul 19 19:14:23 2011 -0700 msm_fb: display: Use __va instead of ioremap for framebuffer memory map Change-Id: Ie2e3bd1df66b5cb944cd0e28d97227c408cfcaa2 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2be87760e94044f23ffefc7a753f9abaf14134ba Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Fri Jul 29 15:43:52 2011 +0530 msm_fb: display: Modify panel init commands for HVGA on 7x25A Modify panel init commands to send the video timing values for HVGA resolution on 7x25A. Change-Id: Ic691103e5d1de894f81d90ff1eb4c1a0f9830ecf CRs-Fixed: 297154 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Change-Id: I0057bb34c6bb90ba3c13861978c5cf71ac620ef2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Change-Id: I23c6ee2a6802baa98af495320f6bee94915ecfa5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Change-Id: I8f6374ed2e27529215a7d66dc32e65e7b4a79983 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 1532e778ce5b8c30e8261f2b73bc78819f99ea3d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 20 15:28:44 2011 -0700 msm_fb: display: Fix 8960 HDMI resolution switch issue Fix 8960 HDMI resolution switch issue by removing core reset via clock branches. This helps in retaining the HDMI PLL register values for subsequent cable disconnect/connect scenarios. CRs-Fixed: 296879 Change-Id: Ie052e986bf21277685d4f52205d3401a5d85c3bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f711ac25a68e521ce2bbb450d34f46eb76d39a20 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Change-Id: I0ea1d8797ae850fcfd21b8964ee967282b23910e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a34b0bc9e1e66f9e9c6ef6063bf3c858bca2e2f4 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Wed Jul 20 13:21:08 2011 -0700 video: Kconfig: Remove extraneous dots from help text Clean up the help text by removing extraneous punctuation. Change-Id: I043abaf33ce6a5f926a3b27551a517e829b30af9 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit 917fee282ae07cc98541a54204069bf7955e352d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Change-Id: If2722fc012aa97f0cdb2577589d2e51b82160c24 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3eaa215567715925b93e5d5d60f679de6028d0c1 Author: Matt Wagantall <mattw@codeaurora.org> Date: Fri Jul 15 12:26:19 2011 -0700 msm: Remove last references to NPA-related code for AXI rate management The NPA driver was removed some time ago, but wrapper code and some of its driver hooks persisted in the tree, despite not being compiled (or even compilable). Remove these now. Change-Id: I34148433f8fd946a9aa664df6ca7782cb02bba2b Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 959f5c62d3b83b65567cd8088db9d9d84774273a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 14 13:30:33 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Change-Id: Ib7598cb8e4ce16be39d0586c718c0753f50056c6 Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> commit 802cea1a8b7f850495f900b8519df1d4a064c880 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 8 14:09:11 2011 -0700 msm_fb: display: add spinlock to synchronize mdp irq enable/disable To improve performance, UI push thread release mutex before blocked at waiting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I0898f3eac7ecec85b499b73ff118d846ba32bc3b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8cd1e18d1f8fe351e42a0ac5287536cdde7efcd8 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 8 17:59:18 2011 +0530 msm_fb: display: Enable H/W vsync in msm7x27a Enable tearing effect control in msm7x27a using gpio. Change-Id: I0bc92777a172a2ecf26ce34d8882a04165e859a3 CRs-Fixed: 289024 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 03522b71418c110c98c5982b9d28ffc97c9afdba Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jul 8 11:50:33 2011 -0700 msm_fb: display: Use spinlock instead of mutex in vsync timer handler Use spinlock instead of mutex in vsync timer handler to avoid sleeping from timer context through mutex locks Change-Id: Ib8865c8bd3390ac12a2fe1eac158b7e4fcab4bad Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 8f43f4bb7d9d56c82aa2a7630116b9f44aa99a62 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu Jul 7 21:41:10 2011 +0530 msm_fb: display: Enable lcdc for msm7x25a Enable LCDC interface on msm7x25a with dynamic detection between msm7x27a and msm7x25a Change-Id: I935ae65f8ed43b5e524da100d38feba44c3c4a16 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit bd0ef9258776385559fd032134e0a28e9aad8f34 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Change-Id: Ic27d304ec6bff44c29b8d10c622363dbc5fcee75 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic3060030dece7ab531d3630eebf6e4ee7267804f commit fe926e8303dc6da0adf7be76c045ac93a9f8818a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Change-Id: I4a6d78ad939085128d261fdf8c70018fff424b26 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jun 25 15:51:14 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Change-Id: Idd3b9e6562acad96fc0f460f81e64d4483059b9d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit d0423ef3ca01755267a1f4e157c8ea7e468b145f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: I92bb11888b004a6fbd7af900ccb490cc7f9547e3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c1abee46365a0a8b976877a6ad5f2752f410ed7b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Change-Id: I7a3f274dd5472fa3842a6fda586539e85c7defd9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 16636524b5635644f554435a99553c097b74a605 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 15:12:21 2011 +0530 msm_fb: display: reduce display initialisation command for lcdc Reduce display initialisation commands for lcdc toshiba panel to reduce the time delay to resume. Change-Id: Ib36c2546423d1b7c5c0d0c1531c480b477c2d975 CRs-fixed: 291494 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 4e19f50c3e21f6be4595eab4ffb1d07abfbe8025 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jul 1 10:52:46 2011 +0530 msm_fb: display: Configure full resolution update in dsi command mode Partial update is supported only for mddi interface,hence update whole screen for dsi command mode on msm7x2xa. Change-Id: Iecfc8d5edac2f962c3710692ed87abaa90fbe184 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Change-Id: I57ee5704dc3ec2aaa16086727470b4f6dfd9ce9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Change-Id: I380a4727c0485bcdcdbfc9fad43476569f2b78ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. Change-Id: I90b3582fa73040bf66239f5258592a1f08cba0f0 CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit da07df81fe450fb08ec68511bd4ac5004ee96f3d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Change-Id: I2a941fafc92de61df9077cb3bb5bbb78964d1809 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9568223aa6d0fa91fd8f3a042d75e91b1895d494 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 16 18:22:52 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: I380b05d8d9158c49be5bdb9a52e52a114725c22e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 20 18:47:53 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Change-Id: I6d8b766fe316522451eb5e2c548799b17da431be Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit f25bec14f4ab386015cd034c59ebdff9f3d266b5 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 28 09:14:27 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about whether the panel supports 3D display or not. Change-Id: I3f8f9d8eb4014a77f9b4f4752858999009ab2407 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 7eee7cfb58b63b1e710e20d994b3926b4dd126ae Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 23 20:18:38 2011 -0700 msm_fb: display: Add HDMI PHY settings for 8960 target Add HDMI 28 nm PHY settings for 8960 target and separate 8660 specific HDMI settings Change-Id: I3fe023c28fe0bf3728f7dbba8cb16fd3096985d7 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 27f99bb784c6e390674373ae980d9fb15194f0dd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jun 20 17:16:42 2011 -0700 msm_fb: display: Fix suspend/resume for 8960 DSI panel Change-Id: If3716f131b7b5c9d5dc176d3995622355696c5d7 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Change-Id: Ieae169e3ece870cac7f2c73922b60789fee11a9f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit afc6ae9304f27c240546f15580555913f7e27644 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Change-Id: Ibbc77d3f369d4bf4e1a1311609039764a692d66b Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> commit 9322f759f8437a816e44aa921a64fcb566defcfb Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I60e4cfee8215139671248506caf0d625a1bec1ec Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 918ecc5201654cc8c1b5bfcaa7ef5ebc32304733 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri Jun 10 15:05:35 2011 +0530 msm_fb: display: Fill the last frame to NULL while suspend in MDP 3.03 Toshiba panel stores the last frame in its frame memory during suspend. This last frame gets displayed while resuming in quick succession which is not a valid frame to display while coming out of suspend. Hence fill the last frame to null before going to suspend. Change-Id: I605fbed97455298dcd00d884bb9f4b7256078902 CRs-Fixed: 290419 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit fc299bb8066e0325db239bb356c546e57c7ef347 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. CRs-fixed: 287700 Change-Id: I4ced3fa8927fb94e5457957aab274e7d07acdd79 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit 6de2b7363df7ad3bfe02b6752910675c749f910f Author: Vidyakumar Athota <vathot@codeaurora.org> Date: Sat Jun 11 22:52:24 2011 -0700 Revert "msm_fb: display: provide panel refresh rate information" This reverts commit 7b401565d2ab400a3e68e1112c3d601d13a34837. Signed-off-by: Vidyakumar Athota <vathot@codeaurora.org> commit 55e656e68cac78eaa367341df2e693a483a53f84 Author: Stepan Moskovchenko <stepanm@codeaurora.org> Date: Mon Jun 6 14:34:38 2011 -0700 drivers: barriers: Replace dsb() with mb() Replace explicit dsb() calls with mb(). Now that the generic ARM implementation defines mb() to mean (at least) dsb(), it is appropriate to switch back to the generic kernel version of the barriers. This is also needed for correctness on certain targets (such as 7x27) where dsb() is insufficient and other operations (such as outer cache sync or writing to strongly-ordered memory) are required to ensure proper I/O operations ordering. In some cases, remove explicit calls to outer_sync following a barrier since the barrier will now have an explicit outer_sync call. Change-Id: I2c53b8534af9c3cbac4d4d77b322f897a39e7758 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Change-Id: I2593b225353ec3758f18e33ea58fd867b30ec062 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 47c54ff0e010190f0a11e7e2792642d70caa339c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Change-Id: I10dbb23a7f13f472c8de3014115890e689a2b6e9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b35d093b7b22e380ffc9f066a92dc0ef218944b Author: Gregory Bean <gbean@codeaurora.org> Date: Sun Jun 5 11:34:02 2011 -0700 msm_fb: fix forbidden compiler warning. Providing forward declarations of functions and then redeclaring them to be inline later produces forbidden warnings on some versions of the codesourcery compiler, breaking builds. Change-Id: I4a65e1af002f4bc412c30b5c96601f8e650c74d1 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Change-Id: I5657379eb4593eb551127a016393f231f445f423 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 63a81111eb3e7143bf37e125c3abeb94fcc611ac Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I7e98935f0bd4f29c188f46601d8df09c37cd20d7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6a194de79ae35f9785c5a5c63cda330c7dab1a80 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 25 08:44:37 2011 -0700 msm_fb: display: waiting for vsync for UI frame push Add waiting for vsync for UI frame push through pan display. Change-Id: I9be701c6615c139d6d07b16c32039074d5b5a431 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b11c3b46619d3eaee600223859041a51fa0af218 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Change-Id: I620d133941739eb8024cdb6d79227078c3193fac Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit cef59b7b35b714df7b81f9bc2e96b8d49181f95a Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Wed Jun 1 15:38:08 2011 +0530 msm_fb: display: support suspend/resume for lcdc toshiba panel Add support for suspend/resume and backlight control for lcdc toshiba panel for msm7x27a Change-Id: I49916776cc532974eed7f858cd7e2fd85b6c8fda Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit e8f469582b62d0d76faa4051227228734f226325 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Mon May 30 18:04:44 2011 -0700 msm_fb: display: Tune DSI setting for Toshiba wsvga panel Change-Id: I71df1f019b1604f806af6b7ae7f379edb810a583 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit 6a11cb6f4d7bf536d2881512daed6e3324f65b64 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Mon May 23 14:17:53 2011 -0700 video:msm: Updating QSEED table2 values This patch updates the table2 QSEED filter values so that they apply visible filtering when using the QSEED smoothing/sharpening API. Change-Id: I4431a02e24f9bcae035898b758e8c462c9c044de Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 589c897daefbcf28e8610226225bd2d8fcddee4e Author: Carl Vanderlip <carlv@codeaurora.org> Date: Thu Apr 28 13:53:07 2011 -0700 video:msm: Initial QSEED sharpening/smoothing API Adds an additional parameter (.dpp.sharp_strength) and reuses flag MDP_SHARPENING to mdp_overlay, to allow for overlay_set to request for sharpening/smoothing. The overlay parameter is designed to range between -127 and 127, with negative values infering smoothing, positive infering sharpening. This range of values is then mapped onto 7 levels for both smoothing and sharpening (i.e. ~ every increase/decrease of 16 aligns with an increased sharpening level). This commit only adds the API for sharpening, a patch that updates the QSEED table2 values is needed for the desired effect to be visible. Change-Id: Ib6522e43bde4f4a54e752258553822e78a95749d Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> commit 4298b4f972b395b92ab0346978a9e9e9999c2e9f Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 24 20:10:15 2011 +0530 msm_fb: Display: Add support for DSI Single Lane for 7x25A Add changes to support QVGA resolution and Single lane configuration with DSI on 7x25A Change-Id: I3f33e3b41a860b7339abfb824aac00435606e5a2 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 54aafeb90b88663a423be3459f4c05c38ccafd97 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Fri May 27 01:16:55 2011 +0530 msm_fb: display: Enable backlight control for mipi dsi on 7x27a Add support for Backlight control on mipi interface for msm7x27a target Change-Id: Id22cba59929eeeaecb6383b273242f12c52535f4 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 7b401565d2ab400a3e68e1112c3d601d13a34837 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Change-Id: I738b254bf8d2db0bd79864c0731ad0542f657bf6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c394da5a206ccb6aab93b0a3beba9d38f479d7e3 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon Apr 25 12:55:58 2011 -0700 msm_fb: display: Fix for the color swap issue for mipi simulator Color swap was wrongly added for mipi simulator panel, which makes colors to invert on simulator. It will disable the color swap at DSI controller. Change-Id: I1f00cdfaaa9e60804045d81581d3a1de059e21c6 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Change-Id: I382aab2bf908f0140004a6713c8e77a16f5aa925 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 395c7c1d9c82d56977a611080d305aee0d974372 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ief48dca2b596ac4f2c6fb23a5f20802e8b3ef4d9 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8ad47e5a01f5e95cc0e41c1a4a71317d4d8a9a17 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure. Change-Id: If4546501eae383755d0a5ddd059e166007f64bf7 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 2604c2884489e8c76474249fff6f8d1103503f21 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 23 15:36:47 2011 +0530 msm_fb: display: Add histogram in MDP 3.03 Add histogram functionality in MDP 3.03 required for Content-based Adaptive backlight Change-Id: I24dd8a42c12b2311823fc25b2aca568a8c391b0e Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 9925e41f075235b620b9d6918f9d00662a60e9d5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: I4247b600e31e7a5f39b44e77a49c174b8c0bd11f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit dcc36cc4b33d1b82b803fe1dbdb904656eef0aa8 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Fri May 20 13:06:06 2011 +0530 msm-fb: DSI: Add Support for DSI CMD mode on 7x27A Add changes in MDP, DMA-P and Panel Configurations to support DSI Command Mode on 7x27A Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Change-Id: I912866f9072dda690d5e6354a05d74dcb2d2aaa0 commit d567f25ae4afa37f8f7e2fda53bade2099f7ad87 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: I508d250c9193449e6663e13570c2c9fac3b8feca Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit c7163d9a33d86d1001aa4083423c68c07743861c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 16 14:07:15 2011 -0700 msm_fb: display: Reorganize DSI clock and PHY settings code Reorganize DSI clock and PHY layer settings by moving code to different file from base driver Change-Id: I7d02a4cd0f5322b80462e3721d5c8fb4f83d002f Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ae66ded8ca3d1e7184dc04f1c165fae30ba8a203 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Clock changes to MDP driver Adds the mdp_axi_clk, mdp_lut_clk to the MDP driver. they are the new mdp clocks added for MDP4.2 hardware on 8960 Change-Id: Ib936a280e83a414806365836a839b5555f445724 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 46ad60f0cff5c2222ded7a639f337417e59b2375 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. Change-Id: I077d497c2ac9b1dd181f4f4ea874bd2ea4dfede8 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 4217a1dacbde157ce26238904450b091778fe872 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. Change-Id: I76f7246f855d7a3e99de29da7297053c477fbbef CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3700ca00ba19855081822169e144c87aa1d4953f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Change-Id: Ic635065f2bc42cdfb422f440fe65fc01a246e18f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 22cff13e1115962207254980acffac8d20bd9b26 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Change-Id: Iee5ea7287ae8879f961a095327b71a38b8b60f57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cd0bd24a3fffff873821618009389378372fb73e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. Change-Id: I55316d9dc96fa17d275d87e75480a2209b1fa46c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d89efdbbdf521f05a7b9f191e98914b40bc1962d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Change-Id: I630f1df16212d02bd694e086d695067262b6203c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 757e2ea8064b379ecfd02a6fdd36f6f2894066c8 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Apr 6 11:15:36 2011 -0700 msm_fb: Display: Enable WSVGA Toshiba MIPI DSI video mode panel. Add code to configure and enable MDT61 Toshiba MIPI DSI video mode panel. Add new command set to initialize and configure the new panel. Change-Id: I8c543677f75ade967a77100a7878b9e487dc991b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. Change-Id: I83cf278310a902c263e191b714b550ee29afa5e5 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 8dae3d06d1c41aa2de609056811646ff50e77791 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. Change-Id: I436f1eee110562587223fd1de97821968d494034 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. Change-Id: I3df0dd292ac7d28f9eb6028ee16e5c60180e5c35 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 065b9f72784c2686aca0233e8e510229efd329c4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. Change-Id: I0ee5412dc5801172c00570748fbcc9a9efe04582 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit dfcf3ef2212026dfb53e87f571b294627f34a4a7 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: If69a6781dfc493125b5f57b937c24d17b4cbbea6 commit f0771a155634cae4052dab0c0c7ae2fc0abc4b56 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 16 12:19:53 2011 +0530 msm_fb: display: Enable suspend/resume for mipi dsi on 7x27a Add changes to configure Soft Reset of DSI Controller. Also, add changes to control the power of the DSI Client. Change-Id: Idb72327da1219c215c36e6b3a94d4a763e071fb5 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I450a46cda3f18f1a54cc5e2cd0500c9d54473b7d Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit e814b7842af3b7f15047f3f922c1f1648bb2705b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. Change-Id: I77dcf3d91046f4f6f71f4dd5c1aea90bd766e7ef Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ccdb0372092c3a359754897ebec2bb8be37d6a3e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. Change-Id: I1e00a561774779703b343e08868f3da633f6dbdd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication Change-Id: Ibb25f7cab29c2c361020cac868b58c298ae74560 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. Change-Id: I98fb0e3b09501aa30a23eb6939102de08665f66f Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ce25d616d046ee3db897fe921d300f44553d83c9 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 12 17:26:39 2011 +0530 msm_fb: display: increase max BL level in panel driver Increase the maximum backlight level for all panel drivers supported by msm 7x27a Change-Id: I534b8e5e3ee296e68e81d4dcdceea70319cbd0da Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 829c88376705c6b58e62dd93e9802ffb905ad49c Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. Change-Id: I8a058147f8bd147ee2330d445f27b2ee58e5ef99 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit d8df7faccb2ec330eb859179ed0db07313626b7c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Change-Id: I45a92c91dc5c250a91a6c069e0695f72c97a6272 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e80420254616b39d0c350dcadf8f6954394e7647 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Change-Id: I95dd4b8bc654a923730a9e4ecf16499c556201d9 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 15bd60d7b277f7850bbdc814ae1e151c5cea31ba Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon May 9 18:45:45 2011 +0530 msm_fb: display: turn off dsi ref clk for 7x27a during power off sequence, dsi_ref_clk is not disable and hence TCXO shutdown fails. With this change, dsi_ref_clk is disabled during off. Change-Id: I9424120370a6a6feec98ca228777ecaac9249f30 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 3d3439c820a1a0e79f3c3b706556a6ea11b6ee76 Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Thu May 5 10:48:02 2011 +0530 msm_fb: display: Resolve compilation errors for dsi on 7x27a Change-Id: Id7cc3e3df2c0005f0442e03625567c40797feea3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Change-Id: Ibe731d0c562d46a0c3888704f50b2010ec1769c0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Change-Id: Ic31ca511afe2c44bc045442c807c2b2fc554bb5a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 894c60beca1296b1cc16f948f45ed140a016921f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon May 2 17:38:17 2011 -0700 msm_fb: display: Configure 8960 serdes settings for DSI host Configure 8960 serdes(Serializer-Deserializer) specific PHY settings for DSI host based on target type in platform data Change-Id: I433e61f13f19a582fe3e21dc6832fcf93046a3f1 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit c7711029d933b918a97749af7e31beafef3e0d96 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue May 3 05:59:44 2011 +0530 msm_fb : display : Correct DSI Byte Clock configuration To configure the DSI Byte clock, clock string ID is different for 7x27A and other platforms. This change handles the difference appropriately. Change-Id: Ib5bad3283287e7d36d428aa4721c87985c112d59 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 64189b417cc545add2f496609ef11df6b491d177 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 13:29:40 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. Change-Id: Ic68a2dc646a2e2693e5eea5d9c81e629a0a84244 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dee181e845c10b3b9a68fff89d965d6b99691c09 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. Change-Id: Ia0f5ff8a55322546dd7d18fca4e1d7b3ad02f8ef Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 393e367e14977c42f62df3101535712503f1f133 Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I3d567d73d1854d62c86aed95824c39bfd1f20859 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit 0b0d5c46c0fd92350be9cd838f621aef566ce7d3 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Tue Apr 26 19:01:21 2011 +0530 msm-fb: Display: Add changes to support Renesas DSI panel on 7x27A Added changes in the DSI client and panel drivers of Renesas Tremolo-M panel to support it on 7x27A Change-Id: Ibacec50454e573a065a3eabfe30e02b22896e44d Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit c192a65bed1be0d4d8cd80be809ca59a9fe100ee Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 11:17:56 2011 +0530 msm_fb: Display: Add MIPI DSI support for 7x27A Added changes in the DSI driver to extend support to 7x27A Change-Id: Idd55b0aae9aed653721357ff2c414ce081d6bbbc Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 551c692934c576d7105a0d65b39aca126652ec3a Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Apr 20 12:37:54 2011 +0530 msm_fb: mdp: Add support for DSI Interface in MDP 3.03 Add new interface support (DSI) support for MDP v3.03 Change-Id: Ifc85b8d1f84a91e97ac11c8e62480568096f1845 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 5e744543c3f81650a1cea1402c58c01ae6ee421d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Change-Id: Idc788125da12f3c3aae3c2a64292e8ca8580e7c8 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2afd5ab819fe894511ed58fc1262d0452a4c70fd Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Apr 21 16:11:20 2011 -0700 msm_fb: display: Disable MDP clock directly during suspend Disable MDP clock directly during suspend bypassing the pipe ctrl workqueue CRs-Fixed: 284441 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic04fe003c51c2081496760531e5c7379fcfd39f7 commit 902ea8d6bcc516f383e3335cd690ef5e384c267f Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 25 18:53:29 2011 +0530 msm_fb: display: add initialization of toshiba LCDC panel only on surf Only mipi dsi has support on FFA but not iLCDC. Hence the change to have LCDC panel gets initialised only for surf and not FFA. Change-Id: Ifd6526b0020c004bc413b12939701f1935c16dc3 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 565ecc608d46993c4afe6dd15c95942c75f1e932 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 Change-Id: Ife0af10358d3e61112f6f70349262d1bf2105c62 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 801290d61d4426c1504079bbaa702f5439dc96d3 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Apr 12 19:19:17 2011 -0700 msm_fb: display: Add DSI PHY settings for 8960 RUMI Add DSI PHY settings for 8960 RUMI Renesas Command Mode panel Change-Id: I4323413414f89f60e16962887362908458bce400 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit a6a1618edcdfa45b8a03dceb768e873ac5cec731 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Thu Apr 21 00:12:44 2011 -0700 msm_fb: display: Mipi driver for 8960 simulator Mipi display panel driver support is added for 8960 simulator. It will control the data flow between dsi controller and the mipi dsi panel. Right now it supports only video mode. Change-Id: I3712907a0e0c07b9ebd7e9fb2678f37a3058d5f3 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 708f3b8c4c8115e9a6543b6cef50288dc94aedfd Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Thu Feb 17 01:13:07 2011 -0800 msm_fb: display: Add support for MIPI DSI Renesas panel Adds basic support for renesas mipi dsi panel driver. It will control the data flow between msm dsi controller and the renesas mipi dsi panel. Change-Id: Ib92a342bfb3d596d99dbcf564c86a684c2d2f8c4 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit c5ac53e3e4aeb1d73587719f639210a1b7610481 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Change-Id: I8970ca2ad9481c4b725b6431309d6153f18b9435 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8825c2547168a36b5fbb30a14add7509e33f9b41 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 20:41:54 2011 -0700 msm_fb: display: Adding the Interrupt in MIPI DSI Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MIPI interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I04ec4b3d1230dd4e5e9be0041db6efdd31045a32 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 994b7d8d34a81ddc9c6fd9bbf8c71791e8f36bd2 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Tue Apr 19 19:10:53 2011 -0700 msm_fb: display: Adding the Interrupt in MDP Resources Right now we are accessing the Interrupt macro directly in the driver. In 8960 MDP interrupt name got changed, so we need to move the interrupt to resources to make the driver msm platfrom agnostic Change-Id: I84d2825dad00fd8b6c4425b290aca070b847e9f5 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 75df47a6dc38b5bd08d0c8e2d7595662f9a3ddfe Author: Jeevan Shriram <jshriram@codeaurora.org> Date: Mon Apr 18 20:17:53 2011 +0530 msm_fb: display: Avoid EBI1 clock setting by Display in 7x27a EBI1 clock is already set to a higher rate in 7x27a and hence there is no need for display to set it explicitly. Change-Id: I316f61dd8d345d6b66a070b75c6be804ce9db0a4 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org> commit 04a6f98fb77c9749cfa50fa9e5cbfda132fdd28e Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Sun Apr 17 03:42:22 2011 +0530 msm_fb: display: Add support for LCDC Toshiba FWVGA panel. Add driver file to support Toshiba FWVGA panel with LCDC interface Change-Id: I15dd2abcfe474ec7737e7915884ea33ea78da689 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> commit 0df29adef313157f99c814e86f3a73e7d3c657db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 17:49:59 2011 -0700 msm_fb: display: enable vsycn on mipi novatek panel Enable vsync on mipi dsi novatek comamnd mode panel to prevernt tearing. Change-Id: Ib71a0204e5ef4cc8a0e0b977dd3744fdb74c8af1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 605a44c18620ed364e53d1e4cc0f03fd2f815029 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 Change-Id: I930c3e9869c6bbabfd70203ddbddd15c84fbae92 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 14:59:21 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. Change-Id: If54c4cd125a8504eee4cd468282f4dccabb0398f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c4a80d9e8bd74410f4f9a3e636c3c617e8afa7b8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:59:02 2011 -0800 msm_fb: display: provide option to pass chroma pointers seperately provide option to the user space to pass seperate chroma pointers instead of deriving the chroma address based some assumptions. This gives flexibility to derive chroma address that has size alignment restictions for luma. Change-Id: I384ade86993810627655a8a446e6b9316979aca8 CRs-fixed: 274238 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47 Author: Michael Bohan <mbohan@codeaurora.org> Date: Thu Feb 24 12:10:11 2011 -0800 Initial contribution This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.38. Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> commit 1ad6a901db3038e67a58b98ac60cf048deb7d7aa Author: Ajay Singh Parmar <aparmar@codeaurora.org> Date: Thu Apr 19 11:17:26 2012 +0530 msm_fb: hdmi: 3D configurations in HDMI 3D configurations using Generic0 packets need to be done after enabling HDMI Control to take these configurations into effect. CRs-fixed: 349578 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> (cherry picked from commit 514b1c651a33b7b73fb6f654d04355eac5ecb146) Change-Id: I15ae4a26a1d1f964b41bb6174e5ea31bc4da8a59 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 837fbaa4e02d07502c8969503ebb936c0c1716a1 Author: Swetha Basineni <sbasin@codeaurora.org> Date: Thu Mar 15 17:08:38 2012 +0530 msm_fb: display: clean dsi fifo during dsi_off During suspend, wait until dsi controller's fifo is cleaned before disabling dsi controller. This will prevent pixels that were left over in the fifo from being displayed during next resume. CRs-fixed: 336049 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9d76704c8dac8f9e0794834cc4d62c17fd9cdf63) Conflicts: drivers/video/msm/mipi_dsi.c Change-Id: If7adff01a7fd50177761f015227986a3f93d1e49 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 5fa503114b95e1cd0e4650a543184e36215e2522 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jan 26 17:15:09 2012 -0800 msm_fb: HDMI-CEC: Line latch patch The CEC hardware latches upon reading a corrupt bit in bit 7 of any bytes due various timing issues. If the driver detects this latch up then we call CEC reset to release the lacthed up line. CRs-Fixed: 329507 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 1573599adbb42c606d8b91854c76461b3f212c3e) Change-Id: I60a2fb051add9973d98c177b58c33445260cb359 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 08c0d505198f988d10f4f55fe30c0448b33a815e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 7 14:18:51 2011 -0800 msm_fb: display: update busy flag before check blt_addr dma_busy flag is set to TRUE on every vsycn push and set it to FALSE at overlay0_done ISR. When blt disable, dma_busy need to be set to FALSE before return due to blt_addr == NULL at overlay0_done ISR. Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 81be67988ef149f601064a9e8e5d91705e636ff5) Change-Id: Ia0552b3b645389efeaf2b8d3986f5ba10c4d9142 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit e4326532759c3e05741616760bb11e456ba31cff Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Fri Jan 13 12:47:08 2012 -0800 msm_fb: HDMI: Correct order for BKSV read operation During HDCP authentication, the BKSV read operation should be issued after writing AKSV as per the HDCP specification. This change fixes this issue. CRs-Fixed: 327845 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 228895ae217589ca71aa464f7c22bc4cedd06f77) Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: I06b2cc1658e49fc5a82f156911726a41a8467bf7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 8b7fbe6ed5f4f38b34c69a82d711438a570304cf Author: Swetha Basineni <sbasin@codeaurora.org> Date: Fri Jan 20 12:43:12 2012 +0530 msm_fb: display: prefill two writeback frames for lcdc. Pre-fill two writeback frames before enable writeback mode to avoid flickering for lcdc. CRs-fixed: 325327 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> (cherry picked from commit 3a895fd04105cb1a1db3ae51d051ea6b6d9ef980) Conflicts: drivers/video/msm/mdp4_overlay_lcdc.c Change-Id: Ic8a2d59163c807c24ffa54a5b72d5bdd70712301 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b77817fa07694f7fe1bd56d11e1765a66787b4e9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 19 14:08:33 2011 -0700 msm_fb: HDMI: Support for clock stretching HDMI Sink may hold off the DDC transaction by stretching the SCL line during the SCL-low period following the Acknowledge bit as permitted by the I2C specification. All HDMI Sources shall delay the DDC transaction while the SCL line is being held low. HDMI_DDC_SETUP register field <TIME_LIMIT> should be set. CRs-Fixed: 296256 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org> (cherry picked from commit dee95105fdbc21ca2cecad26403e7c6a9942f445) Change-Id: I43abe64ab53feb09a0494c9f642241e5791ce9a7 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 721d78d25c007c5e8ac9474d95f4a952e0a1ba76 Author: Padmanabhan Komanduru <pkomandu@codeaurora.org> Date: Mon Nov 21 10:35:35 2011 +0530 msm_fb: display: Change the timing values of MDDI toshiba panel. Adjusts the porch values and refx100 to prevent tearing effect on MDDI toshiba panel. CRs-Fixed: 309691 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org> (cherry picked from commit a9c4e3cb9f29ced98b82ea073e7814668abf56a9) Change-Id: I395c49c3d6308c4ef2b9a7dab41167467be3519d Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9326c60c83647488f2e33d9112b07d70296f5a6f Author: Aravind Venkateswaran <aravindh@codeaurora.org> Date: Wed Jan 4 16:24:19 2012 -0800 msm_fb: [HDMI_COMPLIANCE] Update audio ARCs for 480p As per HDMI specification, the correct pixel clock rate for 480p should be 27.027 MHz. In the code, we are currently using 27.03 MHz and thus the audio constants corresponding to this clock rate seem to be incorrect. This change updates these constants as per the HDMI and the CEA-861D spec. CRs-Fixed: 328553 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit a4f48cd3a16243671b42c6ef6437c0df77c9f1f9) Change-Id: I5069e50dea973895b67e21e60e335818c30fc142 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 184cd5a52d1ab1864f58baaa81aeed091897667e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 11:37:57 2011 -0800 msm_fb: Removing HDCP timedout error. DEBUG mode added delay after writing RO's to RCVPORT, leading to HDCP AUthentication Sucess Interrupt coming before INIT_COMPLETION call. Re-arranging INIT_COMPLETION code before writng RO's resolved the issue. CRs-Fixed: 325564 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 39cf209c7f8ac4843c8b10223af15d0afdbe96ce) Change-Id: I3f97aadf0a7635bf07b206a3477afd18a23b7b44 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit df013ad8114e7e8391c90df172da0a04609fae65 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Dec 15 12:21:29 2011 -0800 msm_fb: Fixing Aspect Ratio Non-standard resolution, like 531*398, is treated as 720*480 instead of 640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation to be in a range , rather than absolute. CRs-Fixed: 320022 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org> (cherry picked from commit 402adc6142598abcb2a41a941895003f57f289a5) Change-Id: I28d6f11b20f123c52d5872f0b550c3c4531356f7 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 9882bb2dc947df434befbae40b0d681973a4b5e4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Oct 19 11:16:08 2011 -0700 msm_fb: HDMI: EDID > 2 blocks, params not set. Currently the driver discards one byte from DDC buffer. In cases where EDID exceeds two block in length we need to discard a total of 3 bytes before reading from EDID seg. CRs-Fixed: 307706 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit ebefc805a139e8222061b32cbf7686d76122de5f) Change-Id: I7bc723e53244983b76937deedf3524c642194e62 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 63fcfdde892762d72a7ab15b0628167d584a2ce4 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jun 13 22:14:57 2011 -0700 msm: fb: HDMI: Sending AVI Info Frame even if HDCP is disabled AVI_INFO_FRAME was not getting sent if CONFIG_FB_MSM_HDMI_MSM_PANEL_HDCP_SUPPORT is enabled Getting rid of the #ifdef checks around the function call/defn CRs-Fixed: 311139 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d28b63ec5ca47e074ae87551911d6a5f8c289d0) Change-Id: I7410e176b0a2e09b87f623bdbfb08927d2525b05 Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit b18226c8a815117f985eafb06439bd0d692531f4 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Nov 4 14:25:48 2011 -0700 msm_fb: Check for ACP and ACFG register before reset core. Check for Bit[0] of Audio Packet Control Register and Audio Configuration Register before resetting HDMI core. Even after sending OFFLINE event, QDSP take time to switch between stereo and hdmi audio mode. HDMI reset core should not be called untill that switch happens. CRs-Fixed: 310700 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit a077d0063dfb8a39a869f56099dd0ffe85301180) Change-Id: Ib664232c07d00dad7a2d89875fe2903b8ab1016c Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 1e6428ce9512b074a2a586b403c331690a9813c8 Author: swetha <sbasin@codeaurora.org> Date: Thu Nov 17 19:08:30 2011 +0530 msm_fb: display: cleanup usage of shared pipes in overlay Remove usage of shared pipes. Shared pipes are used to allow VG pipes to play both video and rgb formats. This can now be handled by calling overlay set ioctl with new format, that means shared pipes are no longer needed and can cause instabilities if not used properly. CRs-Fixed: 312209 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit cb8fbbcbe0630451ba582a0747987c48b2c603f1) Conflicts: drivers/video/msm/mdp4.h Change-Id: I0f36f65db00884b017a5bad4670794cd65e2c5e5 Signed-off-by: swetha <sbasin@codeaurora.org> commit 5dcef0415fe4312e4fed83c6974780fe163e6523 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Nov 1 12:28:24 2011 -0700 msm: HDMI: CEC: Hardware FSM reset. Hardware requires a FSM reset toggle under frame write/read scenarios. This enables every transaction/feature to have a fresh start. CEC CTS requires this patch to pass a subset of test cases in sections 8, 9. Hardware and VI teams have confirmed this as a necessity for compliance tests to pass. CRs-Fixed: 316345 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 0f0ab64f56cbc31cd2fda46ff4790ae86f89ad5f) Change-Id: Iaeb6b9b121d8c9eb4cf2413ddcaf0024b06e0d8b Signed-off-by: Swetha Basineni <sbasin@codeaurora.org> commit 0506478f4ef8b397b3916db47133c4d0cdc05c89 Author: swetha <sbasin@codeaurora.org> Date: Fri Nov 18 11:27:28 2011 +0530 msm_fb: Remove Audio Packet Control Register setup Donot set Audio Packet Control Register (0x0020) on HPD connect event. This register should be set by QDSP6 core on start of dumping Audio Data. CRs-Fixed: 316588 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Conflicts: drivers/video/msm/hdmi_msm.c Change-Id: Idf36ab257d4bb493c578529d4d8a7f0d68e2b1cb Signed-off-by: swetha <sbasin@codeaurora.org> commit 79d8f3eec036a1f0604bb296048a5c21a34a6a36 Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Nov 17 23:54:16 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. Resolve GB HOUSE conflicts, below FR on gb house had conflicts. CRs-Fixed: 319078 Change-Id: Ie93aeb8837151ef98814a4cde463a3be58c6c1fb Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit 0a693110809d2a782a137f242f6438cb0e32218b Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Nov 16 22:00:05 2011 -0800 msm: display: HDMI: Driver support for CEC feature Driver implementation of HDMI CEC feature. Support includes CEC frame send and frame receive. Support added for sysfs interface for CEC daemon to interact with the driver for reading and writing frames. sysfs interface /sys/class/graphics/fb1/cec Read: CEC block state. Write: Enable/Disable CEC block. /sys/class/graphics/fb1/cec_logical_addr Read: Print CEC logical address Write: Set CEC logical address which is used for addressing CEC messages to and from MSM /sys/class/graphics/fb1/cec_rd_frame Read: Read rcvd CEC message from message queue. If queue is empty -EBUSY. If CEC block is disabled -EPERM. Write: N/A /sys/class/graphics/fb1/cec_wr_frame Read: N/A Write: Write to send CEC message. If CEC line arbitration fault/no ack -EINVAL. If CEC block is disabled -EPERM. Change-Id: I00ccf91c022d6b9962ec0231eb3c8f159a200e40 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit c55b00c069de596e0d539314381b1139139c6932 Author: Pradeep Jilagam <pjilagam@codeaurora.org> Date: Wed Oct 5 21:19:46 2011 +0530 msm_fb: display: Add YV12 support in the MDP Added changes to support YV12 input format in the MDP. Change-Id: I23fb10ea30117e20de654d9516f7d024b99f6c96 Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org> Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> commit 6b5cabad0561eda616f892cb67306dc4231626a9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Jun 14 21:05:18 2011 -0700 msm_fb: HDMI: Support for 480p 16:9 in HDMI Driver Requirement for customer (Samsung) to have support for 720x480p 16:9 aspect ratio, prior to this we supported only 4:3 aspect ratio for 720x480p. Adding the appropriate Lookup Table changes. CRs-Fixed: 311137 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 64ee60e185dd7c5b2b6d08f3c81fcdd9a7a5e178) Change-Id: I79a67ebe0a24be65c2f588d06e80e437d850dc16 Signed-off-by: swetha <sbasin@codeaurora.org> commit 1b0fe24150908a0474460c32347e71d1f904008e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 4 08:48:18 2011 -0700 msm_fb: display: check BLT mode within overlay_done isr At dsi video mode, overlay_done isr return immediately if blt mode was not enabled. Aslo, since time between overlay_done interrupt and dmap_done interrupt is very close, both may be serviced within same ISR. In this case overlay_done is serviced first. CRs-fixed: 310918 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit 40a43409804073a0442d2a1ea09293c0b95fdab1) Change-Id: I46ab957bb1f6f9289ea62f49c4c012450965cc9a Signed-off-by: swetha <sbasin@codeaurora.org> commit d8b5b8b42652bdf50d9d2f32c9f5df9a683bec0d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 29 15:57:04 2011 -0700 msm_fb: display: prefill two writeback frames Pre-fill two writeback frames before enable writeback mode to avoid flicking. CRs-fixed: 310076 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 5a95ccd976434514d06384c2684c187daf3925ea) Change-Id: I645e953bcb614f18ee0d0469e7e05a81c90d6027 Signed-off-by: swetha <sbasin@codeaurora.org> commit 8da556479db6a5798cd64278c0a59098bab1b89f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Wed Oct 26 11:19:57 2011 -0700 msm-fb: display: mdp clock scaling clean up clean up of clock scaling code to organize it better Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit b8c3aa8bdd5974b75a8782cab641936bfa7eb3f6) Conflicts: drivers/video/msm/mdp4.h drivers/video/msm/mdp4_dtv.c Change-Id: I5a2bb2982f49d9e3f5fa04addf60d498e8177931 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0716a0cfbaa4b71cd46359b97d0595fa5eb13dd9 Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:36:15 2011 -0700 mm: display: hdmi: QDSP_OFF evt with OFFLINE evt Every OFFLINE event should be accompanied by QDSP OFF event. This makes sure that QDSP DMA operations occur smoothly before HDMI is powered down. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 09ab565589a8a1409c222ce79b6885aa9e96d33d) Change-Id: Ieb7db1ec90fb6e57b7e3cbc1929ffb74a1d96d8e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit e2a4d84ae6cea7d8c32186e3d94d66814ad8f5cb Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Sep 25 13:31:37 2011 -0700 msm_fb: display: add dcs read parser Parser byte stream responsed back from dcs client base on the dcs command type. Change-Id: Ib8c95024dc593794909893bd7daafc68ecb77769 CRs-fixed: 306936 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit 5f775050abd5416a04e2999101e98b9206fe8a25 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 5 09:57:58 2011 -0700 msm_fb: display: configure dsi control as free run Configure DSI controller as free run instead of software trigger. At free run, DSI controller is triggered by MDP directly when output of blending is ready. No extra register write to trigger DSI controller is necessary. Therefore it reduce latency during MDP kickoff. Change-Id: I096939b519c0e007e69e58d0665408799e7f5e83 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit b5b8af371375fad123b3b26a1c8f85bc6b6c72e7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 31 17:51:34 2011 -0700 msm_fb: display: received writeback offset from board file Writeback offset need to be passed from board file to avoid hard code value used by MDP. Change-Id: I5261356f75205eb1d3ec17522779693deed09562 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6fb10dc13bdcbec93462149c90ee11a8f3101118 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 8 12:13:07 2011 -0700 msm_fb: display: increase mdp max burst size increase mdp dma and pipes max burst size, to avoid mdp underruns (blue frames shown on display). Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 48d2bf5e9ac5d927775c5aedbde817c192cb2aeb) Change-Id: I85bbb414a9d34981487bee63ebd7b10e76711c89 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 30e1b13055d905f4276d3e9fc9e0a93d9dc1f9f5 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Jan 28 13:24:34 2011 -0800 msm_fb: display: CSC Matrix update support is added CSC Matrix update support is added for MDP4 VG pipes to convert Ycbcr -> RGB format CRs-fixed: 313601 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> (cherry picked from commit 4b99172a1df8b1ad2b48343bead39685f294e680) Change-Id: Id54327394748cc4a80864967b21caf8a378f37c3 Signed-off-by: swetha <sbasin@codeaurora.org> commit afff1683341cc4ae64ec618a86aecbbf1a1b83ff Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Oct 10 17:32:28 2011 -0700 mm: display: hdmi: HPD fix multiple reconnects HDMI display remained blank after multiple reconnect of hdmi cable. Setting the trigger handler to TRUE in hdmi_hpd_on. CRs-Fixed: 291547 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 53ac99d0bb8cdeb0d519b27b1159953447a7a7c7) Change-Id: Ia3ec88bb19cd2f06fd9784afb2302bce4bbe2858 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit f00cb084795b659746359544e2d2c80acf15bd5f Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 18 00:37:14 2011 -0700 msmfb: display: Fix for the 3D stride corruption issue adding the src_x offset to the address causing the stride corruption issue for tile buffer, as the it is changing the alignment Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-fixed: 302409 (cherry picked from commit 1c8fc4ae526f9ea79952a8dfd967ba3d11b7dc87) Conflicts: drivers/video/msm/mdp4_overlay.c Change-Id: I54afdaacc9b3b96be22ef5c0bd1ca2a2478a8f16 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3c12051aa756e8ad7c9fc40bdff1171d401fea42 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Sep 26 12:54:03 2011 -0700 msm_fb: display: avoid staging up two pipes at same mixer_stage staging two pipes at same mixer stage can cause blue screen, adding additional check to avoid this. CRs-Fixed: 304278 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 39fff5a3899f8d95886ba2e50d70001602b279c0) Change-Id: I4f81ec5a61e0e12013bb866e41301b95a10c7e45 Signed-off-by: swetha <sbasin@codeaurora.org> commit 7a851968932a82b4b21acae0fe788fc2c48b053c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 2 08:53:36 2011 -0700 msm_fb: display: vg pipe shared by both rgb and yuv format VG pipe can carry both RGB and YUV format. This patch will allow VG pipe to switch between RGB and YUV format. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit cb472111d93fa119c52d56c102b90cc3ad2c8030) Change-Id: Ia4586f17bf7696d422c25be7c6a55c4ebfa403e1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3d3a9c230489cebc3c20eece3639e175923d604c Author: Manoj Rao <manojraj@codeaurora.org> Date: Fri Aug 5 17:54:25 2011 -0700 msm: display: HDMI: Remove audio packet setup for ACP, ISRC In HDMI driver we are setting audio packet with ACP, ISRC by default. Removing this setting until end-to-end feature has been supported. CRs-Fixed: 297272 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 5ecbf18f5513f653847d83c8f24aae6c5a184eee) Change-Id: I9a4355eaec13aca70f9c2890e3eba96fbedf3454 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0f189a55ed89593cf430e850c923369d3acb2e7b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Aug 9 17:36:23 2011 -0700 msm_fb: display: Remove histogram memcpy from MDP Interrupt handler Change-Id: If0ede3234d0ab844d2d49119873af5160e8a3e70 CRs-Fixed: 300666 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1df2948178c9ff509f28fdd2757119ae0923a494 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Mon May 16 19:54:16 2011 -0700 msm-fb: display: Add revision to MDP driver Change-Id: Id86814725955c743df4a0f85548fa64c3656feae Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 96145b95dd0688ed0c83f33d129b4bcd8301ee54 Author: Shruthi Krishna <skrish@codeaurora.org> Date: Tue Oct 4 12:25:44 2011 -0700 msm_fb: display: wait for vsync instead of dmap_done At both lcdc and dsi video mode panel, wait for vsync interrupt instead of dmap_done interrupt to make sure a single frame updated during every vsync period. CRs-fixed: 305599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2f7ff25ba93f7f6485b1a878f08a58040ee7ee57) Conflicts: drivers/video/msm/mdp4.h Change-Id: If070171b933f4b74d5ce817340ed04be0ccbf270 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 433b95fa866ea12a0acc768ce0378f992c1dd09d Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 29 11:15:47 2011 -0700 msm_fb: display: wait for vsync and change perf level only if needed since overlay_set can be called multiple times to change some parameters, there is no need to wait on vsync to change clock for each call to overlay_set unless there is a change in performance level. Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 8ee9289450d530ab1fdec2379859fca5845a7808) Change-Id: I8eb4caee64a67863180dbfb45e7d8062488d493e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit b374b85bad548b148cc232c0045351a5b4d524ad Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 19 09:00:07 2011 -0700 msm_fb: display: remove yield with pan display It is more proper to have USER space thread to decide when yield be called. This patch remove yield() from pan display. CRs-fixed: 307344 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit a7cb9d450cc6aa03df1f18191c2b36c8222bbe32) Change-Id: I478dcd2a98d8825783e710aa751d89b9348f2782 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ad3f14bb1b57a8b3b41ed6559689f414a3d020bf Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 1 11:22:35 2011 -0700 msm_fb: display: Synchronize DSI CMD Mode MDP & DMA cmd triggers Synchronize DSI CMD Mode MDP & DMA cmd triggers by handling DSI IRQ enable/disable properly Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 446d22d4641f699b741d16ea6086ce570c49dd7c) Change-Id: I4a7a22c5a0ac32120a7fec0a3fd22a62c8182556 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit cbf8fea88bfcff5134c5843bb46a4ba15ea75353 Author: Carl Vanderlip <carlv@codeaurora.org> Date: Fri Jul 22 12:32:33 2011 -0700 video: msm: Defining functions for MIPI CMD panel Defining do_histogram and lut_update functions for MIPI CMD panel CRs-Fixed: 294029 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org> (cherry picked from commit 7b31a46e449747c2ca79605450f57658c855c756) Change-Id: Ib03d80616982f4b6febbf5216b5774780e9fb726 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fedb6a40b997178ad2d142ae1a4209b729320c1c Author: Manoj Rao <manojraj@codeaurora.org> Date: Tue Aug 16 19:12:31 2011 -0700 msm:display:hdmi: Fix for EDID read/parse block[1] HDCP enabled DVI monitors with block 0 and block 1 EDID always switched to 640x480 even though they supported higher resolutions. This patch reads DTD data from the correct offset from block[1] and reads correct bits for interlaced format recognition. CRs-Fixed: 290391 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d8813b4fd6fe7588c411e90a2603b23a772f738) Change-Id: I82c39cdfa4676293ec9a0c02b5f491ffe4b2e6aa Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 18174612d6683ca96b4f13528af46b1f7949174e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 9 10:02:58 2011 -0700 msm_fb: display: add mutex during lcdc off There has possibility that suspend operation and screen update happen simultaneously. There mutex at lcdc_off is necessary to serialize both lcdc off and pan display. CRs-fixed: 302527 Signed-off-by: Khsieh <khsieh@codeaurora.org> (cherry picked from commit 4e6e7ed6081dc0a6877a99f734928e9831ecfd4b) Change-Id: I8e26c37b9a54699315fda2cfcefd1f439945c67d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 776f9a5d02a45e7c580a494bda81cf58e6dc7242 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 6 19:01:31 2011 -0700 msm_fb: display: no wait for vsync after suspend There has possibility that overlay_unset() is called after suspend had been done. In this case no wait_for_vsync is needed for pulling mode interface (lcdc and dsi video mode) since timing generator was turned off and hence no vsync interrupt will be delivered. This will cause thread to hang up. Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 743f162911247ba260445deb01b5406d0067daf3) Change-Id: Ic309e3b9311bcf0e47284fd5a13b8344a44d3315 CRs-fixed: 302527 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6676fee7d309ea699e302a8d039b85754acf10e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 18 17:12:42 2011 -0700 msm_fb: display: use blt mode to implement MDP writeback MDP frame buffer mode was used to implement writeback for pulling interface (lcdc and dsi video). However frame buffer mode is not recommanded by hardware engineer due to lacking of verification. This patch will replace frame buffer mode with BLT mode to implement MDP writeback. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 9c08f6850dbd998adf7956887060eec599a8f26f) Change-Id: Idc020deaee364116facc5db471f6f4e9bde4a09d Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit dd5a748949a292fe22bcf7e8e8a4f8d9f8dca7f1 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Aug 31 10:04:28 2011 -0700 msm_fb: display: fix YCrCb planar input format support in mdp MDP hardware expects source addresses to be in YCbCr order, in order to support YCrCb, need to swap chroma planes addresses. CRs-Fixed: 302408 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 64b4b03461e39a715b33a2ea1ab97f5b27850535) Change-Id: I2ad23f7a384b4f149bd3e4529e1bf5a01de66dd8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit b0db685088e013e1af1378583e9798618b153f94 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 24 14:34:46 2011 -0700 msm_fb: display: synchronous UI and Video thread Use mutex to synchronous between UI and Video thread. Meanwhile, add yield() when at end of frame push of UI thread to prevent UI thread from dominating cpu times. CRs-fixed: 303246 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 871edcfd5a801feed587b6c7f72aa4e1387d245f) Change-Id: I6c880c61b540e83072cc5ea54b120e630d5c0e04 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3dc8e34c9ccf719f476019a0c2abec9ebd38034b Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Aug 12 10:26:35 2011 -0700 msm_fb: display: Fix HDMI clock control during suspend/resume Fix HDMI clock control during suspend/resume to avoid incorrect reference counts CRs-Fixed: 293818 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit e6613b38e178e67f441936e6820c966f553074ec) Change-Id: I5e43c80137900b9c04519e1e052cb54068d0860d Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 69b0f5d57c7470195ee4126ceca6b52e16fc1868 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Mon Aug 22 11:24:32 2011 -0700 msm_fb: display: disable timing generator before enable writeback mode At pulling mode (lcdc and dsi video mode), timing generator need to be turned off before enable wriback mode and turn it back on after enabled. CRs-fixed: 298593 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 60dc151a43093fad5f68d02323570d5efd58ee4a) Change-Id: Ica2d2026a5ea6ffdba8e53cfd3f40013435db009 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 7049edede74ae3ab929c0ae7261b014bb65d9ee5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 10 19:45:53 2011 -0700 msm_fb: [HDMI_COMPLIANCE] Enable Audio for HDMI Compliance Enable Audio event for NON-HDCP builds required for HDMI Compliance Cases. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> (cherry picked from commit cd1ebfb22a41e9c3c84c7c7a1e5e0b91fc1fcc8c) Change-Id: I3aa9a1ab4984ef7bf7b56e83b69d7eb41355f7e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit db2b5ddcb77b564d0e569e27d7484dcb521f9498 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 12 15:32:52 2011 -0700 msm_fb: display: use mutex instead of spin lock to avoid deadlock There has deadlock between mdp4_isr() and disable_irq() called by LCDC thread. Disable_irq() will wait for mdp4_isr() to complete before return. Meanwhile mdp4_isr() will try to acquire mdp_spin_lock which had been acquired by lcdc thread before call disable_irq(). This patch replace spin lock with mutex to avoid deadlock from happening. CRs-fixed: 301276 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> (cherry picked from commit f4e2e01971ffc096a98fb42a8a1f1db13e0b2be5) Change-Id: I72ceb2efe73ce6990b352f65cf3f36ddcd94b2b3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 78e1b670c1c6d43f45ddb4d1cd290839dfe8fdb6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Aug 1 18:26:23 2011 -0700 msm_fb: display: change mdp clock while mdp is idle at overlay_set() MDP clock is adjusted base on run time perfomance level. This patch will change MDP clock while mdp is in idle state at overlay_set() when performance level changed to avoid MDP from underrun. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit ddc23bd81a174843ee09fe464e0afafa62bc7126) Change-Id: I7e0dd6fdb6ea50a90ed44e0dc7e9b9d8b2f71f38 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 575799be2dc6eae0d576e676a3c335dc9929d672 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jul 18 18:45:06 2011 -0700 msm_fb: display: Adjust overlay VG pipe src params for non-zero x_offset Adjust overlay VG pipe src params for non-zero x_offset to avoid overfetching of pixels from the left of x_offset CRs-Fixed: 296185 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 0b3fa05890d038428d0faebcda7fc2cdc9aab4f0) Change-Id: I3c6a115fc116beb96c0ddd5324359efe992d00a2 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit cde0d4265de0662e2f0b119477381e7f8c10aa77 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Wed Jun 1 20:22:24 2011 -0400 msm_fb: display: YUV 444 format support Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> (cherry picked from commit b11c3b46619d3eaee600223859041a51fa0af218) Change-Id: Ia57a4dd092811f1430367ba7285f15b4e37e6247 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ce2e933002ea2b6e044d8c0109e6787b3e4674b5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Aug 5 13:30:28 2011 -0700 msm_fb: display: use spin_lock_irqsave before call disable_irq disable_irq() will wait for irq handle to complete before disable the specified irq. Therefore use spin_lock_irqsave() instead of spin_lock() before call disable_irq() to avoid deadlock on same spin lock. CRs-fixed: 299938 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2920965c1443096f1707888d2fe311cb79dd68dc) Change-Id: I7599dc56b1c3a8bfe4eda7fa1b888cafd86a8df3 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ee9a51030967ac3c293675da9e67b438c5467c34 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Aug 5 14:18:30 2011 -0700 msm_fb: display: disable fill screen with blank on early suspend Disable logic to fill framebuffer with black screen before early suspend, this is causing slugish wipe off from top to bottom animation on screen. This logic is still needed for MDP3 because of hardware limitation. CRs-Fixed: 298050 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 733443cb29774d7c4adb1dd0c15a897bdee47fd3) Change-Id: I71790f25e80641c821a87275b1b37088f6402cfe Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ba5def9929507a7501e95c25cb815043d33655b9 Author: Adrian Salido-Moreno <adrianm@codeaurora.org> Date: Mon Aug 1 14:06:21 2011 -0700 msm_fb: display: clear interrupt flag to properly wait for vsync need to properly clear vsync interrupt flag so that subsequent waits for vsync are handled properly, otherwise wait will return before next vsync happens CRs-Fixed: 299043 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org> (cherry picked from commit 69a5a9854608a2ee856dffb5df7780f3d9bd5ed0) Change-Id: Icacbafc93eb831ea681fd6815d6f3ff5055a5394 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6e113b50c4af73ee87e90f7fc103e3f339a00719 Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Jun 29 09:07:55 2011 -0700 msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang During 3D video playback both VG pipes are used, solid color fill into VG2 pipe for HDCP compliance purpose causes MDP to hang instead, we enable Encryption on HDMI TMDS Output By setting BIT[2] of HDMI_CTRL register to enable encryption on HDMI TMDS Output. Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit bdf8e676b81924ee689bbf43cb7343ea3d5e77ce) Change-Id: I2fb8f17d6b94223ba9c35e429acfe571e80e0ed1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 514b196c41f9e2c978b0d540f7d27a748f0264b7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jul 21 15:06:59 2011 -0700 msm_fb: display: add ioctl for mixer info Add new ioctl to allow user to query mdp mixer detail configuration. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 51159ca5df7bb860abdda9e09eba8cb39e2e5d15) Change-Id: Ie22e272d2356289e0bf286464381e23ea9ef3581 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1bdb7c7482741d74e5bf85a14f5a0dbf3e700511 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 12 13:32:14 2011 -0700 msm_fb: display: change mdp clock while mdp is idle Mdp clock need to be adjusted at run time base on the performance level. However mdp clock can only be changed when mdp blending/dma engine is idle. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30ea94f26e085154b974d1abeb3f1300fd5dcf83) Change-Id: I55c8d6844ff7eb676c7f8bc76e363a7769b35b23 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ea67ae814ceed3004bed07870545725ddd4aeb6d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 6 11:05:05 2011 -0700 msm_fb: display: add 3D support at DSI video mode Currently, only DSI command mode have 3D capability. Add 3D support for DSI video mode also. CRs-fixed: 294082 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit f711ac25a68e521ce2bbb450d34f46eb76d39a20) Change-Id: Iee4d72dc85d4042a6490dc9b4f3c593a0a325d54 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 8782b22d00d1211ce80d9093e658d3bba3b1b57f Author: Manoj Rao <manojraj@codeaurora.org> Date: Mon Jul 18 14:25:38 2011 -0700 msm: display: HDMI: ISR not triggered when HPD occurs during power_off During power off we disable 5v, power down core, by turning off the TX channels one by one. When a HPD is triggered the driver has a software debouncing timer during which interrupts are disabled to be able to read stable HPD status from the register. When HPD is detected while the core is being turned off/powered down the driver's software disables the interrupt and this was making the core to go into off state. So the fix was to keep the interrupt bit enabled through the register even during the debounce timeout (this doesn't trigger unnecessary interrupts due to appropriate clearing and masking of HPD interrupt bits). Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 4d4aea2e4f489fcc8a5d2eacb528d3bd8c274374) Change-Id: Ib05a6ee172acf80a77418912da3a4f8a54fb64ce Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 296d3f254c3cd93a9296c80d9a654f86105f7343 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jul 14 18:45:07 2011 -0700 msm_fb: display: Fix writeback offset with correct fbnum Fix writeback offset with correct fbnum value to avoid any memory corruption with image buffers in use CRs-Fixed: 290324 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 917fee282ae07cc98541a54204069bf7955e352d) Change-Id: Ie3585ca85d6714e262c3fe724d6b5b5f8c8a26bc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 9afa1e2e91ccb4169ea6a2365b4d98cfe237d0e8 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Thu Jul 14 17:41:05 2011 -0700 msm_fb: display: set flush bit at overlay_unset set flush bit at overlay_unset to notify mdp blending engine to pick up new configuration changes. Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org> (cherry picked from commit 6caa28428d79953af20f6f65459b9217db260aa2) Change-Id: I6270dc95a85f3958c98bfffd429577dab79f408c Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ebc6dc50dd48e2c7fe6133dfd2873aa29d5bed08 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 13 16:51:06 2011 -0700 msm_fb: display: add spin lock to synchronize mdp irq enabel/disable To improve performance, UI push thread release mutex before blocked at waitting for vsync to allow Video thread to be updated at same vsycn. This also cause contention to enable/disable mdp irq. Add spinlock to synchronize both threads and irq context. Change-Id: I165f94e77164fa5091ac4f31a7a73ed0f735c576 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 93b1ca29a4ac08326bdfdf2ec618cd275613d71c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: Ic9d68781d02d6bd66be107c446a706936c70ab64 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e5c60572a13dd16426e7356e544e51d36c8a440e Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jul 12 21:07:32 2011 -0700 Revert "msm_fb: display: release mutex before vsync_push" This reverts commit 78318a7a0357fc96cf4a38c90e38be0848cde0db. Change-Id: Ic2dfc460517927e853dc907fc708287bae8a98f2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c0c86f1e14e98efc85f9866fff89f08d1432095e Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jul 5 18:58:27 2011 -0700 msm_fb: Display: Use pixel clock for downscale validation The clk_rate variable used in validation function represents pixel clock. For MIPI DSI video mode panels, add code to use MIPI DSI pixel clock in downscale validation function. Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit bd0ef9258776385559fd032134e0a28e9aad8f34) Change-Id: I6944f98caeb98bdb963d19596791469bf863e18e Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1ce934cf550c3f647c3eec8ddae54d1fbd891519 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Jun 26 23:55:26 2011 -0700 msm_fb: Display: Enable downscale validation support for MIPI. Add code to call downscale validation function for MIPI video mode panels. This is needed for playing 720p video in portrait mode. CRs-Fixed: 292907 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> (cherry picked from commit c6e3391b53d62a42616e9d3e04e1fb2d89f2fdda) Change-Id: Id12bf05976b26611e53fd9ed7d31c912bf6840c8 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0ad0f07f95ff9cf373c3ea0053ea540701fd38de Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jul 6 15:28:46 2011 -0700 msm_fb: display: Fix MDDI multiple data write DMA abort issue Fix MDDI multiple data write DMA abort issue by passing physical address to the DMA Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 9ada6fcea2bbf5c92a8cf7a1dd63334e32249564) Change-Id: I0b7df64ef83329b769f3200ac4cfda975118b4fc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 6f4be7effea2e7d42b209b83a53e29d0e599f24a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 5 14:14:46 2011 -0700 msm_fb: display: remove while loop at mdp4 ISR Since mdp interrupt is enabled on demand, there is no need to have a while loop to handle interrupts at random time. There has possibility that mdp clock was turned off at first loop and ISR handler try to read mdp status register again at second loop which cause system to reset. Remove this while loop from mdp4 isr. CRs-fixed: 291602 Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit fe926e8303dc6da0adf7be76c045ac93a9f8818a) Change-Id: I4c3e5f63a6d6b54bd0d12b1be609a5f0d1f73874 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 78318a7a0357fc96cf4a38c90e38be0848cde0db Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 1 09:44:58 2011 -0700 msm_fb: display: release mutex before vsync_push At pulling mode (both lcdc and dsi video mode), release mutex before waiting for vsync so that both video and UI can be updated at same vsync. CRs-fixed: 294504 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit c1abee46365a0a8b976877a6ad5f2752f410ed7b) Change-Id: I4a16e8313399c55d71a2e406e56c0c5d3f8f33e4 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit eacd237f51c20c08c225b6b817e7a6e109ab0b52 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jul 6 11:21:01 2011 -0700 msm_fb: display: increase mdp clock debouncing time Increase mdp clock on/off debuncing time from 0 to 50 ms. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit b29ea0e32018ab5e9ac6f48d0a2ad29d4591b948) Change-Id: Iad796bc1dde524b600cd5fd37ac4b85ca6f47b81 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 85200a4e8aabf77e3df2bbb0d50b359ee54ba402 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 27 11:09:23 2011 -0700 msm_fb: display: add Novatek dsi panel backlight support Add MIPI led_pwm1, led_pwm2 and led_pwm3 dcs commands to control Novatek panel backlight through dcs command. CRs-fixed: 285850 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 098325372eb8c3df9e841de9502c4bd7dcbbf5d5) Change-Id: Ib5b4a9d0be4c03eb0d6525ceb1d5cdd04e970a96 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 784b785c7c52ce1d74b1e2ab827f485e9b9cb759 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 29 14:23:50 2011 -0700 msm_fb: display: remove mutext from lcdc on/off Since mutext had been acquired at up stream, no mutex necessary at both mipi_toshiba_lcd_on() and mipi_toshiba_lcd_off(). Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 1b3fa75696737dd7bbee380eb9dbbf81b66ba99c) Change-Id: I05abf7a3b52d015a146fdfab82a7106523d39847 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 90e312fd2e0f238cd374aab1c7c88905c22d22ae Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 23 08:59:06 2011 -0700 msm_fb: display: no overlay set and play allow after suspended Check suspend state at both overlay set and play. Return fail if system suspended. CRs-fixed: 292430 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit da07df81fe450fb08ec68511bd4ac5004ee96f3d) Change-Id: I3f8bff425a158592cd572e0c487be41590ceff32 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit d00fd730650f26f690df997c91243d0470b1cc3b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 3 17:26:45 2011 -0700 msm_fb: display: Revert "do not restore control screen to main panel" Reverts commit 64189b417cc545add2f496609ef11df6b491d177 since it cause mdp hang up while playing HDMI. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 2152d08bd0c7d2e1ca4e49f80443b3c6336c09ab) Change-Id: Ia2f794da7f0d4717833000b7c657d7fc31987d7a Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 53310ca7798873e4f48c426db8cd2f352cf25d33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 14:41:53 2011 -0700 msm_fb: display: wait for dma completion before dsi off Since dcs commands needed to be sent to dsi client (panel) to bring down panel during dsi off (suspend) process, check dma completion before start sending dcs comamnd to panel to avoid confliction at MIPI DSI channel. CRs-fixed: 291842 Change-Id: Ieaf6595baddcef945ad5606a4bbafa18bbd8033b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 59863dbc83da3fd3a06a8c8be50c28b08c60b9be Author: Raj Kushwaha <rajk@codeaurora.org> Date: Tue Jun 28 10:38:06 2011 -0700 msm_fb: display: Disable/enable chicken bit during video playback CRs-Fixed: 283794 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> (cherry picked from commit 1fe5c7b8258ed19276d0af8b9171fd864f40619e) Change-Id: I547f00f4500b40777686fc0491500c06b5b4109f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 6a50674d696213efebb93a5d9d109723aa69d758 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Jun 22 23:38:16 2011 -0700 msm: Display: Fix IOCTL ID for 3D ioctl. Add code to have unique ID for 3D Ioctl call. Move Novatek specific changes for 3D to novatek panel file and remove the usage of featurization macro "CONFIG_FB_MSM_MIPI_NOVATEK_3D_PANEL". Change-Id: I01e2ec5cd85d2778fc800fd452ee3b1e6d0602f3 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 66c31a935e3d692aba41a8fcd419dab4c8acbd3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 17 09:58:55 2011 -0700 msm_fb: display: check dsi_pipe for writeback mode at kickoff At MIPI DSI command mode, Writeback mode (blt) is marked at dsi_pipe. During video kickoff (overlay play) dsi_pipe->blt_addr should be check instead of pipe->blt_addr to see whether writeback mode is enabled or not. Current, pipe->blt_addr was checked which cause extra mipi_dsi_cmd_mdp_sw_trigger() was called which cause an extra mipi_dsi_enable_irq() called and flooding kernel log with "IRQ already enabled" warning messages. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 24c7acd32b080d105e84994dc0cb3ee9d0d28738) Change-Id: Ib5993ad1967be2244892fe02325094b4e40c7ec9 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit fb47e7b99107e99d4b972d2b3c9f80c7d3b62b07 Author: Saurabh Shah <saurshah@codeaurora.org> Date: Tue Jun 21 17:58:22 2011 -0700 msm_fb: display: Use reserved[4] for storing fps Use reserved[4] field for storing fps, since reserved[3] is used by HDMI Signed-off-by: Saurabh Shah <saurshah@codeaurora.org> (cherry picked from commit afc6ae9304f27c240546f15580555913f7e27644) Change-Id: Iadc2b2df0f7418fa86c4cc69d35208e8b32d095f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ba5be4afb461abba65cd1f588dca788c0df307b9 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 9 15:53:11 2011 -0700 msm_fb: display: check suspend condition before bus scaling Overlay_unset() was called to free mdp pipe back to pool. Therefore requested bus bandwidth need to be scaled down after overlay_unset() accordingly. Bus bandwidth was scaled down to level 2 at overlay_unset(). At suspend, bus bandwidth was scaled down to level 0. It is possible that overlay_unset() will be called after suspend had been completed. Under this situation the over all bus bandwidth request stay at level 2 instead of level 0 which prevent power from being collapsed. This patch will not do bus scaling at overlay_unset() during suspend. CRs-fixed: 290583 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 47c54ff0e010190f0a11e7e2792642d70caa339c) Change-Id: I7061c82f24db6e70845a68d27d82dcded81b4b7f Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 1fbbeff4b9853054cca7d585596a16ae8bfb78c2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Jun 7 19:38:02 2011 -0700 msm: Display: Add sysfs entry to enable 3D barrier. Add code to configure the gpios lines using FPGA to enable the 3D barrier for the Novatek panel. Add sysfs entry to enable/disable the barrier.The barrier should be enabled only while playing 3D content. Change-Id: Ic8a96a1c2ef6473b9c95701dcebb19b43ed570e9 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 6a5a125bf8fca8b9dfe3b4cb10a536c148e81c77 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed Jun 22 11:49:45 2011 -0700 msm: Display: Add code to provide 3D panel information to UI. Add code to provide information to the user interface about wheather the panel supports 3D display or not. Change-Id: I1086b8deb2980ffcacae153ba5ac80c680e04eb8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e373013d44b00be5114ae6af212478a728eae68f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 6 15:27:33 2011 -0700 msm_fb: display: provide panel refresh rate information user space can use refresh rate of the panel when they get variable screen info as part of calling FBIOGET_VSCREENINFO ioctl. CRs-Fixed: 283750 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 9322f759f8437a816e44aa921a64fcb566defcfb) Change-Id: I658c08b4a0d06ca2c58a06a9dfba1f80ad541c9e Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit ef8a1203fa188df6f9c905b8dbaf13d640418d9c Author: Manoj Rao <manojraj@codeaurora.org> Date: Thu Jun 9 15:36:59 2011 -0700 Remove hdcp timer if the device is not hdcp-enabled. Non-HDCP enabled devices seem to have various problems when connected to various sinks. HDCP Reauth=>deauth, hdcp_auth hdcp_auth=>turn_on() which calls HDMI Core reset without informing the Audio QDSP this can do bad things to video playback on the HDTV Therefore, as surprising as it may sound do reauth only if the device is HDCP-capable Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit c105b2f0d55fa64c2c9e2715531c1bb6ff8b3de7) Change-Id: Ia7d9249dfcc6c85039304336b3f86b2e3194ec50 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 3b6b2347a2b87e96c566d8460c6e697622a759a5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jun 6 10:29:28 2011 -0700 msm_fb: display: add mdp writeback mode support dsi video mode MDP writeback mode has been worked for both lcdc and dsi comamnd mode. This patch add dsi video mode writeback mode support and unify interface to enable/disable writeback mode. Change-Id: I74898d7d80e9b4727eb417b0f1d831845d229c73 CRs-fixed: 287700 Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> commit bce29e40828551984b3326f13d210d338edde5b1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 13:01:04 2011 -0700 msm_fb: display: add both pre and post mipi dsi kickoff action Add both pre and post mipi dsi kickoff action so that vendor can add their own call back functions to customize their mipi dsi controller. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 30fda1e634d3be2d47330eb15fbbc2c4389460c1) Change-Id: I9c070246b5099664c62dc665dc27ccd8f69926d5 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 8f6405853a986f8e887d733b93386c705bae6c7a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Jun 2 08:52:46 2011 -0700 msm_fb: display: fix hdmi reset while playing moving When mdp writeback mode is enabled, ovoerlay0_done isr handler (executed at cpu-0) will call mdp_enable_irq() to acqure lock and enable mdp interrupt before kick off dmap engine. Meanwhile dtv thread (executed at cpu-1) had called mdp_disable_irq() which had acquired same lock already and waititng for overlay0_done isr handler to complete. Hence dead lock had happen. This cause system to reset. The patch have overlay0_done isr handler to call mdp_disable_irq_nosync() at end of handler to avoid dead lock with DTV thread's mdp_disable_irq(). CRs-fixed: 289140 Change-Id: I4b5ee7fcaf24b81a830320d1a47a9fe6b5095f7b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4efc6788d96403be44453d9d83ad0598fdf17795 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu May 26 22:30:57 2011 -0700 msm_fb: [HDMI_Compliance] FIX HDCP state machine Book-keeping HDCP State in HDMI State structure, to incorporate handling of frequent interruptions to the HDCP authentication procedure. Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Manoj Rao <manojraj@codeaurora.org> (cherry picked from commit 60e1a17d7c3221e7f9b958ffe46e3e736dd532a1) Change-Id: Ia30bbdabec6abdcfc2e17912d9d3506ab56283cd Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 884a69dc1ab07f18d5bec5a6868a7dc8ed0648c4 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Fri Jun 3 14:12:43 2011 -0700 msm_fb: display: do not restore control screen to main panel For MIPI dsi, no need to restore control screen to main panel at the end of video playback. (cherry picked from commit 64189b417cc545add2f496609ef11df6b491d177) Conflicts: drivers/video/msm/mdp4_overlay.c drivers/video/msm/mdp4_overlay_dsi_cmd.c Change-Id: Ie04cc7322fe7b53058f371941af5ba16c93174d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit a150e2043331160e9b996d1fead53d095ec1578b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:03:45 2011 -0700 msm_fb: display: disable primary and external vsync interrupt Clear PRIMARY_VSYNC and EXTERNAL_VSYCN interrupt enable bit at isr handler to disable vsync interrupt. This will mitigate un-necessary interrupt which will wake up cpu constantly and consume extra power. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 3700ca00ba19855081822169e144c87aa1d4953f) Change-Id: Iba7ef824baf4f95aa0fbb6bfa09446ca589f7648 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 297c5cba4110a4595f5e84082f5970c9a7f225d2 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 16 17:01:12 2011 -0700 msm_fb: display: turn off dtv timing generator first The correct way to turn off dtv timing generator is to turn off dtv timing generator first followed by turn off dtv related clocks. So move panel_next_off() which used to turn off dtv related clocks off after dtv timing generator was turned off. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 22cff13e1115962207254980acffac8d20bd9b26) Change-Id: I3c1c3518db28d80e5a5a31bfd5b5740dbba65ada Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 0ec06ef1a1ecf52b5408e4c0509bcbe0a70ead3c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 18 14:46:20 2011 -0700 msm_fb: display: add memory barrier to mdp Add wmb() to enforce mdp registers are updated before kickoff. Also add dsb() to mdp_pipe_ctrl() to make sure mdp register updates had been finished before shut donw mdp clock. CRs-Fixed: 288084 Change-Id: I056143511cfa7e397983b7465fcebff06ada8a3e Signed-off-by: KUogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 52c880d22b6e58f259f02f956357e4b8650102f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri May 13 16:40:55 2011 -0700 msm_fb: display: Wait for vsync support for DSI Video interface CRs-Fixed: 287940 (cherry picked from commit dfcf3ef2212026dfb53e87f571b294627f34a4a7) Change-Id: I0083bab592975576d511ef8f6070d38acc40d117 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 0f990641485d3340fb8bacd741eb6ccfcac51186 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 19 15:50:27 2011 -0700 msm_fb: display: fix mdp shared pipe allocation bug Both VG pipes of MDP are sharable which can be used as either graphic or Video. Pipe alloction need to keep tracking of VG pipe is shared by which two virtual pipes. There has a bug to keep correct record after several pipe allocation and free operation. This patch fix this bug during pipe allocation. CRs-fixed: 286350 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 4217a1dacbde157ce26238904450b091778fe872) Change-Id: Ife220d4f0f756aba62e3c30dc7ea52a1e4814ebc Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 978d4d142600a38bff5082b0ff2ea23fab5d2f91 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 23 14:28:19 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read EDID extension block. Read EDID extension block 3 and 4 as part of HDMI compliance test 7-1. Change-Id: Ia4578cc5c35f44c5708d9c4756600490df35ff67 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit d0244c6c479ee348493568556afe49ff9f80f2f0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 23 14:52:03 2011 -0700 msm_fb: display: remove un-balanced mdp_pipe_ctrl() remove un-balanced mdp_pipe_ctrl() called from both mdp4_overlay0_done_dsi_cmd() and mdp4_dma_p_done_dsi(). Change-Id: Ie47dbe02c7fa5938eef8414a6041b431e55cc986 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 89f874aa1fce2e9d4f488a5e37d226e3ecbe7cf2 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Sat May 21 16:21:26 2011 -0700 msm_fb:[HDMI_COMPLIANCE] Add HDCP node to externel common state Update the sysfs about HDCP keys. This read only attribute is used by HDMI Daemon to pass Audio, in case no HDCP keys present. Change-Id: If8db70e22f7b5163fa7a0cfbbdd27d8560f64df1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9e8929676679717bee2f16bad6611bb0b94a7780 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 07:34:52 2011 -0700 msmfb:[HDMI_COMPLIANCE] Read DDC Bus in 32bit alignment Read DDC bus in 32 bit alignment in case of failure Change-Id: Ib323dc9ca806b1bab22baa2612e2f470f5c2ecaf Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fc3c8c0bb9e685052b7edc8040167d643c63b3c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri May 20 06:50:55 2011 -0700 msmfb:[HDMI_COMPLIANCE] Reading correct bytes of RO' Read correct number of bytes i.e. 2 for RO' and increase wait for Authentication sucess interrupt to 2 sec. Change-Id: Id08a8d74a0b681dfce6d7635d280e5c31b7acbc3 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 13de0ca3217e379d2c2574b0f6f81ebe3400a13f Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 13:14:53 2011 -0700 msmfb:[HDMI_COMPLIANCE] Correct sequence of events on HPD connect On HPD connect, read EDID, turn on HDMI core, send CONNECT event to UI to enable DTV clocks, then start HDCP Authentication. For HDCP reauthentication case, do HDMI core reset/programming before enabling HDCP authentication again. (cherry picked from commit 46ad60f0cff5c2222ded7a639f337417e59b2375) Change-Id: Ie6e8378aeca07644c69bbfede61d457446c88f5a Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 3c809bfc5abd0c13a50ad773268efc1bbe442d8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 14:25:28 2011 -0700 msmfb:[HDMI_COMPLIANCE] QDSP ON/OFF kobject events to userspace. Set two new kobject events i.e.QDSP ON/OFF events to userspace. QDSP ON is send only after authentication sucess. QDSP OFF is send on HDCP Failure interrupt or on HPD connect. (cherry picked from commit cd0bd24a3fffff873821618009389378372fb73e) Change-Id: I700599b4926770dc7602f970a4bd5c30dc457969 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit e60b4d1c7ba520319c5ddc60b68b8fbe1a6c72a2 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 16 13:14:11 2011 -0700 msmfb:[HDMI_COMPLIANCE] Fill BLACK SCREEN during Authentication. Fill VG2 pipe with Solid Black color at beginning of authentication. Unfill VG2 pipe to transmit the original frame on HDCP authentication sucess. (cherry picked from commit 44a306a8c4d4e1ca66750c9ebc17ef21ab482d97) Change-Id: Ie3fbcb42e8b313a1f0861df324c10e370fdfbb2f Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit c2a00f21c60eb88ed17e348ae947fdffcf7aedaf Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 28 18:17:49 2011 -0700 [HDCP-COMPLIANCE]:HDCP: WORK QUEUE instead of kernel work queue Not using Kernel global work queue to avoid frequent watchdog barks/bites. Instead creating a local work queue to handle all work items belonging to HDMI/HDCP driver. (cherry picked from commit 8dae3d06d1c41aa2de609056811646ff50e77791) Change-Id: I793b3aee06cac0bd62158c55ee9233dadf51c873 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit fa6ee4594caaa7cf28fd33bcfb8a62165602224e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:56:34 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:HDMI/DVI Sink Detection. HDMI/DVI Sink detection based on reading IEEE id of Vendor Specific Data Block in EDID. Required for HDCP-1A-09 and HDMI-7-33 compliance case. (cherry picked from commit 2c7864a358d63b3ed2681a8a0d45bea7da7f85c0) Change-Id: I0b054dcfb6e98b635cb4d8b6a14f6541d97f3287 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 199f5f94edd7c6c127dd4b402cf7866e641a3396 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:28:14 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance 1B-06 Verified that HDMI Transmitter considers it a failure of the second part of HDCP authentication protocol that BStatus: MAX_CASCADE_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit 62a5ab8164b5dd55d358b31cdd333597e2e057ff) Change-Id: I96b1d3c3ae55dd427c7270d419bbece05917c590 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 33381e73bfa8c51bf91e04d3e5f6fe0930addb9e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Apr 7 13:27:49 2011 -0700 msm_fb: [HDMI_COMPLIANCE]:Writing correct bytes on DDC bus. Writing correct bytes of An and AKSV's on DDC bus. (cherry picked from commit 065b9f72784c2686aca0233e8e510229efd329c4) Change-Id: Icf3c87bce4102fc1d24931f8dde15478bf71fd19 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 57c3657ebbd5273c1f84f28f460482a68b50c968 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Sun Apr 17 10:48:05 2011 -0700 msm_fb: [HDMI_COMPLIANCE]: Verifying V' in Authentication Part 2 Reading value from HDCP PORT 7,8,9,10 and 11 and writing it back to HO,H1,H2,H3 and H4 portion of HDCP Hardware registers. (cherry picked from commit e814b7842af3b7f15047f3f922c1f1648bb2705b) Change-Id: I524b700973062f51b123f100dc115b5c873d7346 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 1fdcac8e3387d1f8435090fae2bffeec3eae6970 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 11 10:21:06 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1B-05 Verified that HDMI Transmitter considers it as a failure of the second part of HDCP authentication protocol that BStatus: MAX_DEVS_EXCEEDED bit is asserted by the downstream repeater. (cherry picked from commit ccdb0372092c3a359754897ebec2bb8be37d6a3e) Change-Id: I02ee8d0ce604cda993f90158282544afb7490cb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ffe43137a4024e0941417d19fb2e51946c1f4e0d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Apr 18 14:24:59 2011 -0700 msmfb: [HDMI_COMPLIANCE] Disable HDCP H/W Disable HDCP H/W block during deauthentication (cherry picked from commit a13f69fc1fdc0ccb8bcedc0001f39f2b195652bd) Change-Id: I82fa0248329d56f0662785b1ff7b35ad94e657d2 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 73d05af290793eb0da55a556c4bbaa28c9706dd8 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 12:09:45 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance DVI mode 1A-09 HDMI core Audio setup should not be done in DVI Mode. Audio should route through Headset/Phone Speakers in DVI Mode. (cherry picked from commit 2c1204470d5e7376d89a7a1f69c788d79cdc53c3) Change-Id: I4ce8dc81a137a3646c9d508d682f3ef05b3bc435 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 645ebc3ec6214d0d9fe32a32fa7e10558c74af6b Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon May 9 11:58:38 2011 -0700 msmfb:[HDMI_COMPLIANCE] HDCP Compliance case 1A-01/1B-01 ON HDCP reauthentication process, first do HDCP deauthentication and then reset/program hdmi core again , rather than just re-doing HDCP authentication only. This will reset HDCP encryption engine completely and remove "Encryption Enabled prior to reading RO'"error on Quantum Data BOX. (cherry picked from commit 829c88376705c6b58e62dd93e9802ffb905ad49c) Change-Id: I55d1ee5918b05279abcfe63ab74d172e5e8671b5 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 5208a4caa32f8775a10c1567d2749599a2fb839c Author: Kiran Kandi <kkandi@codeaurora.org> Date: Tue Feb 15 10:21:40 2011 -0800 msm: 8660: audio: driver for compressed audio over HDMI. This driver sends compressed audio IEC 61939 bursts in IEC 60958 Frames. Change-Id: I6cdd36efe643b0bdaec0436e57a6364076d47239 Signed-off-by: Kiran Kandi <kkandi@codeaurora.org> commit b8b834d4da42df635254a5b656e5579bf9237f73 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 28 15:19:07 2010 -0800 msm_fb: display: Add support to notify display updates new ioctls are added to notify the user space about the display updates and idle. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 7ff0f5166ed9f2ff4f1a37b8bce2501a2029905e) Change-Id: Ibca9d3a2427f484227a6083b6ef11fbb7555cecc Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 3ad826161f59f6531afa19412f3c8b2f2d0362da Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed May 18 11:10:11 2011 -0700 msm_fb: display: Flush RGB pipe when solid fill mode is used Fullscreen applications can request the driver to configure the MDP back ground pipe to use solid fill mode so that the background pipe will not be fetched by MDP and it saves the bus bandwidth hence the total system power. This requires the driver to explicitly issue a register flush on the background pipe when the configuration changes from regular fetch to solid fill mode during overlay play. CRs-Fixed: 270713 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d89efdbbdf521f05a7b9f191e98914b40bc1962d) Change-Id: Ie5cbe004768986dfd5f53d4cbdec9c28506fac03 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 0cb3d75a60e141d786e68fdb713382620d39e18c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 5 08:43:03 2011 -0700 msm_fb: display: waiting for dmap_done before kickoff Add waiting for dmap_done interrupt to both mdp4_dsi_cmd_overlay_restore() and mdp4_dsi_cmd_kickoff_video() before kick off overlay blending engine to avoid two consective kickoff of overlay bleanding engine and only one dmap_done interrupt after that when write back mode is enabled. This cause mdp_pipe_ctrl(ON) called two times and mdp_pipe_ctrl(OFF) only called one time which casue mdp clock and vsycn clock can not be shutoff during suspend. Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> (cherry picked from commit 41e0dcf972dfa5892169d9a03d6d1de9029a7556) Change-Id: I0c3fc7d4ebcaada2732eced5ea84b94f1a2d9a0b Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 66f2c07c8a78044fb26cc853702adfc106c99209 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu May 5 18:42:50 2011 -0700 msm_fb: display: increase backlight levels to 100 This is to improve the quality of ABL. Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit d8df7faccb2ec330eb859179ed0db07313626b7c) Change-Id: I8c566c3dfa8c638e370aba384b80936a03bee88d Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 231a253c7248971c0a3881ec2fefea45ab20b775 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed May 11 09:46:07 2011 -0700 msm_fb: display: mdp_pipe_ctrl called symmetrically mdp_pipe_ctrl() only need to be called when write back mode is not enabled at mdp4_overlay0_done_dsi_cmd(). Unsymmetrically mdp_pipe_ctrl() called will cause mdp clocks can not be shut off during suspend. Change-Id: I1783a736c86e5a36a2edfb6b266832e3d691be7b Signed-off-by: kuogee Hsieh <khsieh@codeaurora.org> commit 64eaf4972c8dea0368d3a4113d6b19a058fc3b3d Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 27 11:58:52 2011 -0700 msm_fb: display: lower the mdp clock during clock disable on halcyon MDP MSMC1 voltage stays high if the clock rate is greater than 122Mhz and causing to draw more power during mdp is idle even after disabling the mdp clock. Lowering the mdp clock after clock disable so that MSMC1 voltage goes down and restore the clock back to same value before clock enable to save power when MDP is idle. CRs-Fixed: 285714 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit e80420254616b39d0c350dcadf8f6954394e7647) Change-Id: I84df4bc1ca3b0df34d2fab559cace1ca740f2702 Signed-off-by: Sunil Joseph <sunilj@codeaurora.org> commit 1323385de767733a659d397ca487e578315d887a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Apr 5 11:44:52 2011 -0700 msm_fb: display: wait for next vsync at overlay_unset At pulling mode (lcdc, dtv) panel, wait for next vsync during overlay unset to smooth transaction of pipes. CRs-fixed: 276786 (cherry picked from commit 565ecc608d46993c4afe6dd15c95942c75f1e932) Change-Id: I908ffa60cd820a47c49d25b1732f7f0f0f1748b0 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit 9d7f8859560ac2f3c6f84f35e28f24b33809ccb0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 13 15:05:19 2011 -0700 msm_fb: display: decrease mdp_timer_duration value To improve power efficiency, mdp clock need to be shut off as soon as possible after screen updated so that TXCO can be shut off too. Since mdp_timer_duration control the timing to shut off mdp clock, it need to be kept as shorter as possile. Decrease mdp_timer_duration from 1 second to 0 ms for MIPI DSI interface. mdp_timer_duration stays at 1 second for legacy MDDI interface. CRs-fixed: 282857 (cherry picked from commit 605a44c18620ed364e53d1e4cc0f03fd2f815029) Change-Id: Ia1c487a95cc7fba7aee2b8d9dc522296446a7fb1 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit ad6004f89f6972f513b0a71cff515f670db661c7 Author: Raj Kushwaha <rajk@codeaurora.org> Date: Wed May 11 12:11:41 2011 -0700 msm_fb: display: move footswitch out of mdp_pipe_ctrl() mdp_pipe_ctrl() is called frequently, move footswitch mechanism to more proper place and have it enable always. (cherry picked from commit cf66ffdba39e8ac83e82a19ef8ebd0f9f6f5a32b) Conflicts: drivers/video/msm/mdp.c Change-Id: I88901c3b3640dd1030246de0dbeee3109787bc23 Signed-off-by: Raj Kushwaha <rajk@codeaurora.org> commit aa53b629ae7c52ffaa50934a87a48e2887357d85 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Apr 20 16:26:07 2011 -0700 msm_fb: display: use maximum performance level for interlaced content mdp is going to underflow if maximum clock is not used for interlaced videos to work around this using the maximum performance level for interlaced videos until the root cause is identified. CRs-Fixed: 283652 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> (cherry picked from commit 5e744543c3f81650a1cea1402c58c01ae6ee421d) Change-Id: I0d16f22a98e25b8366b6c3eaf60cd6277f5a76f1 Signed-off-by: Shruthi Krishna <skrish@codeaurora.org> commit 754ac15b2a298b38873fadc47ec4b89602aa71df Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Apr 29 11:08:50 2011 -0700 msm_fb: display: clear dmap eanble bit before shut off mdp clk At MIPI dsi write back mode, mdp clock was shut off before dmap interrupt enable bit can be cleared at dual core environment. This cause mdp interrupt line keep asserting. Fix it by moving mdp_pipe_ctrl() after clear dmap interrupt enable bit. This patch also move footswitch out of mdp_pipe_ctrl() and have footswitch always enabled. Change-Id: I8beb66da6afb606da9460f5c8027f298227bf0aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2c5fc636989ba248384240b8f31ff82791790a23 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Apr 6 09:20:08 2011 -0700 msm_fb: display: mipi dsi read function Re-write MIPI DSI read function to allow it to read more than 4 bytes of data from client. Change-Id: I016bb0accfd71526a32f96878e64c439f2e53537 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 58979b79f5ca8211aac7faad413934ee8f09bf8e Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Feb 25 12:23:06 2011 -0800 msm_fb: Disabling DTV timing Generator after hdmi off. DTV timing Generator should be enable for updating Audio Packet Control(0x0020) and Audio Configuration(0x01D0) register in HDMI core. Need to checks Bit[0] of both registers before doing the HDMI Audio Shutdown. CRs-fixed: 274278,274284 Change-Id: Id15e4bcbddea4a7c0c9926f5420c0b639ab599bb Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9e0698f6708ed4da35b2da7281fb7a5044ba0801 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Mar 23 11:38:42 2011 -0700 msm_fb: display: Configure MDP clock depending on dsi_pclk rate. In MDP 4.1, the MDP core clock should be greater than 1.5 times the dsi_pclk frequency. Add code to set the minimum frequency for MDP core clock depending the MIPI dsi pixel clock frequency. For LCDC panel, add code to set the minimum frequency for MDP core clock to be atleast 1.15 times the pixel clock. CRs-Fixed: 279386 Change-Id: I065bb0eb13c68ee191c8693fe5ca73b3587c1edd Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 70b65dca8d88287a259f88591255f3725a50026d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Mar 31 18:21:47 2011 -0700 msm_fb: Display: Fix MIPI DSI video mode configuration settings Modify the video mode settings according to suggestions from hardware team. Enable High Speed mode during horizontal blanking period. Configure Novatek panel to run at 60 fps in video mode. Change-Id: I9e68f1175caece135ac4074fcc35a907f8006158 CRs-Fixed: 279535 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 68848ff4fc21b2dbd068e29ddb391a088eba2137 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Dec 21 13:48:40 2010 -0800 msmfb: msm_hdmi: extract 3D information from EDID Header Extract 3D presnt information from Vendor Specific Data Block from EDID header extension. Change-Id: If5d94382a9c610f7a241a91ef5c61801366d5e9c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 07099e1ef27c0dd6bc6bea859211bb36239d53db Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Fri Mar 11 13:33:23 2011 -0800 msm_fb: display: Remove RGB performance level vector With RGB performance level vector requesting for performance level 1 for all RGB type surfaces, power consumption increases. Performance level 4 is sufficient for single WSVGA size RGB buffer scanning. Remove RGB performance level vector and add check to request performance level 4 for signle WSVGA RGB buffer scanning. Change-Id: Icfb6f00799fc510d23a6f048fc4729471576d00e Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit c85505b79eb8b10c0bba8ed6891ded008588a55c Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Thu Mar 31 12:18:02 2011 -0700 msm_fb: add DTV vsycn push Add DTV vsync push to block on vsync so that overlay play calls can synchronius with UI push. Change-Id: I382c16fda3846f983b00f175619d18d7ddc5e762 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4f6b6e3fdee8ed083e609204bbd05d99923104ac Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 30 17:12:36 2011 -0700 msm_fb: display: add a flag to know the rotated source content expose a bit in the flags field so that driver knows whether the source content is rotated, this is used by mdp to deinterlace the content in horizontal direction for landscape video if the video is rotated portrait. CRs-fixed: 281389 Change-Id: I303f6c5f03763b9f68d1f7388839764a69bb428f Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 7c0c2fe5ac873e185dfbad153bbc5d489b0a8906 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 30 13:39:01 2011 -0700 msm_fb: display: turn dsi clocks off when no display update Turn dsi related clocks off after have no any display updates for a second. This is feature for screen static update. Change-Id: Ifa25a6af18c78ec6ee619347f124e5600831e173 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8ac5d4ab983a05ec976a391234a74bb9ceae4807 Author: David Ng <dave@codeaurora.org> Date: Fri Apr 1 14:37:50 2011 -0700 video: msm: mdp: Optimize mdp_pipe_ctrl handler Optimize pipe control handler by aborting mdp block power control check within loop earlier. Also, reorder MDP_BLOCK_TYPE enum to move high likelihood enums near the start to optimize value check in a loop. Change-Id: Id656f005863bebf7fc9d4e8543f5161b25a9b5e8 Signed-off-by: David Ng <dave@codeaurora.org> commit 4f5de8242637db49dfd7e96499dc6866dfad084e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 10:36:18 2011 -0700 msm_fb: display: send dcs commands at video mode during booting up Add capability to send dcs command at video mode to initialize display panel during booting up. Change-Id: I826a2045b9b883c207e450c95d76dbf341de026f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5b3193d6655a955ec0dfc6af7583b15dee5053ca Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Mar 18 19:45:13 2011 -0700 video: msm: display: Bandwidth requirement for 3D display Increase Bandwidth requirement for 3D display to avoid the blank display CRs-fixed: 277304 Change-Id: Iaf3ac31b17521320cd2b7b6a5e82a7fa9fe07819 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit 869aac9b3eca7661e13147063e15c9996056c5ea Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 08:59:33 2011 -0800 msm_fb: display: enable/disable DSI irq dynamically Enable/disable DSI irq dynamically so that the power grill can be shutdown. Change-Id: I6f4a4a3f740743804ee720712b4c0f2caa6e20a3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 86bacb945b5317d6600abc7206c9b5ad3a1c2b8d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 29 16:43:02 2011 -0700 msm_fb: display: check x offset before enable mdp write back mode When destination x offset is not equal to 0 will trigger dsi command mode interface hardware bug. SInce write back mode will introduce bus accessing overhead, only enable mdp write back mode when destination x offset is not equal to 0. This patch also add writeback statistic. Change-Id: Ia97d2c4d8080e8b0ca9f61d3d24fc3f13d106f16 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ad9506b0811e31107fcbefe437ac2c5390ddf3f9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 29 18:09:17 2011 -0700 msm_fb: display: Fix MIPI DSI Video suspend/resume issue Fix MIPI DSI Video suspend/resume issue by enabling MDP footswitch during device probing. Change-Id: I3461e4c69f24d09a84bcf9d626a4212e0434be87 CRs-Fixed: 278357 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cd4d51d521d351649ad91695069fac6842052a61 Author: Jilai Wang <jilaiw@codeaurora.org> Date: Tue Mar 15 15:52:52 2011 -0400 adv7520: add hdcp hw support check Add hdcp hw support check since fluid 7x30 p5 devices have hdcp disabled in hardware. This will disable hdcp in software. Change-Id: Icb8afd23f06a97ba549522d8af98c7968c172e1c CRs-Fixed: 272573 Signed-off-by: Jilai Wang <jilaiw@codeaurora.org> commit a9e0558e9f28c19733b3f40d404c26d64d87fe78 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Mar 28 09:13:17 2011 -0700 msm_fb: display: add panel type check before disable tear check Check DSI panel type and only disable tear check logic and free vsync gpio if it was a command mode panel. Change-Id: I7b075d75cbf75d3b20bba3e6a52d1435133c7aa2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8e7a0f2d0a1a9cf51bf509cdb3642dd5c20c39da Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 25 15:48:51 2011 -0700 msm_fb: display: do not check dma busy while in video mode DMA busy flag is used for DSI command mode (push mode) to indicate DAM engine is active to prevent double kickoffs.It is not necessary for DSI video mode to check this flag since it is pull mode which has internal timing generator trigger DMA engine on every vsync. Change-Id: I2420b525cffcfda110e25d0295e66fa28bb2e423 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a0a73f93763280b7129314d95c130ea42c8d87a4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 22 11:35:59 2011 -0700 msm_fb: display: use 720p tile dimensions to decide performance level decide the performance level based on the samsung tiled format aligned dimensions for 720p resolution otherwise it will end up using 1080p clocks with overlay when the input video is rotated. Change-Id: I68f71dc2e6a0c74b5324af945d58cf1dd3f1f33b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b73ec6089ff89a43e31c48ca696c264d26294d6 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 23 18:08:35 2011 -0700 msm_fb: display: add dynamic enable/disable mdp write back mode Add dynamic mdp4 write back mode enable/disable capability on top of existing mdp4 write back mode implementation to provide software work around for MDP4 hardware bug between DMA_P engine and DSI command egnine. Change-Id: I2de277e2a5b31335907088862279f4a5c7fc60e6 Signed-off-by: Kuogee Hiseh <khsieh@codeaurora.org> commit e924f3c470540de586acdf4cf03bc91c0ea3f653 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Mon Mar 21 16:55:35 2011 -0700 msm_fb: display: Configure MIPI DSI clocks using panel settings Remove hardcoded clock dividers and other clock related settings. Remove support for mxo clock. Add code to generate the clock divider settings using the panel frame rate, format and porch settings. Change-Id: Idfe301d389d5f71d09b36e6957e473bd53be009b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 9ffa68409df9960b4cb9303bba0fa673dd1c9215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 24 08:33:41 2011 -0700 msm_fb: display: fix mddi overlay interrupt handler MDP4 write back mode provides work around for MIPI DSI command engine hardware bug. But it breaks MDDI overlay interrupt handler accidently. This patch fixs MDDI overlay interrupt handler. Change-Id: I759a26e64202b2bcdf359e76d09f1cbff8343769 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f4a2361bbaad07a9e7eade0e42a1a0d20bd81914 Author: Zhang Chang Ken <kenz@codeaurora.org> Date: Fri Mar 11 15:41:04 2011 -0500 msm_fb: display: AUO WVGA LCDC Panel Adding driver for AUO wvga(480x800) 3.61" lcdc panel. Activated for msm8660 Fluid platform revision 3 and up Change-Id: I528894540ed1990b7d0e8ea763fd9c54c70cf276 Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org> commit a10db6ff521dd54b213533f4093565bfa1275761 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 9 09:48:12 2011 -0800 msm_fb: display: shut off dsi pll with correct register setting To prevent power from leaking, dsi pll need to be shut off with correct register setting sequence. This patch also fix the timer configuration used for turn dsi related clocks off when no screen update for one second. Change-Id: I33452bc02fb33ef3c780b9f9aa0e840f90f8598d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c3a958f6c0573ba0bce94df40e50c2b5550645fd Author: Wentao Xu <wentaox@codeaurora.org> Date: Fri Mar 18 15:28:37 2011 -0400 msm_fb: display: not to register platform device from AMOLED panel driver The platform device is already registered from board file Change-Id: I469b70af30dffc5a8e5f08516d942f441ff21f89 Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit 79e20ca76f1db3c2861c28681f0e16cb97d3ccc8 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Mar 3 13:45:31 2011 -0800 msm_fb: display: add MDP writeback mode to DSI panel Implement MDP4 writeback mode by using double buffers for dsi comamnd mode panel. Write mode for MDDI has no changed (single buffer). Writeback mode is enabled at boot up. This patch does not provide siwtch between enable and disable of writeback mode. This patch provides software workaround for the hardware bug at the interface between MDP4 and MIPI DSI Command engine. CRs-fixed: 277310 Change-Id: I28d4dab3b05bda02e2def474644ed045776d0241 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a7c0fe5e2f435e45d2ba1ac1be8b310681a3ad18 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Feb 8 17:32:12 2011 -0800 msm_fb: display: Fix LCDC underflow by downscale parameter validation Fix LCDC underflow by downscale parameter validation against mdp clk and panel clk frequency during overlay_set. CRs-Fixed: 271494 CRs-Fixed: 279382 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I363a87777311b66e5acc2c29afe8da6b2287694a commit a225d0e971254d2c49fc8d08537d22875b83f46a Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Mar 16 15:30:01 2011 -0700 msm_fb: display: handle histogram during suspend/resume disable the histogram irq and clear the histogram registers during suspend and re enable them when resume. CRs-fixed: 280419 Change-Id: I54154a89c7a2f92dba8ee9e99943e61279b29c44 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 54afe26ae0f0800584d19aa9495bcbd48c52440d Author: Manoj Rao <manojraj@codeaurora.org> Date: Wed Mar 16 10:08:43 2011 -0700 msm_fb: tvout: Removing mutex_lock in ISR CRs-Fixed: 278755 Change-Id: I6e5e13edc9048757c87f57f8579776d7ce878bb5 Signed-off-by: Manoj Rao <manojraj@codeaurora.org> commit b35b92b71ded97db1d1e2b8fe34c45bfbf5ab6fe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Mar 20 12:19:32 2011 -0700 msm_fb: display: synch mdp irq enable/disable Add spin_lock() and spin_unlock() inside mdp_disble_irq_nosync() to synchronize with mdp_enable_irq() to prevent race condition from happenning. Change-Id: Ieb76a5a920d7d92b627108d033e34874c7acdd82 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3b74ce77d0cebd282fb6b17c959146db9620383f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Mar 15 16:46:52 2011 -0700 msm_fb: display: remove redundant call to disable irq in off function CRs-fixed: 278326 Change-Id: Ib0ffca8862aa34438ae8575ea3b9ed21cf7418f6 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit df448ca39305b85fc318c16d067e1cb6ba386a0f Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Sun Mar 13 19:41:51 2011 -0700 msm_fb: display: Fix MIPI DSI driver initialization sequence. Change-Id: Ifcb67a166b68db45d6d3b14ba9cc5caa48316ee8 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit de64d12d9e0806e630e148d3da7f9d390a92db1a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Mar 4 17:18:18 2011 -0800 msm_fb: display: Remove secure_io to MIPI DSI register access. Only clocks belong to MMSS_CC need to be accessed by using secure_io. Secure IO access for MIPI DSI register region is not required. Use normal io access using readl/writel to MIPI DSI registers. Change-Id: Ifc49b1812efa0fbe82d48bef7f5054064f55043a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 00c6dbec219e11a71bc0c077e53779d97365e5c7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Mar 7 13:34:56 2011 -0800 msm_fb: Reading Ro' from correct HDCP port offset Reading RO's from correct port address and offset and start HDCP reauthentication again,in case of authentication failure. CRs-fixed: 275796,276921,277082 Change-Id: I984054384cedbcc96fb8cd68b4d3f533ff33a969 Signed-off-by: Abhishek Kharbanda<akharban@codeaurora.org> commit 715b3fe8316555da278042f6371c3bc9a0dcea05 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Mar 8 18:31:10 2011 -0800 msm_fb: display: Enable secure IO access and fix DSI clock settings. Read back register value is not updated properly for MIPI DSI clocks. Revert back to the older method of configuring the dsi core and dsi pclk settings. Modify clock control block access to enable read/writes using secure IO. CRs-Fixed: 278206 Change-Id: I5d5503d39ddd5d2ae0fa0dbdaa592686ae5e5ffe Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit e3cc2ce88868ee28f9ba4268b75e5a7bd671953a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Mar 8 15:00:36 2011 -0800 msm_fb: display: Log cleanup for LCDC Samsung WSVGA driver Change-Id: Ia0372db34b3c9a74202ef692d9c30c5fd43f6a6b CRs-Fixed: 275930 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d4b31a95cc9477c47fe9b1c5b5c96ddfb075da24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Feb 25 12:09:06 2011 -0800 msm_fb: display: Call pm runtime apis with the correct fb device use the same frame buffer device for all runtime pm apis calls. Change-Id: I2dccf69f6f9ed115fbeceef0636e39bbdfd5c67a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8ae66ceb26dd7baecc85d2b334029903cb7a1bb8 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 8 12:42:21 2010 -0600 msm_fb: display: Samsung AMOLED PenTile panel Adding driver for the Samsung AMS367PE02 3.7" PenTile 480 x 800 16.7M AMOLED panel. Enable LCDC auto detect when MIPI detect is enabled Clear regulator handles after they are released to avoid crashing Change-Id: I6abf705fd19d5baa429fb2a7c47e4299f73c6b67 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d91951d2c7feec7b81b814434848cc28e8a167c0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 17:55:09 2011 -0800 msm_fb: display: Fix dsi command mode compiler error Remove un-necessary dma_busy_comp and vsync_start_y_adjust to fix compiler error. Change-Id: Id56568bb3d4cdbe091dd09584bf6d26183812e1d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 73b51ce75cba3caa4ac511503f46705a356896af Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Mar 2 15:51:27 2011 -0800 msm_fb: display: add support of sending DCS command at video mode At MIPI video mode, set CMD_MODE_EN bit to enable command mode engine before sending DCS comamnd to client (display panel). Change-Id: I6462eef5c3c378176e8df61d3a5108148cda3047 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5ed1dca7d697327a9ff9dbbae45fb20e73a2c010 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Mar 1 14:47:36 2011 -0800 msm_fb: display: initialize comp struct at pipe_alloc Initialize per pipe comp struct during pipe allocation. Change-Id: I48c919b3b520cfaf12f5b6fa713fde9f5fb866d0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 03dac3988c186dfd125b5f07501e2e3fe3d7b6e4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Feb 23 08:54:33 2011 -0800 msm_fb: display: add dsi clocks control Add runtime dsi clock control to turn dsi related clocks off after screen update and turn clocks on before screen update. This patch also provide clcok off debounce mechanism by using kernel timer. CRs-fixed: 276211 Change-Id: I68f4cc48ba4887d2240d96936674eb460618de1e Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 74ce95472814e2561ff258668ba6c9febdf54556 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 14:46:37 2011 -0800 msm_fb: display: add support of DCS backlight command Add backlight control by using inband DCS set backlight command. Transmit DCS backlight command to client while DMA is not busy. CRs-fixed: 275660 Change-Id: I6954bb6e86d15a8f4076d9bb576667669459725c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2245b9e330cd54ac4e4580a5208da1f61209c340 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:04:47 2011 -0800 msm_fb: display: remove extra bracket to fix compiler error Remove extra bracket to fix secure_writel compiler error. Change-Id: I11ebda03004dd0a7fea648cb32675c8dc456bc47 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 252d99d19002242dfb78b4b1c1ac604787c3d83c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Feb 20 16:01:28 2011 -0800 msm_fb: display: check mipi panel mode before enable vsync Checnk mipi dsi panle mode first. Only enable hardware vsync mechanism if it was command mode panel. This patch also remove the unio declaration of lcd_panel_info and lcdc_panel_info of msm_panel_info struct to fix vsync configuration over written panel's porch configuration. Change-Id: I1d0806df04b884e1fb5a596baedd4b5f3630d01a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit ab42fa9b082706916123315e5647789b7f01a3d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:55:24 2011 -0800 msm_fb: display: Fix MDDI CRC Error handling condition Fix MDDI CRC Error handling condition to avoid looping of MDDI reads infinitely Change-Id: I4e65b635fc4041213e544f64919a9a6f074b366e CRs-Fixed: 275229 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 38c908beabb5f40225314642d88d09e299806b6e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 22 10:53:15 2011 -0800 msm_fb: display: fix a typo in using the correct packing format Change-Id: I0f522ea04ece89c6f387d22634d4d33139f2a631 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4a3fed28675ebf7bacd209a8baea84265dd664c2 Author: Matt Wagantall <mattw@codeaurora.org> Date: Wed Jan 19 15:56:14 2011 -0800 msm: 8x60: Use secure_readl() and secure_writel() for clock registers The application processor is unable to access MSM_MMSS_CLK_CTL_BASE register directly. Secure APIs must be used to read and write all registers in this region. Change-Id: I2906d3b8e28b45ff896a41103fecce9491b5a991 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 57ea567a20d102404287eb09ee2dabeae04093c1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 18 15:06:30 2011 -0800 msm_fb: display: mitigate lcdc interrupts Primary vsync interrupt are always enabled which causes interrupts are generated at every 16 ms. This patch will only enable ingterrupt when has frame push. Change-Id: I062bf19a9b56ef6fea4c4374d8751625bbb86a42 CRs-fixed: 275999 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c315489fbe1a75c52b968c4a237d9f7f4334336f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Feb 7 16:58:43 2011 -0800 msm_fb: display: add chimei panel driver Add Chimei LCDC panel driver. This patch also incorporate backlight control through PWM of gpio-24 (channel 0) of pm8058. Change-Id: I2e00d6ce0f6a9858a56d929c660776fcbfc54732 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 030612a798461326d82d5fab950ca2a071d057a1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Feb 17 18:21:25 2011 -0800 msm_fb: display: Enable S/W Vsync handler only if MDDI clock is enabled Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I3800f7b27f7730cd9e60e37b0f060ede9f79c83e commit ac9fd472e5832a56d20e06654e5a8fd04d3583e9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Feb 14 14:16:51 2011 -0800 msm_fb: display: Fix vsync timer deactivation by shutdown flag Fix vsync timer deactivation issue resulting in timer handler run continuously during suspend/resume by using a shutdown flag Change-Id: I71806b491d15b454b1e56f01e78223e26df7062b CRs-Fixed: 274480 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 52f6889f672d53e9c80cfde8335fde65e1022fff Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Feb 4 16:30:31 2011 -0800 msm_fb: display: add support of mddi MDP_OV_PLAY_NOWAIT Add support of mddi MDP_OV_PLAY_NOWAIT mechansim so that overlay requester can issue multiple frame updates followed by a single DMA kickoff. This patch also remove 10 ms timer from UI kickoff which try to consolidate multiple frame updates into a single kickoff. This is not necessary at NOWAIT implemention since both frame update and kickoff are controlled by requester totally. Change-Id: I901054eba78d946549b05e667dd580a95ee18a87 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e9bfe26bd022597402b9070c41fe89c2040a7227 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 31 10:01:13 2011 -0800 msm_fb: display: add 3D side-by-side to interleave support Add 3D side-by-side to line interleave conversion by introducing MSMFB_OVERLAY_3D ioctl to allow user to change frame buffer's width and height at run time. Change-Id: I5801425a1f03ceedf69522c28780bb200ab63c57 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e908e0c469fb2fa7dc7ecb659158d91d082b5d08 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Feb 8 18:05:10 2011 -0800 msm_fb: display: Fix incorrect fail in tvenc_probe feature pm_qos usage correctly with CONFIG_MSM_BUS_SCALING to avoid incorrect fail in probe call. Change-Id: I5677e0d10fef30ef1f41a87e6415782777612d87 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit ec2908a70273dec14893222233530f7cf5664a1f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 11 16:30:28 2011 -0800 msm_fb: display: Cleanup of Log messages Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Icc911682233d48e3dcae0b78e8aa0138fd3af027 commit d034fc1101365fd5593b8dc1da66da63d8a5f61f Author: Harshad Bhutada <hbhutada@codeaurora.org> Date: Fri Jan 21 19:42:49 2011 +0530 msm_fb: display: add 3 frame buffers support Add triple framebuffer to improve display performance Change-Id: I132c74f11f5ddcee62d12599c85dd615e14235d4 Signed-off-by: Harshad Bhutada <hbhutada@codeaurora.org> commit f5593a5556724456bb71754554e06ce91690108f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Feb 10 09:56:05 2011 -0800 Revert "msm_fb: display: soft reset mixer1 when external under flow occurs" soft reset mixer1 has side affect of blank display on primary intermittently hence revert this commit until the corret software work around is found for mdp pixel shift hardware issue. This reverts commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23. Change-Id: I75e319461e474394cdc35d3f5dbbd2f7502107cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 9ad8eed3ad1e5fcee31bafb36f89fc27c8587335 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Wed Feb 9 14:54:06 2011 -0800 msm_fb: msm_hdmi: turn off hpd on boot-up Ensure hpd is off on boot up, so that the power on hdmi rail will be zero. Change-Id: I80212511d30d58e4f65ee938621ee959e5623a79 CRs-fixed: 274396 Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit 65ec3d97b4df9de23c46f82cf62f1ec32c4d8c51 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Feb 8 10:03:49 2011 -0500 msm_fb: Calculate smem size with correct bpp value Always the bytes per pixel for the framebuffer format to calculate the shared memory length, not the panel. Change-Id: Ief3adced9c8f0265babfde44b9ca5c40af2423e4 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 52a629f3ccc8caf40b2a4796b7287f1bef9b3096 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:57:20 2011 -0800 msm_fb: display: Use solid fill attribute for no fetch in is_fg mode. In is_fg mode, when alpha is 0xff, use solid fill attribute to set no fetch, also set constant color to black for blending. With this FB is not fetched and we could save bus bandwidth. Change-Id: Iff88269c9e00bb7b6277cb4368c3d0efbbfe5257 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit df9278b93dbba60b8cdb8f043d851f21508a8764 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Jan 26 18:31:55 2011 -0800 msm_fb: display: Add performance level for RGB buffers To request highest bandwidth on SMI/EBI for RGB/VG pipe, this change adds performance level for RGB buffers. Also, add one more clock level for corresponding perforamnce level. Change-Id: Ifde6d7ee295d8335e2c2dac6de8580a9f6ee5dd5 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 17f4ba96318300509d022d1ef56678aa6e1a9787 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Feb 4 11:59:57 2011 -0800 msm_fb: display: Fix MDDI blackscreen issue by vsync pending flag reset Fix MDDI mode blackscreen issues by resetting vsync pending flag when vsync clock is not enabled. msm_fb suspend routine requires the pending flag to be FALSE to exit. Cleanup vsync timer usage during vsync clk enable/disable. Change-Id: Idb5fcb5f281cbc7cc41db47a63cde35b18c5a1de CRs-Fixed: 271317, 271775 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit d11c910649c0d88d432abe0253d9bfd45e924f6a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Jan 26 15:54:57 2011 -0800 msm_fb: display: Add cursor support for MDDI primary interface Change-Id: I490d362c2389f1ececb850340fc97cbd64e2b296 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ec31d4b82b67e43cebf9467c1531288b7b36f6ce Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix crashes in MDDI mode during fbtest/boot/suspend Fix register access crashes in MDDI mode during fbtest/boot/suspend operations. This change has been reverted once since MDDI clock was disabled during the execution of mddi_on from a previous pipe_ctrl OFF request. This patch includes enabling MDDI clock in mddi_on directly. Change-Id: Icc302ea312b5dc96b65bdfe5cb65b9f12341f7ef Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a8b2d85d754bd338a05a574006a1a81366898b8a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Jan 30 15:13:39 2011 -0800 msm_fb: display: Fix underrun during suspend/resume There is MDP underrun issue while doing the suspend/resume when the video playback is in the pause state. Fix is added to set the right MDP clock in this case. Change-Id: I8b488cc629766aa2671537bfe3a3b3804966a7aa Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit fb7f5cf847e4fe37e2af6c5c1a642f9875320b9e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jan 26 09:24:17 2011 -0800 msm_fb: display: Add dma busy checking at overlay unset Add busy-wait mechanism to ensure mdp dma engine is not busy (not active) before un-staged a mdp pipe. Change-Id: I66982d75b75e114cd9129a341af147a0e6dfdef0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5db13dea0a21124d3e33fdbdc832dd433521a215 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 13:46:41 2011 -0800 msm_fb: display: add MIPI Tearing Effect support Add MIPI tearing effect support by connect mdp_vsync gpio (28) to mipi dsi display panel and send set_tear_on command to panel to enable it. CRs-fixed: 267852 Change-Id: I364202c5b4c824ca5be1716619a4bee836618da0 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9768b27ab8963102d56f2de38c626c91edef26de Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jan 27 18:30:24 2011 -0800 msm_fb: display : Implement mdp clock scaling support scale mdp clock based on various performance levels to save power Change-Id: Ia682325f4227c083a783cd2fb33e6d54003b944b Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 4b7f5eba092f72a42edeb7fa72502502317c22ba Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jan 24 16:23:47 2011 -0800 msm_fb: display: do not reinitialize qseed during resume reinitializing qseed tables during resume is causing artifacts on hdmi since they are getting updated while dtv timing generator is active. reinitialization part is already taken care by checking whether mdp hw is reset just before resume hence remove this code. Change-Id: Ic448cafd69e8a4c66b5097d55d8e59acd0985d71 CRs-Fixed: 272138 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 0dff7e9161fdcb5fdde2ec387f1686b9324ab422 Author: Vasantha Kumar <vasant@codeaurora.org> Date: Thu Jan 27 14:59:09 2011 -0800 Revert "msm_fb: display: Fix clock crashes during boot/suspend/resume operations" This reverts commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d. Change-Id: I7a9b89c8a116445aae47ca6b7f128bdf24822ad2 Signed-off-by: Vasantha Kumar <vasant@codeaurora.org> commit ef072d28af4812966be54a33f5b51d785ac1e2bc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Jan 24 10:57:36 2011 -0800 msm_fb: display: Add MIPI DSI read function Add MIPI DSI manufacture ID read during MIPI DSI initialization. MIPI DSI host issue DCS read and issue BTA to allow client to send DCS long read data back to host. This patch also add MIPI DSI ACK-ERR-STATUS handler at reverse link. Change-Id: I2106df419cd809cc862fcdb37112cfaf3ad811f2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a269fdf061c0946d704eeb4a487b7aaa86aa5dc3 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 26 09:53:01 2011 -0800 msm_fb: display: Fix mdp underflow on hdmi underflow during suspend/resume on hdmi is caused due to incorrect bw requests on primary during overlay_set and requesting bw after enabling lcdc timing generator. Change-Id: I1e6aadee03b7c4c0f678bdd387515dbd07587fb5 CRs-Fixed: 271912 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 5b3a94e9512771acecec016cb1a6d39c2bc71017 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Mon Dec 20 17:18:49 2010 -0800 msm_fb: Migrate to clock rate voting Use the clock api, instead of pm_qos, to vote on the EBI1 rate. The transformation is as follows: pm_qos_add_request() -> clk_get() pm_qos_update_request(*, 0) -> clk_disable() pm_qos_update_request(*, <nonzero>) -> clk_enable() pm_qos_remove_request() -> clk_put() The rate a driver requests is almost always the same and can be set with clk_set_rate() after the clk_get() call. Change-Id: Id7f4d1fef62d9ce1e49f88daae1ca56608d3cd7d Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit 73f531d9d58b9d1036b0b8e1dfdd237dbc6cf85d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Jan 21 15:55:11 2011 -0800 msm_fb: display: Fix clock crashes during boot/suspend/resume operations Change-Id: I80aebe2ad76892f16c27f6d68aaff0a3a4d13a86 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 15ad3e6e356b0cd963e91db6a2eb1d3f7f65726c Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Jan 20 18:45:00 2011 -0800 msm_fb: display: Set MDDI clock rate before enabling first time Change-Id: I1beeca0d57ae294d18cb337d5b93285f87215f05 CRs-Fixed: 271561 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit da220e2b85a730c980a30500792b815035bd6dfe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Fri Jan 21 08:10:56 2011 -0800 msm_fb: Add suspend/resume support for ADV7520 Added suspend/resume functions for ADV7520 chip. Change-Id: I2aaeed91615e9be66f9abe79b0502ba53b851a04 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0e38a1c08495abb77a088fe5310d66c885201396 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 13 15:21:53 2010 -0600 msm_fb: enable HPD even when HDMI panel is off - Turn on LDO8 & LDO10 during I2C communication - Turn on LDO8 while HPD and while cable connected - Turn on HDMI_5V_EN during EDID and HDCP - Always listen for HPD IRQ Change-Id: If24d05b3dea81cb73004900ea23ab51e483f1b38 Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 98b8a1a579cef545b9700d7838f117ab43518c0e Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sun Oct 24 11:03:26 2010 -0700 msm_fb: display: synchronous with vsync at lcdc frame push When frame push over 60 FPS at LCDC may cause display tearing due to previous frame was over stepped by next frame. This patch allow mdp to hold push thread until next vsync to guarantee the previous had been consumed by overlay engine to avoid tearing. Change-Id: Ic9bc96377649805211baba8e1e2570b18fb26954 CRs-fixed: 270946 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit edca916e571cadbc7f7262b5a537ac3884972320 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Thu Jan 20 12:20:38 2011 -0800 msm_fb:display: Fix section mismatch The mipi_novatek_lcd_probe was being referenced outside of a non __init section. Fix this by placing mipi_novatek_lcd_probe in the section which exists for device intialization code. Change-Id: I4c9dbbbb7ca1368beda8aee59c8bedb60efa8dc6 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a11f5f7eea649696e4c12bc057815a615ee201d0 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Jan 17 14:31:16 2011 -0700 msm_fb: msm_hdmi: reset HDMI PHY on resolution change HDMI PHY needs to be reinitialized when panel resolution changes. Change-Id: Ib01be9f51668cb290b61360b3775993d232169bd Signed-off-by: Urs Muff <umuff@codeaurora.org> CRs-fixed: 263676 commit c1ee3af7b4b1580eaf83bfe875df7ff0c44bd6e8 Author: Alan Gerber <agerber@codeaurora.org> Date: Tue Jan 11 18:26:37 2011 -0800 msm_fb: hdmi: Hold idle wakelock when HDMI is enabled In our current implementation, allowing idle power collapse during HDMI output causes underruns/flickering in the HDMI content on some devices. This patch takes an idle wakelock during HDMI output to prevent idle power collapse as a preliminary solution to this issue. CRs-Fixed: 266067 Change-Id: Id91011067b7c808548e6ee3df00e53c4e2aa8013 Signed-off-by: Alan Gerber <agerber@codeaurora.org> commit 7ca0f321d7c0815c1dd13387fcad55266a87c0da Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 13:42:06 2011 -0800 msm_fb: display: Disable Optimal Fetch bit in FETCH_CFG of MDP pipes Change-Id: I58af7a86c7a9b27dcff5573b44534c968cf4fde0 CRs-Fixed: 270136 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit ed91ea3ea225adfc3bc7091eac5d22413af0d20f Author: Urs Muff <umuff@codeaurora.org> Date: Fri Jan 14 08:35:59 2011 -0700 msm: board: allow to hide hdmi log entries Reduce kernel log spam. Change-Id: I05a650041e47f5abadccf5cecac303ebf0c1c830 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519c18879d14b3bda62765c66f222afe2ac97cda Author: Wentao Xu <wentaox@codeaurora.org> Date: Mon Jan 17 15:50:33 2011 -0500 msm_fb: display: change sharp panel backlight Kernel pwm_config() parameter has been changed to expect both period and duty_level with unit of micro second. Change sharp panel backlight period and duty_level to have unit of micro second accordingly. Change-Id: I00f3b7f3b45161ba2152f935147e0d5fd22d2a8f Signed-off-by: Wentao Xu <wentaox@codeaurora.org> commit d42938452d1c005046b00b50d61ccd65a15ae3a6 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Jan 17 17:02:05 2011 -0800 msm_fb: display: Fix backlight issues during boot Initialize backlight level to 0 in msm_fb probe to allow the userspace/framework set the required backlight level. Allow backlight settings always in msm_fb_set_backlight call. Change-Id: Ic42b76e6b8886957856683ee0343afd383ef42c8 CRs-Fixed: 270638 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 1a789b5b8a8b4e8a992b7d7d7a184f271e05bd23 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Jan 12 14:38:11 2011 -0800 msm_fb: display: soft reset mixer1 when external under flow occurs This is to avoid the pixel shift on hdmi during under flow. CRs-Fixed: 264718 Change-Id: I4b178dadc3f0f4266da427f584ce10cf0f339d2c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f5c41e7535e347fb0aefcc533d8c3f015baf484d Author: Urs Muff <umuff@codeaurora.org> Date: Thu Jan 13 11:38:57 2011 -0700 msm_fb: msm_hdmi: correct hpd power-on logic error codes are non-zero, logic introduced with hpd feature change e7164df63e7b87b19ee69ddc7f3db74c65b863b6. Change-Id: I178f5bb5a6ce006599322418bb1b6ddf6849bf62 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit b3cd5d6a4ca3c12425c48fd9586500f088653042 Author: Arun Kumar K.R <akkr@codeaurora.org> Date: Tue Jan 11 17:30:40 2011 -0800 msm_fb: fill framebuffer with black pixels On MDP with Overlay, on suspend write black pixels to framebuffer to show black screen on HDMI. CRs-fixed: 266993 Change-Id: Ibcd5802059154d6431888a61d6ad4f4c5c11b9bc Signed-off-by: Arun Kumar K.R <akkr@codeaurora.org> commit a739b3bead1308a7c40f0820e72f2031f532832d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Dec 15 12:20:15 2010 -0800 msm_fb: display: Disable/enable MDP/MDDI/Vsync clocks based on frame update Disable MDP/MDDI/Vsync clocks if there are no frame updates and enable them on any new updates Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: Ic5cbac3efdcd87ab3b44a5c2866fefcab09ab07a commit 002d6e11806ada7ac8cde6d05f15b69138cbfa4d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Dec 15 14:30:36 2010 -0800 msmfb: msm_hdmi: Turning off HDMI PHY on power off Change-Id: I9f2d39076df35963dff3d4608c182f0ee6d9abb6 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 655c7961d9bce8ccceab635343c4157584e409d9 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Fri Dec 3 12:31:27 2010 -0800 msm_fb: display: Fix for the pixel shift issue with VG pipe MDDI kick off is added to make sure the VG pipe is disconnected from the mixer while switching it across the mixers Change-Id: I708b37b1d9e60e19acc25d5ca2b3589bc7ae04ed Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> CRs-Fixed: 256671 commit 7f4053846ddb619a4a23b7bebbf814eef0773ca2 Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Wed Dec 15 12:53:59 2010 -0800 msm_fb: Display: Enable two lane video mode for Novatek MIPI panel Add configuration changes for Novatek panel to operate in two lane video mode. Tune the panel settings to improve fps. Change-Id: I151018b39429af747ecdc991748bdb17aa7c2051 CRs-Fixed: 266737 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c7677581e46b2fb42de29ad2c709e814a232f34f Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:55:12 2010 -0800 msm_fb: display: add sync between UI and video for MIPI panel Change-Id: I5b505c07c42d80ce5e42a0b27a70076ccfb71233 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit fb3b75f1c2eb222113b531c482ee9fe936b4eae4 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Dec 13 09:43:09 2010 -0800 msm_fb: display: fix bpp of MDDI BLT mode At MDDI BLT mode, the output format of overlay engine is RGB565. Therefore set bpp to 2 instead of 3 accordingly. Change-Id: Ibc321a6c9817b972652797966571b35ddd941c5c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 227aa0adacf9f947af8d16c633e1d3afa33f650b Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 14 17:04:50 2010 -0800 msm_fb: display: Fix registering multiple bus scale clients Do not register bus scale client if it is already register in the earlier probe call. Change-Id: Icc14898ce28e9507540ce2419c3f41accf3af651 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit f58ceb6b3442958cbb2866fe115a33926b1b5bfc Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Dec 8 08:30:38 2010 -0800 msm_fb: display: add support of DE_INTERLACE_ODD The de-interlace is default as even line reference. Add support of odd line reference. CRs-fixed: 260959 Change-Id: I637c79c2f5236fc38116693b50c69415e41ebdda Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit dbc4b8738bdca502c2cccbcfe1ee0c1755488ca5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 14 15:25:33 2010 -0800 msm_fb: display: fix MDDI compiler error Add CONFIG_FB_MSM_MDDI compiler option to not to compile MDDI code under 8660 platform. Change-Id: Ia905636bbe6800996fcf9eb24f1487e28cfc9c97 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4334af8abf1ec212df6778a7405de0d3070abd6d Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 13:53:14 2010 -0800 msm_fb: Display: Add two lane command mode support for Novatek panel. Add code to change the clock configurations for MIPI DSI to support two lane command mode for novatek panel. Add code to turn off of the novatek display when the device goes into suspend mode. By default, command mode for novatek panel is configured for two lane. CRs-fixed: 264213 Change-Id: I98df05199a1680375ab4c0274418d1730b052f6a Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit a809819d9d5d0b59f2c2eee0534bc68048b09016 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Nov 30 15:40:46 2010 -0800 msm_fb: display: Add delay kickoff to MDDI Add delay kickoff mechanism to consolidate multiple kickoffs into one to avoid unnecessary delay at MDDI interface. Also the MDP4_NONBLOCKING was removed due to every MDDI kickoff is blocked until overlay blending completion interrupt is delivered. This patch also remove unnecessary semaphore at the topmost layer (fbmem) ioctl to allow multiple msm_fb ioctl calls. Mutex is provided by individual function to synch between multiple ioctl calls. CRs-fixed: 264934 Change-Id: I3aecdd9cb4d7c79f67b641f90e78a6764095a6b2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6ac2d1a19bcfce5c9c60eb4d063bce4eac924515 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 15:19:42 2010 -0800 msm_fb: display: Remove backlight control from blank/unblank Change-Id: I3f1b1958423c2970f72bfa71f2ac5615055687f5 CRs-fixed: 265531 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5c75292d6e2a31323236482442148bacc57ae1d2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Dec 7 12:36:36 2010 -0800 msm_fb: display: Fix MDDI video leak during suspend/resume Fix MDDI video leak during suspend/resume by waiting on overlay_restore to complete before switching off MDDI and panel driver CRs-fixed: 265531 Change-Id: I8c3f15800aade087145e50fbd053e817a51a903a Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 25953d224b91e2cf230ae845d5db0f374818bcfa Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Fri Nov 19 17:07:54 2010 -0800 msm_fb: display: Fix suspend mode for MIPI panel Add code to turn off of the MIPI DSI module when the device goes into suspend state. Change-Id: I243e77c37d4332f5c67794a3922f24355cb8273b Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit c98ad9e172386b9a53ed7f01658837b596e86e05 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Dec 7 18:42:38 2010 -0800 msm_fb: Fix detection of MDP4.1 core reset The MDP status register cannot be used to reliably detect a reset of the MDP core since some of its bits come from peripheral interfaces external to the MDP core. These bits may not be reset along with the core. Instead, use the MDP_SW_SCRATCHPAD_REG register to store a flag indicating that hardware initialization has been completed. This register will be reset to 0x0 whenever the MDP core is reset. MDP_SW_SCRATCHPAD_REG is only available on MDP4.1, not MDP4.0. CRs-fixed: 266140 Change-Id: I7ceccc1cfb22a8cd9355aa6cc39b82cf3729936e Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8abbc4bc0ccfcfda27895a889091f6a21af3674b Author: Philip Elcan <pelcan@codeaurora.org> Date: Fri Dec 3 12:07:28 2010 -0500 msm_fb: Make smem size a multiple of page size drm_gem throws a BUG if smem isn't a multiple of the page size Change-Id: Iaa1a96bb259238f6e5850a7012aa5408c4a44e41 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 0d841d87f7ec8b59ff009af94c379e5a7b674bd1 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Dec 7 08:36:18 2010 -0800 msm_fb: display: set MASTER4 bits to icrease MDDI throughput There has DMA_P buffer hardware bug which cause MDDI throughput is much lower than noraml. This bug had been fix at revision 2.1. However MASTER4 of MDP_AXI_RDMASTER_CONFIG need to be set to correct value to increase throughput. Change-Id: Idee0c388f6ca4c0953bba86d6ef6c2132c298802 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 071243a12712d740c33fc632431b43381dcb848f Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Dec 1 13:39:16 2010 -0500 msm_fb: hdmi_msm: Fix compile with HDCP disabled Can't compile without HDCP enabled. Need some ifdefs around some unused code when HDCP is disabled. Change-Id: I9682febae5ec4d766fdb62c51180d8295f111646 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit e7164df63e7b87b19ee69ddc7f3db74c65b863b6 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 19:48:12 2010 -0800 msm_fb: msm_hdmi: enable HPD on request only Enable HPD sense only when panel power is on or when sysfs/hpd is turned on. Change-Id: Ibbd45d2c673aeea08660a0087cbec8b82e497584 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ecdbbed83e693269918ca9d0e7f94b0fb15d9d30 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 11 13:29:58 2010 -0800 msm_fb: display: add planar support Add support of Planar (Y-CB-CR/Y-CR-CB) source format. Change-Id: I0bed22156fc6c327c48d94764d8283ec9491b85b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1dbf239b10fa4255770704e5957340cd118582eb Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Thu Nov 18 19:37:07 2010 -0500 msm: mdp: Fix MDP underruns on 8660 To avoid MDP underruns, hardware cursor updates should be made in sync with the dma completion interrupt. Change-Id: If6b4922e2087c8a3f4c8354d173019f76cdaa519 Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 2d55c0bd07cafc12c7ed23a38433e2944de04b6f Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Dec 1 15:07:26 2010 -0800 msm_fb: display: do not do mdp clk scaling turning on/off dtv or lcdc during clock scaling has side affect of showing blank on hdmi. Change-Id: I4ab5dabef12ecbcee014bee21ffe695b2d74646a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c7701ba49d17276c20dd4c7e4375844fc568f5cb Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 22 18:27:53 2010 -0800 msm_fb: display: Support to reduce power for non QuickLogic clients Change-Id: Ica37e9748c280bfe12f2c220f5dc585eac608e4f CRs-fixed: 264628 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 59bd6d8480c4cb529f80069a2a575ac0b5e4f7a9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 17 10:49:46 2010 -0800 msm_fb: display: Fix invalid image errors in PPP stress test Fix invalid image errors in PPP stress test by fixing the internal blit regions that are split from the original blit region Change-Id: I73a9f424459fb0c4f0ceebc4fddf89d20c4bc744 CRs-fixed: 263764 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 94d57fd66777b0387e50d4c39a241f097a3558b4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 18:28:10 2010 -0800 msm_fb: display: Fix USB OTG None mode flicker for 8x50a_st1x Change-Id: Ib8f2ca21cb29e7de3a2f12e4de434eef4549de93 CRs-fixed: 259149 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 5ac62b6a6fbfcd5506bf83e83d0b52337649e602 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Nov 25 09:42:08 2010 -0800 msm_fb: display: do not re-fresh primary display for external interface Do not re-fresh primary display when external display interface, such as HDMI and ATV, issue unset operation. Change-Id: I0d8865361c5377dfae7bec5cdc10e80eb7caf968 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 434f989b4b52133c7a204b9c72e06321e53bf48e Author: Urs Muff <umuff@codeaurora.org> Date: Wed Nov 24 08:57:25 2010 -0700 msm-fb: msm-hdmi: reinitialize HDMI core on HPD Ensure HDMI core is properly initialized after each HPD event. CRs-fixed: 262669 Change-Id: If96a9e0c0fb7c785c640254247adaac4b5fb8a77 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d0e8d669e6e1a9aa3924621b57b6bc314a75f895 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:43:01 2010 -0800 msm_fb: display: reinitialize the mdp hardware during resume turning off the mdp footswitch during suspend doesn't retain any mdp hardware registers that are initialized one time in mdp_probe since it turns off the mdp power rail. Hence reinitialize the mdp hardware during resume only when the mdp status is not active. Change-Id: I95c6b04be26ddbb6fd6f8346b9f44eacab698f59 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2d5b134c38b47c5f5d5aae81a60a59555ca2a9f0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Nov 23 18:39:22 2010 -0800 msm_fb: display: remove redundant turn off mdp footswitch. mdp footswitch is already turn off during mdp clk_disable in mdp_pipe_ctrl function hence removing the redundant call. Change-Id: Id0e6178210b836703618137e4c877f1e7036277a Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit e4eb02a22a66ae82af4638a03ffde2b87878269a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Oct 9 11:33:32 2010 -0700 msm_fb: display: Add new pipe alloction to support 3D Modifiy pipe allocation algorithm to to support many applications including 3D. Change-Id: I3688ab44bd86b6eedf94bd7cb904e7b6fac4f89b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f773d073fa24a571b299034aeeb01a4c464a0390 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Nov 19 16:41:04 2010 -0800 msm_fb: display: Set QuickLogic panel to MDDI Type 1 mode Change-Id: I32dcb588c4a583474f9c57fcda06e902ab94247c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit aba3918a084d9a914ce7cddfd2acbd1e4dad8c1e Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Nov 8 18:11:20 2010 -0800 msm_fb: display: Fix SPI read API for Quicklogic panel Fix SPI read API for Quicklogic panel with configuration of TLEN and TX0 registers Change-Id: I6728322e562f525c9a5cee1afa73bb47f173418e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e69f641acbe060badb10a354bfbf46076f8ad7e7 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:20:01 2010 -0400 msm_fb: Add VGA resolution to 8660 FFA panel On 8660, the LCDC panel and VGA display are on the same bus, so specify the maximum VGA mode as the secondary mode in the panel definition and the Samsung WSGA panel settings for the primary. This will allow userspace to change the resolution when using VGA mode. Change-Id: Ia805ce6477cf9b300a1f969679f2012980d14a61 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit be482dd056b5ff02c8a3f98d60875e7f80fe0aec Author: Chandan Uddaraju <chandanu@codeaurora.org> Date: Tue Nov 9 16:57:21 2010 -0800 defconfig: Add configuration macros for MIPI DSI display Interface. Add configuration macros for Toshiba and Novatek MIPI panels. Add macros for both command and video mode. Disable MIPI panels and enable SAMSUNG display by default. Change-Id: Id2a9dca3a2467e588ffdad1ec9d149ca6a4d4d76 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org> commit 85e5df5ed487db598f06bd37436629ea2b637b49 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 08:37:11 2010 -0800 msm_fb: display: add control of dsi_s_pclk There has problem at dynamic clock gating hardware which may cause glitch of dsi_s_plck. Move dsi_s_pclk control to dsi driver. Change-Id: I466eebb0309b82ad83c54bed0840cd42d1f1b4ff Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 3661713ece532d5b50fd0fa1ab415058736fd0ce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 3 09:19:57 2010 -0700 msm_fb: display Add Novatek video/cmd panel support Incorporated both video/command mode panel configuation to mipi_host_init to support both video/command. Change-Id: I51555e9065038607765de54e98c36128aa611d8f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c2c8a3a62f8f9bdb45a606764edfb0efd25a7c24 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Nov 15 10:49:41 2010 -0800 msm_fb: display: Fix command block power on/off sequence. Command block is not power off in all return paths that prevents mdp clocks to turn off when display is off. Change-Id: I4aecc8be8e25780a5e45d304dc2982df40433a4f CRs-fixed: 262107 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 667560bf45d30464fb82ccec0bce9a09653eec4c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Nov 1 15:49:47 2010 -0700 msm_fb: display: add mipi panel and cmd mode support Add mipi dsi per panel control configuration along with mipi dsi command mode configuration. This patch also including supports of video mode suspend/resume. CRs-fixed: 259499 Change-Id: I6be8f8edb342874c1d90ce06df094157f320ffa1 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 547f7aca18653ef13bf05da91c23c4a1b607fcfe Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Nov 12 10:59:39 2010 -0800 msm_fb: display: add auto detection for dmas dmap switching Add auto-detection mechanism base on the mdp_hw_revision to enable/disable MDP switching between dmas and dmap. Change-Id: If9dbae23886c94ef52350614c1f27c568ff79ca4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a5e8f857b0ececc25dbc5dbbc9967d2d80e40f90 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Nov 10 10:22:56 2010 -0800 msm_fb: Add support for AHB master and slave clocks. Enabling AHB bus master and slave clocks in driver to avoid glitching by dynamic clock gating hardware. Change-Id: I66facbc85374f30c28c4b93890fd29bb88559d88 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c7ab3f03de38180c7081b48fd29fce8caaef735c Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Nov 17 09:05:08 2010 -0800 msm_fb: Fix section mismatch of prism_probe prism_probe was being reference outside of an __init section. Fix this by placing prism_probe in the section which is the place for device initialization code. Change-Id: I4272e2bf283a8f2a59ecabf6287683b32f6601c1 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 249a736ee2ee7fd206cad6cf5a99a643ef78246f Author: Laura Abbott <lauraa@codeaurora.org> Date: Tue Nov 16 16:32:22 2010 -0800 msm_fb: Fix section mismatch of lcdc_panel_probe The lcdc_panel_probe function was being reference outside of an __init section. This fixes the problem by placing the function in the section. Change-Id: Iec1f60d98249802f9c9aff795b085bc0518c26ee Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit abf906b0506d2c38faf0deaafd3e1c26e9b52a99 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Nov 9 18:31:52 2010 -0800 msm_fb: make HDCP enabled on all panels. Try to read DDC with different alignments for different panel for HDCP protocol communication. Change-Id: Icfb51764f42497375df4c58d0977105c8f6b757f CRs-Fixed: 261508 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7b0d8cbfa4f86a197bd88d99063df8fca1a23b32 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:02:39 2010 -0800 msm_fb: Fix section mismatch of hdmi_msm_probe The function hdmi_msm_probe was being reference outside of an __init section. Fixes the problem by placing hdmi_msm_probe in the section. Change-Id: I4dcfcbeaefde7e71ef9f18140dd64648b46891bd Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 96c1a7422faeff26cbd70629ba1fbd838b988f50 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:53:23 2010 -0800 msm_fb: Fix section mismatch of samsung_probe The function samsung_probe was being reference outside of an __init section. Fixes the problem by placing samsung_probe in the section. Change-Id: I39de06c0692ddf963d2d11f069ff5dd0d8714d43 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 3f466d9a313a64af18e036d002d1738fc23c29fe Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 15 14:47:19 2010 -0800 msm_fb: Fix section mismatch of mipi_toshiba_lcd_probe The function mipi_toshiba_lcd_probe was being reference outside of an __init section. Fixes the problem by placing mipi_toshiba_lcd_probe in the section. Change-Id: I9f0f2b1e0ed65edf9adbcf1dfb9a424aa379b7ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 596c4c2dafbb59ade4616387fe1531efaf738a4b Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:51:22 2010 -0700 msm_fb: Fix section mismatch of toshiba_probe The function toshiba_probe was being reference outside of an __init section. This fixes the problem by placing toshiba_probe in the section. Change-Id: I2d992ff67abf4f34ccb3c91f1b438df9fe7f0295 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 03b098b26bcb79921b55399dcf82a38e9770b560 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:53:50 2010 -0700 msm_fb: Fix section mismatch of sharp_probe The function sharp_probe was being reference outside of an __init section. This problem is fixed by placing sharp_probe in the section. Change-Id: I3d45fa65f34a91f9d28aaa812832a9e6d778a55f Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit f1fd48f9199f7695d7475a02e0ddfe489f49274e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:32:23 2010 -0700 msm_fb: Fix section mismatch of mddi_orise_probe The mddi_orise_probe function was being reference in a section outside of __init. This fixes the problem by calling platform_driver_probe instead of platform_driver_register since the driver is not hotplugable. Change-Id: Ic79081dea2775354dc9695747e91a6f96cbb6b23 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 23ad01dfe9d9bad23138e41c65ae7744235d2b90 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:38:24 2010 -0700 msm_fb: Fix mddi_quickvx_lcd_probe mismatch The mddi_quickvx_lcd_probe function was being reference outside of an __init section. This fixes the problem by marking the function as existing in the section, which is for device initialization code. Change-Id: I31dc111643915860a0ce9644c888240e611758db Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 5b1d692a8deae3fc06d1855bd84dfe18958d9e21 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:48:58 2010 -0700 msm_fb: Fix section mismatch of gordon_probe The function gordon_probe was being reference outside of an __init section. This is fixed by placing gordon_probe in the section. Change-Id: I11f58d7157a4bdf00fe0cc631fac9b24f6a12e49 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 8e8a8451d6b82a28b1606be1d54d60cd8df40500 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 19:13:27 2010 -0800 msm_fb: Bound checking variable "count" Put upper limit bound check on "count" variable to avoid acknowledging corrupted values from user space. CRs-Fixed: 262787 Change-Id: I31517a486803871be2e304747aabfc3d4f230c86 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit de90534498bde43541e7a8bf59ac640124b3e72c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Nov 10 10:37:44 2010 -0800 msm_fb: display: add synchronous between DMA_P and DMA_S. Change the execution order from update --> wait for completion --> kickoff to wait for completion --> update --> kickoff to prevent un-necessary flicking. Also remove piggy-back kickoff mechanism to prevent frames from being dropped. Change-Id: I25cd4ced51d2f5cc72d9b83e938a93d92d6f5ed2 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 8d2d3ec7c1cf9b0969d0b8f13955688063d1335c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Nov 11 10:19:05 2010 -0800 msm_fb: display: Kick off histogram when primary underflows When underflow occurs MDP clears all the histogram registers and driver need to kick off the histogram if it start before. Change-Id: Ib15e4084da5d9d170484e9e1b6d260d17035a864 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 82f8fe684610a3cfb65f3195912d3c0e870fcecb Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 8 18:41:43 2010 -0800 msm_fb: properly handles return value of sys_lseek handle error condition of negative return value of sys_lseek, to avoid allocting large chunk of memory through kmalloc. CRs-Fixed: 262768 Change-Id: Ide303f955de30c05fe56e9f528508b8bb6e027ab Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 7ef97f597ece29145a252c95f3707961377d9d30 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Nov 10 19:19:42 2010 -0800 msm_fb: display: Fix data size in MDDI host register reverse read Fix data size in memcpy in MDDI host register reverse read path Change-Id: Ia75bac5576898a510937cb0f6bc10304b7015314 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 3e44b7399750352bd375a2d41a919fe4d737f437 Author: Philip Elcan <pelcan@codeaurora.org> Date: Thu Oct 14 15:18:24 2010 -0400 msm_fb: Allow panels to specify a second mode This allows for panels that support more than one mode to specify the maximum configuration. The framebuffer size is now based on the larger of the primary and alternate modes. The alternate mode is also used to check parameters when userspace is requesting a change to the framebuffer configuration. Change-Id: Icf644b0fb5e54fc95f45ea8c5ed97f6243cb886c Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 9a2a724813bada5684f6bf9eeef4ba1b13db315d Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sun Nov 7 15:23:49 2010 -0800 msm_fb: display: Implement bus scaling for TV encoder Add usage of bus scale apis to scale bus bandwidth for TVOUT. Change-Id: Id0d9a147c3d24c94b1351656b6c8938c3db10706 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit e9736b53a5642d93abb3631ea572d11f25c40b6f Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Sat Nov 6 23:29:55 2010 -0700 msm_fb: display: Implement bus scaling for dtv Request bus bandwidth for both SMI and EBI while using DTV/HDMI. This needs to be optimized once the bus scale api is integrated. Change-Id: I71162923ae8a11e7737c702b5f7b2078b995426e Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 12b28ba64a3fce1b9c97432b0f54027c4436d3f4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 16:34:23 2010 -0700 msm_fb: display: Implement mdp bus scaling Add the usage of bus scale apis to scale bus bandwidth based on the performance level to save power. Code assumes that FB is EBI and overlay is from SMI this need to be changed to find the correct buffer source whether EBI or SMI at runtime. Change-Id: I9936fef798379ce4698840f951dbf301430055dd Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 2f6cc1402dc448174721be73c2d48a8f12a8e347 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Fri Oct 22 19:04:46 2010 -0700 msm_fb: display: Add MDDI Type 1 Forward Link Skew calibration support Change-Id: I344403d67a9361b626eb67bd3c9e8ad5f21660e5 CRs-Fixed: 246784 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit a179efda6e7588b3e3f56b8819c21b16647741f7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Nov 1 10:18:10 2010 -0700 msm_fb: Fix hdmi driver for enabling/disabling HDCP Fix for enabling/disabling HDCP feature from kernel config. Change-Id: Icd7f76f263780212064833084d967ab10f001b70 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c1f05d2d08eec5e95b47088a6de5c6f560d6a7a1 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Oct 20 16:01:50 2010 -0700 msm_fb: Added support for premultiplied alpha. CRs-fixed: 258209 Change-Id: I891a81d76030b66e0133a689b695bb39af923b98 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 997d3c514075eb1246552aa313dd6964de36e6fa Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:43:27 2010 -0600 msm-fb: msm-hdmi: adding additional DDC request options Some panels succeed with 128bytes/page read for EDID, and some panels will fail. This will try 128/64/32/16 bytes per page in succession. Change-Id: Ibef7af8f6da57d2ecc12ed26ba5f2acb13fe4f1f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 8e230203d3a85e610bc4ec23993dcff8660474d2 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 16:45:47 2010 -0600 msm-fb: msm-hdmi: fix 3d info packet Use GENERIC0_LINE=1 for GEN_PKT_CTRL according to spec (bit 16). Add Top-and-Bottom mode as new 3D-mode. Use no Generic0-Line for none-3D mode, which fixes the VT issue. Change-Id: Ib1a6621bc4364fe3c56d3e26869894f52010c855 CRs-fixed: 261085 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3d480fcff95309472e8256829b5bde8f962565d1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 25 17:56:55 2010 -0700 msm_fb: display: Handle Zero MDDI Reverse packet count error Change-Id: Ib4699b17524abff43cadda36856fa7995060b3b8 CRs-fixed: 260745 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 70b380c25316d37edc1da15cc3765b07dee175c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 26 15:50:22 2010 -0700 msm_fb: display: synchronize dma_s kick off with dma_p During switch back from dma_p to dma_s, check dma->busy flag and wait for dma_p's completion before kick off dma_s if dma->busy was set. CRs-fixed: 260626 Change-Id: Id22b65b410ddb3e5f9faca0b8423f0e74ee6ccbe Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aea07835e1659c9be68ff074b8f37654eb921799 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 26 15:45:46 2010 -0600 msm-fb: msm-hdmi: remove HDMI audio teardown from HPD event Leave HDMI audio running, so that audio-flinger can switch away from HDMI before tearing down the HDMI audio setup. Change-Id: I4090c8771143e50f9202e9e8c5902f5ce893c74a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 957bbadab433ec4a4f24830dcdd38bd30394eaf4 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Oct 11 12:09:21 2010 -0700 msm_fb: display: Add MDDI multiple data read/write support Change-Id: If34dcfb0ffca650f00d5cc897fc79ff42ad939bc Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 258225 commit 27c0c5d6471e1af1adaae6394717701f5f0949db Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:19:50 2010 -0700 msm_fb: display: Add new ioctls for histogram. Add MSMFB_HISTOGRAM_START and MSMFB_HISTOGRAM_STOP ioctls to reduce the blocking time for histogram generation from two frames update time to one frame update time.These two ioctls help to start the MDP histogram generation process for the next frame in the isr itself just after reading the histogram bins for the previous frame. Change-Id: I8adfe2314284703ea1f51a8bb76c586f553d065c Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c6536fd7aa0b92270175f4bfc03a57428a75412f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 20 10:49:19 2010 -0600 msm_fb: msm_hdmi: HDCP support for 1.4 panel Ensure to retry HDCP when failing during phase I, II, or III. Change-Id: I60a1523a5ccca70cc660d5211f23f53e75827e0f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 164a5b01b3708c4c0e688ef93d628ef884a85aad Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 15 10:43:18 2010 -0600 msm_fb: msm_hdmi: handle EDID on different panel This HDMI sink does not allow to read the second EDID page in one shot, and does fail to read just 5 bytes. Changing to 32 bytes reads solves this issue. Change-Id: I36e65da1e5e67bf9b5a0bc00c0c8c1e8d67bae8f Signed-off-by: Urs Muff <umuff@codeaurora.org> commit da8794fcb39dd8fb3a7daf994f693e1b06474047 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Oct 21 14:44:23 2010 -0700 msm_fb: Change Packet Memory map I2C default address Changed default I2C address for Packet Memory map to avoid address conflict with BMA150 accelerometer. CRs-fixed: 215783 Change-Id: I22f76f0b888cdb377bd91e00b54bd4ad8c46d4f2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit c438f987bde833284286fb2e5434036c8def7c9f Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 12:07:21 2010 -0600 msm_fb: msm_hdmi: add debugfs entries Adding debugfs API to debug HDMI registers. Change-Id: If0fd415c53cf49fcaa0d38387eeef33dc14fcbc7 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fffb24688cfd3560ecca5b8d162427c21467ecd1 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 19 15:49:07 2010 -0700 msm_fb: display: Correct Initlogo filename Correct Initlogo filename accessed from display driver CRs-fixed: 257109 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> Change-Id: I95e5ff1f473e3c0a73a7a693c1965ad6e7653ee5 commit 05ca25d7023b90920ca241058e5b3266846b833b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:46:50 2010 -0600 msm_fb: msm_hdmi: add HDCP status to AUTH_FAIL error log Add log entry detail for diagnostic of HDCP failures. Change-Id: I0f5520346952f85562e872795dde114247d5aae4 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 2c3fcdb2978ef1902717ab48c74214fa857346e8 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Oct 18 10:13:34 2010 -0700 msm_fb: display: enable runtime clock scaling for mdp_clk scale the mdp_clk based on various performance levels. increase mdp core clk to 192Mhz for lcdc/dtv when playing 720p video since 122Mhz is not sufficient. CRs-Fixed: 254222 Change-Id: I9454cfc324c74e99a2fe6d44dd58ae5d575b60cf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 166854ea7e67749badf61ab7df82e833f7fbfc50 Author: Laura Abbott <lauraa@codeaurora.org> Date: Thu Oct 14 15:25:15 2010 -0700 msm: video: Fix section mismatch The function tvout_probe is referenced outside of the __init section. This fixes the problem by placing tvout_probe in the section. Change-Id: I14ae9a028f32d1b0de65c99d8eea740a929721e9 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit d4a6fbcb997b2800587eb5263c9dfc44d3843e66 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Oct 14 19:10:13 2010 -0700 msm_fb: display: Fix screen split issue in suspend/resume Change-Id: Ic5ccffaa12e0e546750d65e604326a4a39281f51 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-fixed: 253026 commit d5d9778a48d988002f87359973193749a924f3dc Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Oct 1 11:08:54 2010 -0700 msm_fb: display: change the pixel clk to 30720000 Changing the pixel clk back to 30720000 because the maximum pixel clk supported by panel is 30Mhz.Since making it higher clk is causing display corruption issue while playing some 720p video clips where mdp clk is not sufficient to push data even though mdp is running at maximum clk it supports. Change-Id: I7d68d8728fdc7c30c6ba9549eaffef748d1147df CRs-Fixed: 254222 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 414f630f8f60ede6a0d5982d7e41dd4fa9948a08 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Oct 18 14:42:09 2010 -0600 msm_fb: adv7520 hdmi: sysfs hdcp integration Use the external_common API to signal HDCP availability to the user-space. Change-Id: Ia5e8f51620ae29c84cf5dd8e16c81d3746b82228 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1ab44dda69fe0e7ee3995260ff06b0cdcc430746 Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:27:47 2010 -0700 msm_fb: Fix section mismatch The mddi_sharp_probe function was being reference outside of an __init section. This fixes the mismatch by marking mddi_sharp_probe as __devinit, which is the section for device initialization code. Change-Id: I3c1103a956279e75db3bc9025186b260f901325d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 74213166390c1d70147bdf601892881ad8103c06 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Oct 15 22:47:09 2010 -0700 msm_fb: display: reset client_status_cnt to fix MDDI RTD Failure Reset client_status_cnt to 0 during system resume to make sure host does not send RTD cmd to mddi client before mddi client be powered up. CRs-fixed: 260405 Change-Id: I90194791521dd192ba1d7260ffcd2241c07b8221 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 6b57dd4b598f6e8a3f42d56927dc4ffc371bbc9e Author: Laura Abbott <lauraa@codeaurora.org> Date: Wed Oct 13 17:23:44 2010 -0700 msm_fb: Fix section mismatch The mddi_toshiba_lcd_probe was being referenced outside of a non __init section. Fix this by placing mddi_toshiba_lcd_probe in the section which exists for device intialization code. Change-Id: I1a43bc7fa61541b9be5e7aeed701071e2c756007 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> commit 4611e9a0b0b7ce7f7f884ff28029500c5da281ec Author: Philip Elcan <pelcan@codeaurora.org> Date: Wed Sep 22 09:58:36 2010 -0400 msm_fb: Make lcdc use resolution from fb driver The lcdc overlay uses the fixed panel resolution. However, it should use the variable resolution passed to the fb driver in fb_var_screeninfo. Change-Id: I77818af8722be715b5281c00b5e6e752389e3dba Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 302e36a9907723d9b48d37297072b64ac078cd76 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Tue Oct 12 19:59:42 2010 -0700 msm_fb: display: Add dynamic MIPI panel detection support Change-Id: Ie1281a353c15c7d7575eb1b591d325382d61c303 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 75f34ead5e0489b5cae23339e0fe57dd7bb51ee4 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Oct 13 14:43:51 2010 -0600 msm_fb: common_hdmi: add support for audio EDID packets Add parsing for Audio related EDID packets to the HDMI common package. Change-Id: I55ff5adba4382a30fb4a686cca63bdeabd21e77d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit c5c8c4cb8c7e9c7f0a48634f8b2965ccce2c4570 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Oct 13 15:40:54 2010 -0700 msm_fb: display: fix MDDI compiler error on 8660 Since msm8660 does not have MDDI, MDDI ISR handler need to be excluded for 8660 platform. Change-Id: I0bcc5e413e299cfdbf91fc5275388ba4e42ff1de Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e8aa64ba20b7939c4fa86aecec4101af9c248a04 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 23 10:02:42 2010 -0700 msm_fb: display: add panel info to mdp4_isr Since new panels such as dtv, atv, mipi video are added into system, They need to be handled diffferently at mdp4 isr. Change-Id: I25d720df12a0aaf0b3984683e283aebe7cd843b7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5c1074bff79decc6b1a52aa8db2cff198b288eaf Author: Matt Wagantall <mattw@codeaurora.org> Date: Tue Aug 17 18:59:52 2010 -0700 msm_fb: Enable/disable MDP core power rail as needed On newer SoC like 8x60, power to the MDP hardware must be turned off and on explicity. Introduce use of 'regulator' APIs to turn on and off power with the clocks. Calls are introduced to both the MDP and LCD drivers so that MDP is now powered off unless both MDP and LCDC are idle. Previous SoC that automatically turned power on and off as part of clk_enable() and clk_disable() calls are still supported. The MDP and LCDC drivers now assume that if the calls to regulator_get() are unsuccessful, then the rail will be controlled automatically. Change-Id: Ica87d8ca439130cdd6d2df04801de76a888fbdc9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> commit 63c1090c30f76a955d4a894f619a30c309101d61 Author: Michael Burr <mburr@codeaurora.org> Date: Mon Oct 11 10:14:50 2010 -0700 msm_fb: display: Fix framebuffer format used for MIPI devices Select the MSMFB_DEFAULT_TYPE framebuffer format instead of the 16bpp MDP_RGB_565 format. CRs-Fixed: 259512 Change-Id: I13ad0f3920baf286d9be994378c4e0538dbdbe9d Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 179e0ae68264329d3887d4d076623afd84e73171 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Oct 7 16:09:07 2010 -0700 msm_fb: display: re-program qseed table At msm8660 FFA, the qseed table corrupted during suspend. Therefore display garbled at both camera/camcorder preview and video playback after resumed. Re-program qseed table to fix this problem. This is temporary work around solution. Change-Id: I8d716f706f4926855ed008f5012bc2f5853161f3 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 1b3424827245f23f9423ac7671ecb40d9b6c5ce0 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 13:35:29 2010 -0700 msm_fb: display: base on is_fg flag to apply alpha effects Change-Id: Ifdf7d9f247a3619c2d710367e63ca368c1762ba8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 82506520a0631fbc25bee646f410f8ca920d89ab Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 22:21:17 2010 -0700 msm: video: Fix warning in switch_3d The entry for switch_3d does not return a value, and no result is expected when called. Change the type and function to void to avoid a compiler warning. Change-Id: Ice08a08735a6d058e09a079cbe63fdc9681d66f5 Signed-off-by: David Brown <davidb@codeaurora.org> commit 80726b692d586d1d7d10d75db1966128f468f27a Author: David Brown <davidb@codeaurora.org> Date: Thu Oct 7 14:56:56 2010 -0700 msm_fb: Warning fixes Eliminite some unused variables. Change-Id: Ia8d6d1edb99eb67bf60cc183a87482d5871a129a Signed-off-by: David Brown <davidb@codeaurora.org> commit a0f19d22dd7698cfd851c1ce75259c277d7b03bb Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Oct 7 11:23:19 2010 -0600 msm: video: fix for sending tv-out cable detect event Fix to send cable detect event only when connection state changes. Change-Id: If14f32b72f22f30dcb6ad869c5be69817ebc0996 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e91fcab88f81f3e8304f2040a684658816436018 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 29 15:32:27 2010 -0700 msm_fb: display: cursor update align with dma completion To avoid under run during cursor update, it is necessary to synchronous cursor update with dma completion. Change-Id: Ib2e6e18c88adacfe1b5235d42affa69ead5a3a11 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 07240c18f405c0a9a7c071635b5507072a2d2566 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Oct 5 10:22:45 2010 -0600 msm_fb: msm_hdmi: change EXT_INTERFACE prefix to HDMI allow DEV_DBG to use a more specific prefix. Change-Id: I00b484f8f7f218ff6cfa1c6b17d4f6454da32519 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe019f3c4070a1945b8ba4d44943576ced22cc33 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Oct 5 08:22:49 2010 -0700 msm_fb: display: fix MDDI_LD_PARAM_SEL for DMA_P During DAM_P and DMA_S dynamic switch, the DMA_P's MDDI_LD_PARAM_SEL was over written by DMA_S. CRs-fixed: 256428 Change-Id: I79f96e8c3e5e61e0fc328fd7f83c2c6e60b50869 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aeb5596d9be836ab19e75d4db4ada457b26ec64c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Oct 4 14:33:03 2010 -0700 msm_fb: display fix compiler warning message Change-Id: Ibf3609b882a99b9cbac33f6557bc633a6931a59a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e662af7106510eddc6f6144df0afd54704fff1c2 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Wed Sep 1 17:32:16 2010 -0700 msm_fb: display: Add QuickLogic MDDI panel driver Change-Id: I2829ea3c91cbb658544a46fc1de5343a9883637b Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 9f1dcfb0004a4ebfbe6a4241895b40650a03a5b0 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Fri Oct 1 10:00:17 2010 -0600 msm: video: support for tv-out on 8660 Added support for tv-out on 8660. Cable detect is interrupt driven on 8660 & polling driven on 7630. Change-Id: Icdc6e8ae512ddcb91b766fdff2583e8157bc868c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 07cefc8f36b8d8f1827358e6000e8691697586f4 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Sep 21 18:56:33 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: I0603f3a351a92b576a78370d3f974926e0441920 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 2af9f6215c3ff34eb01d1c1032cbb026c2ae6dfa Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Sep 30 11:19:14 2010 -0700 msm_fb: display: Add error check for source and dest rectangles return error if source and destination rectangle parameters set by the client are invalid. Change-Id: I8c93e84005655a62b8f4f441cc6055d3d1af46d0 CRs-Fixed: 254320 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 870cbe2b5127a8cf5615249cc2c9aeff95283ded Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 30 16:21:36 2010 -0700 msm_fb: display: Enable H/W Vsync in DMA_P for MDDI type 2 panel Enable H/W Vsync in DMA_P for MDDI type 2 panel to avoid tearing issue Change-Id: Ifd0ad38f9c98b430c2c3c3fd01df8343684f5394 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255990 commit a38e51d5349c52705dd3baab850c1ba65988bee7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 28 13:15:16 2010 -0700 msm_fb: display: check power status before restore screen Always check current power status before restore last screen. CRs-fixed: 256126 Change-Id: If5b46683b7c112b32955bd0475a4cbe898f3ea9c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit de437f1260ebca32dadcf01fd15e8a8ea7b6085c Author: Urs Muff <umuff@codeaurora.org> Date: Fri Oct 1 10:52:08 2010 -0600 msm_fb: hdmi_msm: fix CONFIG_SUSPEND undefined case Since 'pm_suspended' is not defined when CONFIG_SUSPEND is not defined, the guards have to be conditional as well. Change-Id: I6c8fe29999e8c18ee2d247ca87b0162e8dd8c18b Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4ae1f467dc6576fa4dfe0f60b14f047b78c0a275 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Oct 1 19:43:04 2010 -0700 msm_fb: display: Fix MIPI DCS Short Write, 1 Param packets The parameter byte of DTYPE_DCS_WRITE1 packets was being written into the wrong byte of the packet header. Change-Id: I6bf00d6cc287f8b6f88a9c332bf94db5f119bc89 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit aabef1e74db50ce5342171daf0119c2cee77ddb8 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 28 16:01:42 2010 -0600 msm_fb: msm_hdmi: support 3D Side-by-side mode Adding support to send 3D mode over HDMI. To turn 3D on write 1 into /sys/class/graphics/fbx/format_3d. This can be done during actual playback, switching in real-time. Change-Id: If933332b84ecbbe6b75fd896b3acf804216a6abf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit fe5ce8d4bbcd99721b6e914a863b85cbe1f888c1 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Wed Sep 29 19:37:14 2010 -0700 msm_fb:display: kickoff DMA when there is no update for video When video overlay is used DMA is kicked off only when there is a video update. This prevents the UI bar update if the video is smaller than audio. CRs-Fixed: 255766 Change-Id: I19c54ee051ddeca3e89a183f878b5c2bb2f60461 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 61802d15a50c90f7ba01d308503f4d67c520914b Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 29 14:22:32 2010 -0600 msm_fb: msm_hdmi: protect worker/isr from NULL pointer When probe fails HDMI_BASE can be NULL. Change-Id: I90d185e338df4fee9f37a62c1005c3b83f2619d5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 9391f66a1674cb0de65a91275bb355772c68c8fc Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Wed Sep 29 15:53:04 2010 -0600 msm: video: support for switching TV encoder mode using ioctl Use reserved[3] field of struct fb_var_screeninfo to switch mode. Change-Id: I5f027612410f26e1e9d440235c4d1924b490fd9c Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit d7801961dc00f7c57f948296307610c35f541a75 Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 27 15:38:01 2010 -0600 msm_fb: adv7520: fix audio mute after HDCP error Use Av-mute during HDCP negotiations, but turn off Av-mute after HDCP success or error. Change-Id: I82ef4e67e45c38f38f1fdd28b19028ab63a0d092 CRs-Fixed: 257430, 257702 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 770f7448a6ae89d0e20aa1f5724dc7283c3cc69c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Sep 18 16:42:20 2010 -0700 msm_fb: display: remove early suspend/resume from mipi This patch contains: 1) remove early suspend/resume from mipi 2) add pm_qos to mipi 3) register MDP4_PANEL_DSI_VIDEO Change-Id: I563fbae57dca0042355637e3f0da2fd3fbbd3b6d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 39e957faae7f1d0d0fbd3dec411f751a72fad64d Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 24 14:46:24 2010 -0600 msm_fb: msm_hdmi: guard against double suspend calls Suspend / Resume can only be handled once, and independent entry points are now guarded against failing while in suspend. Change-Id: Ie964db014354f4b649e153ac2d6077d17f18db85 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0a70e5f17ca65e8449a53585c89959e375e5bc69 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Sep 21 11:25:30 2010 -0700 msm_fb: display: upscaling ratio to include 8 MDP4 support scaling range from 1/4 to 8 included. CRs_fixed: 255497 Change-Id: Ib3f846a71f126c7c36a72059e463027898bad7f5 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit aa117d04153ab8eda2a53bc60f1ed80a8caaa777 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Sep 17 09:59:24 2010 -0700 msm_fb: display: add MDDI compiler option Add MDDI compiler option to prevent compiler error for 8660 platform since 8660 does not have MDDI interface. Change-Id: I6ecd990906667dd38fc6d50b94c1c0a00b9ba726 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a23179efe8a5b7f99c67eb046cec4f99601ab5a0 Author: Ashish Bijlani <abijlani@codeaurora.org> Date: Fri Sep 24 01:40:40 2010 -0400 msm: mdp: enable framebuffer caching on 8660v1 for chromeos Enables FB caching on 8660v1 for chromeos. Xserver decides the caching policy. Change-Id: Id97a47c511270312614264b353b60c98f9cf96ac Signed-off-by: Ashish Bijlani <abijlani@codeaurora.org> commit 45ec8d7a220095ef6e0ca6bf3240288a979a1d33 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Sep 22 23:54:35 2010 -0600 msm_fb: msm_hdmi: completely reinitialize core after HPD Turn HDMI Engine off, init PHY, init video, init audio, turn HDMI Engine on, init HDCP (if available) after each HPD online event, and after a panel-on event while connected. Change-Id: I4f12d91885a6195c6fee1d09458183d615ac10ad Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 3a154cdb742e479b0939107297465ec45c92318f Author: Urs Muff <umuff@codeaurora.org> Date: Tue Sep 21 10:10:56 2010 -0600 msm_fb: msm_hdmi: move audio init to panel on Since the panel resolution may change, the audio needs to be initialized once the panel resolution is set. Also handle the case when panel is on but cable is disconnected. Change-Id: I857de36c4d42f9e2df14205cf498f02a049c3357 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 92df7eef80e028adfeb30445c6cbf66b1fbe830e Author: Neil Leeder <nleeder@codeaurora.org> Date: Tue Sep 21 17:54:34 2010 -0400 msm_fb: add qrdc lcd panel support Change-Id: Id8f57b99300075d4b4a0f7a53b222c8f9614b2ef Signed-off-by: Neil Leeder <nleeder@codeaurora.org> commit 33b773e2dbf0a973c0bfa187123271388b44be9a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Sep 15 16:37:50 2010 -0700 msm_fb: display: perform down scaling check base on mdp revision MDP4 of Halcyon V1 has down scaling limition. The limition had been fixed at V2 and V2.1. Change-Id: I62ca1e62178fc1b69ce80aaa38d1e65cf242ba7f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 65dd5e92304aa362582c72def459c04141a171c9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 18:36:21 2010 -0700 msm_fb: display: Add common Debugfs support for all MDP versions Change-Id: Ifd57e1d9072444678d5d325ebaee1aecbb788a43 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit 569245db188004bf6f76fc2fc25de7fc9b833840 Author: Philip Elcan <pelcan@codeaurora.org> Date: Tue Sep 14 17:29:57 2010 -0400 msm_fb: Add toggle for VGA on 8x60 FFA Add sysfs entry to allow for toggling the external VGA out on/off on 8x60 FFA. Change-Id: Idb42de126daf0c4a8def9f85e80d55a586130591 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 34a939d02afa388b911070b3b872f6f12cfabbc2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 13:08:24 2010 -0600 msm: video: cable detect feature for tv-out Cable detect feature for tv-out. Interrupt-driven when external display is on. Polling-driven when external display is off. Change-Id: I41e9005c61d65657b9db54531306bd664d839cde Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 3f5bd44db5ebf8d27fefb386e81dc00bc0b2c20d Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Wed Sep 15 17:30:12 2010 -0700 msm: Use VG pipe for all the userspace requests RGB pipe might be allocated when userspace requests comes. Use RGB pipe only for kernel requests. Change-Id: Ibb5dbd8f57f1d5bd656b719ddaac9b5d973df8eb Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 46e08cd2287d3f56715d6e6ca8f7e3d166fd0eaa Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 10:27:45 2010 -0600 msm_fb: msm_hdmi: Use mutex for synchronization The ISR and worker function (queued by the timer) both access the state variable. Rather than disabling the irq from the worker function which may not guarantee exclusive access to the state, use a mutex. Change-Id: If6aded298f6f40bbe374b4436fb43117c2501b8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 0181e48defeac5f43304f78e32f3e08e4fb42e9b Author: Urs Muff <umuff@codeaurora.org> Date: Sun Sep 19 00:38:34 2010 -0600 msm_fb: msm_hdmi: turn on HPD on probe HPD needs to be armed outside of panel-power so that proper HPD events can be sent to the user-side Change-Id: I50c4c23617c9ae8905678250276169d0b688a90a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 515a37dfae03a50b16cc72c0a58952075e9e6f4a Author: Urs Muff <umuff@codeaurora.org> Date: Mon Sep 20 12:52:02 2010 -0600 msm_fb: msm_hdmi: use regulators on demand Turn off regulators during suspend, and use board API to turn 5V HDMI and HDMI Core VDD on/off. Change-Id: I9c8736f81d212d80ad76440b5fd7bebf781f8bc5 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 15556a05cdf0bee96e55df4e09415c02c364beb6 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Fri Sep 3 16:28:59 2010 -0700 msm_fb: Round lcdc rate all the time We need to round the rate before calling clk_set_rate() on 7x30 since local clock control clocks expect an exact rate when called with clk_set_rate(). Round the rate all the time to make sure we never fail to set the rate appropriately. Change-Id: I4aeaa70df728a614fe54ec7fb06bdf974ffafdc6 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit e3530ce520cb0622d58a0f9f8958199f16f80cd5 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:36:58 2010 -0700 msm_fb: HDCP feature support on 7x30 Read EDID,set HDCP start bit,set internal keys bit, wait for BKSV interrupts,read BKSV keys against revocation list,shut down A/V transmission on HDMI interface on getting HDCP controller error interrupt. Change-Id: I5cf518598f2ccde8327757e5da39f5b8de46b765 CRs-Fixed: 254800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 8ed64a02c290b0cfa5071a31a4073fd2e5516309 Author: Urs Muff <umuff@codeaurora.org> Date: Fri Sep 17 12:12:49 2010 -0600 msm_fb: hdmi: fix sysfs entry creation sysfs entries are attached to the fbx returned Change-Id: Iada960f1688564185b9de42ec7b9213018b8ec0a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 207a747004c6ead4c7fe7b9d3dca789744eabf19 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Sep 16 13:01:33 2010 -0600 msm: video: featurize external interface code for hdmi and tv-out Featurized HDMI specific code to use appropriate methods and sysfs attributes. Change-Id: I9b67ec23a6c3debfc6e65e9776d05e059c3e3cd2 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 36b51586aa3958f1f70687f0dc4315e86ee00e86 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Thu Sep 16 11:10:19 2010 -0700 msm_fb: display: Disable MDP DMA dithering Disable MDP DMA dithering to avoid double dither effect after PPP dither Change-Id: Ib218e6670deb2b9c0cc9cc18371495f75e66dbeb Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> commit cb25ff4fb1b15a0b2cc036fab46588213936acde Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:56:53 2010 -0700 msm_fb: display: turn mdp clock on/off during histogram Change-Id: I83b602ec4a01fde0b5531df7fa4b1f66295d69b8 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 9b8ff10a55a733c83f9f9ab4eb4f308bd75c16be Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 15 11:17:59 2010 -0700 msm_fb: display: Don't flush img buffers unless it is cached There is now a bit in mdp_blit_req.flags to indicate if the input image buffer is not cached, in which case there's no reason to flush it for DMA. The upper framework (eg. SurfaceFlinger) should set this flag accordingly to avoid unnecessary cache flushes. Also removed the destination cache flush since the composition engine doesn't read back the framebuffer directly. Change-Id: I1916c6a51c335eb0bdc0c765319b603deca82f92 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 80225245ec846957a19d3c5cf97ef8e67ed0b0b8 Author: Michael Burr <mburr@codeaurora.org> Date: Thu Sep 2 16:55:27 2010 -0700 msm_fb: display: Add early_suspend element for mipi dsi Add a struct early_suspend element for MIPI DSI's use in the msm_fb_data_type struct for when HAS_EARLYSUSPEND is configured. Change-Id: I39357a9ef992881201a8a9f735b91dc6674de4aa Signed-off-by: Michael Burr <mburr@codeaurora.org> commit e0d8a781a00c43726baa32864925fa04f373e534 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 21:57:35 2010 -0600 msm: video: rename hdmi common code for reuse with tv-out Rename hdmi common as external common so that it could be reused with TV out Change-Id: I110fb77df6db097f9f60d1845b692fda5b9a1b42 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit b7c94c54bd67f784d5f109de6a6700fae40d2810 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:38:32 2010 -0700 msm_fb: display: Correct pixel clock frequency for LCDC Prism Pixel clock is set to correct value to achieve 60 FPS Change-Id: Ibcdbc6780a4fed6a81020edcc43cf6a6a605a43c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 251463 commit 4c5175576868064d48651819d0bbdc473b7ab49b Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Jul 31 11:40:02 2010 -0700 msm_fb: display: Add MDP4 BLT mode support Add BLT mode support to have overlay output to an intermedium buffer before dma to display panel. Change-Id: I14c6fd383d8d498e56620389c6a5a69768b5bffd Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit c55ad5731465eb43c781b6d880e9bfe791ec4041 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:06:29 2010 -0700 msm_fb: display: fix op_mode over written bug Fix op_mode of overlay over written bug which cause some settings never executed. Add deinterlace enable bit of op_mode. Also correct DMA_E fetch configure address. CRs-fixed: 252617, 252845 Change-Id: I65ea5a2e718e7d34b7400394a20dbcd7d4891533 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit f8cbfe60ddfb5306f13267f1fecb866c04f0c6df Author: Michael Burr <mburr@codeaurora.org> Date: Wed Sep 8 11:25:32 2010 -0700 msm_fb: display: Implement Forward Link Skew Calibration Packet Change-Id: I59d6e2f9cdc44cc702fd244356959931c30e616d CRs-Fixed: 246784 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit f5eeb754e03385d1b3e89b055626effca2bb1eee Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Tue Sep 14 11:42:51 2010 -0600 msm: video: Set clock rate in TV encoder driver Set clock rate of tv_src_clk to 27MHz and correct clock dependencies. Change-Id: Id7ffdc2de039f1ccc68f464e184409774e1dbb15 Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit a0cede5868c6da21bdbb15ffc29e8bd734fbe18e Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: hdmi: power control entry points create required entry points to control the different use cases for the HDMI driver, so that the power footprint can be optimized. Change-Id: Ied0551077a33c63f1f6e250a12259fbcd30aff38 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 38dbe553fc35d1d3c0d1c2c2b5749101ea139768 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 01:20:25 2010 -0600 msm_fb: adding sysfs entries in probe moving up sysfs entry creation from panel power-on to probe, so that user-space daemon can read the cable state before panel power is first turned on, and so that the driver can send uevents during initial panel power off phase. Change-Id: I43388c37dfbf048bd0c14130b807446cb6eaacdf Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4d8d83fb198a309f1c99494d5863d68c673e1b1a Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Sep 13 16:47:48 2010 -0700 msm_fb: display: Enable EMDH PCLK Change-Id: I2a674dfec9c140e49250cb644126812d069fbb4c Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 255313 commit 74a75835cef8cde911a560fb5aff13756e30d7d9 Author: Ravishangar Kalyanam <rkalya@codeaurora.org> Date: Mon Aug 16 17:15:10 2010 -0700 msm_fb: display: Enable BG Tile fetching HW workaround only for MDP2.2 Change-Id: I483fe5182302293d0f967b99ce49de2109247858 Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org> CRs-Fixed: 249932 commit 4661621e735ac029293c6872bd7d342a351247cc Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Sep 13 11:29:59 2010 -0700 msm_fb : Set proper FPGA setting for 8x55 platform Enable proper FPGA Settings for HDMI interface on 8x55 SURF platform too. Change-Id: I5da9539c008f05c32a9f7cea6b6af56d2305570c CRs-Fixed: 254427,250608 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 95079ae135cecb86a88e620f92de766c89ec0006 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon Sep 13 09:08:48 2010 -0700 msm_fb: display: add pm_qos to MDDI Use PM_QOS to request basic axi bus bandwidth for MDDI. Change-Id: I858706d224c7037d036e8c2e96649da4c9540bc4 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22 Author: Bryan Huntsman <bryanh@codeaurora.org> Date: Wed Sep 8 18:01:18 2010 -0700 Initial contribution. This commit takes the MSM and driver changes from git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and applies them on top of git://android.git.kernel.org/kernel/common.git:android-2.6.35. Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org> commit cd238df6940e8f3515c43e34e00ff825a4a8f9c7 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Sep 16 10:17:24 2010 -0700 msm_fb: display: turn on/off mdp clock Turn on mdp clock before read/write mdp register and turn off mdp clock after read/write mdp register. Change-Id: Ia11784f64216e58564b65da4935fca8f26ff5d2b Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 0bb93216c642f90e9be8904150943342b16f5b43 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 13:57:03 2010 -0700 driver: runtime pm annotation for drivers/video/msm/mdp4_dtv.c Change-Id: I1bacecbdec9e62dca1be99ab4fb8a593562d2cba Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 6c2231402b3d7a671939e8910589bc2b895e1a25 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 31 21:49:22 2010 -0600 msm_fb: fix dynamic resolution switching for 7x30 27.03MHz is not yet supported on 7x30, so we need to force using 27MHz instead, if clk_set_rate for 27.03MHz fails. Change-Id: I874d242b42e3e3b85d3370e1e277dea8db9e1d4d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 1266c58750bd52a48be70514dd150975e1684180 Author: Michael Burr <mburr@codeaurora.org> Date: Fri Aug 27 16:07:57 2010 -0700 msm_fb: display: select MXO or PXO for DSI PLL clk-ref dynamically A future hardware design will not have a 27MHz MXO crystal, but will have a 27MHz PXO crystal. Detect when PXO should be used instead of MXO and set the DSI PLL clk-ref appropriately. Change-Id: I4ae91435aad99ac34fdfb7540b49b901cea96fc4 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 625cb21cd30bafc1e7ac7dd0e45c5cfd244060d6 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Tue Aug 31 11:34:54 2010 +0530 Revert "mdp: Add support for MDP composition for QSD8650A target." This reverts commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2. Change-Id: Ia9e7d03d405cd9ec62dffa620081e52d4607c3b2 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 6aea65b1cabafdf0c37b4c3d1cb3e8f309117d3a Author: Philip Elcan <pelcan@codeaurora.org> Date: Mon Aug 30 15:00:09 2010 -0400 msm_fb: Add sysfs entry for panel type Add an entry in /sys/class/graphics/fbX so a userspace app can know what type of panel is behind the framebuffer device. For example, X will know if it is an HDMI panel and do any extra steps required for setup. Change-Id: I951041a0613502be1fbfaca3d7ed8b5a10fec3d8 Signed-off-by: Philip Elcan <pelcan@codeaurora.org> commit 444aa5a8324427cc42f7d757ad8eef42b22838c2 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 11:37:40 2010 -0600 msm: video: sysfs support for TV out driver and replace old files TV out driver with sysfs support for switching video modes. Merged files for better management of sysfs attributes for TV out Change-Id: I3f71e8f92a3e420762190824265ad4209bd3f42d Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit f91289987a77d8d86199feb34c802dd86c7ce922 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Thu Aug 26 07:47:17 2010 -0700 msm_fb: Add feature support for HDCP protocol. HDCP is designed to protect the transmission of Audiovisual Content between an HDCP Transmitter and an HDCP Receiver.Enable support for HDCP encryption in ADV7520 HDMI chip. Change-Id: I9704f64b9b0df169a0370ff8c5a6e96d8b4ac4b4 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 0ef61e3116045dfd3af2d44598b90aa527551a58 Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 22:55:16 2010 -0600 msm_fb: add kernel logs for ioctl failures fbtest was causing unidentified ioctl failures; this is helping identifying the cause for those failures Change-Id: Ic3980b2ee27b423f2936a468ef66f725a89fe8df Signed-off-by: Urs Muff <umuff@codeaurora.org> commit dec207bf6bd3c32c1965b07bd53ab7143c058741 Author: Mansi Patel <mansip@codeaurora.org> Date: Thu Jul 22 13:22:44 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HDCP Adding HDCP support Change-Id: I6f6f9a6cd3f3b0ed62973095a5abb91c9fb69583 Signed-off-by: Mansi Patel <mansip@codeaurora.org> commit 815a8e7bf3d8a1064ca2168a29bf98defb604ec2 Author: Urs Muff <umuff@codeaurora.org> Date: Wed Aug 25 02:31:22 2010 -0600 msm_fb: use hdmi common for sysfs entry creation Use the common HDMI functionality for the sysfs API. Change-Id: If42a4408469d262b72884b29fc69da42b8799c8a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit d7762c1f8c9dce3f410b0db65e78d459549b15cf Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 24 22:16:02 2010 -0600 msm_fb: using hdmi_common to parse EDID make use of common HDMI code to parse the EDID data Change-Id: I312942975067ae1bbfb10958d84e0f1ac2234142 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit e28154c9723ee7d232e7a9aab42a4d24b3390c3d Author: Urs Muff <umuff@codeaurora.org> Date: Tue Aug 10 10:01:42 2010 -0600 msm: video: HDMI common code Move common HDMI code into hdmi_common.c so that it can be reused by 7x30 and other HDMI drivers. Change-Id: I41ecc78f9e68e8f80b3ce8da41eb27244e5b101d Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 4796e2b9f8c47659dca75d3eecd9e4068c5c5403 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu Aug 26 10:49:03 2010 -0700 Revert "msm_fb: display: fix mixer stage range out of bound bug" This reverts commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c. Change-Id: Ifc0a3be36b6b1e5c6db4e9c3b7c20671dbe95f71 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2f876295641716521afe4b95d35465cde68ddeed Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Aug 25 09:40:00 2010 -0700 msm_fb: display: Do not power on DTV at probe which will result in having no power on I2C for 7x30 until panel power on is call. Change-Id: Ifd50d9065432ad3a58764798405d04bdd9128700 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Urs Muff <umuff@codeaurora.org> Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 88a2b88655c6fced3a0e342ebcb9bbf807a526e2 Author: Aparna Mallavarapu <aparnam@codeaurora.org> Date: Thu Aug 26 20:08:37 2010 +0530 mdp: Add support for MDP composition for QSD8650A target. CRs-Fixed: 251979 Change-Id: Iba8281ea47b37a024bdd6239835909a90cb2a203 Signed-off-by: Aparna Mallavarapu <aparnam@codeaurora.org> commit 01ab957732bb79793d2ec4e7d0da02638a6dc6f9 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 15:07:39 2010 -0600 msm: video: TV encoder kernel driver: Clock fixes Proper error checks while enabling/disabling TV encoder clocks Change-Id: I13d9bec38968bf619f9b6258e4037faa3bb2df1a Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit 0d41b4f23142deca25cb6d56a75944ab27ada063 Author: Ajay Krishnaprasad <ajayvenk@codeaurora.org> Date: Thu Aug 26 14:34:05 2010 -0600 msm: video: ATV support for dynamic mode switching Turn tv encoder on before configuring overlay pipe to get correct resolution for the mode. Change-Id: I77f96633ce91df4658500e2cb7e7679ad0dbdeda Signed-off-by: Ajay Krishnaprasad <ajayvenk@codeaurora.org> commit e519e09063f60200d1397263c02845c639267972 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Aug 6 09:39:22 2010 -0700 msm_fb: display: reduce the delay during power off Do not have to wait for 100ms during power off 16ms is sufficient on 60Hz display. Change-Id: I06fe266de7f3848d2ad43f5837f95dd99c660329 CRs-fixed: 231755 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 6a2e3fc2cc64ae4e1b8ad30614271bd0f4e840bf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jul 7 15:09:53 2010 -0700 msm_fb: display: Add mipi dsi display panel support Add mipi dsi both video and command mode display support by adding mipi dsi host, mipi dsi client and display panel drivers. Change-Id: I67d6d6881993c021706f07d96b02902c9393f7d9 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 730c676384f227032873f5066d78929d3baffdf5 Author: Urs Muff <umuff@codeaurora.org> Date: Sat Jul 24 01:45:52 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver: HPD Adding HPD and EDID support Supporting dynamic mode switching Change-Id: I95b7488ceffab919f76300f358ca6cdd15820b4a Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 519f339af23717cf871a12bf2458dba8c07647c9 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 13:49:08 2010 -0700 msm_fb: HDMI should be powered ON by user space on HDP detection HDMI/DTV clocks should be enable only when HDMI cable event is detected, to save power. Also resolves the bootup issue with HDMI cable connected. CRs-fixed: 248533,249902 Change-Id: I13d8b2bcb1f17f2d6982636f749fef1e6b26e800 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 150e5e7964e7fe4b8e77fe79c6770f6bcf28f239 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Sat Aug 14 14:36:13 2010 -0700 msm_fb: display: reset vsync_handler_pending flag during suspend At both mddi_toshiba_lcd_off/mddi_sharp_lcd_off function call mddi_toshiba_vsync_handler/mddi_sharp_vsync_handler to set vsync_handler_pendign flag to false to avoid suspend process stuck at busy loop and never get out of it at msm_fb_suspend_sub(). This problem prevent resume process from happenning so display stay blank. This also contributes to "MDDI RTD failuer" problem since MDDI was power off and MDDI link is shut donw between MDDI host and client. CRs-fixed: 248624, 244906 Change-Id: I7ab0dc6420d80cda19ad43a4dd2ddbe7318bd698 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a469172a1c5884996d7d4cb66ebf6a8d0dda8d18 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Aug 18 16:56:10 2010 -0700 msm_fb: Put last frame as black on suspend Put black frame as last frame on suspend on both HDMI panel and primary panel. Change-Id: I1620292c0abe0c81df1acfeffec54a5824175446 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 5455b12c4d410da95dd8a90f9934d494c122bd2c Author: Gopikrishnaiah Anandan <gopikr@codeaurora.org> Date: Mon Aug 9 18:52:09 2010 -0700 msm: vidc: Move 720p video driver into msm folder. Moved the 720p driver files from drivers/misc/vidc to drivers/video/msm/vidc Change-Id: I27cfd2e9258a95e9190ce0fec37fad2265fba8eb Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org> commit 9a72e92e095d14fffc8a31c3b9b1a7747057e253 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 17:10:14 2010 -0700 video: runtime pm annotation for drivers/video/msm/tvenc.c Change-Id: Ic9f6d859fdfc24d08ac27bc2d99898aba4e4bbcd Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 003b979f5e1e519a35b5697d1bf4bd423c4f6582 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:33:55 2010 -0700 video: runtime_pm annotation for drivers/video/msm/mdp.c Change-Id: Ic1531c6d31739a7d81de205692506f272888602d Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 93aba6dccc134cc2b14a0c3c8f18f0f0bc800902 Author: Amar Singhal <asinghal@codeaurora.org> Date: Wed Aug 4 16:20:12 2010 -0700 video: pm_runtime annotation for drivers/video/msm/ebi2_lcd.c Change-Id: I730e13dae48e04a5cc9b11586bd4526378b41e84 Signed-off-by: Amar Singhal <asinghal@codeaurora.org> commit 517e3355ab974cbf9d529d1ec660d06c29a4d51c Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 17 09:55:18 2010 -0700 msm_fb: display: fix mixer stage range out of bound bug CRs-fixed: 251191 Change-Id: Ied2d51729e78dad6519d00e66e0cbf0d46920599 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14d3db274a3eacea5878dd31e7e10927020d230f Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Tue Aug 3 17:40:00 2010 -0700 msm_fb: annotating msm_fb for runtime PM Change-Id: Id1b7ed4f8373b4431e33c8854d71658ebaab68fe Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 5fc970fd24f1d90a2fa371bf7eaf5780c3e310e9 Author: Gregory Bean <gbean@codeaurora.org> Date: Wed Aug 11 15:35:35 2010 -0700 msm: change GPIO_CFG enums to reflect .35 naming. Change the GPIO_CFG enumeration prefix from GPIO_ to GPIO_CFG_ in anticipation of the backport of the msmgpio driver from Google's 2.6.35-wip branch, where the symbols have had their names changed. Change-Id: Ie818d28f86f4c6c92aa052ddb9f594b81f067df0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> commit d2ebe7626ebab06648f9697515179e11e2c404c5 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Aug 3 15:20:34 2010 -0700 msm_fb: display: remove DMA_PACK_TIGHT from mdp3.0 and above Change-Id: I853620cca00408b7e8da268e5066bc1393063b3d CRs-fixed: 245392 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 2053340fb119a09a105ea110b37d9ae4b5fb08a6 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 15 13:03:12 2010 -0700 msm_fb: display: create barrier when writing qseed tables workaround the 1K Boundary AXI Interleave operations from Scorpion that can potentially corrupt the QSEED table. Change-Id: Ia61076cbdb99b95aeb12a9ce4af7fcc12bc9d761 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 51edd49793e8567604efcc7d26376634af27288d Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jul 14 10:08:04 2010 -0700 msm_fb: No Suspend/Resume function for DTV interface DTV interface connected device should not go into suspend/resume state for power savings to acheive continous audio playback functionality. CR's fixed: 244994 Change-Id: I69b46e5dc6c96a7138ff57ddaa545d5ba73e00c2 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 9d6106c7fa05809d972b95dc1834159aec0afeb4 Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 13:54:33 2010 -0700 mddi: annotating mddi for runtime PM Change-Id: I154695f4f9718464830e67e051b9e30f40dc0206 Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 42e1283c5f7d5928097e1d1b349ee8876d322c3d Author: Jeffrey Chuang <fchuang@codeaurora.org> Date: Wed Aug 4 14:06:08 2010 -0700 mddi_ext: annotating mddi_ext for runtime PM Change-Id: I5d53a2bb76e6ad535b55f60320593c7316c23dea Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org> commit 2768c4933148c64f318b7411ca3fd95bfc97ae9c Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Tue Aug 3 17:06:44 2010 -0700 msm_fb: display: correct pixel clock frequency pixel clk is set to correct value to get 60 fps Change-Id: I77fa24d148be1e1cb8f6b4874ebdd822a766b588 CRs-fixed: 248848 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit c5cdaaa58e7b1bd6da45f4ab14caf749a9dc21cf Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jul 30 16:04:45 2010 -0700 msm_fb: display: make TV_OUT is not set by default Make TV_OUT configure is not set at default configure setting to avoid confliction with DTV. Change-Id: I95b51f38ea9fcb3178639a161822880fe370059f Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e29c212a71773a732f019b3d73b3c7a8d39dd4ce Author: Michael Burr <mburr@codeaurora.org> Date: Wed Jul 28 11:18:53 2010 -0700 msm_fb: display: cleaned up mdp_blit() to be MDP3.02 clean For MDP30 the tile processing is different and thus we do a different check. Also, 7x27 does NOT have MN scaling and overhang issues in the height so no height splits are required. ONLY split in the width for MDP30. CRs-fixed: 247272 Change-Id: I7bdc7832914eaa80d668fd00851272f162a0e0e9 Signed-off-by: Michael Burr <mburr@codeaurora.org> commit 1a9a814f18cdee2ff2b07b18222d5b6f6a0438ef Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: 8660 HDMI TX / PHY kernel driver. Setup PHY and TX Core, and adding FB_MSM device. Handle Power on/off events by the controlling panel. HDMI Audio support (2 channel, 48kHz) HDMI SWI debug support (enabled by default until feature complete) MDP-DTV debug support (needs to be enabled) Change-Id: I74cdfe1489f8a981efa7b415f6f7ee0507643fe1 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 86b810f046b0d76146d46ae720dbbdc18fee4d5c Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 15:16:38 2010 -0700 msm_fb: MDP4 Analog TV support Add an RGB pipe as base layer to blend with a VG pipe to carry Analog TV YUV format and put it to tv encoder through dma_e dma engine. CRs-fixed: 241816 Change-Id: I847a7eeafe6f4b1b9977e144374eb3c1a6a2498a Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit e67ca29a62cac202adbf092efc28e76357d65a69 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jul 26 19:03:27 2010 -0700 msm_fb: Write proper FPGA value to avoid conflict with UART Write proper FPGA value into SIGNAL_EXPANDER registers in HDMI driver to avoid conflict with UART GPIO's selection. CR's fixed: 241467 Change-Id: I5880b287454870e2c1fae82691b9584a3ae27027 Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f6d4b96e080e6e3eebcc1f1b2a43e7535f62d377 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:33:45 2010 -0600 msmfb: Allow MDP4 overlays to use GEM objects Expand the MDP4 overlay structures to allow the user to pass in a GEM handle as a source for the overlay display memory. The GEM handle and flags will trigger the driver to query buffer information from KGSL rather then from PMEM. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 0f3a4677bdbb48e2df64de250b789a02167717a9 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Tue Jul 6 15:29:58 2010 -0600 msmfb: Allow MDP operations to use GEM handles Expand the MDP structures to allow a GEM handle to be passed in as an option for MDP blit operations. Rather then pulling the buffer information from PMEM, the GEM flags prompt the driver to query the information from KGSL. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 624e9899b6a4362218d5cdd073642fe367552bae Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Tue Jul 20 16:41:23 2010 -0700 msm_fb: Added HPD and EDID feature support in HDMI driver a. Set Interrupt Mask register for catching HPD interrupt. b. Add ISR for HPD Interrupt on HDMI cable detection/removal event. c. Add kobject api's to send uevent to user sapce on HPD interrupt. d. Add timer control to take care of debouncing interrupts. e. Support for configuring framebuffer structure on reading EDID information from sink. Change-Id: Ic96ba3fc785d54bb2a882bff509655335d57165c Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit 2a228e7612135c700d75917a69668942d8910d43 Author: Nagamalleswararao Ganji <nganji@codeaurora.org> Date: Wed Jun 16 09:59:15 2010 -0700 msm: vidc: 1080p video driver support for 8660 1080p video driver support is added for 8660 Change-Id: I0e2a491dd32d2a8eeee5d65cd70a7fe4fa719678 Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org> commit dea68ae99815fcdeecd98cb2cc60d0505957ebce Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 20 10:35:42 2010 -0700 msm_fb: display: reduce pixel clock of display panel Reduce the pixel clock rate from 539900000 to 43192000 to decrease bus access bandwidth and power consumption at LCDC mode. Change-Id: If0cc46b70ebb86aad1efe1cbadeed3cdb67cb38d Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit cb514d96a5d4d66370e74d3ae98e7cbbf339515e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Mon Jul 19 14:06:10 2010 -0700 msm_fb: replace BUG_ON with error message replace BUG_ON call with error message to avoid the crash when incorrect color format is passed. CR's fixed: 246713 Change-Id: Ia5b84330bfc71e27cf09921f8def56da5784c0bf Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 345475e974a6281be1b95ac5a060b5177291754a Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue Jul 6 10:53:22 2010 -0700 msm_fb: display: initialize intv to 0 at first MDDI kickoff Initialize intv variable to 0 at first MDDI kcikoff to prevent mddi_kick_interval become huge number which prevent pan_display from working at first mddi kcikoff. CRs-fixed: 245197 Change-Id: I14d90129cf63988a1d63856527107fcffd4092e7 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 51c4ae4090b8a20b243056f1b272a5dde307fe42 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Mon Jul 12 12:17:38 2010 -0700 msm_fb: Deinterlaing in MDP3.1 is enabled Deinterlaing in the MDP3.1 was not enabled earlier causing this functionality not being observed on this platform. CRs-fixed: 246029 Change-Id: I00a9495314f34f610791c55b6492d6caf96f6548 Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4b9e5b18bf2f97f153546a697d5ec7df5ee92d5e Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri Jun 25 12:35:24 2010 -0700 msm_fb: display: enable irq before kick off histogram enable the irq before kick off the histgram process and disable it once histogram is done. when overlay is used on lcdc mode it is disabling irq after overlay is done so we are missing histogram interrupt handling. Change-Id: I111394c705a43e4cc5e4861f02667a5491ae69fe Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 8b9675df4eb7d98a1709e069846a174edee3b9ae Author: Urs Muff <umuff@codeaurora.org> Date: Wed Jun 9 11:32:37 2010 -0600 msm: video: setup DTV overlay polarity for low resolutions. clk_set_rate has to be called before clk_enable. H-Sync and V-Sync polarity are active low for low resolutions. Add mdp_tv_clk for HDMI drivers that need this clock (8x60). Change-Id: If76300ac4d0b6c8a66492f8e0f77b61e133ef709 Signed-off-by: Urs Muff <umuff@codeaurora.org> commit 781c6b0fbe05c56bda8d15359907d9e583231ee7 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Thu Jul 8 10:22:03 2010 -0700 msm_fb: display: remove spi bit-banging in lcdc lcdc panel drivers are using spi bit-banging and causing a GPIO conflit with MSM SPI controller driver.Hence remove the bit-banging and using the MSM SPI controller for SPI transfer. Change-Id: I37abe848ed5f486ba0a8709512a076421fc58299 CRs-fixed: 220233 Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit b8edd675c91c8f6f92a6067356cacf01dff95393 Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 11:08:34 2010 -0600 msm_fb: Set the default color depth from the kernel config Make the default color depth for the framebuffer configurable via the kernel config. Default is RGB565, but ARGB8888 and RGBA8888 are available. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 78f720650b1c5400baf067c6e766ef753dfa5b4d Author: Jordan Crouse <jcrouse@codeaurora.org> Date: Mon Jun 28 10:55:09 2010 -0600 msm_fb: Use varinfo information to choose the proper color config Use the position of the transparent portion of the color information in varinfo to determine if we should use RGBA8888 or ARGB8888 when 32bpp is selected. Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> commit 410efd5af5b0a8f230e5c98c64eddac9061d493a Author: Naomi Luis <nluis@codeaurora.org> Date: Thu Jul 1 22:19:23 2010 -0700 msm: Return the correct size for tiled formats The tiled format buffers are 8K aligned. Return the 8K aligned buffer size for the tiled color format. Change-Id: I81d04ec1d7f55ee68c361aaa1c515cc4318e906d Signed-off-by: Naomi Luis <nluis@codeaurora.org> commit 450e38300a07cdb77b3ef36a4e61a3f0f835aba0 Author: Ravi Bandi <rbandi@codeaurora.org> Date: Sat Jun 26 20:37:14 2010 -0700 msm-fb: s/w workaround for MDP3.0 ppp h/w lockup Pulling in the changes of s/w workaround added for MDP3.1 to MDP3.0 CRs-fixed: 242307, 244250 Change-Id: I7c5ecdd8c0e02ea6c1fb2ec3261f81d6c1171f3d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit f55b99553dc3ae09afb816e25cf657cff8e2356e Author: Ravi Bandi <rbandi@codeaurora.org> Date: Wed Jun 23 19:08:28 2010 -0700 msm_fb: Set correct video format for different bpp values Video format is not set properly across 16, 18 and 24bpp formats, due to which colors are not displayed properly. Rectified the issue by using appropriate video format descriptors for these panel types. Change-Id: Id79703b51aa3aceb02d080372a5696d41658f67d Signed-off-by: Ravi Bandi <rbandi@codeaurora.org> commit 4325aa8038ed6631aa49a272c8951ddd042288d7 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Wed Jun 23 13:16:47 2010 -0700 msm_fb: Shutdown HDMI clock on dtv off. Disabling HDMI clock while dtv interface is off. Change-Id: Ib060580a79572d646b98687f4577f665ca5fdc0e Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit ee61d7178de4c8f986ae33ec5813ed34bac0a3e3 Author: Abhishek Kharbanda <akharban@codeaurora.org> Date: Mon Jun 14 18:32:01 2010 -0700 msm_fb: Enable Audio settings for ADV7520 HDMI chip Configure ADV7520 HDMI chip for dual channel audio through I2S inerface. Change-Id: I916acfc38fe497b54ce5147a07a700f57b305a4b Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org> commit f29603084ab9ae536eccdf741533e39fe6cae746 Author: Omprakash Dhyade <odhyade@codeaurora.org> Date: Tue Jun 15 11:56:03 2010 -0700 msm: Add framebuffer read and write support in rotator driver Rotator driver can only read or write to PMEM. To read or write to framebuffer, we change MDP driver to provide framebuffer physical address information. This change is required so that we avoid copy of framebuffer in PMEM for rotation. The rotated buffer is then used to push on overlay engine. Change-Id: I17322fa77bb05f36f70ac0c225299614dd607fe9 Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org> commit 4e2da5926dc4b904dcfa930219c4bc1a1e2f6233 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 17 15:57:43 2010 -0700 msm_fb: display: add HDMI mirror support Allow VG pipe can be shared by both RGB and YUV format (video). YUV format (video) have higher priority than RGB format during overlay play so that RGB format can be preemepted by YUV format during VG pipe sharing. Change-Id: Ie9bf1beb28095e157f5be4a573fc541780a54e09 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 5eef0fe4e1eb1150166233425f42b05d307962b4 Author: Kuogee Hsieh khsieh <khsieh@codeaurora.org> Date: Fri Apr 9 16:05:28 2010 -0700 msm_fb: display: enable software vsync to prevent display from tearing Enable software vsync and adjust frequence of MDDI display panel to prevent tearing from happening. Also add vsync can be enabled/disabled from mdp4 debugfs. CRs-fixed: 221821, 227518, 241791 Change-Id: I482980ce1d12b083745e74aad1248a66b33d4cb8 Signed-off-by: kuogee hsieh <khsieh@codeaurora.org> commit b1703457d0b166d30fbea0ee1147cc8bbcf478e6 Author: Derek Kulinski <dkulinsk@codeaurora.org> Date: Wed Jun 2 15:34:26 2010 -0700 msm_fb: proper order of IRQ operations for ST1.5 Ensure interrupt is requested before it's enabled during panel-on processing. Disable the interrupt before adding fb device to avoid panel-on enabling it a second time. Change-Id: I38c16c4d2fd3a2aa1e8ab4589980dd8e753f9ed5 Signed-off-by: Derek Kulinski <dkulinsk@codeaurora.org> commit 4c018c787d601ad9beadaf8ada3b2dba8c5f8e82 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 11 11:26:06 2010 -0700 msm_fb: display: fix MDDI NULL function pointer bug Check function pointer before call it during parser received reverse MDDI packets. CRs-fixed: 239194 Change-Id: Ia4d371f4f4d1500b227ee6361dc5b81087e9735c Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 14abca9a4a199a325690aed620aa0adc659f6d86 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Wed Jun 9 17:27:31 2010 -0700 msm_fb: display: change fb state to FBINFO_STATE_RUNNING In msm_fb_resume, changed the fb state to FBINFO_STATE_RUNNING instead of a magic number 1 (SUSPEND) after resume. In addition, change all the magic numbers to macros in suspend as well. Change-Id: I5a854293a3577522c559fd90a2dbc84a06072097 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 91277807c75b4ed9844441da31d9a49c990c1334 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Fri Jun 4 08:19:58 2010 -0700 msm_fb: display: Add FB_MSM_OVERLAY dependency Add FB_MSM_OVERLAY dependency to FB_MSM_HDMI_ADV7520_PANEL to fix compiler error when FB_MSM_OVERLAY is not defined. CRs-fixed: 240734 Change-Id: I948b2b198f69ada3dfb2eb4903363230a48935aa Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a54aac47e202993920fae8e9297e6bf59221b765 Author: Ajay Dudani <adudani@codeaurora.org> Date: Wed Jun 2 18:40:14 2010 -0700 msm_fb: Add ST1.5 LCDC driver Change-Id: Ia592bed81e316118f4c301ad59931fb9502ce49e Signed-off-by: Ajay Dudani <adudani@codeaurora.org> commit 2c970e38fe13d77a00323897ac62a15423996329 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Tue Jun 1 13:28:42 2010 -0700 msm_fb: make 8660 backlight work with new pwm api The pwm api changed to use a callback function in the board file and to specify the pwm duty cycle and period in terms of usecs instead on nsecs. Update the 8660 display to work with it. Change-Id: Idfc67a88261ac099c50214d61ac55dbc0311d405 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 8bbb084294c576722b05e5d941528f5cf129bffd Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Wed Apr 14 12:42:37 2010 -0700 msm: display: backlight intensity Update the panel driver to handle backlight intensity calls using pmic's pwm channels. Change-Id: I3c63588e5244748da5461e43f7f0831ddf635c5c Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit d4ac1bbc8a7a10d457f5809728a481656a64da3b Author: Steve Muckle <smuckle@codeaurora.org> Date: Wed May 12 22:43:25 2010 -0700 video: msm: remove suspend_late, resume_early initializations The platform_driver struct does not have suspend_late or resume_early data members. Change-Id: Ice92977de598fd4bad6f607a8b1e1fc97e03b826 Signed-off-by: Steve Muckle <smuckle@codeaurora.org> commit f95c6bd8c07d38466c51d2c245aeaac3aac189d8 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:11:55 2010 -0700 msm_fb: display: Add panel driver for wsvga display Add code for the Samsung's wsvga panel (part number LTS480WS-C01). It has a resolution of 1024 x 600 pixels, runs over an LVDS interface and accepts RGB666 pixel data. Change-Id: I399a0c08257a645fe205d5f3cb766e7dfbf20121 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit 404c2879aa60104da586011fc5504163cc5143b4 Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 13:48:49 2010 -0700 msm_fb: display: set mdp core clock rate from the board file Rather than hard-coding core clock's rate, set it to a value passed from the board file. If it isn't set then the mdp core clock was not meant to be set with a rate on that board. Change-Id: Ic7ca1b830a8b1bf4bedb9449e58b7f4b58424019 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3224f712002dbf029fab77d9c848de3a01bde9d Author: kuogee hsieh <khsieh@codeaurora.org> Date: Tue May 25 09:17:49 2010 -0700 Revert "msm_fb: display: add zorder check during overlay_set" This reverts commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42. Change-Id: I1ce7311f326a99b738d32055f98879754e5b25b6 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 4fa05a83d4bcc394d536cd2490c3c95e74f5fb11 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Mon May 24 09:04:24 2010 -0700 msm_fb: display: retransmit set_backlight pmapp rpc request Re-transmit set_backlight pmapp rpc request in case of rpc failed. Change-Id: I2ed01bd7ec40da313a75d441a438491a13a875a7 CRs-fixed: 236277 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit a048cadbbfbf89e28802d3ce2da5c7b997c49b42 Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 14:25:57 2010 -0700 msm_fb: display: add zorder check during overlay_set Add zorder check to avoid same zorder using by multiple overlay pipes. CRs-fixed: 232438 Change-Id: Ia6e66aba70f01a9b77ac6f2e1c565cc16496e613 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> commit 795d1b324ee9052b0d4ee96771bc87bf61088fce Author: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Date: Fri Apr 2 17:03:53 2010 -0700 msm_fb: lcdc: Add support for clocks on 8660 8660 has different clocks than older platforms. Update lcdc to handle 8660 clocks as well as the older clocks. Change-Id: I0b57a525205af448207a1500e23910e5c13c3738 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> commit a3ca6eef9dff1c435fc48d51bbd71edc71f7b0c0 Author: Rajesh Sastrula <vrajesh@codeaurora.org> Date: Fri May 14 15:05:42 2010 -0700 msm_fb: display: Fix calculating brightness duty level Calculate the brightness duty level based on the maximum brightness level supported by the panel rather than from a constant value. Change-Id: I4c8d371a59e38c084bddeaa827c3982b47bbc7ee Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org> commit 347a643f440b0ba370830d54cb85966df18d7023 Author: Stephen Boyd <sboyd@codeaurora.org> Date: Thu May 13 18:23:59 2010 -0700 msm_fb: Fallback to correct clock The tv_src clock should fallback to the TV_ENC clock and not the TV_DAC clock. This was already fixed in the devices.c table but wasn't fixed in the driver. Change-Id: I9dbf17d9123d25142e8123b54b1c5856482b087b Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> commit dc34a27a27d726d98b34046c9fa5175322d794ba Author: kuogee hsieh <khsieh@codeaurora.org> Date: Thu May 13 10:21:54 2010 -0700 msm_fb: display: initialize op_mode at every overlay play Re-initilize op_mode to have it update with new value according to new overlay play's configuration Change-Id: I7ee2489a93efa72e691746037bdf853d862a023b CRs-fixed: 230612 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-01-11 01:19:01 +01:00
#define DEVCAP_VAL_DEVICE_ID_H (uint8_t)(TRANSCODER_DEVICE_ID >> 8)
#define DEVCAP_VAL_DEVICE_ID_L (uint8_t)(TRANSCODER_DEVICE_ID & 0xFF)
#define DEVCAP_VAL_SCRATCHPAD_SIZE MHL_SCRATCHPAD_SIZE
#define DEVCAP_VAL_INT_STAT_SIZE MHL_INT_AND_STATUS_SIZE
#define DEVCAP_VAL_RESERVED 0
#endif /* __MHL_DEVCAP_H__ */