summaryrefslogtreecommitdiff
path: root/drivers/video (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | | | Merge "msm: mdss: update polarity based on HDMI resolution"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | msm: mdss: update polarity based on HDMI resolutionCasey Piper2017-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set horizontal and vertical polarities based on the HDMI resolution and use these polarities when setting up the MDP timing generator. CRs-Fixed: 2016373 Change-Id: Ifaf4d72a25e512ecccf13f479a77c8e860978082 Signed-off-by: Casey Piper <cpiper@codeaurora.org> Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org> Signed-off-by: Yuchao Ma <yuchaom@codeaurora.org>
* | | | | | | | Merge "msm: mdss: do not print error in case sync_trigger is enabled"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: do not print error in case sync_trigger is enabledSandeep Panda2017-05-19
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case sync trigger is enabled, then DCS commands are only sent for both the DSI controller when transfer call for the second DSI controller happens. So in that case do not print error log for the first controller if DCS command is not sent. Change-Id: I5c302f55f15735970cd5f6c8d0b31c55b447433f Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | | | | | | Merge "msm: mdss: disable AVR for msm8998"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: disable AVR for msm8998Sachin Bhayare2017-05-16
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable AVR as dynamic fps is enabled for msm8998. Change-Id: I4d96984c45de83868f2ea4d324a598edf6d30e94 Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Check if secure display is enabled during non-secure validate"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Check if secure display is enabled during non-secure validateKrishna Chaitanya Devarakonda2017-05-31
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For video mode panels, when secure display has ended and non-secure layers are being committed, check if secure display is still enabled. Ideally there should be a NULL commit before non-secure content starts, to clean up the secure display. If this isn't the case, add code to detect, validate, and return failure. Change-Id: I574547307073e38a19a42ff21679b17e1ec29b3b Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Avoid NULL mixer during partial update ROI setup"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Avoid NULL mixer during partial update ROI setupBenjamin Chan2017-05-30
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under MDSS suspend resume usecase, the mixer config might not be setup and if a partial update is issued for the first frame, it is necessary to avoid accessing the NULL mixer config. CRs-Fixed: 2053822 Change-Id: I17c0b98805ce9395899e988032097740126fee83 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Fix QSEED3 MDP clock calculation for cmd mode panel"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Fix QSEED3 MDP clock calculation for cmd mode panelBenjamin Chan2017-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calculates the MDP clock during downscale usecase for command mode panel, it is necessary to calcuate the entire horizontal pixel count of the panel including the front and back porch. The incorrect MDP clock calculation will cause screen corruption, which usually show up in the bottom half of the screen. CRs-Fixed: 2039110 Change-Id: Id16abb645372ef5d21472839815b6ada502dc19b Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | | | | Merge "drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZE"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZEPrasad Sodagudi2017-05-31
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are all driver changes needed for disablement of CONFIG_CC_OPTIMIZE_FOR_SIZE. CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is enabled by default once CONFIG_CC_OPTIMIZE_FOR_SIZE is disabled. Change-Id: Ia46a1f24e8a082a29ea6151e41e6d3a85a05fd4f Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: control avdd enable gpio when doing panel reset"Linux Build Service Account2017-06-07
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / |/| | | | | | | |
| * | | | | | | | msm: mdss: control avdd enable gpio when doing panel resetYahui Wang2017-05-31
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avdd enable gpio maybe used for AMOLED panel to control avdd output. This gpio should be enabled/disabled when panel does unblank/blank once to avoid panel electric leakage. Change-Id: I18f0f6491f0ff97df5556e74a686a18b262708df Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
* | | | | | | | Merge "fbdev: core: Initialise structure to prevent kernel information leak"Linux Build Service Account2017-06-06
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | fbdev: core: Initialise structure to prevent kernel information leakKrishna Manikandan2017-05-25
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The structure fix is initialised before its usage to prevent kernel information leak during copy_to_user. Change-Id: Ice4da4c9bd6095a4387e1d16cb20ca474accb9dc Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | Merge "msm: mdss: declare function used only within the file as static"Linux Build Service Account2017-05-31
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | msm: mdss: declare function used only within the file as staticAshish Garg2017-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix sparse tool error which mandates that functions used only within the file to be declared as static to allow compiler optimizations. Change-Id: Iba14c50730bb7ce402e4b45bc9b2c8d1fec6f3eb Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | | Merge "msm: mdss: Fix potential dereferencing of null pointer"Linux Build Service Account2017-05-29
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | msm: mdss: Fix potential dereferencing of null pointerRajkumar Subbiah2017-05-16
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During atomic commit on a writeback panel, there is a possibility of deferencing a NULL pointer if the configuration changes before the commit. This change adds a NULL pointer check to avoid it. Change-Id: I56d0efad40992b6f87c81e5eab93cf0f24f6f524 Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
* | | | | | Merge "msm: mdss: Call regulator enable/disable for both DSI controllers"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: Call regulator enable/disable for both DSI controllersRashi Bindra2017-05-23
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is ref count mismatch in number of enable/disable calls for regulators with low power mode allowed flag which is resulting in random system crashes. This change makes sure number of enable/disable calls are same. Change-Id: I0c1906df8c3a83e8740412c272179d3d9c514c0e Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
* | | | | | Merge "msm: mdss: ensure clocks are on till pixel transfer is completed"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: ensure clocks are on till pixel transfer is completedAshish Garg2017-05-23
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When pixel transfer is going on, there is a race condition during which pixel clock can get turned off due to early clock gating before CMD_MDP interrupt is triggered which can cause interrupt storm. This change ensures CMD_MDP interrupt is received before turning off clocks. Change-Id: I33b664334912584170c12733329051b067c3f1da Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | Merge "msm: mdss: remove client from device list if failed to register"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: remove client from device list if failed to registerSandeep Panda2017-05-22
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is any failure while registering a DBA client with MDSS driver, then remove the client from device client list first and then free the client. Otherwise driver might crash when traversing the device client list in later stage, because of an uninitialized entry in the list. Change-Id: I60666f4c3dea5c7ea7b7c77bcb14b080ee25b54d Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | | | | Merge "msm: mdss: add recovery if TE is not coming from the panel"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: add recovery if TE is not coming from the panelAshish Garg2017-05-18
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable TE irq for the panel when there is a pingpong timeout. Wait for TE to come for five vsync cycles before starting the recovery for panel dead. If the TE comes from the panel during the wait, call panic for pingpong timeout. Change-Id: I88d06562e3e19880bb327b5f347ed79057f0e8c3 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org> Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
* | | | | | Merge "msm: mdss: Correct MDSS display wakeup time calculation"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: Correct MDSS display wakeup time calculationBenjamin Chan2017-05-17
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With DSC enabled in the panel interface, the horizontal pixel count is smaller than the panel width due to the compression. Correcting the time_of_line and total_line calculation by calling the proper macro. CRs-Fixed: 2048339 Change-Id: I36c1b9d30d5a440dfef4b4638f4f3ebf807782c8 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | Merge "msm: mdss: remove wait for vsync in display commit"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: remove wait for vsync in display commitXu Yang2017-05-22
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove wait for vsync in display commit if both PCC and DDIC need to update for external backlight feature. Change-Id: I57aeb48acba24e0ca3fff21b1117e48fe452028b Signed-off-by: Xu Yang <yangxu@codeaurora.org>
* | | | | | Merge "msm: mdss: Disable traffic shaper in command mode"Linux Build Service Account2017-05-27
|\ \ \ \ \ \
| * | | | | | msm: mdss: Disable traffic shaper in command modeAnimesh Kishore2017-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disabling for msm8998 and derivatives. Change-Id: I944b7f31533c0c697c7c53684e6ad28eb1e36622 Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
* | | | | | | Merge "msm: mdss: Avoid dfps update till unblank is complete"Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: Avoid dfps update till unblank is completeJayant Shekhar2017-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There can be cases where MDP is resuming at default fps and in between dfps update comes before unblank is completed. This might result in mismatch in fps and blanking settings in MDP and DSI. Hence avoid any fps update until unblank is finished. Change-Id: If4fed28b1d706f38c39fba06fa786eac6d9ed8c8 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Update AD last strength during AD mode switch"Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Update AD last strength during AD mode switchPing Li2017-05-09
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently AD last_str is updated only inside pp_ad_calc_worker thread which is trigged by backlight or ambient light changes. If the number of screen refreshes is too small or user suspends the device before it finishes the scheduled screen refreshes, last_str will be different from the target strength for the current inputs. And when device goes into idle power collapse mode and exits, AD will switch to manual strength mode with last_str for two frames. After that, AD will go back to auto strength mode with the target strength. Since last_str and target strength may be different, flickers will be seen every time AD mode switch happens. This change fixes this above issue by reading the AD strength register and updating the value to last_str when AD mode switches from manual mode to auto strength mode. Change-Id: If68f84a4781230afe21b58c73ff88e59e7e9d416 Signed-off-by: Ping Li <pingli@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Use 64-bit math for bandwidth calculation"Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Use 64-bit math for bandwidth calculationBenjamin Chan2017-05-11
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For larger panel with longer vertical pixel count, it is possible that bandwidth requirement is much higher during downscaling usecase. Current bandwidth calculation for compression ratio adjustment only use 32-bit and it is shown that overflow can happen, and is required to change to use 64-bit variable as input and output. CRs-Fixed: 2045602 Change-Id: I817e9d55fb6e24e686513327d00f7efd08ac717f Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | | | Merge "msm: mdss: do not apply AVMUTE for non-CTA format"Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: do not apply AVMUTE for non-CTA formatzhaoyuan2017-05-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AVMUTE is applied when HDMI power off. However, when HDMI power on, we just make AVMUTE false for CTA format. For non-CTA format, AVMUTE is still applied, if we want to show premium data(highger quality, such as enable deep color), HDMI could not display, just black screen. CRs-Fixed: 2033800 Change-Id: If0de6052e98cb9cfcf88ae21d8c19d39ae8abd14 Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Correct source and destination buffer rectangles"Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | msm: mdss: Correct source and destination buffer rectanglesJayant Shekhar2017-05-09
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of 180 degree panel flip using pan display for commit, correct source and destination buffer rectangles as mixer swap is no longer supported. Change-Id: Ifd31732ace6ebefd865933b6be359374e4a9fa63 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: dp: fix display port crash caused by unclocked register ↵Linux Build Service Account2017-05-27
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | access"
| * | | | | | | | msm: mdss: dp: fix display port crash caused by unclocked register accessNarender Ankam2017-04-27
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Display port main link control clock is enabled during UNBLANK ioctl call. Due to some error reasons, UNBLANK ioctl call may early return without enabling DP control clock. Later if any ioctl is called and tries to access unclocked DP link registers, it will cause noc error. Add a check to handle these ioctls only if DP is fully powered on. Change-Id: Ie5a5707f708a0e39d21bf06b8e479b7b95249566 Signed-off-by: Narender Ankam <nankam@codeaurora.org>
* | | | | | | | Merge "msm: mdss: fix display port crash caused by hpd_irq attention event"Linux Build Service Account2017-05-16
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | |
| * | | | | | | msm: mdss: fix display port crash caused by hpd_irq attention eventPadmanabhan Komanduru2017-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When adb shell stop operation is performed with display port sink connected, after the framebuffer is closed on display port device, there are cases where an attention event is sent by the display port adapter with hpd = 1 and hpd_irq = 1. This causes unclocked register access while handling hpd_irq event since the DP link is shutdown. Add a check to handle hpq_irq event only if DP host is initialized. Change-Id: Icdb06f23b6d124d8bfdad2b1dd5e296df491be15 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>