summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/msm (follow)
Commit message (Collapse)AuthorAge
...
* | | | | | Merge "msm: mdss: Remove check to cap requested mdp clock"Linux Build Service Account2017-07-28
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | msm: mdss: Remove check to cap requested mdp clockAnimesh Kishore2017-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invalidate layers with requested mdp clock greater than max supported. Change-Id: Ic44787e6c0ad1cce105074533c1b6fd21c79da38 Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
* | | | | | Merge "msm: mdss: sink mode needs to be read from EDID"Linux Build Service Account2017-07-25
|\ \ \ \ \ \
| * | | | | | msm: mdss: sink mode needs to be read from EDIDYuan Zhao2017-07-14
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DVI/HDMI mode of sink could be read from EDID. Now, we set the mode according to the video format. For a HDMI device, if we choose VIC mode larger than 127, it would be set as DVI mode. It would be confused that a HDMI device is treated as a DVI device, and would lead some issue for display. CRs-Fixed: 2030216 Change-Id: I122faf6f4f8d7e620bc6ce7ce1b5757caa188b8e Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
* | | | | | Merge "msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.x"Linux Build Service Account2017-07-25
|\ \ \ \ \ \
| * | | | | | msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.xAravind Venkateswaran2017-07-14
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current implementation only checks if the sink is HDCP capable. In addition, it is required that the source also checks for the HDCP version supported by the sink prior to initiating HDCP 2.x authentication sequence. CRs-Fixed: 2062951 Change-Id: I24901202a0abc2ff4336ab9c6c2fd708a53559f2 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | | | | Merge "msm: mdss: dp: do not program audio registers when DP core is off"Linux Build Service Account2017-07-25
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | msm: mdss: dp: do not program audio registers when DP core is offAravind Venkateswaran2017-07-14
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible that the DP core may already be shutdown when a callback from the audio subsystem is invoked. In such cases, ensure that the callbacks return gracefully without trying to do any hardware programming. CRs-Fixed: 2072592 Change-Id: Ib112c0791852e1c835c739167683f160723b3baa Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
* | | | | Merge "msm: mdss: Fix possible memory overwrite in pgc config"Linux Build Service Account2017-07-19
|\ \ \ \ \
| * | | | | msm: mdss: Fix possible memory overwrite in pgc configSravan Kumar D.V.N2017-07-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Possible memory overwrite in pgc get config is fixed by eliminating direct reference to user data. Change-Id: I7117848bacb8e69720eb3121d02bbacf02cab13a Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
| * | | | | msm: mdss: Fix possible leaks in PP LUT get functionsSravan Kumar D.V.N2017-07-14
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Possible user information leaks in post processing LUT get functions are fixed by properly copying user data. Change-Id: I529f74a79e5857902177c8054d136b4544370be2 Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
* | | | | Merge "msm: mdss: dp: fix watchdog reset with DP connected in AOD mode"Linux Build Service Account2017-07-19
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | msm: mdss: dp: fix watchdog reset with DP connected in AOD modeNarender Ankam2017-07-07
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With DP connected and device in AOD mode, DP is powered off during suspend operation. But at the same time, if device receives HPD_IRQ attention event, DP driver is trying to access unclocked registers. Handle HPD_IRQ attention event only if DP is fully powered ON. Change-Id: I425e34e8456fb828c1bddd6e0b4bf92772092a61 Signed-off-by: Narender Ankam <nankam@codeaurora.org>
* | | | Merge "msm: mdss: do not resynchronize DSI FIFO if during device boot up"Linux Build Service Account2017-07-14
|\ \ \ \
| * | | | msm: mdss: do not resynchronize DSI FIFO if during device boot upSandeep Panda2017-07-09
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For PHY version 0x3, DSI FIFO needs to be resynchronized once DSI PLL is enabled. But during device boot up if continuous splash is enabled then we don't need to toggle the FIFO resync bit, since DSI PLL will be already enabled by UEFI. So avoid toggling FIFO resync if continuous splash is enabled. Change-Id: I94f3e0e48799ded8e546f3889b3df0a8af577451 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | | Merge "msm: mdss: Avoid direct dereference user input in pp cache config"Linux Build Service Account2017-07-14
|\ \ \ \
| * | | | msm: mdss: Avoid direct dereference user input in pp cache configSravan Kumar D.V.N2017-06-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate direct dereferencing of user input pointer in pp cache config functions. Change-Id: Ia07a0ecc3b4839635cbd9c2f635c1f713783683c CRs-Fixed: 2057285 Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
* | | | | Merge "fbdev: msm: Add check for fence count"Linux Build Service Account2017-07-14
|\ \ \ \ \
| * | | | | fbdev: msm: Add check for fence countSachin Bhayare2017-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a check to ensure that the acquire fence count does not exceed the maximum possible value. Change-Id: I7198899be2d720214152d49fdbb6b6a69750fb3a Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
* | | | | | Merge "msm: mdss: apply bus throughput factor for high downscale cases"Linux Build Service Account2017-07-14
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | msm: mdss: apply bus throughput factor for high downscale casesKrishna Chaitanya Devarakonda2017-07-06
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For downscaling a 32 BPP surface with scale ratio greater than or equal to 3.5, it is recommended to increase the mdp core clock by 10%. This is to avoid any stalls on the bus during high concurreny scenarios. Change-Id: I77c8c25c73e4232271a93397e52798a6d5d74cf3 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
* | | | | Merge "msm: mdss: information leak during buffer copy from userspace"Linux Build Service Account2017-07-07
|\ \ \ \ \
| * | | | | msm: mdss: information leak during buffer copy from userspaceAshish Garg2017-07-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While trying to write dsi commands from userspace, the user buffer is copied using simple_write_to_buffer. If the number of bytes in the user buffer is less than the destination buffer, the length was set to the destination buffer length. Subsequently the buffer could be read from userspace to dump a lot of uninitialized kernel heap data. Update the destination buffer with the correct size of bytes copied from the user buffer. Change-Id: Ib28f3698655d25ad8103fc02199a1d214092e232 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
* | | | | | Merge "msm: mdss: Increase fbmem buf ref count before use"Linux Build Service Account2017-07-07
|\ \ \ \ \ \
| * | | | | | msm: mdss: Increase fbmem buf ref count before useJayant Shekhar2017-06-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reference count for fbmem buf is not increased before use, which means it can be get freed unintentionally when the reference count is decreased to "0". In this case, there is possibility of use after free. Ensure that fbmem buf refcount is incremented before use. Change-Id: I525d41e5496a1123e53a438b5f78d4da8bc046bd Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | | | Merge "mdss: dp: avoid notifying DP connect during AUX timeout cases"Linux Build Service Account2017-07-07
|\ \ \ \ \ \ \
| * | | | | | | mdss: dp: avoid notifying DP connect during AUX timeout casesPadmanabhan Komanduru2017-07-03
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case the DPCD read transaction continuously times out, it is likely that the sink is not responding or the DP cable/dongle is faulty and hence no response is seen. In such cases, avoid reporting the DP connect event to userspace. Change-Id: Ie07de464f63dc3b18c875a061a18ad00e4c99e85 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
* | | | | | | Merge "msm: mdss: Put smmu interface errors under pr_err"Linux Build Service Account2017-07-07
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: Put smmu interface errors under pr_errJayant Shekhar2017-06-29
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the smmu interfaces error are under pr_debug in splash logo path. Put them under pr_err. Change-Id: I1805a4a00e3c2a2d2ed1772e84759c301b56b115 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | | | Merge "msm: mdss: Fix possible integer overflow"Linux Build Service Account2017-07-07
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | msm: mdss: Fix possible integer overflowSachin Bhayare2017-07-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid possible integer overflow while validating mdp3 image parameters. Change-Id: Ifd972134a23f653cf38134510d98dec5a604d2bc CRs-Fixed: 1107055 Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
* | | | | | | Merge "msm: mdss: Check htotal for calculating programmable fetch"Linux Build Service Account2017-07-05
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: Check htotal for calculating programmable fetchJayant Shekhar2017-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For calculating programmable fetch values, ensure htotal is non-zero. Change-Id: Ib1f32f5f16aa97fb82c13c9020707245177067b9 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | | | | Merge "msm: mdss: fix the pixel clock calculation for fb modes"Linux Build Service Account2017-07-04
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | msm: mdss: fix the pixel clock calculation for fb modesSandeep Panda2017-06-29
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation, if panel is configured in split mode and supports multiple resolutions, then the pixel clock calculation for the supported modes does not take split mode into consideration. This causes issues when recovery or charger application try to configure display. So fix the same by recalculating the pixel clock with taking care of proper width in case of split mode panel. Change-Id: Ie6b50bcd67d3e283610f8b04ac0a974b3527e552 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | | | | | Merge "msm: mdss: unmap buffers before starting Secure Display session"Linux Build Service Account2017-07-03
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: unmap buffers before starting Secure Display sessionKrishna Chaitanya Devarakonda2017-06-23
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IOMMU will be detached for Secure Display session. We need to make sure to unmap all the buffers before detaching IOMMU. There are a couple of cases where the buffer on pipe which is being used for Secure Display, isn't unmapped before IOMMU detach. Add handling for such cases in validate and kickoff. Also, add changes to wait for secure session completion in rotator, before mapping buffers. Change-Id: Ia47f519b8ba471848bbf2eef4ae1c010f1d0c1d2 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
* | | | | | | Merge "fbdev: msm: Add check for ioctl calls"Linux Build Service Account2017-07-03
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | fbdev: msm: Add check for ioctl callsKrishna Manikandan2017-06-22
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A check is added to ensure that only the supported ioctl calls are allowed to proceed further and all other ioctl calls are returned early. Change-Id: I30f69bc9c60384d01f990bd1830ddc1d8aa9241e Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | Merge "msm: mdss: Allow post-processing clean-up for primary display"Linux Build Service Account2017-06-29
|\ \ \ \ \ \
| * | | | | | msm: mdss: Allow post-processing clean-up for primary displayKrishna Srinivas2017-06-16
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add checks to ensure that fb reset for post processing features is done only for primary display. Change-Id: Ied9381e7cbc22882d7d51e0470468f47fd548f32 Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org> Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
* | | | | | msm: mdss: Correct PP register programming deferringPing Li2017-06-26
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 1b5894d38a00 ("msm: mdss: Separate PP programming to advanced and deferred modes") separates the PP register programming into two groups, the normal pp features and the deferred pp features. However, the above change missed to add the check in one place and caused mdss_mdp_ad_setup() gets called two times for every dspp_setup, which breaks the AD mode switch feature during idle power collapse. This change fixes the above issue by adding the missing check. Change-Id: I694299646f62ab29aeff49d4e3749d7858381db4 Signed-off-by: Ping Li <pingli@codeaurora.org>
* | | | | Merge "mdss: dp: check if sink device is connected before DP ON sequence"Linux Build Service Account2017-06-23
|\ \ \ \ \
| * | | | | mdss: dp: check if sink device is connected before DP ON sequencePadmanabhan Komanduru2017-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During cases where device coming out of pm suspend and disconnecting the DP cable happens around the same time, it is possible that the DP ON sequence is triggered from userspace before the disconnect event is notified to the userspace. Add a check to make sure DP ON sequence is executed only when the sink is connected. Change-Id: I61d06e007358df75c5cedc26552422c7a8c8aa0b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
* | | | | | Merge "msm: mdss: Change IOMMU map sequence during splash cleanup"Linux Build Service Account2017-06-23
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | msm: mdss: Change IOMMU map sequence during splash cleanupJayant Shekhar2017-06-19
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently PA to VA mapping is not working with existing sequence. Correct the sequence as below: - set DOMAIN_ATTR_EARLY_MAP attr to 1 - attach iommu - perform mapping - set DOMAIN_ATTR_EARLY_MAP to 0 Change-Id: Id9c430efde05eb6a683a41f10cbf216102d4fa23 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
* | | | | Merge "fbdev: msm: Reserve mixers with dspp for primary display"Linux Build Service Account2017-06-18
|\ \ \ \ \
| * | | | | fbdev: msm: Reserve mixers with dspp for primary displayKrishna Manikandan2017-06-09
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid allocating mixers LM0 and LM1 to external display and writeback as they are allocated to primary display first. Change-Id: I343a70dca2e664e5c9765fa2f0b933714b747b4a Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | Merge "ARM: dts: msm: optimize brightness dcs control for msm8998 SKUK HDK ↵Linux Build Service Account2017-06-18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | panel"
| * | | | | msm: mdss: add support to control dcs brightness with HS stateYahui Wang2017-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some special panels may need high speed mode to send brightness to avoid panel issues, adding this change can make a better user experience using these panels. Change-Id: Id2cd4b3652892cc7677d7c6863a67d93e24d980f Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>