summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev (follow)
Commit message (Collapse)AuthorAge
...
* | mdss: rotator: fix memory scribble issueTerence Hampson2016-03-23
| | | | | | | | | | | | | | | | | | | | Prior to this patch it was possible for rotator wq to write to memory that had been freed in close session. Close session now offloads the close work to wq if it still has not completed the work. Change-Id: I4b48071f930b912a098094d7de2b2081dac4c2e5 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
* | msm: mdss: provide buffer height when getting plane sizeTerence Hampson2016-03-23
| | | | | | | | | | | | | | | | When calculating the plane sizes the buffer height is what should be passed into mdss_mdp_get_plane_sizes. Change-Id: I3e4bab0fbfed1e2f34dbe757768a72c9a7916919 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
* | msm: mdss: fix smmu buffer mapping in recovery modeVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | When booting up in recovery mode, mmap is called without iommu attach. This would result in device panic as iommu fails when buffer mapping is done without attaching the respective iommu domain. Fix the issue by delaying the mapping to a later point, during the commit. Change-Id: Idbe4f6ca5557774b5add56c064ea6b05a67d530f Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | msm: mdss: Correct the condition check for AD input ioctlPing Li2016-03-23
| | | | | | | | | | | | | | | | | | | | One of the condition checks in ad_input ioctl is to check the input mode is not MDSS_AD_CALIB_MODE. The current code missed one pair of brackets and made the check invalid. Correct the check to fix the bug. Change-Id: I82a083fe8a1bef6c57a01e20e02fdd14f8c09bde Signed-off-by: Ping Li <pingli@codeaurora.org>
* | msm: mdss: try recovering from pingpong timeout without panicJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation, as soon as the ping pong timeout happens, driver dumps the relevant logs for debugging and panic. It is possible to recover from this situation without panic by performing MDSS control reset and panel write pointer reset. This change tries to recover from pingpong timeout. If the recovery is not successful for 10 consecutive frames, uevent is sent to HAL layer for performing blank and unblank of display driver. Change-Id: Iadc929a79a62bbf222b9022af5cf04f870079ded Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | msm: mdss: restore backlight level when recovering from ESD attackAravind Venkateswaran2016-03-23
| | | | | | | | | | | | | | | | | | | | When ESD related panel failures are detected, the recovery process involves blanking and unblanking the panel. In such cases, it is required to restore the backlight level as there may not be an explicit call from the userspace to update the backlight. Change-Id: Idd84a628cf2a1e37121b94d3c5cc11d45a78fdab Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | msm: mdss: dsi: Add dsi event to reset panel write pointerJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | There are instances where the mdp wants to reset to full screen especially during frame timeouts. Add event to s/w reset the dsi core and reset the panel's ram write coordinates to full screen. Change-Id: I43e5cb12126837330f3ed72386f87f5c7fabd2c0 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | msm: mdss: reset MDP ctl path for pingpong timeout recoveryJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When pingpong timeout is received, it could be due to some bad configuration on MDP pipeline. In order to recover and have clean HW for next frames, perform SW reset on the faulting ctl path. Also make sure all the pipes in the bad configuration are halted properly and does not have any residue transaction for the new frames. Conflicts: drivers/video/msm/mdss/mdss_mdp_pipe.c Change-Id: I9a6c6cb6d004fd65c24a7fefe7457ee68af9273a Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | msm: mdss: reset panel when wait4pingpong timeout is receivedJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to various reasons wait4pingpong timeout can be observed and this usually results in split screen behaviour for the end user. Split screen is manifested because for a given frame only half of the pixel data was sent and then some kind of hang was observed. So unless the panel and display pipeline is restarted, next frames will start from the location where it hanged. Improve user behavior by resetting the display pipeline including panel by sending panel dead event to user-space. Upon receiving this event user-space should issue blank and un-blank which should recover the display pipeline. Change-Id: Iec674a61229cbc037d24cf4f62ceb02a977b219c Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | msm: mdss: remove process id based refcounting from fbDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | FrameBuffer driver is tracking each fb_open and fb_release call with process id and file descriptor node. This is duplicate logic to track single call. This change removes process id based framebuffer driver call tracking to reduce the complexity. File descriptor is different for each call. That's the main reason for choosing it to track the calls. CRs-fixed: 716379 Change-Id: Ida1728d3878aeedf486bebef0f6f70c1e68d006e Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | msm: mdss: hdmi: Remove redundant update of output formatTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | Remove a redundant update of the output format when setting up the AVI Infoframe content. Change-Id: I065b310272c4b32dc9fafdd6e2d386cfa1952eac Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | msm: mdss: add flush bit and nrt vbif in xlogDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | Add xlog for ctl flush bit configuration and non realtime vbif debug node. Change-Id: Ife7790286e16291067da3b295ecc1d035bf71fd6 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | msm: mdss: do not use mdp_lock for hist irq enable/disableKrishna Chaitanya Parimi2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Calls to hist irq enable and disable are encompassed with a spin_lock mdp_lock. This is not needed as all histogram irq programming is independent of other MDP irq programming and simultaneous access is restricted using hist intr lock. The enable/disable irq calls made are further protected by one mdss_lock spin_lock for preventing simultaneous access to enable and disable of MDP irqs. Change-Id: I2ec63e35fc3eca953e9ac21f7052c705656d899b Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org> Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
* | Revert "msm: mdss: handle mmagic mdss axi clock for msm8996 target"Dhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 832b482b621b ("msm: mdss: handle mmagic mdss axi clock for msm8996 target"). SMMU driver adds the vote for mmagic mdss axi clock vote which will take care of MDP and DSI use cases. No need to put vote from individual module. Change-Id: I858f28eb88deb34a612050d913459e62cc0955a8 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org> [cip@codeaurora.org: Removed msm8996-mdss.dtsi changes] Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | msm: mdss: use delayed unmap for smmu mappingsOlav Haugan2016-03-23
| | | | | | | | | | | | | | | | | | | | Replace dma_map_sg/unmap_sg with msm_dma_map_sg_lazy /msm_dma_unmpa_sg to avoid buffer unmapping till the time it is free. Change-Id: I0559238301882a89d25f3cf99a60140c9e9c1bdf Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | mdss: rotator: validate rotator work item against sessionTerence Hampson2016-03-23
| | | | | | | | | | | | | | | | | | | | | | The rationale for open session is to accurately vote for bw and clk rates based on configuration provided. Prior to this patch it was possible to call open session with one configuration, but provided an entirely different rotation configuration as work to be completed. Change-Id: I82c95c290cffa75ea7b09ea4a021e9e436782c06 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
* | msm: mdss: rotator: calculate the correct wb stride using img widthTerence Hampson2016-03-23
| | | | | | | | | | | | | | | | | | The width provided to mdss_mdp_get_plane_sizes, which is used for calculate stride, was using destination region of interest width instead of buffer image width. Change-Id: Ib585999207860fc85adeb1a9b23a6ba31dc543e2 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
* | msm: mdss: add support to set the minimum mdp transfer timeIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For command mode panels current code calculations adjust the mdp clock rate based on the minimum dsi pixel clock rate. This is wrong and can lead to power issues since this rate considers the blanking times which are not required for the mdp clock calculations. This change optimize the calculations by only considering the worst width that could be processed by the mdp without blanking periods and consider the time expected for the transfer by adjusting the mdp clock in order to meet the performance requested; this time can be tuned through the panel configuration. Change-Id: Ib25df0e8f749d3ffc1d9059d5d7eac27e0f0b81e Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: hdmi: add audio notification acknowledge featureAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | Add sysfs node to allow audio HAL to acknowledge every connect/disconnect event. This makes audio HAL and HDMI driver to be in sync with respect to notifications and avoid any fast plug-in/out notification issues. Change-Id: I13634bb0efb8222cdbd86afa6723781f682632b3 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | msm: mdss: fix dst_x adjustments when source split is disabledUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | In order to handle different use-cases, mixer ROIs and/or dst_x of a pipe is modified and re-adjusted. In one of these use-cases, when source split is disabled, re-adjustment was missing causing HW hangs or unexpected layer positions. Fix these adjustments. Change-Id: I7cda887874aad97bca16b63ca5a9eac303fa63a4 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: fix wrong mdp ib vote calculationIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | Fix missing assignment for the mdp ib bandwidth vote calculation that was causing to skip the ib factor and resulted in the wrong ib vote calculation. Change-Id: I0289dc94040416e42543c192ad88ef246483c0d4 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: adjust mdp bw vote according to recommendation for 8996Ingrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | Adjust mdp bandwidth vote to meet the recommended system settings for 8996. Change-Id: I0901dc211fe8dac366e3602a45656aacc48683d3 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org> [cip@codeaurora.org: Removed msm8996-mdss.dtsi file from change] Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | msm: mdss: add support to change border color through debugfsUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During blending operation, bottom color is known as border color and it is same size as mixer dimensions. Default color is black but it can be configured to different color. This is very useful for debugging purpose. Add support to program border-color through debugfs as per following guidelines. echo code > <debugfs>/mdp/bordercolor/colorN where code: 12bit color value in decimal colorN: color0, color1, color2 Change-Id: Ia3e8791713f5aa309a95c867445995ced028dd8d Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: fix secondary ctl flush issue on command mode panelsUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | Starting with patch 2551ce16a5d44a3b03d0885b499924f6d218c78e, msm: mdss: add async support for hw cursor, flush logic was modifed. However it introduced an issue where if mixer configuration is skipped then secondary flush is skipped. This can cause issues. Fix the flush logic by ensuring that secondary flush is not skipped. Change-Id: Iee8b9ca80353b2fdb096e64b12c865cd10f0dd08 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: hdmi: return cable status only when HDMI is poweredCasey Piper2016-03-23
| | | | | | | | | | | | | | | | | | | | When audio driver requests the cable status, return that the cable status is connected only when HDMI is powered. This prevents audio from accessing HDMI registers when HDMI clock is off. Change-Id: Icc5016df731725de25b4ca86e2ac3632ab89d5bf Signed-off-by: Casey Piper <cpiper@codeaurora.org>
* | msm: mdss: fix to increase the retire count during create fenceIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | Current code does not increase the retire count during the create fence. This results in the vsync handler not getting created to report the vsync during kickoff. Change-Id: I81373487142a6f501a58027a26a49a9949c56ee0 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: Add atomic commit compat support for PPBenet Clark2016-03-23
| | | | | | | | | | | | | | | | This change adds compat layer support to the atomic commit ioctl for postprocessing. Change-Id: I211f27d885aca0d8088c2baf14025ebf083fedfd Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: Add atomic commit PP supportBenet Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | | This change adds support for SSPP postprocessing using the atomic commit ioctl. The configuration given as part of the ioctl will be cached in the same pipe res as before, and the register programming sequence will be called from the pipe setup as before. Change-Id: Ida8209f80e55e9d5009b5df4e55f787b4a85ddc0 Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: modify BW overhead and compression ratio related logicUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | As per the new qos strategy, overhead fudge factors are not needed and thus remove related logic. Also as per the new qos implementation, user-space program is responsible to passing on compression ratio when they setup the pipeline. So cleanup current driver logic which makes decision based on data path. Change-Id: I3d4f7ab3749b5b8595ea322a0b5b25ba3187b660 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: fix compression ratio for logic for rotator and wfdUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | Currently rotator driver is using input compression ratio for output. This is not correct because it is possible to have different input and output formats which changes compression ratios. Similarly for WFD, use output compression ratio passed by user-space. Change-Id: I63650bcbf9f02ddf3310aacdc27f009381775481 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: replace mdss_fudge_factor with mult_factorUjwal Patel2016-03-23
| | | | | | | | | | | | | | | | | | Currently there are two different data structure representing multiplication factors. Replace internal one, mdss_fudge_factor, and with the one shared with user-space, mult_factor. Change-Id: I9e0dcc092b4f9033cbfcd7e185e642c922e29a27 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
* | msm: mdss: hdmi: remove check for hdcp ops when starting hdcpCasey Piper2016-03-23
| | | | | | | | | | | | | | | | | | | | | | Checking if HDCP is enabled will ensure that HDCP 2.2 is enabled, in which case hdcp ops will be available. Removing redundant check for hdcp ops. This prevents an error log when EINVAL is unnecessarily returned to mdp_intf. Change-Id: I3f63dbd70651b15b241df9f3ebd4c1aab231fced Signed-off-by: Casey Piper <cpiper@codeaurora.org>
* | mdss: rotator: fix pm_suspend to no longer release rot sessionsClarence Ip2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Rotator was releasing all open rotator sessions whenever pm_suspend was called. This resulted in rotator trying to access memory that was freed after resume was called. We are now only cancel all rotator request (rotator work items) on pm_suspend. Change-Id: Ib63e49213e6fbdec216888e4e7d3fb29defa3903 Signed-off-by: Terence Hampson <thampson@codeaurora.org> [cip@codeaurora.org: Resolved merge conflict] Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | msm: mdss: skip optional property logging in DSI driverDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | Move error messages to debug messages for optional properties in DSI driver. Change-Id: Ie5175cbe647351a6f35914262b1893ef162b7ed3 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | msm: mdss: override DSI hw configurationDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | MSM8996/8994/8992 is configured for split display configuration as default option. However, bootloader can override this configuration to single dsi by selecting a single dsi panel on one of controller and set "none" to another controller. This requires hardware override. Change-Id: I3e585079548e92f6d576615059987321dfad132a Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | msm: mdss: Support split mode configurationGopikrishnaiah Anandan2016-03-23
| | | | | | | | | | | | | | | | | | | | For destination split panels driver should allow the client to enable the post processing features for entire screen or one of the slpit sides. Change adds support in post processing driver to allow the clients to configure feature in split mode panels. Change-Id: I2c84aa488205aaa17b5abd3bc26b975361967bba Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
* | msm: mdss: enable clamp control configuration during clock on/offJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | Enable MMSS clamp control configuration during clock on and off cases on DSI v1.04. This clamp configuration helps in retaining PHY register configuration when the MDSS gdsc is toggled. Change-Id: I403417442aedd394d4e8d7c4d20c361c2130dbb1 Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | clk: mdss: remove configuring phy registers during pll disableJeevan Shriram2016-03-23
| | | | | | | | | | | | | | | | | | | | | | DSI driver needs to disable pll and enable clamps before entering into low power state. Since the PLL disable is configuring GLBL_TEST_CNTRL, CLK_BUF PHY registers to 0, these registers are not restored after the clamps are disabled. This change avoids configuring these registers during PLL disable and gets disabled during dsi off. Change-Id: Ia577099679f23cb9d0d42417863b6b3ad3af635b Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* | mdss: mdp: fix smmu power rail handoff configurationDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mdss smmu driver turns on the power rail during probe and leave it on for continuous splash screen scenario. It avoids extra refcount during attach for this scenario by relaying on MDP handoff status. However, MDP handoff status is updated before context banks are attached for video mode panel. This adds extra refcount to power rails and leave them on always. This fix moves the power rail handoff to smmu structure instead of relying on MDP status. Change-Id: Ifc98c0e3812c7b78224f0167886dcb49dba3b267 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | mdss: rotator: fix rotator bus bw voteTerence Hampson2016-03-23
| | | | | | | | | | | | | | | | Was using do_div improperly, this resulted in 0 bw vote from rotator. Change-Id: Iac1803631b674d6931b0dcbe45d65fd4740c36c9 Signed-off-by: Terence Hampson <thampson@codeaurora.org>
* | msm: mdss: Copy only error code back to userspace after atomic commitBenet Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Previously, the atomic commit ioctl copies the entire kernel layer list to the userspace layer list structure. The only parameter modified during atomic commit should be the error code, and therefore, the only value needed by userspace after the atomic commit ioctl returns. Copying the kernel layer list structure causes the userspace to have stale kernel pointer references to scale and PP info structures. Change-Id: Ia8e96af21f7d9594a47d1503f3afef50a767971f Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: Fix atomic commit compat layer copyBenet Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | The compat layer for atomic commit is incorrectly using compat pointers. This change adds correct support for copying all nested compat pointers in the atomic commit structure. It also returns the correct error value when copy_from_user fails. Change-Id: If35a00583cfed105a16ffa547813c386314bff9b Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: Clean up PP framework for unchanged PP featuresBenet Clark2016-03-23
| | | | | | | | | | | | | | | | | | | | | | When creating the framework for handling PP versioning, all PP features were given interface update and space in the framework for handling versioning. However, the CSC hardware will not change, and therefore will not need any updates. This change removes the framework update done for CSC. Change-Id: Idc6c0b7ea62717ff1d1f2e4c827481e5db1976a8 Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: Return error when Gamut table size is invalidBenet Clark2016-03-23
| | | | | | | | | | | | | | | | | | Previously, the gamut caching code was not returning an error value when an invalid table size was passed. This change will return error during caching if the table size is invalid. Change-Id: I212b345239543943670c2f03a0fc8376d31d1e86 Signed-off-by: Benet Clark <benetc@codeaurora.org>
* | msm: mdss: update panel timings in upstream driver during vblankIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | | | During the controller configuration, some of the panel timings could have been updated by the driver. This change updates the panel information shared with the upstream driver to keep updated the panel settings that have changed after the controller setup. Change-Id: I4d050d74f1aec50dbc294357ba0dace7c0940a16 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: expose prefill factors to user spaceIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | Add factors for prefill calculations to the capabilities exposed to the display driver user space. Change-Id: Ib479a5514978c8dec2376be4f2510bafb460af10 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: add simplified prefill bw equationIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | Add support to calculate the mdp prefill bandwidth with simplified equation. Change-Id: Icb9fd738a7aced7d59b8d59a78691e7316ef31c1 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | msm: mdss: fix req availability check in dsi command commitVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | NULL check for req in dsi cmd list commit is misplaced, causing race condition due to skipping of dsi cmd mdp busy check. This would eventually result in underflow due to possible contention of using dsi link. Fix the NULL check to avoid misbehavior. Change-Id: I5999646d4db67efd0854b3db07e1d987e66c9cb5 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | msm: mdss: initialize AD calibration bl to current bl levelKrishna Chaitanya Parimi2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When AD calibration mode is turned ON, an ioctl is sent to set the mode to calibration in driver. However this does not set the calibration mode backlight. So the backlight value would remain 0. If bl is not set during calibration then upon suspend resume the bl will remain as 0 and nothing would appear on display. Now initializing the calibration mode bl level to the bl level when calibration mode was turned on. Change-Id: Iecee61dc69815b673deb8610a524b07c4f4b9261 Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org> Signed-off-by: Ping Li <pingli@codeaurora.org>
* | msm: mdss: Fix AD calibration mode resume backlight issueKrishna Chaitanya Parimi2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AD when set in calibration mode will block all backlight updates from frameworks. Hence during suspend/blank the backlight would not be 0 but will be set to the value set in calibration mode. Now this is changed as during suspend the backlight is set to 0 within driver itself. This complicates things by causing backlight to remain 0 post resume in calibration mode. Now changing the behavior so that backlight is set to 0 during suspend and set to the calibration set value upon resume. Change-Id: Id0b3919a7034875b3f3a606d00f462ceb21f40ee Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>