summaryrefslogtreecommitdiff
path: root/drivers/video (follow)
Commit message (Collapse)AuthorAge
...
* | | msm: mdp: update pgcGopikrishnaiah Anandan2016-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | PGC block of mdss supports 8/10 bit rounding options. Default setting is 10 bit, userspace module can enable 8 bit rounding by updating the flag. Change-Id: Ide66c3854e333a0a1ce48b15d82760f37a05cc10 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
* | | msm: mdss: clear solid fill pipe b/w voteNaseer Ahmed2016-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | solid fill pipe b/w vote is not reset properly. This causes a mismatch wrt the bw calculation in sdm and results in a bw validation check failure. Change-Id: Ie4f36c376efe3eb405cf4aca6f2ed79ee9849950 Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
* | | msm: mdss: protect retire count with mutex lockDhaval Patel2016-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The retire timeline counter in command mode is used by vsync worker queue, validate/commit ioctl thread and overlay off. However, this counter is not protected with any locking mechanism and each thread updates the value. Race condition with updated value between two thread can lead to invalid vsync operation or list corruption. This change protects the counter with mutex lock to avoid all such race conditions. Change-Id: Ib3c3f6c839fc82c6d31fa28066df1f23dab19746 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | mdp: mdss: Avoid initializing mdss fb when on virtual fbJeykumar Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Avoid intializing MDSS fb device when virtual framebuffer is enabled. Change-Id: I20b2823db76e6e8cb3156343311179c5b36c8c34 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
* | | vfb: Support vfb configuration from kernel cmdlineShashank Mittal2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to configure mode_option, framebuffer size and bpp from kernel command line. Change-Id: I2f08ed3851db4008569f1c77a195e46931674919 Signed-off-by: Shashank Mittal <mittals@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
* | | msm: mdss: create u32 debugfs for enable_gate/wait4autorefreshClarence Ip2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Match debugfs creation to variable type instead of a 'bool' one. This fixes a compile issue under 4.4 since debugfs_create_bool now expects a bool* instead of a u32*. Signed-off-by: Clarence Ip <cip@codeaurora.org>
* | | fbdev: check size before copying the userdataDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Check cmap data size before copying the userdata to avoid null access. Change-Id: If75c0339cf5e0ace6a35abc625f02283cc99298c Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | mdss: msm: Update dither driver interfaceGopikrishnaiah Anandan2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Post processing driver clients can program the dither table in mdp. If length of the dither table is set to 0, driver will program the default table. If driver client would like to program the table it needs to update the length field as per mdp hardware version. CRs-fixed: 983164 Change-Id: I5e6aaa3d9376884e5ea1fe153cdf2798e3a52d1e Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
* | | msm: mdss: hdmi: add support for CEC suspend and resume eventsTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for CEC commands to suspend and resume the device. The HDMI core must be kept on when the CEC wakeup feature is enabled and the device is going into suspend state. Furthermore, interrupts must be enabled in this state to capture CEC commands. This allows the device to be resumed later on via CEC wakeup commands. Change-Id: Ie6fcbc666e4f40335ab8faaa969d4b03aa83e17c Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: dsi: ensure clocks are off when setting their sourceAbhinav Kumar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When DSI panel in unblanked, the driver configures the sources for all the DSI branch clocks based on the current HW configuration. This assumes that the clocks would be off when the panel is unblanked. This may not be true when transitioning to ON state from any of the panel low power states (LP1 or LP2). This can lead to warnings when trying to set the clock source while the clock is enabled. Fix this by ensuring that the clock source is configured only if the panel is not on. Change-Id: I97f40eaedad203c5aaa0c645105bea2ff962e81d CRs-Fixed: 975819 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | msm: mdss: dsi: add xlog for BTA DONE and few error messagesVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add xlog entry when BTA DONE interrupt is received. And add proper error messages before panic in few places, to make it easy to identify the reason and place of the crash. Change-Id: Ie9e24d2caeff12601058ea3c76af4e3dca0cd09c Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | | msm: mdss: add support for dedicated WB mixerKrishna Chaitanya Devarakonda2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some MDP revisions, the layermixer which is attached to writeback block, is dedicated. It cannot be used for interfaces. Adding support to take care of mixer allocations for WB and rotator paths, for such MDP hardware. Change-Id: I9df51cf419c1dae3d2ce10597017a05dca1023a8 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
* | | msm: mdss: Add mdss capabilities for msmgoldKrishna Chaitanya Devarakonda2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add MDSS version info along with other capabilities for msmgold. Change-Id: Ia4602fdaf29bad28dffab4bb08a43a6eb6f32178 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org> Signed-off-by: Kalyan Thota <kalyant@codeaurora.org> Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | msm: mdss: Add mdss capabilities for msmtitaniumJayant Shekhar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Add MDSS version info along with other capabilities for msmtitanium. Change-Id: If9544098e8bb7f4b0d8198a931e5a7ef8eb561d4 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | msm: mdss: add xlog for debug in ping_pong timeoutKalyan Thota2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Add addtional debug info to know the commit count on pingpong timeout. Change-Id: I1f40a5eee1a14efbf03487db9d398e04cd2e6f7c Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
* | | msm: mdss: hdmi: use hardware hot plug triggerAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On receiving hot plug power off event, switch off 5V regulator in case cable is still connected to sink to receive disconnect hardware interrupt. Do not issue software based disconnect event in this case as it can cause different modules to go out of sync resulting in unstable system. Change-Id: I19d82b62e8ad507458abd21a8a71fbcae8adefec Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | | msm: mdss: remove dsi-v2 file compilation from 8909.Sachin Bhayare2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | For MSM8909 28nm DSI phy is used and dsi-v2 support is not needed. So disabling dsi-v2 compilation for MDP3. Change-Id: I7410c434debf119ddad2f6dd8052aabf31c0db6a Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
* | | msm: mdss: fix MDP3 compilationSachin Bhayare2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Add missing header file, remove unused header file and structure element mdp3_img_data. Change-Id: I6a12a65f3ccb622927c3b69d599856299e7b8e65 Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
* | | msm: mdss: dsi: ensure lanes are idle prior to ULPS entryAravind Venkateswaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible that the ULPS entry request can potentially overlap with the last DCS command that was sent out on the link. This is more likely if the DCS command was sent in LP mode. In such cases, the panel could see some issues in the LP transmission which may trigger an error when a BTA is done subsequently. To address this, ensure that the lanes are idle by checking that all active FIFOs are empty and the all active data lanes are in stop state. CRs-Fixed: 961817 Change-Id: Ia2575f06762f6bc847f64fb70e96a275712d9135 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | msm: mdss: dsi: validate ULPS config requestsAravind Venkateswaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation, ULPS entry/exit requests are placed whenever DSI link clocks are disabled/enabled. However, certain optimizations can be done avoid unnecessary transitions such as for cases when clocks are turned off briefly prior to panel initialization/uninitialization, and then turned right back on to send the panel on/off commands. Add these optimizations and avoid ULPS configuration for such cases. CRs-Fixed: 961817 Change-Id: Ie6c666b91e86697c37e0a557f9ba47811392ae90 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | msm: mdss: hdmi: retain clock state after successful handoffTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When HDMI is selected as the primary interface, we want to retain the HDMI clock state after a successful handoff to ensure that the interface continues to send data to the sink. We achieve this by maintaining the HDMI PHY status when we detect that handoff is in progress. Change-Id: I0aaefc96d63b9eaf3928c11b5dab51cce99e1dc3 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: hdmi: update panel power state for all hdmi use casesTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the panel power state after the HDMI transmitter core is powered on for all HDMI use cases (external and primary). This will enable other entities (e.g. Audio driver) to query the correct power state during boot up. Change-Id: Ie6765880e9e9d9d6f087c1726d331ef2dd632cad Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | Revert "msm: mdss: hdmi: tear down audio at bootup if already started"Tatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b591582c5b5bf2ddee5e3857629bd7f39b8bdffa ("msm: mdss: hdmi: tear down audio at bootup if already started"). The programming sequence to tear down audio (as implemented on MSM8994 platform) included directly writing to LPASS registers. However, on 8996, TZ does not allow access to LPASS registers from the APPS side. Change-Id: I19c6c0d5f5019ea78463a2d0fbdbddd92edf7ab0 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: clean up ctl during cont splash resolution changeAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During boot-up, if continuous splash screen is enabled, handoff will populate the controller and other structures after reading hardware info. If there is a resolution switch, clear the handoff data so that the data can be reconfigured with new resolution info. Change-Id: Ia524136283711e95879936603bb53c5e8f263ea6 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: hdmi: add pin-control and splash enableTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize the splash enabled flag when HDMI is primary. This is required during probe time so the HDMI driver can add pin-control vote, enable regulators, enable GPIOs and enable clocks. Change-Id: Iaaf3d983512619bda753b12e3d80ee8efe32d810 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: hdmi: protect hpd power from multi-thread accessAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HPD (Hot Plug Detect) can be powered on or off by down stream device like MHL or slimport driver based on cable connection triggered by user. In response to that, HDMI transmitter power on and off is triggered in a different thread. There can be a race condition with transmitter power on/off and HPD power on and off with fast plug in/out. Protect these functionalities using mutex to avoid such race conditions and keep the HDMI state machine in valid state. Change-Id: I7fa8de10b96ca3cf674a0b7cf83b0f96cc177509 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | | msm: mdss: add atraces for tracking atomic commitVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add atraces tag to track atomic commit. This would be helpful in analysing systraces to isolate any delays during validate and commit cycle. CRs-fixed: 930504 Change-Id: I204e620283926b03f3e956731145b99d81b29e6d Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | | msm: mdss: add WB support to use 2 LM for 4k usecaseVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix writeback to use 2 LM for resolution width more than 2048. And update the pinfo and var data structures when the writeback output resolution is changed. CRs-fixed: 930504 Change-Id: Id096511a26845a962c30c6ebf2102ffcb0c18a5f Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | | msm: mdss: add support to send dcs cmds by left port only in video modeNaseer Ahmed2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation, the existing feature flag to send DCS commands only by the left controller is parsed only for command mode panels. Extend this support to include video mode panels as well. Change-Id: I32c5d96b514a8c4cb90fd320d589fe4252e92133 Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
* | | msm: mdss: fix race condition between vsync handler and ctl_stopDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ctl_stop and vsync_handler both can run in two different threads. That can lead to race condition in vsync handler. -> Core 0: vsync handler thread checks the ctl power status and get preempted by other priority task. -> Core 1: processes the ctl_stop and power off the display device. -> Core 0: Vsync handler task gets chance to run again and tries to access the ctl->op members. The third step leads to invalid structure member access because display is already powered off. This race condition should be fixed by moving all power state checks inside mutex lock. Change-Id: I452c9026074acda2d00954e530fc491d395f106b Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | msm: mdss: false ESD detections due to race conditionNaseer Ahmed2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race condition between ESD thread and commit thread which causes false ESD detections. This change prevents the condition. Change-Id: I67a480f7251348fc86be01fe8d5414857f53bc75 Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
* | | msm: mdss: dsi: fix dsi fifo underflow error status checkVeera Sundaram Sankaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove obsolete dsi fifo error status check based on CMD_MDP_FIFO_UNDERFLOW and check the correct status from DLNx_HS_FIFO_UNDERFLOW bits in dsi fifo status register. CRs-Fixed: 961817 Change-Id: I3664e51ffa0fc729e949d85c3d543ec338444a9d Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | | msm: mdss: adv: handle adv regulator configuration properlySandeep Panda2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation adv regulator get is called from DBA driver but regulator enable or disable is never getting called. So because of this there is power leakage in the HDMI path. This change fixes the issue by properly configuring the adv regulator in DBA driver. CRs-fixed: 965732 Change-Id: If73d48fc1b34811e8b7ec4fbce91f43b5bb9285d Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | msm: mdss: Add support xRGB_8888 for FBIOPUT_VSCREENINFOJayant Shekhar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | var->transp.offset is 0 for xRGB format, but currently code allows only 24, which results in check var failure. Add this to allow 0 also as transp offset value for xRGB. CRs-Fixed: 969012 Change-Id: Ie52d9363e4e94bf1e3d1cecb5f391687383042b7 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | msm: mdss: dsi: propagate error on read command failuresAravind Venkateswaran2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | When panel read command API fails, propagate the error up so that the caller can take any necessary actions. CRs-Fixed: 960973 Change-Id: I397f4d47c6343abbab12833a47b753dc3bdb98f0 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | msm: mdss: hdmi: enable ddc gpios before any ddc transactionAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enable DDC power module and corresponding GPIOs before EDID read, write, HDCP authentication and SCDC communication with sink to avoid any DDC read or write failures. Change-Id: Ia88c616d7a6149c3be190b5fbab22444448aea5d Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | | msm: mdss: fix overflow when reading pixel clockIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix pixel clock value overflow when reading from the dtsi. This fixes the frame rate calculations for 120 fps panels; wrong frame rates were leading to low bandwidth and mdp clock calculations, increasing the transfer times and reducing the fps. Change-Id: Ia41aae433f89e8970318224562b00cf0cb56767b Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | | msm: mdss: hdmi: remove unnecessary sysfs nodesAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Remove dead code of sysfs node implementations which are not being used to avoid any possible compliance issues related to sysfs nodes. Change-Id: Ida43cbd04c7b8ec6ad79e9a4c66a7725920ba116 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | | msm: mdss: hdmi: fix hpd state machine on different use casesAjay Singh Parmar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix HPD (hot plug detect) state with respect to rest of the system in different use cases like cable connect/disconnect, runtime suspend/resume, PM suspend/resume, framework stop/start and sysfs node hpd enable/disable. Set the switch nodes to correct states in above cases. Protect event handler, sysfs node handler, ISR work with mutex as there can be race condition between PM events, framework events and hardware interrupts. Change-Id: I223602753985d7022a3394fc5f5821e6e36ab2cd Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
* | | msm: mdss: remove hw rev read from capability nodeDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDSS hardware capability node turns on clock and check the hw revision every time client calls the read operation. This is not required because MDSS driver reads the revision information during MDP driver probe. Change-Id: I2db424f7aa1af5c5b006023f70516c2d83fe5372 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | msm: mdss: adv: fail ADV7533 probe if check revision failsSandeep Panda2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current implementation we are ignoring check revision failure for ADV7533 probe which might be because the chip itself is not connected to platform. Due to this we are not disabling the power supply even though chip is not connected and going ahead causing power leakage. This change fixes the same. Change-Id: I2181aba5978a4364d741a96f659771204fe5a2ee Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | msm: mdss: Ensure HW init program after resumeJayant Shekhar2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, MDP and VBIF settings are not getting programmed after resuming from suspend due to which it gets reset to default settings. Fix this to ensure these settings are programmed after resume. Change-Id: Ice00d2eaac7adde9583c9a89e8b794e3e889361d Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | msm: mdss: fix the logic for configuration of DSI clock sourcePadmanabhan Komanduru2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DSI clocks need to sourced out of the correct DSI PLL depending on the h/w configuration. The current assumption is that the clk_set_parent operation on DSI branch clocks is necessary for targets which support 2 DSI PLLs. However, there is a possibility that the DSI clock source needs to be set even for single DSI targets if the clock driver implements multi-parent based approach for DSI RCG clock structures. Add change to take care of this. Change-Id: Ib399a8264d0d9919701c70ed6a77d50a69ec386c Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
* | | msm: mdss: hdmi: Do not toggle HPD during HDCP re-authenticationTatenda Chipeperekwa2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not toggle the HPD circuitry during HDCP re-authentication as this has undesirable side effects such as failure to detect cable disconnection event. The HDCP engine already has a dedicated software interface used to reset during HDCP re-authentication. Change-Id: I76be51ea286fadabefc436613b420c4d6ac1946a Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
* | | msm: mdss: avoid clock off from delayed offDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid clock off from delayed off when kickoff is pending. This sequence is leading to mdp clocks off and on which adds extra delay in kickoff cycle. Change-Id: Ia30ec3ac3c2e7602a32c9eb789cd85d4736b6c60 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | msm: mdss: remove clk off scheduling when commit pendingDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There can be race condition possible between Early touch event thread and kickoff thread. For ex: -> Eary touch event: Turns on clock and schedule the off after 4 vsync cycle. -> Kickoff thread: Leaves the clock on -> Second touch event: Reschedule the clock off workque The second touch event call scheduling the clock off after 4 vsync cycle. On loaded system, kickoff thread might get intruppted and get chance to rerun after 4 vysnc cycle. The clocks will be turned off for such use cases before PP done ISR. Change-Id: I85923146645379be1e3ccc578fc795306cd987ad Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | msm: mdss: fix overflow while copying config idDhaval Patel2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Fix possible overflow while copying config id in DSI driver. Change-Id: I0432ddc43c62f5b25a8197f2fc06ea45e4c2738a Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
* | | msm: mdss: add early wake up for dfps updateIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During early wake up notification, add the request to update the fps to the default value, so we can avoid this latency during the first frame update after Idle. Change-Id: I796a6ecba19f451e0f5e202c29e4de0d62a8cd5a Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
* | | video: fbdev: Additional param checks on user space cmapNaseer Ahmed2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Additional bound checks for parameters that are used to calculate target buffer address. Change-Id: Ib4a00a51c761dc7751a19e6ee7f55cacac97860f Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
* | | msm: mdss: cleanup auto-refresh implementationIngrid Gallardo2016-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-refresh is used on smart displays to refresh display without SW intervention, similar to dumb displays. So when it is on, display controller will automatically send new frame every time panel TE signal is received. Now as per the HW implementation, disabling auto-refresh requires that display controller is idle and there is no frame transfer on-going. To achieve this, we need to follow certain disable sequence. To implement this disable sequence, clean up current implementation and introduce auto-refresh state machine. Change-Id: Iac5d76b6431f7ef2fcd68114e19c5cb5fb02577d Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org> Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>